Hi, I have a problem with a Vantage Vue VERSION 2.14 in connection on serial.
I use raspberry pi 2 .
My code is:
import serial
WXPORT = '/dev/ttyAMA0'
WXBAUDRATE = 19200
WXBYTESIZE = serial.EIGHTBITS
WXPARITY = serial.PARITY_NONE
WXSTOPBITS = serial.STOPBITS_ONE
WXXONOFF = False
WXTIMEOUT = 3
w = serial.Serial(WXPORT, WXBAUDRATE, WXBYTESIZE, WXPARITY, WXSTOPBITS, WXTIMEOUT, WXXONOFF)
w.write("\n")
w.write("VER")
print w.readline()
My output is a echo to the write.
For example
w.write(“VER”)
OUTPUT w.readline() is “VER” AND NOT THE VERSION THE VANTAGE VUE.
ANY SOLUTION?
I read the manual wospi (
http://meteo.annoyingdesigns.com/WOSPi.pdf) and in the code:
wospi.wx = wospi.openWxComm()
#wospi.wx = w
wospi.readWxData() # read LOOP/LOOP2 packet(s), as determined by the LPS setting..
# Note: the wxDict and wxMinMax dictionaries are now populated.
# "print wxDict" and/or "print wxMinMax" will display the corresponding diction..
print wospi.getRawData(1, 9, 'H') # LOOP packet, offset 9, WORD value = inside ..
print wospi.getRawData(2, 43, 'B') # LOOP2 packet, offset 43, BYTE value = UV i...
print wospi.getRawData(1, 18, 'B') # LOOP packet, offset 18, BYTE value = Extra...
# Note: extra temperature is offset by 90 degrees F - ref. Davis documentation
print wospi.getRawData(1, 62, 'B') # LOOP packet, offset 62, BYTE value = Soil …
my output is:
Fri Feb 26 11:58:07 2016 LT: Console wakeup call, attempt no. 1 of 3.
Fri Feb 26 11:58:07 2016 LT: Console NOT responding to wakeup call.
Fri Feb 26 11:58:08 2016 LT: Console wakeup call, attempt no. 2 of 3.
Fri Feb 26 11:58:08 2016 LT: Console NOT responding to wakeup call.
Fri Feb 26 11:58:10 2016 LT: Console wakeup call, attempt no. 3 of 3.
Fri Feb 26 11:58:10 2016 LT: Console NOT responding to wakeup call.
Fri Feb 26 11:58:11 2016 LT: Unable to wake up the console. Check connections.
None
None
None
None
No responding send. Any solution?