Unable to load driver: Unable to wake up Vantage Console

78 views
Skip to first unread message

Adam Morgan

unread,
Nov 25, 2023, 1:52:15 PM11/25/23
to weewx-user
I am trying to port my Vantage Vue to weewx.  My current setup (using a serial-to-usb) device was working fine on when connected to PWS software on my windows computer as recently as this morning.  I have taken the exact same console and cables and connected to my Raspberry PI 2.   I have a proper power supply set up and I am not seeing low voltage warnings.

Unfortunately I am getting the error in the subject line.  I see that others have had the same error - I tried their solutions but so far none have worked.  I installed both Debian and weewx last week so I should be pretty up to date.   

- Removed all cables and batteries from both the pi and the Vantage Console

Any help would be GREATLY appreciated!!

---------------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/handlers.py", line 937, in emit
    msg = self.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
    return fmt.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 659, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.9/logging/__init__.py", line 363, in getMessage
    msg = msg % self.args
TypeError: %d format: a number is required, not WeeWxIOError
Call stack:
  File "/home/weewx/./bin/weewxd", line 249, in <module>
    main()
  File "/home/weewx/./bin/weewxd", line 148, in main
    engine = weewx.engine.StdEngine(config_dict)
  File "/home/weewx/bin/weewx/engine.py", line 81, in __init__
    self.setupStation(config_dict)
  File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
    self.console = loader_function(config_dict, self)
  File "/home/weewx/bin/weewx/drivers/vantage.py", line 40, in loader
    return VantageService(engine, config_dict)
  File "/home/weewx/bin/weewx/drivers/vantage.py", line 1989, in __init__
    Vantage.__init__(self, **config_dict[DRIVER_NAME])
  File "/home/weewx/bin/weewx/drivers/vantage.py", line 534, in __init__
    self._setup()
  File "/home/weewx/bin/weewx/drivers/vantage.py", line 1390, in _setup
    self.port.wakeup_console(max_tries=self.max_tries)
  File "/home/weewx/bin/weewx/drivers/vantage.py", line 113, in wakeup_console
    log.debug("Wake up try %d failed. Exception: %s", e)
Message: 'Wake up try %d failed. Exception: %s'
Arguments: (WeeWxIOError('Expected to read 2 chars; got 0 instead'),)
Unable to wake up console... sleeping
Unable to wake up console... retrying

------------------------------------------------

station_type = Vantage
type = serial
baudrate = 19200
tcp_port = 22222
tcp_send_delay = 0.5
loop_request = 1
port = /dev/ttyAMA0
wait_before_retry = 1.2
max_tries = 4
# Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2
 model_type = 1   ##### I tried both values
 driver = weewx.drivers.vantage

Adam Morgan

unread,
Nov 25, 2023, 2:35:24 PM11/25/23
to weewx-user
I found the problem.  When I did a port scan, the only port that came back was ttyAMA0.  However, when I issued "dmesg", I could see that it was trying to connect over ttyUSB0.  Once I switched to that, it worked.
Reply all
Reply to author
Forward
0 new messages