From b8e26388f859d3cc79446b6a7588a9bb90c697a7 Mon Sep 17 00:00:00 2001 From: Yasushi SHOJI Date: Thu, 6 Apr 2023 17:20:33 +0900 Subject: [PATCH] canlogserver: Update the description Update the description of canlogserver in README.md and help message. This closes #421. Signed-off-by: Yasushi SHOJI --- README.md | 2 +- canlogserver.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b3037b..acb0ae9 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ subsystem (aka SocketCAN): * cansniffer : display CAN data content differences #### 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) * [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 diff --git a/canlogserver.c b/canlogserver.c index aa41347..0ddecba 100644 --- a/canlogserver.c +++ b/canlogserver.c @@ -88,6 +88,7 @@ static volatile sig_atomic_t signal_num; void print_usage(char *prg) { + fprintf(stderr, "%s - log CAN frames and serves them.\n", prg); fprintf(stderr, "\nUsage: %s [options] +\n", prg); fprintf(stderr, " (use CTRL-C to terminate %s)\n\n", prg); fprintf(stderr, "Options:\n"); @@ -102,7 +103,11 @@ void print_usage(char *prg) fprintf(stderr, "\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, "\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)