Things to try:

1. Are you sure the port is /dev/ttyUSB0 under OpenWrt?

2. Make sure the baud rate is correct. Perhaps your Envoy expects something
other than 19,200?

3. Make sure nothing else is claiming port /dev/ttyUSB0. If you have the
utility 'lsof', you can check this with the command:

*lsof /dev/ttyUSB0*


4. If your version of Openwrt has something like minicom, you can perform a
connectivity test. See the section *Establishing connectivity
<https://github.com/weewx/weewx/wiki/Troubleshooting-the-Davis-Vantage-station#establishing-connectivity>*
in
the wiki for how to do this. This also allows you to check the baud rate.

5. This is not the problem, but your test program needs a small change in
order to work. Change this

print "Hardware type is %d" % htype


to this

print "Hardware type is %d" % ord(htype)


-tk

On Thu, Oct 22, 2020 at 5:58 AM Владислав Торговцев <[email protected]>
wrote:

> Hello. I have OpenWrt device with installed Openwrt. It works with Vantage
> pro 2 Console and Vantage vue Console, But doesn't work with Davis
> Envoy(6316). I get an error: "weewx.WakeupError: Unable to wake up Vantage
> console". I have already installed pySerial package, it doesn't help.
> In other thread(#293 <https://github.com/weewx/weewx/issues/293>, GitHub)
> i found this test script:
> *import serial *
> *port = serial.Serial("/dev/ttyUSB0", 19200) *
>
> *port.write("WRD" + chr(0x12) + chr(0x4d) + "\n")  *
>
> *ack = port.read() *
> *if ack != chr(0x06): *
> * print "Unable to get ACK. Got %d instead." % ack *
>
> *htype = port.read() *
>
> *print "Hardware type is %d" % htype *
> *port.close()*
>
> But she stops at the line: "ack = port.read()" , it cannot run line,
> however it doesn't show me any errors, it just hangs.
>
> Envoy use USB data logger and have this name in system - /dev/ttyUSB0
> someone faced this problem, or can help with any advice?
> Thanks in advance to everyone!
>
> --
> 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/7e8291e7-e641-468e-986e-ffe67561e77en%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/7e8291e7-e641-468e-986e-ffe67561e77en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEDYrYyr%3D0rA1zyQZzDfgA8wsARZ%3D5W%3DjeHg1t3u4atHSw%40mail.gmail.com.

Reply via email to