Unable to wake up Vantage console

287 views
Skip to first unread message

Txo

unread,
Jan 25, 2021, 12:56:33 AM1/25/21
to weewx-user
Bonjour,
I have recently buy a Vantage station with a meteo-pi (https://wifilogger.net/meteopi.html) in a rasperry pi3. Weewx worked well with Simulator but since I connected the station and chose the Vantage driver I have nothing. Weewx don't start with this message :
weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx; generated)
   Active: active (exited) since Sun 2021-01-24 18:24:35 CET; 12h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 607 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 515, in __init__
janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL weewx.engine:     ****      self._setup()
janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1317, in _setup
janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL weewx.engine:     ****      self.port.wakeup_console(max_tries=self.max_tries)
janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 118, in wakeup_console
janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL weewx.engine:     ****      raise weewx.WakeupError("Unable to wake up Vantage console")
janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL weewx.engine:     ****  weewx.WakeupError: Unable to wake up Vantage console
janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL __main__: Unable to load driver: Unable to wake up Vantage console
janv. 24 18:25:02 raspledeuix python3[740]: weewx[740] CRITICAL __main__:     ****  Exiting...

I didn’t find anything to solve this problem, but I may have looked for it wrong.
As you can see my English is minimum  and don’t be offended by my problems of understanding.

Merci.

Graham Eddy

unread,
Jan 25, 2021, 1:39:31 AM1/25/21
to weewx...@googlegroups.com
you need to post your syslog from the time *before weewx first starts* until after its says EXITING.
pay particular attention to anything said about the serial port


--
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/97cd2a0b-61e3-464b-bc51-e0f007912088n%40googlegroups.com.

Txo

unread,
Jan 25, 2021, 3:59:22 AM1/25/21
to weewx-user
As soon as I manage to restore the capricious wifi of the Raspberry, I send you this.

Txo

unread,
Jan 25, 2021, 5:05:40 AM1/25/21
to weewx-user
Jan 25 10:54:31 raspledeuix systemd[1]: Starting LSB: weewx weather system...
Jan 25 10:54:32 raspledeuix weewx[8154] INFO __main__: Initializing weewx version 4.3.0
Jan 25 10:54:32 raspledeuix weewx[8154] INFO __main__: Using Python 3.7.3 (default, Jul 25 2020, 13:03:44) #012[GCC 8.3.0]
Jan 25 10:54:32 raspledeuix weewx[8154] INFO __main__: Platform Linux-4.19.66-v7+-armv7l-with-debian-10.7
Jan 25 10:54:32 raspledeuix weewx[8154] INFO __main__: Locale is 'fr_FR.UTF-8'
Jan 25 10:54:32 raspledeuix weewx[8154] INFO __main__: PID file is /var/run/weewx.pid
Jan 25 10:54:32 raspledeuix weewx[8159] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Jan 25 10:54:32 raspledeuix weewx[8159] INFO __main__: Debug is 0
Jan 25 10:54:32 raspledeuix weewx[8159] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Jan 25 10:54:32 raspledeuix weewx[8141]: Starting weewx weather system: weewx.
Jan 25 10:54:32 raspledeuix systemd[1]: Started LSB: weewx weather system.
Jan 25 10:54:48 raspledeuix weewx[8159] ERROR weewx.drivers.vantage: Unable to wake up console
Jan 25 10:54:48 raspledeuix weewx[8159] ERROR weewx.engine: Import of driver failed: Unable to wake up Vantage console (<class 'weewx.WakeupError'>)
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 39, in loader
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1898, in __init__
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 515, in __init__
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****      self._setup()
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1317, in _setup
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****      self.port.wakeup_console(max_tries=self.max_tries)
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 118, in wakeup_console
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****      raise weewx.WakeupError("Unable to wake up Vantage console")
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL weewx.engine:     ****  weewx.WakeupError: Unable to wake up Vantage console
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL __main__: Unable to load driver: Unable to wake up Vantage console
Jan 25 10:54:48 raspledeuix weewx[8159] CRITICAL __main__:     ****  Exiting...

