canlogserver: Update the description
Update the description of canlogserver in README.md and help message. This closes #421. Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>pull/422/head
parent
c8fef7d60d
commit
4a1506f2cb
|
|
@ -17,7 +17,7 @@ subsystem (aka SocketCAN):
|
||||||
* cansniffer : display CAN data content differences
|
* cansniffer : display CAN data content differences
|
||||||
|
|
||||||
#### CAN access via IP sockets
|
#### CAN access via IP sockets
|
||||||
* canlogserver : log CAN frames from a remote/local host
|
* canlogserver : log CAN frames and serves them
|
||||||
* bcmserver : interactive BCM configuration (remote/local)
|
* bcmserver : interactive BCM configuration (remote/local)
|
||||||
* [socketcand](https://github.com/linux-can/socketcand) : use RAW/BCM/ISO-TP sockets via TCP/IP sockets
|
* [socketcand](https://github.com/linux-can/socketcand) : use RAW/BCM/ISO-TP sockets via TCP/IP sockets
|
||||||
* [cannelloni](https://github.com/mguentner/cannelloni) : UDP/SCTP based SocketCAN tunnel
|
* [cannelloni](https://github.com/mguentner/cannelloni) : UDP/SCTP based SocketCAN tunnel
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@ static volatile sig_atomic_t signal_num;
|
||||||
|
|
||||||
void print_usage(char *prg)
|
void print_usage(char *prg)
|
||||||
{
|
{
|
||||||
|
fprintf(stderr, "%s - log CAN frames and serves them.\n", prg);
|
||||||
fprintf(stderr, "\nUsage: %s [options] <CAN interface>+\n", prg);
|
fprintf(stderr, "\nUsage: %s [options] <CAN interface>+\n", prg);
|
||||||
fprintf(stderr, " (use CTRL-C to terminate %s)\n\n", prg);
|
fprintf(stderr, " (use CTRL-C to terminate %s)\n\n", prg);
|
||||||
fprintf(stderr, "Options:\n");
|
fprintf(stderr, "Options:\n");
|
||||||
|
|
@ -102,7 +103,11 @@ void print_usage(char *prg)
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
fprintf(stderr, "When using more than one CAN interface the options\n");
|
fprintf(stderr, "When using more than one CAN interface the options\n");
|
||||||
fprintf(stderr, "m/v/i/e have comma separated values e.g. '-m 0,7FF,0'\n");
|
fprintf(stderr, "m/v/i/e have comma separated values e.g. '-m 0,7FF,0'\n");
|
||||||
fprintf(stderr, "\nUse interface name '%s' to receive from all CAN interfaces.\n\n", ANYDEV);
|
fprintf(stderr, "\nUse interface name '%s' to receive from all CAN interfaces.\n", ANYDEV);
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
fprintf(stderr, "After running canlogserver, connect to it via TCP to get logged data.\n");
|
||||||
|
fprintf(stderr, "e.g. with 'nc localhost %d'\n", DEFPORT);
|
||||||
|
fprintf(stderr, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
int idx2dindex(int ifidx, int socket)
|
int idx2dindex(int ifidx, int socket)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue