User Tools

Site Tools


doc:hw_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:hw_commands [2016/11/19 11:39] – [Bus Specific Commands (P 8) for the CAN Bus, used in D2 Design] admindoc:hw_commands [2016/11/27 17:05] – [Bus Generic Commands (P 9) for the CAN Bus] admin
Line 144: Line 144:
 |  13  |  <Filter-No> |  $<Mask-ID> | set Filter Mask-ID (29bit Mask-ID 0x00000000-0x1FFFFFFF) where Filter-No is 1-N* and Filter Mask depends on Filter CAN-ID (0=don't care 1=match), i.e. p 8 11 1 $1FFFFFF0 (here: $18F30550 - $18F3055F) |  | |  13  |  <Filter-No> |  $<Mask-ID> | set Filter Mask-ID (29bit Mask-ID 0x00000000-0x1FFFFFFF) where Filter-No is 1-N* and Filter Mask depends on Filter CAN-ID (0=don't care 1=match), i.e. p 8 11 1 $1FFFFFF0 (here: $18F30550 - $18F3055F) |  |
 |  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 ''#define MAXCANFILTER='' in ''mc_can.h''  ||||| 
  
 + * N: number of filters is implementation depending, see ''#define MAXCANFILTER='' in ''mc_can.h'' 
 +
 +The socketCAN implementation has some advanced filter settings. Please read the [[https://www.kernel.org/doc/Documentation/networking/can.txt|Socketcan dokumentation (chapter 4.1)]] for details.
  
 \\ \\
Line 156: Line 158:
 |  0  |  0  |  0  |show info which interface/bus is active (i.e. CAN-Bus) |  | |  0  |  0  |  0  |show info which interface/bus is active (i.e. CAN-Bus) |  |
 |  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:   \\  <CAN-ID> <Mask-ID> <CAN-ID> <Mask-ID> |  | |  0  |  10  |  0  |show all 11bit CAN-ID filter, each line with two 11bit CAN-filters like:   \\  <CAN-ID> <Mask-ID> <CAN-ID> <Mask-ID> |  |
doc/hw_commands.txt · Last modified: 2017/04/02 07:09 by admin