$ sudo cat /var/log/syslog | grep serial
Jan 25 08:54:11 raspledeuix kernel: [    1.075547] uart-pl011 3f201000.serial: cts_event_workaround enabled
Jan 25 08:54:11 raspledeuix kernel: [    1.083381] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2
Jan 25 08:54:11 raspledeuix kernel: [    1.093016] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 53, base_baud = 50000000) is a 16550

My Vantage section in weewx.conf :
  
[Vantage]
    # This section is for the Davis Vantage series of weather stations.
    
    # Connection type: serial or ethernet 
    #  serial (the classic VantagePro)
    #  ethernet (the WeatherLinkIP or Serial-Ethernet bridge)
       type = serial
    
    # If the connection type is serial, a port must be specified:
    #   Debian, Ubuntu, Redhat, Fedora, and SuSE:
    #     /dev/ttyUSB0 is a common USB port name
    #     /dev/ttyS0   is a common serial port name
    #   BSD:
    #     /dev/cuaU0   is a common serial port name
       port = /dev/ttyS0
    
    # If the connection type is ethernet, an IP Address/hostname is required:
    host = 1.2.3.4
    
    ######################################################
    # The rest of this section rarely needs any attention. 
    # You can safely leave it "as is."
    ######################################################
    
    # Serial baud rate (usually 19200)
    baudrate = 19200
    
    # TCP port (when using the WeatherLinkIP)
    tcp_port = 22222
    
    # TCP send delay (when using the WeatherLinkIP):
    tcp_send_delay = 0.5
        # The type of LOOP packet to request: 1 = LOOP1; 2 = LOOP2; 3 = both
    loop_request = 1
    
    # The id of your ISS station (usually 1). If you use a wind meter connected
    # to a anemometer transmitter kit, use its id
    iss_id = 1
    
    # How long to wait for a response from the station before giving up (in
    # seconds; must be greater than 2)
    timeout = 4
    
    # How long to wait before trying again (in seconds)
    wait_before_retry = 1.2
    
    # How many times to try before giving up:
    max_tries = 4
    
    # Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2
    model_type = 2
    
    # The driver to use:
driver = weewx.drivers.vantage


Graham Eddy

unread,
Jan 25, 2021, 6:27:29 AM1/25/21
to weewx...@googlegroups.com
sorry, i should also have said: set debug to 1 (near top of weewx.conf).
that will tell us more about the dialogue between vantage and weewx

Txo

unread,
Jan 25, 2021, 9:39:00 AM1/25/21
to weewx-user
Not much more for me. But I’m not a reference...

