J1708
Overview⚓︎
Some of our platforms feature J1708 operating over UART or SPI via a coprocessor. The supported baud rate is 9600 (faster might be possible has not yet been tested).
To be able to use the J1708 interface you will need to include /usr/lib/libj1708.so
in your application.
For for a quick test you can use j1708-test
.
root@mx4-ct-29009999:~# j1708-test
j1708-test
Usage: "j1708-test" l:n:p:b:m:csrqwBNR [j1708 frame]
Options:
-p, Priority for sending (default = 8)
-m, MID (default = 128)
-b, Baud-rate ([9600], 19200, 115200)
-B, Bad checksum send
-s, Send mode. Only one mode can be active
-r, Receive mode. Only one mode can be active
-R, Synchronous receive mode. Only one mode can be active
-N, Non blocking read. Mean to be used together with -R
-l, Number of loops in send mode.
-q, Send sequenced data
-w, Raw data mode, user will get messages with bad CRC
-c, Crazy send mode. A more sporadic send then -s cmd
-n, Number of frames to receive before terminating app
Examples:
Send 10 frames with the data provided:
j1708 -s -l 10 1 2 3 4 5 6 7 8 9 10
Read
j1708 -r
MX-V⚓︎
This platform uses SPI to communicate with the J1708 bus trough a coprocessor.
The compiled library is from the hm-commercial repository.
CT and CT GL⚓︎
This platform uses UART to communicate with the J1708 bus via a coprocessor. The compiled library is from our mx4-commercial or mx4 repositories.
C61⚓︎
No current product has populated this alternative but it could be done, and J1708 should work the same as for CT and CT GL.