Can't get weewx working on a new server

201 views
Skip to first unread message

kiwigander

unread,
Nov 25, 2020, 10:24:37 PM11/25/20
to weewx-user

Hi all, I'm trying to move weewx to a new computer but getting nowhere fast.

The weather station is a Vantage Pro2 with serial data logger (not USB) communicating with an RS232 port on my old Dell D520 running Linux Mint 17.  I'm shifting my server functions to a new fanless mini-PC with RS232 ports.

The old setup was installed around 2012 and I don't recall updating it (other than the OS) since.  

The new installation is weewx 4.2.0.  I tried the .deb package; when I couldn't get it working I purged it and tried again with the setup.py method and Python 3.  The file structure now looks rather like the old setup.

Anyway, I can't get the new installation to work.  No html page is created.  Here is a snippet of output from dmesg:

Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 2 instead
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Hardware name: Vantage Pro2
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: StdConvert target unit is 0x1
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.manager: Daily summary version is 2
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdWXXTypes
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdWXXTypes
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdPressureCooker
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdPressureCooker
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdRainRater
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdRainRater
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Archive will use data binding wx_binding
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Record generation will be attempted in 'hardware'
Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.engine: The archive interval in the configuration file (300) does not match the station hardware interval (60).
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Using archive interval of 60 seconds (specified by hardware)
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: StationRegistry: Registration not requested.
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: Wunderground: Posting not enabled.
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: PWSweather: Posting not enabled.
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: CWOP: Posting not enabled.
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: WOW: Posting not enabled.
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: AWEKAS: Posting not enabled.
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Nov 26 15:56:23 XCY weewx[3380] INFO __main__: Starting up weewx version 4.2.0
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Clock error is -0.95 seconds (positive is fast)
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov 26 15:56:23 XCY weewx[3380] INFO weewx.manager: Starting backfill of daily summaries
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: send_data_with_crc16; try #1
Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.drivers.vantage: Unable to pass CRC16 check while sending data
Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT try #1; error: Unable to pass CRC16 check while sending data to Vantage console
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 26 15:56:24 XCY weewx[3380] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 2
Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 241 instead
Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT try #2; error: Timeout in get_data_with_crc16
Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: send_data_with_crc16; try #1
Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: Unable to pass CRC16 check while sending data
Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT try #3; error: Unable to pass CRC16 check while sending data to Vantage console
Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT try #4; error: No <ACK> received from Vantage console
Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT max tries (4) exceeded.
Nov 26 15:56:28 XCY weewx[3380] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov 26 15:56:28 XCY weewx[3380] CRITICAL __main__: Caught WeeWxIOError: Max tries exceeded while getting archive data.
Nov 26 15:56:28 XCY weewx[3380] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
Nov 26 15:57:28 XCY weewx[3380] INFO __main__: retrying...
Nov 26 15:57:28 XCY weewx[3380] INFO __main__: Using configuration file /home/weewx/weewx.conf
Nov 26 15:57:28 XCY weewx[3380] INFO __main__: Debug is 1
Nov 26 15:57:28 XCY weewx[3380] DEBUG __main__: Initializing engine
Nov 26 15:57:28 XCY weewx[3380] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Driver version is 3.2.1
Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Option loop_request=1
Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyS0; baud 19200; timeout 4.00
Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Hardware type is 240
Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 26 15:57:28 XCY weewx[3380] ERROR weewx.engine: Import of driver failed: Unknown hardware type 240 (<class 'weewx.UnsupportedFeature'>)
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/engine.py", line 109, in setupStation
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 516, in __init__
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****      log.debug("Hardware name: %s", self.hardware_name)
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1293, in hardware_name
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****      raise weewx.UnsupportedFeature("Unknown hardware type %d" % self.hardware_type)
Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****  weewx.UnsupportedFeature: Unknown hardware type 240
Nov 26 15:57:28 XCY weewx[3380] CRITICAL __main__: Unable to load driver: Unknown hardware type 240
Nov 26 15:57:28 XCY weewx[3380] CRITICAL __main__:     ****  Exiting...

I have confirmed that I'm using the correct RS232 serial port on the new server.

If I remove the serial cable from the new computer and plug it back into the old one, the web page updates and continues to update, so the console appears to be happy.

I note also that on the new system there is no /home/weewx/public_html folder.  But otherwise the file structure looks OK to this non-programmer.

I'll be most grateful for a solution or at least a way forward.

Tom Keffer

unread,
Nov 26, 2020, 8:43:24 AM11/26/20
to weewx-user
If it works on your old computer, but not the new, then there is something wrong with the RS232 port on the new computer, or the driver that supports it. Whatever it is, it is intermittent, as the computer is able to occasionally communicate with  the console.

A few things to try:

1. If the computer has more than one RS232 port, try a different one.
2. Do you have a serial-to-usb converter? If so, you could use that instead.
3. Check dmesg, just to make sure the kernel isn't trying to tell you something. Simply type "dmesg" and check the last 10-20 messages or so.
4. Perhaps your new computer has more RF noise than the old? You could try some ferrite coils around the serial cable. 
5. Finally, it is conceivable that your new computer has an odd default configuration for serial ports. To see what it is using, try this:

stty -a -F /dev/ttyS0