Jan 25 15:29:38 raspledeuix systemd[1]: Stopping LSB: weewx weather system...
Jan 25 15:29:38 raspledeuix weewx[18296]: Stopping weewx weather system: weewx not running....
Jan 25 15:29:38 raspledeuix systemd[1]: weewx.service: Succeeded.
Jan 25 15:29:38 raspledeuix systemd[1]: Stopped LSB: weewx weather system.
Jan 25 15:29:38 raspledeuix systemd[1]: Starting LSB: weewx weather system...
Jan 25 15:29:39 raspledeuix weewx[18320] INFO __main__: Initializing weewx version 4.3.0
Jan 25 15:29:39 raspledeuix weewx[18320] INFO __main__: Using Python 3.7.3 (default, Jul 25 2020, 13:03:44) #012[GCC 8.3.0]
Jan 25 15:29:39 raspledeuix weewx[18320] INFO __main__: Platform Linux-4.19.66-v7+-armv7l-with-debian-10.7
Jan 25 15:29:39 raspledeuix weewx[18320] INFO __main__: Locale is 'fr_FR.UTF-8'
Jan 25 15:29:39 raspledeuix weewx[18320] INFO __main__: PID file is /var/run/weewx.pid
Jan 25 15:29:39 raspledeuix weewx[18327] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Jan 25 15:29:39 raspledeuix weewx[18327] INFO __main__: Debug is 1
Jan 25 15:29:39 raspledeuix weewx[18327] DEBUG __main__: Initializing engine
Jan 25 15:29:39 raspledeuix weewx[18327] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Jan 25 15:29:39 raspledeuix weewx[18308]: Starting weewx weather system: weewx.
Jan 25 15:29:39 raspledeuix systemd[1]: Started LSB: weewx weather system.
Jan 25 15:29:39 raspledeuix weewx[18327] DEBUG weewx.drivers.vantage: Driver version is 3.2.1
Jan 25 15:29:39 raspledeuix weewx[18327] DEBUG weewx.drivers.vantage: Option loop_request=1
Jan 25 15:29:39 raspledeuix weewx[18327] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyS0; baud 19200; timeout 4.00
Jan 25 15:29:43 raspledeuix weewx[18327] DEBUG weewx.drivers.vantage: Retry #0 failed
Jan 25 15:29:47 raspledeuix weewx[18327] DEBUG weewx.drivers.vantage: Retry #1 failed
Jan 25 15:29:51 raspledeuix weewx[18327] DEBUG weewx.drivers.vantage: Retry #2 failed
Jan 25 15:29:55 raspledeuix weewx[18327] DEBUG weewx.drivers.vantage: Retry #3 failed
Jan 25 15:29:55 raspledeuix weewx[18327] ERROR weewx.drivers.vantage: Unable to wake up console
Jan 25 15:29:55 raspledeuix weewx[18327] ERROR weewx.engine: Import of driver failed: Unable to wake up Vantage console (<class 'weewx.WakeupError'>)
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 39, in loader
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1898, in __init__
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 515, in __init__
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****      self._setup()
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1317, in _setup
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****      self.port.wakeup_console(max_tries=self.max_tries)
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 118, in wakeup_console
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****      raise weewx.WakeupError("Unable to wake up Vantage console")
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL weewx.engine:     ****  weewx.WakeupError: Unable to wake up Vantage console
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL __main__: Unable to load driver: Unable to wake up Vantage console
Jan 25 15:29:55 raspledeuix weewx[18327] CRITICAL __main__:     ****  Exiting...

Graham Eddy

unread,
Jan 25, 2021, 9:51:16 AM1/25/21
to weewx...@googlegroups.com
the syslog says it is successfully opening the serial device file, but not getting a sensible response (probably no response at all), in other words a communication problem between port and vantage pro

this forum contains many cases where people have had to check their serial port communicating with vantage pro.
there are many possible causes so i suggest searching the forum for the steps required

Tom Keffer

unread,
Jan 25, 2021, 9:51:49 AM1/25/21
to weewx-user
I am not familiar with the Meteo-pi, but are you sure that it connects through a classic serial port (e.g., /dev/ttyS0), rather than a USB port (e.g., /dev/ttyUSB0)?  Or, perhaps something else?

You should ask the vendor.

Txo

unread,
Jan 25, 2021, 11:08:19 AM1/25/21
to weewx-user
Thanks to all
$ sudo ls /dev/ttyUS*
ls: impossible d'accéder à '/dev/ttyUS*': Aucun fichier ou dossier de ce type

I also tried with/dev/AMA0 but I had errors saying it wasn’t that.

At the seller it is said : «Meteo-Pi appears to software running on the Pi computer as a simple serial device (ie connecting via a COM port) and so virtually any Pi-compatible software should be able to receive data from the console and in the same formats as any other Davis logger. NB This will typically place the Meteo-Pi on port /dev/ttyS0 (though it’s conceivable that different Pi or Raspbian versions might use eg ttyS1 or something else).»



Tom Keffer

