Open serial port with serial.serial_for_url to be able to use pyserial's URL handlers #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I made a very minor change which allowed me to establish communication with a Lakeshore 240 module via an RS485-to-Ethernet converter using pyserial's URL handlers.
However, after a single data exchange the communication is aborted with the message "Terminating: Service not active on slave 10":
I can circumvent this by setting diag_period=1, which ends up reporting an error in the configuration and reinitializes the communication after every data exchange:
I was hoping you might have any suggestions what is going wrong. The GSD file is available here. The conf file is below. I just send a small number of zero bytes (in this case three) as out data. I did encounter the same issue with a RS485-to-USB adapter, so it doesn't seem to be an issue with the Ethernet communication.
Thank you!