I have a VP2 console that I am connecting to an RPI OS (latest). Weewx is
latest using setup.py. This RPI was running weewx (jessie) with no problems
and using ttyUSB0 from weewx.conf. The vantage driver seems ok and I
actually moved the old one over to be sure.
I tried listening to the console with minicom but got no data. I swapped
out the RS232/USB converter but got the same problem. Not sure what I have
done wrong, other than trying to fix something that wasn't broken...
Attached file of some debug info.
Thanks for any suggestions.
Bob
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/328d0e08-16f5-461c-8782-f6ee86e95008n%40googlegroups.com.
Linux raspberrypi 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l
GNU/Linux
wee_device:
Using configuration file /home/weewx/weewx.conf
Using Vantage driver version 3.2.1 (weewx.drivers.vantage)
Traceback (most recent call last):
File "./wee_device", line 78, in <module>
main()
File "./wee_device", line 74, in main
device.configure(config_dict)
File "/home/weewx/bin/weewx/drivers/__init__.py", line 67, in configure
self.do_options(options, parser, config_dict, not options.noprompt)
File "/home/weewx/bin/weewx/drivers/vantage.py", line 2056, in do_options
station = Vantage(**config_dict[DRIVER_NAME])
File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in __init__
self._setup()
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1317, in _setup
self.port.wakeup_console(max_tries=self.max_tries)
File "/home/weewx/bin/weewx/drivers/vantage.py", line 118, in wakeup_console
raise weewx.WakeupError("Unable to wake up Vantage console")
weewx.WakeupError: Unable to wake up Vantage console
dmesg:
364.269928] usb 1-1.5: new full-speed USB device number 7 using dwc_otg
[ 364.427490] usb 1-1.5: New USB device found, idVendor=0403, idProduct=6001,
bcdDevice= 6.00
[ 364.427508] usb 1-1.5: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 364.427520] usb 1-1.5: Product: FT232R USB UART
[ 364.427533] usb 1-1.5: Manufacturer: FTDI
[ 364.427545] usb 1-1.5: SerialNumber: A5052IYA
[ 364.436085] usb 1-1.5: Detected FT232RL
[ 364.437634] usb 1-1.5: FTDI USB Serial Device converter now attached to
ttyUSB0
[ 955.337038] usb 1-1.5: USB disconnect, device number 7
[ 961.782001] usb 1-1.4: new full-speed USB device number 8 using dwc_otg
[ 961.939483] usb 1-1.4: New USB device found, idVendor=0403, idProduct=6001,
bcdDevice= 6.00
[ 961.939501] usb 1-1.4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 961.939512] usb 1-1.4: Product: FT232R USB UART
[ 961.939522] usb 1-1.4: Manufacturer: FTDI
[ 961.939532] usb 1-1.4: SerialNumber: A5052JQ7
[ 961.948057] usb 1-1.4: Detected FT232RL
[ 961.950936] usb 1-1.4: FTDI USB Serial Device converter now attached to
ttyUSB0
syslog on service weewx restart:
Nov 16 17:30:15 raspberrypi systemd[1]: Stopping LSB: weewx weather system...
Nov 16 17:30:15 raspberrypi weewx[2103]: Stopping weewx weather system: weewx
not running....
Nov 16 17:30:15 raspberrypi systemd[1]: weewx.service: Succeeded.
Nov 16 17:30:15 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
Nov 16 17:30:15 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Nov 16 17:30:15 raspberrypi weewx[2125] INFO __main__: Initializing weewx
version 4.2.0
Nov 16 17:30:15 raspberrypi weewx[2125] INFO __main__: Using Python 3.7.3
(default, Jul 25 2020, 13:03:44) #012[GCC 8.3.0]
Nov 16 17:30:15 raspberrypi weewx[2125] INFO __main__: Platform
Linux-5.4.72-v7+-armv7l-with-debian-10.6
Nov 16 17:30:15 raspberrypi weewx[2125] INFO __main__: Locale is 'en_US.UTF-8'
Nov 16 17:30:15 raspberrypi weewx[2125] INFO __main__: PID file is
/var/run/weewx.pid
Nov 16 17:30:15 raspberrypi weewx[2129] INFO __main__: Using configuration file
/home/weewx/weewx.conf
Nov 16 17:30:15 raspberrypi weewx[2129] INFO __main__: Debug is 1
Nov 16 17:30:15 raspberrypi weewx[2129] DEBUG __main__: Initializing engine
Nov 16 17:30:15 raspberrypi weewx[2129] INFO weewx.engine: Loading station type
Vantage (weewx.drivers.vantage)
Nov 16 17:30:15 raspberrypi weewx[2129] DEBUG weewx.drivers.vantage: Driver
version is 3.2.1
Nov 16 17:30:15 raspberrypi weewx[2129] DEBUG weewx.drivers.vantage: Option
loop_request=1
Nov 16 17:30:15 raspberrypi weewx[2114]: Starting weewx weather system: weewx.
Nov 16 17:30:15 raspberrypi systemd[1]: Started LSB: weewx weather system.
Nov 16 17:30:15 raspberrypi weewx[2129] DEBUG weewx.drivers.vantage: Opened up
serial port /dev/ttyUSB0; baud 19200; timeout 4.00
Nov 16 17:30:20 raspberrypi weewx[2129] DEBUG weewx.drivers.vantage: Retry #0
failed
Nov 16 17:30:24 raspberrypi weewx[2129] DEBUG weewx.drivers.vantage: Retry #1
failed
Nov 16 17:30:28 raspberrypi weewx[2129] DEBUG weewx.drivers.vantage: Retry #2
failed
Nov 16 17:30:32 raspberrypi weewx[2129] DEBUG weewx.drivers.vantage: Retry #3
failed
Nov 16 17:30:32 raspberrypi weewx[2129] ERROR weewx.drivers.vantage: Unable to
wake up console
Nov 16 17:30:32 raspberrypi weewx[2129] ERROR weewx.engine: Import of driver
failed: Unable to wake up Vantage console (<class 'weewx.WakeupError'>)
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: ****
Traceback (most recent call last):
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: **** File
"/home/weewx/bin/weewx/engine.py", line 109, in setupStation
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: ****
self.console = loader_function(config_dict, self)
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: **** File
"/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: ****
return VantageService(engine, config_dict)
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: **** File
"/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: ****
Vantage.__init__(self, **config_dict[DRIVER_NAME])
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: **** File
"/home/weewx/bin/weewx/drivers/vantage.py", line 515, in __init__
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: ****
self._setup()
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: **** File
"/home/weewx/bin/weewx/drivers/vantage.py", line 1317, in _setup
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: ****
self.port.wakeup_console(max_tries=self.max_tries)
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: **** File
"/home/weewx/bin/weewx/drivers/vantage.py", line 118, in wakeup_console
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: ****
raise weewx.WakeupError("Unable to wake up Vantage console")
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL weewx.engine: ****
weewx.WakeupError: Unable to wake up Vantage console
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL __main__: Unable to load
driver: Unable to wake up Vantage console
Nov 16 17:30:32 raspberrypi weewx[2129] CRITICAL __main__: **** Exiting...