|
truck-code
|
#include "jbus/jbus.h"#include "jbus/j1939_utils.h"#include "jbus/j1939_struct.h"#include "jbus/j1939_interpreters.h"#include <map>#include <string>#include <stdio.h>#include <stdlib.h>#include <fcntl.h>
Functions | |
| int | main (int argc, char **argv) |
This script is responsible for periodically searching for messages that have been sent by the j1939 bus. This process receives a message from the J1939 port (which may be an ordinary serial port with the B&B converter or a port to the SSV CAN Board). If any new messages are received, they are published to the pub/sub server for use by other processes.
Arguments: -f filename for input -t puts bytes from every frame received on stdout -g specifies whether to use "generic" mode. In "generic" mode, write all PDUs to database as byte streams, don't translate into specific PDU formats or assemble multipacket messages -v run in verbose mode, messages are printed in stdout -n specifies whether to print messages in numeric or non-numeric mode. Only used if the process is running in debug mode.
1.8.13