NCAR / WVD-MCSupdate

Addition of NCAR MCS, rewrite to software infrastructure, and expansion of features for WVD operations.
2 stars 1 forks source link

Ethernet weather station dropping values? #260

Closed stillwer closed 5 years ago

stillwer commented 5 years ago

I just got the ethernet to rs485 converter working and it looks like some packets are not completing. The manifestation is that the pressure drops from 800 to 300 for no obvious reason. The temperature has also dropped from 20 to -2 once as well.

stillwer commented 5 years ago

Just tried increasing the wait time from 50ms to 100 ms.

stillwer commented 5 years ago

I have not seen this problem again using the raw socket with a wait time of 100 ms. However, there is a fix in place that examines each response and looks for an echoed command and also a carriage return (\r) for each response. If all responses are not complete, the program will throw an error resulting in all data being sent back as -1.