doc:hw_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:hw_commands [2016/11/19 11:39] – [Bus Specific Commands (P 8) for the CAN Bus, used in D2 Design] admin | doc:hw_commands [2017/04/02 07:09] (current) – [Protocol Specific Commands (P 6) for the CAN UDS Protocol] admin | ||
---|---|---|---|
Line 91: | Line 91: | ||
| 9 | $xxx | 0 | set ECU Response-ID (SENDID) (Default 0, makes SENDID= RECVID %%|%% 0x08) | | | | 9 | $xxx | 0 | set ECU Response-ID (SENDID) (Default 0, makes SENDID= RECVID %%|%% 0x08) | | | ||
| 10 | $xxx | 0 | set Tester Present mask 02 xx (Default 0x80) | | | | 10 | $xxx | 0 | set Tester Present mask 02 xx (Default 0x80) | | | ||
+ | | 11 | 0 or 1 | 0 | set/resets the [[rfc_canuds-mode# | ||
==== Protocol Specific Commands (P 6) for the CAN Raw Protocol ==== | ==== Protocol Specific Commands (P 6) for the CAN Raw Protocol ==== | ||
Line 128: | Line 129: | ||
| 2 | 1 | 0 |CAN transceiver: | | 2 | 1 | 0 |CAN transceiver: | ||
| 2 | 2 | 0 |CAN transceiver: | | 2 | 2 | 0 |CAN transceiver: | ||
- | | 2 | 3 | 0 |CAN transceiver: | + | | 2 | 3 | 0 |CAN transceiver: |
| 3 | 0 or 1 | 0 |Standard-CAN init (initialize CAN controller with 125kbit/s, 11bit) | | | | 3 | 0 or 1 | 0 |Standard-CAN init (initialize CAN controller with 125kbit/s, 11bit) | | | ||
| 3 | 2 | 0 |Standard-CAN init (initialize CAN controller with 250kbit/s, 11bit) | | | | 3 | 2 | 0 |Standard-CAN init (initialize CAN controller with 250kbit/s, 11bit) | | | ||
Line 144: | Line 145: | ||
| 13 | < | | 13 | < | ||
| 14 | 0 | 0 |set all 11bit CAN filter to CAN-ID $0000 and Mask-ID $07FF (= disable any CAN traffic to application) | | | | 14 | 0 | 0 |set all 11bit CAN filter to CAN-ID $0000 and Mask-ID $07FF (= disable any CAN traffic to application) | | | ||
- | | * N: number of filters is implementation depending, see ''# | ||
+ | * N: number of filters is implementation depending, see ''# | ||
+ | |||
+ | The socketCAN implementation has some advanced filter settings. Please read the [[https:// | ||
\\ | \\ | ||
Line 156: | Line 159: | ||
| 0 | 0 | 0 |show info which interface/ | | 0 | 0 | 0 |show info which interface/ | ||
| 0 | 3 | 0 |show info of CAN transceiver operating mode | | | | 0 | 3 | 0 |show info of CAN transceiver operating mode | | | ||
- | | 0 | 4 | 0 |?? | | | + | | 0 | 4 | 0 |show info about CAN ID side and bitrate |
- | | 0 | 5 | 1 |read different CAN error counters | | | + | | 0 | 5 | 1 |read different CAN counters: rx rxerr tx txerr rxerr2 txerr2 busoff buswarn buspass |
| 0 | 5 | 2 |delete all software internal CAN error counters | | | | 0 | 5 | 2 |delete all software internal CAN error counters | | | ||
| 0 | 10 | 0 |show all 11bit CAN-ID filter, each line with two 11bit CAN-filters like: | | 0 | 10 | 0 |show all 11bit CAN-ID filter, each line with two 11bit CAN-filters like: |
doc/hw_commands.1479551960.txt.gz · Last modified: 2016/11/19 11:39 by admin