unread,
Jan 25, 2021, 11:19:04 AM1/25/21
to weewx-user
I would try /dev/ttyUSB0.

But, really, you should contact the vendor. 

Txo

unread,
Jan 25, 2021, 11:55:27 AM1/25/21
to weewx-user
I will try that, but he is in Great Britain and I am in France and we do not speak the same language. It is not a given.

Tom Keffer

unread,
Jan 25, 2021, 12:12:43 PM1/25/21
to weewx-user
... et pourtant vous communiquez avec quelqu'un aux États-Unis!

Txo

unread,
Jan 25, 2021, 3:35:08 PM1/25/21
to weewx-user
It is easier to discuss from one end of the world to the other than to agree commercially...

vince

unread,
Jan 25, 2021, 4:20:01 PM1/25/21
to weewx-user
It appears that meteo-pi requires some special configuration in /boot ....

See step 3 on https://www.weatherstations.co.uk/setting-up-meteo-pi-part-2.htm 

Meteo-Pi is designed so that data is presented to the Pi on a serial port. But a slight change to the default serial configuration of the Pi is required which needs a couple of edits to text files in the Pi’s boot directory. These two files are both accessible from Windows so the necessary changes can be made with a simple text editor either eg on a Windows PC before the card is placed in the Pi or, if more convenient, on the Pi itself (in which case a reboot is needed after both edits are made). The two changes required are:

edit /boot/config.txt and add on the end
“enable_uart=1”

edit /boot/cmdline.txt and remove
“console=serial0,115200”

tomn...@frontier.com

unread,
Jan 25, 2021, 4:57:32 PM1/25/21
to weewx-user
I'll add my $0.02 worth... for the serial ports and RTC I got for this, there were a couple of boot changes required.
In /boot/config.txt, this:
enable_uart=1

# uncomment to enable RTC module
dtoverlay=i2c-rtc,ds1307

And my RPi 3 (or 3+), this:
# Additional overlays and parameters are documented /boot/overlays/README
dtoverlay=disable-wifi
dtoverlay=disable-bt

The bluetooth module uses the fancier of the uarts, so disabling that enabled the regular serial port
to use the better uart.

In any case, see the Knowledge Base articles here: https://www.abelectronics.co.uk/p/51/serial-pi-plus
and see if any of those details make sense to you.  The meteo-pi doesn't seem all that different than this
serial port + the RTC clock they sell.

Chris

Txo

unread,
Jan 26, 2021, 2:07:17 AM1/26/21
to weewx-user
@Vince
This had already been done for a top hat with serial port.

@Chris
I made the changes recommended by Chris and no more «@Vince
Unable to wake up Vantage console
This had already been done for a top hat with serial port.

@Chris
I made the changes recommended by Chris and no more «Unable to wake up Vantage console» but now

janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__
janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL weewx.engine:     ****      self.open()
janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 272, in open
janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL weewx.engine:     ****      self._reconfigure_port(force_update=True)
janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 326, in _reconfigure_port
janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL weewx.engine:     ****      raise SerialException("Could not configure port: {}".format(msg))
janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: Could not configure port: (5, "Erreur d'entrée/sortie")
janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL __main__: Unable to load driver: Could not configure port: (5, "Erreur d'entrée/sortie")
janv. 26 07:35:15 raspledeuix python3[826]: weewx[826] CRITICAL __main__:     ****  Exiting...

ls -l /dev/ttyS*
crw-rw---- 1 root dialout 4, 64 janv. 26 07:34 /dev/ttyS0
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 323, in _reconfigure_port
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****      orig_attr = termios.tcgetattr(self.fd)
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****  termios.error: (5, "Erreur d'entrée/sortie")
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****  
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****  During handling of the above exception, another exception occurred:
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****  
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 39, in loader
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1898, in __init__
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 512, in __init__
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****      self.port.openPort()
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 307, in openPort
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****      self.open()
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 272, in open
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****      self._reconfigure_port(force_update=True)
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 326, in _reconfigure_port
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****      raise SerialException("Could not configure port: {}".format(msg))
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: Could not configure port: (5, "Erreur d'entrée/sortie")
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL __main__: Unable to load driver: Could not configure port: (5, "Erreur d'entrée/sortie")
Jan 26 07:35:15 raspledeuix weewx[826] CRITICAL __main__:     ****  Exiting...



