No data with WMR918

Martin,

go in ./deploy
rename libcom
mv libcom.so libcom.so.old
download libcom.zip attached
move it into deploy,
rename
mv libcom.zip libcom.so
redo the test with DEBUG set


libcom.zip (32.4 KB)

Yves,

Success! :smiley:
Well, partial success at least with your new libcom.

Here is the terminal output now:
Opening the serial port /dev/ttyS0
Saving serial configuration
Serial port /dev/ttyS0 opened File desc = 16
setting speed to 9600
Read Size 80 : 6 0 82 1 48 7 9d c1 0 0 6 3a ff ff 6 0 82 1 48 7 9d c1 0 0 6 3a ff ff 0 0 2 60 1 24 0 7 8c ff ff 0 0 6 61 1 24 0 7 91 ff ff e 37 43 ff ff 1 0 0 90 44 4 0 0 0 0 1 1 99 72 ff ff 0 0 3 60 2 24 0 5 8c

I get temp, humidity, and pressure data in WD (no wind though), and the data quality light goes green. Data updates are very slow though, maybe every 5 minutes rather than every few seconds under windows. Also, it seems a bit temperamental, sometimes receiving data, and sometimes not.

What was changed in the update?

Thanks,

Martin

thats a large read size
it should be getting the data packets in smaller size chunks than that
also wondering what change you made too Yves?
:slight_smile:

I made no significant changes to libcom, Seeing the error I made a change in libcom to always call ser_readVp instead.
thegasman could you confirm you using an Oregon 918 on a raw serial port or on USB serial?

Yves

Yves,

It’s an OS918 (it also says WMR968 on the back) attached to the raw serial port (not usb). I’m using Comm 1 and WMR968 settings in WD.

Martin

make sure you are using the wmr968 station type (so that the barometer works correctly)

Yes, that’s what I’m doing.
Further trial with new libcom suggests that it is in fact only reading one set of data at startup, and that it is not updated. There are no errors in the terminal window though.
Where do I go from here? I don’t understand the change Yves has made or what it means.

Martin

not sure whats happening
the wmr968 sends data , without needing it to be requested
although the DTR and RTS lines need to be set high (its possible that is not happening correctly through your serial port on that machine)

I have checked with statserial, and both DTR and RTS are high.
I now don’t seem to be getting any data at all again, I don’t know why, I haven’t changed anything I can think of!
Having read some of the other threads in the forum, it strikes me that my issue appears similar to n7dq’s ‘datalogger sync issues’. However, as there doesn’t seem to be a readily available solution it’s looking increasingly like I’ll have to reinstall windows on my laptop, where WD works 24/7. :frowning:
Maybe I’ll dual boot and an eye on the Linux version.

Martin

no, it wont be the same as n7dq sync issues
different hardware, different commmands involved, nothing the same

its more likely some configuration /software/permissions/linux problem with the serial port, instead

being away yesterday, this station sends datas to the host on its own. could you do the export DEBUG thing and post a longer trace, so I could understand and maybe find something.

By the way WD calls C functions I developped into libraries, ser_read function is an abstraction of the operation that reads data from a serial port. this is always this function Brian calls from WD, but in the background Brian tells which brand of station is attached to the serial port and consequently which hardware specific function to attach the generic one… The change I did was to connect the specific function for a Davis VP so WD call this one instead of the OS specific.
Yves

Yves,
With your libcom and DEBUG set there is nothing else comes through beyond what I have already posted (i.e. one set of data, no more data, no errors). With the original libcom there is an endless stream of ser_read errors.

I now have my laptop dual boot ubuntu/xp and can confirm that WD works flawlessly under XP with the same settings I have under Linux. So it’s definately a software issue.

Martin

and that software is your linux environment (in regards to the com port)
because other wmr968 users do not have any problems

I’m sorry Brian, but I don’t think it’s quite that simple!

I can read the data from my weather station perfectly well through the comm port (ttyS0) in my linux environment, using minicom and logserial. The data flows freely and continuously, and I can extract all the temperatures etc from it and confirm it is the same as is being shown on the weather station screen.

The problem is that Weather Display can’t read the data for some reason. I don’t know why it works for other people and not me, but there appears to be no problem with other software reading the data in my current setup. I know this is ‘donationware’, and I don’t expect you come up with a solution for me, but I think writing my problems off as an Operating System issue may be a mistake.

All the best,

Martin

if it works for others (and you are the only person I know of that it does not work with for a wmr968) then that means there is a problem with your linux setup for the type of serial driver (that Yves created) used by WD

I know this is 'donationware',

as soon as people start to complain about that its donationware then I (and I think Yves is the same) loose interest in spending time on working on a solution very rapidly

you dont have to donate anything, thanks on postings goes along way (thanks are very hard to come by on this forum unfortunatly, people just expected things all the time)

Martin,

Did you ever get your 918 working? It looks like I am getting the same error that you got.

Tim

I dont see alot of point in dragging up an old thread
the original poster is probably long gone now, and would have posted if there was a solution

I would try adding a USB to serial adaptor (see my reply to your other thread about that)

I’m still here!
But no, I’m afraid I didn’t ever find a solution. :frowning: I’m running WD under XP still.

Martin