-
Notifications
You must be signed in to change notification settings - Fork 5
libmodbus: initial version of the library #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0278e8d to
d088f1a
Compare
Unit Test Results9 277 tests +63 8 687 ✅ +62 54m 33s ⏱️ +6s For more details on these failures, see this check. Results for commit 2fed2d2. ± Comparison against base commit 82ac411. ♻️ This comment has been updated with latest results. |
anglov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put some early notes that will affect internal API and other small comment. To make a full review, I need dig a little deeper into it.
299460b to
23cb8ec
Compare
anglov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced about way, how reading buffer works. I think it would be better to firstly read frame, and then do the things (in modbus RTU over serial, 3,5 bytes of no communication means end of frame. In your implementation you can always try to get more data, if you miss something.
On the other hand, it will be armored for bad server implementation, which doesn't respect timeouts. So I am not opposing on current situation for now. For me it's important, that read callback should always read whole frame. The rest are internal API, which can be subject of changes.
However I put some comment, that can armor your solution for communication error, and make this more readable.
d7e4d9b to
e4b1ad2
Compare
e4b1ad2 to
83240db
Compare
anglov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine for me as for initial version. It's not a stable library (API will be subject of small changes when new features will be added), but I am ok to go for it for now.
JIRA: COG-44
83240db to
2fed2d2
Compare
Modbus RTU master (client) library.
Description
Not all functionalities are implemented yet, but things that were needed for now should be there.
Motivation and Context
This was developed primarily for the use in Cognit Project.
See: https://github.com/SovereignEdgeEU-COGNIT/use-case-3-phoenix-demo
Types of changes
How Has This Been Tested?
Checklist:
Special treatment