Dear Support Team,
I wonder if there is a possibility to change the priority of the serial interface thread? In the device driver description document, registry value Priority256 is mentioned in:
Nevertheless, this value does not exist by default on my efusA9X image. Is it still supported and how should I use it?
I ask this because we use one serial port to access RS485 bus. We use RTS_CONTROL_TOGGLE feature to drive direction on RS485 bus. We observe two issues on RS485 bus:
1) We send the same message on COMx port in a loop without delay between messages. When we use speed of 115200 bps, it happens randomly that the start of the message sent on COMx is lost (not received at all or received wrong). It is like RTS_CONTROL_TOGGLE is not set fast enough, so start of the message does not come out to the bus. About 10% of sent messages are affected. On speeds lower than 115200 bps, there is no such issue.
2) When we use speed of 9600 bps, we experience similar issue but on receiving side. Scenario is the following: we send command on RS485 bus over COMx port, and the device on RS485 responds to this command, which we read on COMx port. Device may respond almost immediately. We send hundreds of commands and read hundreds of responses. After some time, it happens that a response is received with start of the message either lost or distorted. It is like RTS_CONTROL_TOGGLE is not changed fast enough and efusA9X holds the RS485 bus in sending state while the device starts responding on the command.
Can you help me with this issue? I hope I have managed to describe the problem properly. If you need further explanations, please don't hesitate.
Thanks in advance.