250 caractères maximum 

Tom Keffer

unread,
Jan 26, 2021, 6:59:18 AM1/26/21
to weewx-user
Try running this very simple program. Substitute whatever port you are using for '/dev/ttyS0'.

import serial
import time

s = serial.Serial('/dev/ttyS0', 19200, timeout=3)

s.write(b'\n')
time.sleep(0.5)
s.write(b'TEST\n')
time.sleep(0.5)
buf = s.read(10)
print(buf)

This little program will do the standard Davis test for connectivity by asking the console to echo the word "TEST". It should print out something like:

response: b'\n\r\n\rTEST\n\r'

If not, then you are either on the wrong port, or the logger is not acting like a true clone.

-tk



Txo

unread,
Jan 26, 2021, 11:13:32 AM1/26/21
to weewx-user
Thanks. With  /dev/ttyS0 I get:
pi@raspledeuix:~ $ python /home/pi/samsung/serie.py

pi@raspledeuix:~ $ 

nothing

Same answer with /dev/AMA0


$ dmesg | grep serial

[    0.928774] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    0.931796] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    0.939379] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 53, base_baud = 50000000) is a 16550
[  595.077242] uart-pl011 3f201000.serial: no DMA platform data

But I find:
weewx.WakeupError: Unable to wake up Vantage console

Tom Keffer

unread,
Jan 26, 2021, 11:38:20 AM1/26/21
to weewx-user
1, Nothing? Under Python 3, it should have at least printed a null string. Something like

b''

2. You are on the right track for figuring out which serial port your Meteo-pi is using. However, by using 'grep serial' you are excluding usb converter messages. Instead, try

dmesg | grep 'tty'

3. Assuming you have the right port, your Meteo-pi is not acting like a Davis clone. 

-tk


Txo

unread,
Jan 26, 2021, 12:19:22 PM1/26/21
to weewx...@googlegroups.com
Le 26/01/2021 à 17:37, Tom Keffer a écrit :
> 1, Nothing? Under Python 3, it should have at least printed a null
> string. Something like
>
> b''

No more an empty row.Sometime "[]"

>
> 2. You are on the right track for figuring out which serial port
> your Meteo-pi is using. However, by using 'grep serial' you are
> excluding usb converter messages. Instead, try
>
> dmesg | grep 'tty


$ dmesg | grep 'tty'
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1
bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1
vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4
elevator=deadline fsck.repair=yes rootwait
[ 0.000906] console [tty1] enabled
[ 0.931796] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81,
base_baud = 0) is a PL011 rev2
[ 0.939379] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 53, base_baud =
50000000) is a 16550

>
> 3. Assuming you have the right port, your Meteo-pi is not acting like
> a Davis clone.
>

The seller answered and sent me a manual for … Cumulus. I will try
anyway tomorrow.

--
-- Dominique Marin http://txodom.free.fr --
«Sous les pavés y'a plus la plage, il y a l'enfer et la Sécurité.»
-- Léo Ferré Il n'y a plus rien --

Txo

unread,
Jan 27, 2021, 3:43:27 AM1/27/21
to weewx...@googlegroups.com
I think I found the responsible: the 6-conductor cable. With the
4-conductor cable, it seems to work. Wait and see…



--
-- Dominique Marin http://txodom.free.fr --
«L'élève Hamlet : être ou ne pas être dans les nuages.»
-- Jacques Prévert» --
Reply all
Reply to author
Forward
0 new messages