(From the log, it looks like you're using /dev/ttyS0, but substitute as necessary.)

Configuring serial ports is an ancient black art with its roots in the 1970s and I don't pretend to be an expert. 


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/181faebf-141d-43cd-937d-2b6f64dae524n%40googlegroups.com.

vince

unread,
Nov 26, 2020, 4:33:36 PM11/26/20
to weewx-user
Serial ports will make you pull your hair out for sure...

Lets start with figuring out what your box thinks it sees...
Please post the output of:
  • lsusb
  • dmesg 
  • syslog for the period after a clean powerdown/powerup until you see a login
Also give us some details about:
  • your precise hardware config - what computer make+model etc.
  • which os+version you're running
Also check out https://www.cyberciti.biz/faq/find-out-linux-serial-ports-with-setserial/ for some other stuff to perhaps try.

Does the new box have serial ports ?  It might be worth thinking about a serial2usb adaptor as an alternate mechanism for hooking things up. Sometimes the few bucks for one is less than the value of your time and stress battling things....

But if you have time, give us the details above so we can get more eyes on the problem...

kiwigander

unread,
Nov 26, 2020, 8:10:23 PM11/26/20
to weewx-user
The new machine is an XCY (that's the brand; bought on AliExpress) fanless mini-PC, Celeron N4100 CPU, 8 GB RAM, 128 GB SSD, 2x gigabit Ethernet, 2x RS232, 4x USB (looks like USB 2.0).  Video is temporarily via HDMI (once the server is set up, that will be disconnected); internet is via Ethernet (unit has Wi-Fi built in but I have switched it off in Network Manager); Apple keyboard is plugged into a USB port and Logitech M570 trackball communicates through Logi Unifying Receiver plugged into Apple keyboard (again, once the server is set up, the keyboard will be disconnected).

New OS is Linux Mint 20.  Output of uname -a is as follows:

Linux XCY 5.4.0-54-generic #60-Ubuntu SMP Fri Nov 6 10:37:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Output of lsusb is as follows:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 05ac:024f Apple, Inc. Keyboard Hub
Bus 001 Device 002: ID 05ac:1006 Apple, Inc. Hub in Aluminum Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Output of stty -a -F /dev/ttyS0 is as follows:

speed 19200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 0; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt
-echoctl -echoke -flusho -extproc

Output of sudo cat /proc/tty/driver/serial (truncated after line 4 as lines 4 through 31 are identical) is as follows:

serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:610 rx:1151 fe:45 brk:33 DSR|CD|RI
1: uart:16550A port:000002F8 irq:3 tx:0 rx:0 DSR|CD|RI
2: uart:unknown port:000003E8 irq:4
3: uart:unknown port:000002E8 irq:3
4: uart:unknown port:00000000 irq:0

The output of that command is just a snapshot.  The first time I repeated it, the tx:, rx: and fe: values did increment (635, 1166, 46, 45) so something was trying to communicate through ttyS0.  Now they seem to be static.  

If human memory is correct, COM1=ttyS0=irq4 and COM2=ttyS1=irq3 since forever, so the serial ports don't seem to be non-standard.

I've looped the serial cable through a ferrite sleeve; no difference.

Output of sudo tail -f /var/log/syslog on a fresh cold boot is as follows:

Nov 27 11:40:52 XCY weewx[759] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Nov 27 11:40:52 XCY weewx[759] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in __init__
Nov 27 11:40:52 XCY weewx[759] CRITICAL weewx.engine:     ****      self._setup()
Nov 27 11:40:52 XCY weewx[759] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1330, in _setup
Nov 27 11:40:52 XCY weewx[759] CRITICAL weewx.engine:     ****      self.altitude          = self._getEEPROM_value(0x0F, "<h")[0]
Nov 27 11:40:52 XCY weewx[759] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1398, in _getEEPROM_value
Nov 27 11:40:52 XCY weewx[759] CRITICAL weewx.engine:     ****      raise weewx.RetriesExceeded("While getting EEPROM data value at address 0x%X" % offset)
Nov 27 11:40:52 XCY weewx[759] CRITICAL weewx.engine:     ****  weewx.RetriesExceeded: While getting EEPROM data value at address 0xF
Nov 27 11:40:52 XCY weewx[759] CRITICAL __main__: Unable to load driver: While getting EEPROM data value at address 0xF
Nov 27 11:40:52 XCY weewx[759] CRITICAL __main__:     ****  Exiting...

(everything after that seems to involve the NTP daemon)

Now (after a lunch break) I've run sudo service weewx status and got the following:

Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in __init__
Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL weewx.engine:     ****      self._setup()
Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1321, in _setup
Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL weewx.engine:     ****      self.hardware_type = self._determine_hardware()
Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1312, in _deter>
Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL weewx.engine:     ****      raise weewx.WeeWxIOError("Unable to read hardware type")
Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL weewx.engine:     ****  weewx.WeeWxIOError: Unable to read hardware type
Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL __main__: Unable to load driver: Unable to read hardware type
Nov 27 12:31:30 XCY weewxd[4546]: weewx[4546] CRITICAL __main__:     ****  Exiting...

I'll try the other RS232 port.

Tom Keffer

unread,
Nov 26, 2020, 8:32:08 PM11/26/20
to weewx-user
Lots of good information here. I wish all users were as diligent.

The results of stty show some small differences from mine. For example, you have -iexten (the dash means negation), while I have iexten, which means mine enables non-POSIX special characters and yours doesn't. That could matter. Most of the others have to do with echoing characters and translating CR/LF, etc. Some of them could also matter.

Try setting it to "sane" values. This will basically force your values to mine.

stty sane -F /dev/ttyS0

Then try again. That's all I can think of.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

kiwigander

unread,
Nov 26, 2020, 10:07:49 PM11/26/20
to weewx-user
Thank you.  No joy with ttyS1 either (and yes, I did change the setting in weewx.conf!).

Still using ttyS1, I tried

stty sane -F /dev/ttyS1

but it's still not working.

Restarting the daemon, then

sudo service weewx status yields (repeatedly, the block of messages doesn't alter) the following:

● weewx.service - LSB: weewx weather system
     Loaded: loaded (/etc/init.d/weewx; generated)
     Active: active (running) since Fri 2020-11-27 15:14:37 NZDT; 5s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 2864 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
      Tasks: 1 (limit: 9244)
     Memory: 10.0M
     CGroup: /system.slice/weewx.service
             └─2882 /usr/bin/python3 /home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /home/weewx/weewx.conf

Nov 27 15:14:41 XCY weewxd[2882]: weewx[2882] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:14:41 XCY weewxd[2882]: weewx[2882] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:14:41 XCY weewxd[2882]: weewx[2882] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:14:41 XCY weewxd[2882]: weewx[2882] ERROR weewx.drivers.vantage: _determine_hardware; retry #0: 'No <ACK> received from Van>
Nov 27 15:14:41 XCY weewxd[2882]: weewx[2882] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:14:41 XCY weewxd[2882]: weewx[2882] ERROR weewx.drivers.vantage: _determine_hardware; retry #1: 'No <ACK> received from Van>
Nov 27 15:14:41 XCY weewxd[2882]: weewx[2882] DEBUG weewx.drivers.vantage: Hardware type is 16
Nov 27 15:14:41 XCY weewxd[2882]: weewx[2882] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:14:42 XCY weewxd[2882]: weewx[2882] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:14:42 XCY weewxd[2882]: weewx[2882] DEBUG weewx.drivers.vantage: Rude wake up of console successful
~
~
~
lines 1-20/20 (END)

And sudo cat /proc/tty/driver/serial yielded a similar result to the previous: the tx:, rx:, fe: and brk: values incremented until

serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:0 rx:0 DSR|CD|RI
1: uart:16550A port:000002F8 irq:3 tx:1123 rx:1654 fe:95 brk:108 DSR|CD|RI

2: uart:unknown port:000003E8 irq:4
3: uart:unknown port:000002E8 irq:3
4: uart:unknown port:00000000 irq:0

and then they stopped incrementing, as if the daemon gave up trying to connect.

I rebooted again and looked at /var/log/syslog again, grep-ing for weewx, and got (sorry for the length here):

Nov 27 15:52:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 0 instead
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:26 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:26 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:52:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 0 instead
Nov 27 15:52:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:52:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:38 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:52:38 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:38 XCY weewx[738] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 27 15:52:38 XCY weewx[738] ERROR weewx.engine: Import of driver failed: Unknown hardware type 0 (<class 'weewx.UnsupportedFeature'>)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/engine.py", line 109, in setupStation
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 516, in __init__
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      log.debug("Hardware name: %s", self.hardware_name)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1293, in hardware_name
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      raise weewx.UnsupportedFeature("Unknown hardware type %d" % self.hardware_type)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****  weewx.UnsupportedFeature: Unknown hardware type 0
Nov 27 15:52:38 XCY weewx[738] CRITICAL __main__: Unable to load driver: Unknown hardware type 0
Nov 27 15:52:38 XCY weewx[738] CRITICAL __main__:     ****  Exiting...
Nov 27 15:53:33 XCY ntpd[705]: 91.189.91.157 local addr 192.168.0.54 -> <null>
Nov 27 15:53:36 XCY systemd-resolved[491]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Nov 27 15:53:36 XCY systemd-resolved[491]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Nov 27 15:53:39 XCY ntpd[705]: 91.189.94.4 local addr 192.168.0.54 -> <null>
Nov 27 15:53:42 XCY dbus-daemon[519]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.74' (uid=0 pid=2234 comm="/usr/bin/gdbus call --system --dest org.freedeskto" label="unconfined")
Nov 27 15:53:42 XCY systemd[1]: Starting PackageKit Daemon...
Nov 27 15:53:42 XCY PackageKit: daemon start
Nov 27 15:53:42 XCY dbus-daemon[519]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Nov 27 15:53:42 XCY systemd[1]: Started PackageKit Daemon.
Nov 27 15:54:38 XCY ntpd[705]: 138.201.90.189 local addr 192.168.0.54 -> <null>
amp@XCY:~$ cat ~/Desktop/var_log_syslog_1.txt | grep weewx
Nov 27 15:43:42 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:43:42 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #2; error: No <ACK> received from Vantage console
Nov 27 15:43:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:43:46 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:43:50 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #1 failed
Nov 27 15:43:54 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #2 failed
Nov 27 15:43:58 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #3 failed
Nov 27 15:43:58 XCY weewx[738] ERROR weewx.drivers.vantage: Unable to wake up console
Nov 27 15:43:58 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #3; error: Unable to wake up Vantage console
Nov 27 15:43:58 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:44:02 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:44:06 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #1 failed
Nov 27 15:44:06 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:44:06 XCY weewx[738] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 0
Nov 27 15:44:10 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 222 instead
Nov 27 15:44:10 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:44:10 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #4; error: Timeout in get_data_with_crc16
Nov 27 15:44:10 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT max tries (4) exceeded.
Nov 27 15:44:10 XCY weewx[738] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov 27 15:44:10 XCY weewx[738] CRITICAL __main__: Caught WeeWxIOError: Max tries exceeded while getting archive data.
Nov 27 15:44:10 XCY weewx[738] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
Nov 27 15:45:09 XCY weewx[738] INFO __main__: retrying...
Nov 27 15:45:09 XCY weewx[738] INFO __main__: Using configuration file /home/weewx/weewx.conf
Nov 27 15:45:09 XCY weewx[738] INFO __main__: Debug is 1
Nov 27 15:45:09 XCY weewx[738] DEBUG __main__: Initializing engine
Nov 27 15:45:09 XCY weewx[738] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Nov 27 15:45:09 XCY weewx[738] DEBUG weewx.drivers.vantage: Driver version is 3.2.1
Nov 27 15:45:09 XCY weewx[738] DEBUG weewx.drivers.vantage: Option loop_request=1
Nov 27 15:45:09 XCY weewx[738] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyS1; baud 19200; timeout 4.00
Nov 27 15:45:09 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:10 XCY weewx[738] DEBUG weewx.drivers.vantage: Hardware type is 16
Nov 27 15:45:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 0 instead
Nov 27 15:45:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:45:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:14 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:45:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:45:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 1 instead
Nov 27 15:45:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:45:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 0 instead
Nov 27 15:45:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:45:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 4 chars; got 0 instead
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.drivers.vantage: Hardware name: Vantage Pro2
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Nov 27 15:45:34 XCY weewx[738] INFO weewx.engine: StdConvert target unit is 0x1
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.manager: Daily summary version is 2
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdWXXTypes
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdWXXTypes
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdPressureCooker
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdPressureCooker
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdRainRater
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdRainRater
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Nov 27 15:45:34 XCY weewx[738] INFO weewx.engine: Archive will use data binding wx_binding
Nov 27 15:45:34 XCY weewx[738] INFO weewx.engine: Record generation will be attempted in 'hardware'
Nov 27 15:45:34 XCY weewx[738] ERROR weewx.engine: The archive interval in the configuration file (300) does not match the station hardware interval (60).
Nov 27 15:45:34 XCY weewx[738] INFO weewx.engine: Using archive interval of 60 seconds (specified by hardware)
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Nov 27 15:45:34 XCY weewx[738] INFO weewx.restx: StationRegistry: Registration not requested.
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Nov 27 15:45:34 XCY weewx[738] INFO weewx.restx: Wunderground: Posting not enabled.
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Nov 27 15:45:34 XCY weewx[738] INFO weewx.restx: PWSweather: Posting not enabled.
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Nov 27 15:45:34 XCY weewx[738] INFO weewx.restx: CWOP: Posting not enabled.
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Nov 27 15:45:34 XCY weewx[738] INFO weewx.restx: WOW: Posting not enabled.
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Nov 27 15:45:34 XCY weewx[738] INFO weewx.restx: AWEKAS: Posting not enabled.
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Nov 27 15:45:34 XCY weewx[738] INFO __main__: Starting up weewx version 4.2.0
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:34 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:45:34 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:45:38 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 8 chars; got 2 instead
Nov 27 15:45:38 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:45:38 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:38 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:45:38 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:45:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 8 chars; got 2 instead
Nov 27 15:45:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:45:42 XCY weewx[738] ERROR weewx.drivers.vantage: Max retries exceeded while getting time
Nov 27 15:45:42 XCY weewx[738] INFO weewx.engine: Error reading time: While getting console time
Nov 27 15:45:42 XCY weewx[738] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov 27 15:45:42 XCY weewx[738] INFO weewx.manager: Starting backfill of daily summaries
Nov 27 15:45:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:45:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:45:46 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #1; error: Expected to read 1 chars; got 0 instead
Nov 27 15:45:46 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:45:50 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:45:54 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #1 failed
Nov 27 15:45:58 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #2 failed
Nov 27 15:46:02 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #3 failed
Nov 27 15:46:02 XCY weewx[738] ERROR weewx.drivers.vantage: Unable to wake up console
Nov 27 15:46:02 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #2; error: Unable to wake up Vantage console
Nov 27 15:46:02 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:46:06 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:46:10 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #1 failed
Nov 27 15:46:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #2 failed
Nov 27 15:46:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:46:14 XCY weewx[738] DEBUG weewx.drivers.vantage: send_data_with_crc16; try #1
Nov 27 15:46:14 XCY weewx[738] ERROR weewx.drivers.vantage: Unable to pass CRC16 check while sending data
Nov 27 15:46:14 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #3; error: Unable to pass CRC16 check while sending data to Vantage console
Nov 27 15:46:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:46:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:46:18 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #4; error: Expected to read 1 chars; got 0 instead
Nov 27 15:46:18 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT max tries (4) exceeded.
Nov 27 15:46:18 XCY weewx[738] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov 27 15:46:18 XCY weewx[738] CRITICAL __main__: Caught WeeWxIOError: Max tries exceeded while getting archive data.
Nov 27 15:46:18 XCY weewx[738] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
Nov 27 15:47:18 XCY weewx[738] INFO __main__: retrying...
Nov 27 15:47:18 XCY weewx[738] INFO __main__: Using configuration file /home/weewx/weewx.conf
Nov 27 15:47:18 XCY weewx[738] INFO __main__: Debug is 1
Nov 27 15:47:18 XCY weewx[738] DEBUG __main__: Initializing engine
Nov 27 15:47:18 XCY weewx[738] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Nov 27 15:47:18 XCY weewx[738] DEBUG weewx.drivers.vantage: Driver version is 3.2.1
Nov 27 15:47:18 XCY weewx[738] DEBUG weewx.drivers.vantage: Option loop_request=1
Nov 27 15:47:18 XCY weewx[738] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyS1; baud 19200; timeout 4.00
Nov 27 15:47:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:47:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Hardware type is 16
Nov 27 15:47:22 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:47:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:47:22 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:47:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:47:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:34 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 1 instead
Nov 27 15:47:34 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:47:34 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Hardware name: Vantage Pro2
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Nov 27 15:47:42 XCY weewx[738] INFO weewx.engine: StdConvert target unit is 0x1
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.manager: Daily summary version is 2
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdWXXTypes
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdWXXTypes
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdPressureCooker
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdPressureCooker
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdRainRater
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdRainRater
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Nov 27 15:47:42 XCY weewx[738] INFO weewx.engine: Archive will use data binding wx_binding
Nov 27 15:47:42 XCY weewx[738] INFO weewx.engine: Record generation will be attempted in 'hardware'
Nov 27 15:47:42 XCY weewx[738] ERROR weewx.engine: The archive interval in the configuration file (300) does not match the station hardware interval (60).
Nov 27 15:47:42 XCY weewx[738] INFO weewx.engine: Using archive interval of 60 seconds (specified by hardware)
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Nov 27 15:47:42 XCY weewx[738] INFO weewx.restx: StationRegistry: Registration not requested.
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Nov 27 15:47:42 XCY weewx[738] INFO weewx.restx: Wunderground: Posting not enabled.
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Nov 27 15:47:42 XCY weewx[738] INFO weewx.restx: PWSweather: Posting not enabled.
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Nov 27 15:47:42 XCY weewx[738] INFO weewx.restx: CWOP: Posting not enabled.
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Nov 27 15:47:42 XCY weewx[738] INFO weewx.restx: WOW: Posting not enabled.
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Nov 27 15:47:42 XCY weewx[738] INFO weewx.restx: AWEKAS: Posting not enabled.
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Nov 27 15:47:42 XCY weewx[738] INFO __main__: Starting up weewx version 4.2.0
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:42 XCY weewx[738] INFO weewx.engine: Clock error is 0.27 seconds (positive is fast)
Nov 27 15:47:42 XCY weewx[738] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov 27 15:47:42 XCY weewx[738] INFO weewx.manager: Starting backfill of daily summaries
Nov 27 15:47:42 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:47:46 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:47:46 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:46 XCY weewx[738] DEBUG weewx.drivers.vantage: send_data_with_crc16; try #1
Nov 27 15:47:46 XCY weewx[738] ERROR weewx.drivers.vantage: Unable to pass CRC16 check while sending data
Nov 27 15:47:46 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #1; error: Unable to pass CRC16 check while sending data to Vantage console
Nov 27 15:47:46 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:47:50 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:47:50 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:50 XCY weewx[738] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 3
Nov 27 15:47:54 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 220 instead
Nov 27 15:47:54 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:47:54 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #2; error: Timeout in get_data_with_crc16
Nov 27 15:47:54 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:47:54 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:55 XCY weewx[738] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 3
Nov 27 15:47:59 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 215 instead
Nov 27 15:47:59 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:47:59 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #3; error: Timeout in get_data_with_crc16
Nov 27 15:47:59 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:47:59 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:47:59 XCY weewx[738] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 3
Nov 27 15:48:03 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 212 instead
Nov 27 15:48:03 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:48:03 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #4; error: Timeout in get_data_with_crc16
Nov 27 15:48:03 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT max tries (4) exceeded.
Nov 27 15:48:03 XCY weewx[738] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov 27 15:48:03 XCY weewx[738] CRITICAL __main__: Caught WeeWxIOError: Max tries exceeded while getting archive data.
Nov 27 15:48:03 XCY weewx[738] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
Nov 27 15:49:03 XCY weewx[738] INFO __main__: retrying...
Nov 27 15:49:03 XCY weewx[738] INFO __main__: Using configuration file /home/weewx/weewx.conf
Nov 27 15:49:03 XCY weewx[738] INFO __main__: Debug is 1
Nov 27 15:49:03 XCY weewx[738] DEBUG __main__: Initializing engine
Nov 27 15:49:03 XCY weewx[738] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Nov 27 15:49:03 XCY weewx[738] DEBUG weewx.drivers.vantage: Driver version is 3.2.1
Nov 27 15:49:03 XCY weewx[738] DEBUG weewx.drivers.vantage: Option loop_request=1
Nov 27 15:49:03 XCY weewx[738] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyS1; baud 19200; timeout 4.00
Nov 27 15:49:03 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:49:07 XCY weewx[738] ERROR weewx.drivers.vantage: _determine_hardware; retry #0: 'Expected to read 1 chars; got 0 instead'
Nov 27 15:49:07 XCY weewx[738] DEBUG weewx.drivers.vantage: Hardware type is 16
Nov 27 15:49:11 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 0 instead
Nov 27 15:49:11 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:49:11 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:49:19 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:49:19 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 4 chars; got 0 instead
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: Hardware name: Vantage Pro2
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Nov 27 15:49:23 XCY weewx[738] INFO weewx.engine: StdConvert target unit is 0x1
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.manager: Daily summary version is 2
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdWXXTypes
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdWXXTypes
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdPressureCooker
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdPressureCooker
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdRainRater
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdRainRater
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Nov 27 15:49:23 XCY weewx[738] INFO weewx.engine: Archive will use data binding wx_binding
Nov 27 15:49:23 XCY weewx[738] INFO weewx.engine: Record generation will be attempted in 'hardware'
Nov 27 15:49:23 XCY weewx[738] ERROR weewx.engine: The archive interval in the configuration file (300) does not match the station hardware interval (60).
Nov 27 15:49:23 XCY weewx[738] INFO weewx.engine: Using archive interval of 60 seconds (specified by hardware)
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Nov 27 15:49:23 XCY weewx[738] INFO weewx.restx: StationRegistry: Registration not requested.
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Nov 27 15:49:23 XCY weewx[738] INFO weewx.restx: Wunderground: Posting not enabled.
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Nov 27 15:49:23 XCY weewx[738] INFO weewx.restx: PWSweather: Posting not enabled.
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Nov 27 15:49:23 XCY weewx[738] INFO weewx.restx: CWOP: Posting not enabled.
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Nov 27 15:49:23 XCY weewx[738] INFO weewx.restx: WOW: Posting not enabled.
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Nov 27 15:49:23 XCY weewx[738] INFO weewx.restx: AWEKAS: Posting not enabled.
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Nov 27 15:49:23 XCY weewx[738] INFO __main__: Starting up weewx version 4.2.0
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:49:23 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:49:23 XCY weewx[738] INFO weewx.engine: Clock error is -0.43 seconds (positive is fast)
Nov 27 15:49:23 XCY weewx[738] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov 27 15:49:23 XCY weewx[738] INFO weewx.manager: Starting backfill of daily summaries
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:49:23 XCY weewx[738] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 0
Nov 27 15:49:27 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 211 instead
Nov 27 15:49:27 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:49:27 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Nov 27 15:49:27 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:49:27 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:49:27 XCY weewx[738] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 0
Nov 27 15:49:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 218 instead
Nov 27 15:49:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:49:31 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #2; error: Timeout in get_data_with_crc16
Nov 27 15:49:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:49:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:49:31 XCY weewx[738] DEBUG weewx.drivers.vantage: send_data_with_crc16; try #1
Nov 27 15:49:31 XCY weewx[738] ERROR weewx.drivers.vantage: Unable to pass CRC16 check while sending data
Nov 27 15:49:31 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #3; error: Unable to pass CRC16 check while sending data to Vantage console
Nov 27 15:49:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:49:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:49:31 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:49:31 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #4; error: No <ACK> received from Vantage console
Nov 27 15:49:31 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT max tries (4) exceeded.
Nov 27 15:49:31 XCY weewx[738] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov 27 15:49:31 XCY weewx[738] CRITICAL __main__: Caught WeeWxIOError: Max tries exceeded while getting archive data.
Nov 27 15:49:31 XCY weewx[738] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
Nov 27 15:50:31 XCY weewx[738] INFO __main__: retrying...
Nov 27 15:50:31 XCY weewx[738] INFO __main__: Using configuration file /home/weewx/weewx.conf
Nov 27 15:50:31 XCY weewx[738] INFO __main__: Debug is 1
Nov 27 15:50:31 XCY weewx[738] DEBUG __main__: Initializing engine
Nov 27 15:50:31 XCY weewx[738] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Nov 27 15:50:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Driver version is 3.2.1
Nov 27 15:50:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Option loop_request=1
Nov 27 15:50:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyS1; baud 19200; timeout 4.00
Nov 27 15:50:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:50:31 XCY weewx[738] DEBUG weewx.drivers.vantage: Hardware type is 16
Nov 27 15:50:35 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 2 instead
Nov 27 15:50:35 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:50:35 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:50:39 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 1 instead
Nov 27 15:50:39 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:50:39 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:50:43 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 1 instead
Nov 27 15:50:43 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:50:43 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:50:48 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 0 instead
Nov 27 15:50:48 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:50:48 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 4 chars; got 0 instead
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: Hardware name: Vantage Pro2
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Nov 27 15:50:52 XCY weewx[738] INFO weewx.engine: StdConvert target unit is 0x1
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.manager: Daily summary version is 2
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdWXXTypes
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdWXXTypes
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdPressureCooker
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdPressureCooker
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdRainRater
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdRainRater
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Nov 27 15:50:52 XCY weewx[738] INFO weewx.engine: Archive will use data binding wx_binding
Nov 27 15:50:52 XCY weewx[738] INFO weewx.engine: Record generation will be attempted in 'hardware'
Nov 27 15:50:52 XCY weewx[738] ERROR weewx.engine: The archive interval in the configuration file (300) does not match the station hardware interval (60).
Nov 27 15:50:52 XCY weewx[738] INFO weewx.engine: Using archive interval of 60 seconds (specified by hardware)
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Nov 27 15:50:52 XCY weewx[738] INFO weewx.restx: StationRegistry: Registration not requested.
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Nov 27 15:50:52 XCY weewx[738] INFO weewx.restx: Wunderground: Posting not enabled.
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Nov 27 15:50:52 XCY weewx[738] INFO weewx.restx: PWSweather: Posting not enabled.
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Nov 27 15:50:52 XCY weewx[738] INFO weewx.restx: CWOP: Posting not enabled.
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Nov 27 15:50:52 XCY weewx[738] INFO weewx.restx: WOW: Posting not enabled.
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Nov 27 15:50:52 XCY weewx[738] INFO weewx.restx: AWEKAS: Posting not enabled.
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Nov 27 15:50:52 XCY weewx[738] INFO __main__: Starting up weewx version 4.2.0
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:50:52 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:50:52 XCY weewx[738] INFO weewx.engine: Clock error is -0.13 seconds (positive is fast)
Nov 27 15:50:52 XCY weewx[738] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov 27 15:50:52 XCY weewx[738] INFO weewx.manager: Starting backfill of daily summaries
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:50:52 XCY weewx[738] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 1
Nov 27 15:50:56 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 214 instead
Nov 27 15:50:56 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:50:56 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Nov 27 15:50:56 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:50:56 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:50:56 XCY weewx[738] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 1
Nov 27 15:51:00 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 207 instead
Nov 27 15:51:00 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:51:00 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #2; error: Timeout in get_data_with_crc16
Nov 27 15:51:00 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:51:00 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:51:00 XCY weewx[738] DEBUG weewx.drivers.vantage: Retrieving 513 page(s); starting index= 2
Nov 27 15:51:04 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 215 instead
Nov 27 15:51:04 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:51:04 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #3; error: Timeout in get_data_with_crc16
Nov 27 15:51:04 XCY weewx[738] DEBUG weewx.drivers.vantage: Getting all archive packets
Nov 27 15:51:04 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:51:08 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 6 chars; got 5 instead
Nov 27 15:51:08 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:51:08 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT try #4; error: Timeout in get_data_with_crc16
Nov 27 15:51:08 XCY weewx[738] ERROR weewx.drivers.vantage: DMPAFT max tries (4) exceeded.
Nov 27 15:51:08 XCY weewx[738] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov 27 15:51:08 XCY weewx[738] CRITICAL __main__: Caught WeeWxIOError: Max tries exceeded while getting archive data.
Nov 27 15:51:08 XCY weewx[738] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
Nov 27 15:52:08 XCY weewx[738] INFO __main__: retrying...
Nov 27 15:52:08 XCY weewx[738] INFO __main__: Using configuration file /home/weewx/weewx.conf
Nov 27 15:52:08 XCY weewx[738] INFO __main__: Debug is 1
Nov 27 15:52:08 XCY weewx[738] DEBUG __main__: Initializing engine
Nov 27 15:52:08 XCY weewx[738] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Nov 27 15:52:08 XCY weewx[738] DEBUG weewx.drivers.vantage: Driver version is 3.2.1
Nov 27 15:52:08 XCY weewx[738] DEBUG weewx.drivers.vantage: Option loop_request=1
Nov 27 15:52:08 XCY weewx[738] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyS1; baud 19200; timeout 4.00
Nov 27 15:52:12 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:52:12 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:12 XCY weewx[738] DEBUG weewx.drivers.vantage: Hardware type is 0
Nov 27 15:52:12 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:52:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:52:14 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:52:18 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 1 instead
Nov 27 15:52:18 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:52:18 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:18 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:52:18 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:52:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 0 instead
Nov 27 15:52:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:52:22 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 0 instead
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:26 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:26 XCY weewx[738] ERROR weewx.drivers.vantage: No <ACK> received from console
Nov 27 15:52:26 XCY weewx[738] DEBUG weewx.drivers.vantage: Rude wake up of console successful
Nov 27 15:52:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 0 instead
Nov 27 15:52:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Timeout in get_data_with_crc16
Nov 27 15:52:30 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:38 XCY weewx[738] DEBUG weewx.drivers.vantage: Retry #0 failed
Nov 27 15:52:38 XCY weewx[738] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Nov 27 15:52:38 XCY weewx[738] DEBUG weewx.drivers.vantage: ISS ID is 1
Nov 27 15:52:38 XCY weewx[738] ERROR weewx.engine: Import of driver failed: Unknown hardware type 0 (<class 'weewx.UnsupportedFeature'>)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/engine.py", line 109, in setupStation
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 516, in __init__
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      log.debug("Hardware name: %s", self.hardware_name)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1293, in hardware_name
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****      raise weewx.UnsupportedFeature("Unknown hardware type %d" % self.hardware_type)
Nov 27 15:52:38 XCY weewx[738] CRITICAL weewx.engine:     ****  weewx.UnsupportedFeature: Unknown hardware type 0
Nov 27 15:52:38 XCY weewx[738] CRITICAL __main__: Unable to load driver: Unknown hardware type 0
Nov 27 15:52:38 XCY weewx[738] CRITICAL __main__:     ****  Exiting...

I was hoping to avoid USB<=>RS232 converters, as I understood they were problematic (in the past) and would add another thing-to-go-wrong.  I have one other old device to monitor and it too has only an RS232 interface.  Thought I'd be clever and get a low power box with two RS232 ports. 

vince

unread,
Nov 26, 2020, 10:19:32 PM11/26/20
to weewx-user
I was hoping to avoid USB<=>RS232 converters, as I understood they were problematic (in the past) and would add another thing-to-go-wrong.  I have one other old device to monitor and it too has only an RS232 interface.  Thought I'd be clever and get a low power box with two RS232 ports.  

FWIW, i've been running a VP2 with serial datalogger and a serial2usb dongle for something like 10 years now.   I started with a Shuttle mini-pc that had serial ports and switched to a little arm box that just has USB.  Never had an issue with the serial2usb from day one.  Works great.

You basically just want to make sure you get the right chipset in the adaptor.  Anything with the PL2303 definitely works.  Both mine have that chipset, and they were picked up years apart from different suppliers, so they used to be pretty much what you always got.  I haven't looked in years to know if that's still the case.

I'm running on a Seagate Dockstar (a 128MB RAM version of the original PogoPlug) with a Seagate laptop drive plugged in, and you can see the serial adaptor available in the lsusb output below.

root@debian:~# lsusb
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0bc2:2120 Seagate RSS LLC
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
 

kiwigander

unread,
Nov 26, 2020, 11:47:01 PM11/26/20
to weewx-user
Ta.  The prevalent RS232<=>USB chipset around these parts seems to be an FTDI.  I'll look around. 

Tom Keffer

unread,
Nov 27, 2020, 8:00:27 AM11/27/20
to weewx-user
I think we can say with some confidence that there is something wrong with the UART chip on your new computer. Can you take it back?

Alternatively, as Vince says, a serial-to-usb converter. They seem to be more reliable these days.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Cameron D

unread,
Nov 27, 2020, 8:57:30 AM11/27/20
to weewx-user
Have you checked that there is not any form of getty running on the port - they wait for logins and will steal some of the input characters.

That's rather old school - I don't know how systemd does it.

Tom Keffer

unread,
Nov 27, 2020, 9:02:00 AM11/27/20
to weewx-user
Good point. I've had problems with modemmanager doing this.

sudo apt purge modemmanager



kiwigander

unread,
Nov 27, 2020, 7:23:28 PM11/27/20
to weewx-user
Thanks again for the advice and suggestions.  

I've used stty to see how the ever-reliable RS232 port is configured on the old server and will try setting the new one to mimic it.

I'll try purging modemmanager from the new server.

Assuming, though, that the problem is defective hardware, the new server ought to be returnable but I'd have to send it back to the PRC.  I wonder whether the serial comms module is replaceable -- that might be more cost-effective than sending the unit back.  I'll try a USB<=>RS232 converter anyway.

I'll be offline for a couple of weeks but will report back.

kiwigander

unread,
Dec 12, 2020, 5:55:22 PM12/12/20
to weewx-user
Progress report:
I've got a Unitek BF-810Y USB<=>RS232 converter.  Plugged it in to the old Dell; it was recognised as a pl2303 converter on ttyUSB0. Changed the relevant line in weewx.conf, restarted the daemon and we're in business.
I'll have a last go at the RS232 ports on the XCY mini PC but I'm not optimistic about that unit.  

Tom Keffer

unread,
Dec 12, 2020, 6:35:49 PM12/12/20
to weewx-user
Sounds like our analysis was spot on. At least you know what the problem is now!

kiwigander

unread,
Dec 12, 2020, 8:24:53 PM12/12/20
to weewx-user
And for the final test before giving up on the XCY mini-PC, I ran sudo apt purge modemmanager

and now weewx is working through /dev/ttyS1 on the XCY mini-PC. 

Some corollary of Murphy's Law says that if a problem is going to be solved, it will be solved by a simple manoeuvre that you ran out of time to try.

Thank you Tom & colleagues!

Now one more thing:

The new server's database starts just a few minutes ago.  The old server's database goes back quite a few years.  How do I merge the previous data onto the new server?

p q

unread,
Dec 12, 2020, 8:34:40 PM12/12/20
to weewx...@googlegroups.com
copy the database file from the old machine to the new one.



--
Peter Quinn
(415)794-2264

kiwigander

unread,
Dec 13, 2020, 3:46:22 AM12/13/20
to weewx-user
I spoke (wrote) too soon.
Weewx seemed to be working on the XCY through /dev/ttyS1 after modemmanager was purged, but it stopped working.  It looks as if it was still struggling with CRC check errors.  I thought the fault might have been (re-)triggered by an update to some Mint system files and applications (although none seemed likely), but reverting to the previous configuration and rebooting did not help.  So it's back to /dev/ttyUSB0 via the converter, which is working as well on the XCY as on the old Dell. 

vince

unread,
Dec 13, 2020, 1:21:23 PM12/13/20
to weewx-user
On Sunday, December 13, 2020 at 12:46:22 AM UTC-8 kiwigander wrote:
So it's back to /dev/ttyUSB0 via the converter, which is working as well on the XCY as on the old Dell.  


There's a point in time where the value of your time exceeds the value of the adventure of figuring out why the serial port for your unusual os (on your unusual hardware) isn't as trivial as most setups.  Sounds like you could have bought a new computer with the time-value of battling this one.

Glad to hear the serial-to-usb adaptor worked.  Just stick with it.


Reply all
Reply to author
Forward
0 new messages