Closed stillwer closed 5 years ago
Just tried increasing the wait time from 50ms to 100 ms.
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.
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.