Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
8d96c49c
Commit
8d96c49c
authored
Feb 15, 2013
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
подправил help у некоторых утилит.
parent
c257e0a3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
27 deletions
+29
-27
AUTHORS
AUTHORS
+3
-2
mbrtuslave.cc
Utilities/MBTester/mbrtuslave.cc
+8
-8
mbslave.cc
Utilities/MBTester/mbslave.cc
+8
-8
mbtcpserver.cc
Utilities/MBTester/mbtcpserver.cc
+10
-9
No files found.
AUTHORS
View file @
8d96c49c
Pavel Vainerman <pv@etersoft.ru>
Pavel Vainerman <pv@etersoft.ru>
Vitaly Lipatov <lav@etersoft.ru>
Vitaly Lipatov <lav@etersoft.ru>
Anton Korbin <ahtoh@etersoft.ru>
Anton Korbin <ahtoh@etersoft.ru>
\ No newline at end of file
and.. see git changelog
Utilities/MBTester/mbrtuslave.cc
View file @
8d96c49c
...
@@ -21,14 +21,14 @@ static struct option longopts[] = {
...
@@ -21,14 +21,14 @@ static struct option longopts[] = {
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
static
void
print_help
()
static
void
print_help
()
{
{
printf
(
"-h|--help - this message
\n
"
);
printf
(
"-h|--help
- this message
\n
"
);
printf
(
"[-t|--timeout] msec
- Timeout. Default: 2000.
\n
"
);
printf
(
"[-t|--timeout] msec - Timeout. Default: 2000.
\n
"
);
printf
(
"[-v|--verbose]
- Print all messages to stdout
\n
"
);
printf
(
"[-v|--verbose] - Print all messages to stdout
\n
"
);
printf
(
"[-d|--device] dev
- use device dev. Default: /dev/ttyS0
\n
"
);
printf
(
"[-d|--device] dev - use device dev. Default: /dev/ttyS0
\n
"
);
printf
(
"[-a|--myaddr] addr
- Modbus address for master. Default: 0x01.
\n
"
);
printf
(
"[-a|--myaddr] addr - Modbus address for master. Default: 0x01.
\n
"
);
printf
(
"[-s|--speed] speed
- 9600,14400,19200,38400,57600,115200. Default: 38400.
\n
"
);
printf
(
"[-s|--speed] speed - 9600,14400,19200,38400,57600,115200. Default: 38400.
\n
"
);
printf
(
"[-y|--use485F]
- use RS485 Fastwel.
\n
"
);
printf
(
"[-y|--use485F] - use RS485 Fastwel.
\n
"
);
printf
(
"[-v|--verbose]
- Print all messages to stdout
\n
"
);
printf
(
"[-v|--verbose] - Print all messages to stdout
\n
"
);
printf
(
"[-c|--const-reply] val1 [val2 val3] - Reply val for all queries
\n
"
);
printf
(
"[-c|--const-reply] val1 [val2 val3] - Reply val for all queries
\n
"
);
}
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
...
...
Utilities/MBTester/mbslave.cc
View file @
8d96c49c
...
@@ -20,14 +20,14 @@ static struct option longopts[] = {
...
@@ -20,14 +20,14 @@ static struct option longopts[] = {
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
static
void
print_help
()
static
void
print_help
()
{
{
printf
(
"-h|--help - this message
\n
"
);
printf
(
"-h|--help
- this message
\n
"
);
printf
(
"[-t|--timeout] msec
- Timeout. Default: 2000.
\n
"
);
printf
(
"[-t|--timeout] msec - Timeout. Default: 2000.
\n
"
);
printf
(
"[-v|--verbose]
- Print all messages to stdout
\n
"
);
printf
(
"[-v|--verbose] - Print all messages to stdout
\n
"
);
printf
(
"[-d|--device] dev
- use device dev. Default: /dev/ttyS0
\n
"
);
printf
(
"[-d|--device] dev - use device dev. Default: /dev/ttyS0
\n
"
);
printf
(
"[-a|--myaddr] addr
- Modbus address for master. Default: 0x01.
\n
"
);
printf
(
"[-a|--myaddr] addr - Modbus address for master. Default: 0x01.
\n
"
);
printf
(
"[-s|--speed] speed
- 9600,14400,19200,38400,57600,115200. Default: 38400.
\n
"
);
printf
(
"[-s|--speed] speed - 9600,14400,19200,38400,57600,115200. Default: 38400.
\n
"
);
printf
(
"[-v|--verbose]
- Print all messages to stdout
\n
"
);
printf
(
"[-v|--verbose] - Print all messages to stdout
\n
"
);
printf
(
"[-g|--f485]
- Use 485 Fastwel
\n
"
);
printf
(
"[-g|--f485] - Use 485 Fastwel
\n
"
);
}
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
...
...
Utilities/MBTester/mbtcpserver.cc
View file @
8d96c49c
...
@@ -21,15 +21,16 @@ static struct option longopts[] = {
...
@@ -21,15 +21,16 @@ static struct option longopts[] = {
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
static
void
print_help
()
static
void
print_help
()
{
{
printf
(
"-h|--help - this message
\n
"
);
printf
(
"Example: uniset-mbtcpserver-echo -i localhost -p 2049 -v
\n
"
);
printf
(
"[-t|--timeout] msec - Timeout. Default: 2000.
\n
"
);
printf
(
"-h|--help - this message
\n
"
);
printf
(
"[-v|--verbose] - Print all messages to stdout
\n
"
);
printf
(
"[-t|--timeout] msec - Timeout. Default: 2000.
\n
"
);
printf
(
"[-i|--iaddr] ip - Server listen ip. Default 127.0.0.1
\n
"
);
printf
(
"[-v|--verbose] - Print all messages to stdout
\n
"
);
printf
(
"[-a|--myaddr] addr - Modbus address for master. Default: 0x01.
\n
"
);
printf
(
"[-i|--iaddr] ip - Server listen ip. Default 127.0.0.1
\n
"
);
printf
(
"[-x|--ignore-addr] - Ignore modbus RTU-address.
\n
"
);
printf
(
"[-a|--myaddr] addr - Modbus address for master. Default: 0x01.
\n
"
);
printf
(
"[-p|--port] port - Server port. Default: 502.
\n
"
);
printf
(
"[-x|--ignore-addr] - Ignore modbus RTU-address.
\n
"
);
printf
(
"[-v|--verbose] - Print all messages to stdout
\n
"
);
printf
(
"[-p|--port] port - Server port. Default: 502.
\n
"
);
printf
(
"[-c|--const-reply] val - Reply 'val' for all queries
\n
"
);
printf
(
"[-v|--verbose] - Print all messages to stdout
\n
"
);
printf
(
"[-c|--const-reply] val - Reply 'val' for all queries
\n
"
);
}
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
...
...
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