You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Is it possible to edit communication parameters such as parity, stop bits and data length in ModbusMaster library (Version bump to v2.0.1)? Thank You.
#167
[Version of the project where you are encountering the issue]
Arduino IDE version
[Version of Arduino IDE in your environment]
Arduino Hardware
[Hardware information, including board and processor]
Platform Details
[Operating system distribution and release version]
Scenario:
[What you are trying to achieve and you can't?]
Steps to Reproduce:
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this project or any resources it includes?]
Expected Result:
[What are you expecting to happen as the consequence of above reproduction steps?]
Actual Result:
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]
Feature Request
Narrative:
As a [role]
I want [feature]
So that [benefit]
Acceptance Criteria:
Scenario 1: Title
Given [context]
And [some more context]...
When [event]
Then [outcome]
And [another outcome]...
The text was updated successfully, but these errors were encountered:
pklg
changed the title
Hi. Is it possible to edit communication parameters such as parity, stop bits and data length in ModbusMaster library? Thank You.
Hi. Is it possible to edit communication parameters such as parity, stop bits and data length in ModbusMaster library (Version bump to v2.0.1)? Thank You.
Jan 8, 2022
Imho this makes no sense.
When you call .begin() you hand over a reference to your Serial object.
void begin(uint8_t, Stream &serial);
the library has nothing to do with parity, stopbits or data length. If you want to change this kind of parameters, just adopt the paramters of your Serial interface.
Those parameters are determined on both ends of client & server serial comm. , and since modbusmaster only takes a Serial object, not create it, the change needs to be done on those side, not here, just as @noiasca said
Although I did encounter a problem whilst using Arduino's own SoftwareSerial (not hardware mind you), which didn't have the options for parity & stop bits, in which case I found another more suitable software serial library here in Github
Thank You. Now all is clear. 19.01.2022, 12:39, "Hanif" ***@***.***>: Those parameters are determined on both ends of client & server serial comm. , and since modbusmaster only takes a Serial object, not create it, the change needs to be done on those side, not here, just as @noiasca saidAlthough I did encounter a problem whilst using Arduino's own SoftwareSerial (not hardware mind you), which didn't have the options for parity & stop bits, in which case I found another more suitable software serial library here in Github—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.You are receiving this because you authored the thread.Message ID: ***@***.***> -- Куксин Леонид Георгиевич
ModbusMaster version
[Version of the project where you are encountering the issue]
Arduino IDE version
[Version of Arduino IDE in your environment]
Arduino Hardware
[Hardware information, including board and processor]
Platform Details
[Operating system distribution and release version]
Scenario:
[What you are trying to achieve and you can't?]
Steps to Reproduce:
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this project or any resources it includes?]
Expected Result:
[What are you expecting to happen as the consequence of above reproduction steps?]
Actual Result:
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]
Feature Request
Narrative:
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: