Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
d7adc79d
Commit
d7adc79d
authored
Apr 11, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modbus RTU higher baudrate added
parent
03a6683b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_master.c
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_master.c
+9
-0
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_server.c
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_server.c
+9
-0
No files found.
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_master.c
View file @
d7adc79d
...
@@ -162,6 +162,15 @@ static pwr_tStatus IoAgentInit (
...
@@ -162,6 +162,15 @@ static pwr_tStatus IoAgentInit (
case
19200
:
case
19200
:
tty_attributes
.
c_cflag
|=
B19200
;
tty_attributes
.
c_cflag
|=
B19200
;
break
;
break
;
case
38400
:
tty_attributes
.
c_cflag
|=
B38400
;
break
;
case
57600
:
tty_attributes
.
c_cflag
|=
B57600
;
break
;
case
115200
:
tty_attributes
.
c_cflag
|=
B115200
;
break
;
default:
default:
errh_Error
(
"Modbus RTU Master, unsupported speed, %s"
,
ap
->
Name
);
errh_Error
(
"Modbus RTU Master, unsupported speed, %s"
,
ap
->
Name
);
tty_attributes
.
c_cflag
|=
B9600
;
tty_attributes
.
c_cflag
|=
B9600
;
...
...
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_server.c
View file @
d7adc79d
...
@@ -798,6 +798,15 @@ static pwr_tStatus IoRackInit (
...
@@ -798,6 +798,15 @@ static pwr_tStatus IoRackInit (
case
19200
:
case
19200
:
tty_attributes
.
c_cflag
|=
B19200
;
tty_attributes
.
c_cflag
|=
B19200
;
break
;
break
;
case
38400
:
tty_attributes
.
c_cflag
|=
B38400
;
break
;
case
57600
:
tty_attributes
.
c_cflag
|=
B57600
;
break
;
case
115200
:
tty_attributes
.
c_cflag
|=
B115200
;
break
;
default:
default:
errh_Error
(
"Modbus RTU Master, unsupported speed, %s"
,
ap
->
Name
);
errh_Error
(
"Modbus RTU Master, unsupported speed, %s"
,
ap
->
Name
);
tty_attributes
.
c_cflag
|=
B9600
;
tty_attributes
.
c_cflag
|=
B9600
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment