Pin # | Channel | Assignment |
01 | 2 | GND |
02 | 1 | GND |
06 | 2 | CAN BUS |
07 | 1 | CAN BUS |
10 | Both | V- in |
15 | Both | V+ in |
Event name | Event meaning |
EVENT_MSG_SENT   | An FT_DATA frame with a timestamp value of EVENT_ON_SEND or EVENT_ON_SEND_PROXY has been transmitted. See CMD_SERVER_SET_TIMED_XMIT for more information |
  | |
GCANBUSOFF | Bus OFF state reached |
GCANBUSWARN | Bus WARNING state reached |
GCANBUSOK | Bus OK (return from Bus WARNING state) |
GCANERRFRAME | Error Frame / Stuff Error detected (1 data byte for position; see table 1) |
GCANARBLOST | Arbitration lost (1 data byte for position; see table 1) |
GCANRXOVER | Receiver overflow detected |
GCANFORM | Form error detected (1 data byte for position; see table 1) |
GCANACK | Acknowledgment error (none received during attempted transmit or receive) |
GSJABIT | Bit error (1 data byte for position; see table 1) |
GSJAOTHER | Other error (1 data byte for position; see table 1) |
 
The following table decodes the single data byte that accompanies the GCANERRFRAME, GCANFORM, GSJABIT and GSJAOTHER event. Two events, one GSJAOTHER and the other GCANFORM are interpreted by the driver and will never be reported as expected. Both GSJAOTHER events with a data byte of 25 (19 hexadecimal) and GCANFORM events with a data byte of 59 (3B hexadecimal) are reported as GCANACK events. (With no data byte.)
The data byte is shown in binary format. Bit 5 of the values, indicated by x, specifies whether the error occurred while transmitting or receiving the message. A value of 1 indicates the error occurred during reception. A value of 0 indicates that the error occurred during transmission.
TABLE 1   | Data byte      | Error location |
00x0 0011 | start of frame | |
00x0 0010 | ID.28 to ID.21 | |
00x0 0110 | ID.20 to ID.18 | |
00x0 0100 | bit SRTR | |
00x0 0101 | bit IDE | |
00x0 0111 | ID.17 to ID.13 | |
00x0 1111 | ID.12 to ID.5 | |
00x0 1110 | ID.4 to ID.0 | |
00x0 1100 | bit RTR | |
00x0 1101 | reserved bit 1 | |
00x0 1001 | reserved bit 0 | |
00x0 1011 | data length code | |
00x0 1010 | data field | |
00x0 1000 | CRC sequence | |
00x1 1000 | CRC delimiter | |
00x1 1001 | acknowledge slot | |
00x1 1011 | acknowledge delimiter | |
00x1 1010 | end of frame | |
00x1 0010 | intermission | |
00x1 0001 | active error flag | |
00x1 0110 | passive error flag | |
00x1 0011 | tolerate dominant bits | |
00x1 0111 | error delimiter | |
00x1 1100 | overload flag |
 
The following table decodes the single data byte that accompanies the GCANARBLOST event.
TABLE 2   | Data byte |       | Description |
0 | arbitration lost in bit 1 of identifier | ||
1 | arbitration lost in bit 2 of identifier | ||
2 | arbitration lost in bit 3 of identifier | ||
3 | arbitration lost in bit 4 of identifier | ||
4 | arbitration lost in bit 5 of identifier | ||
5 | arbitration lost in bit 6 of identifier | ||
6 | arbitration lost in bit 7 of identifier | ||
7 | arbitration lost in bit 8 of identifier | ||
8 | arbitration lost in bit 9 of identifier | ||
9 | arbitration lost in bit 10 of identifier | ||
10 | arbitration lost in bit 11 of identifier | ||
11 | arbitration lost in bit SRTR (Bit RTR for standard frame messages) | ||
12 | arbitration lost in bit IDE | ||
13 | arbitration lost in bit 12 of identifier (Extended frame messages only) | ||
14 | arbitration lost in bit 13 of identifier (Extended frame messages only) | ||
15 | arbitration lost in bit 14 of identifier (Extended frame messages only) | ||
16 | arbitration lost in bit 15 of identifier (Extended frame messages only) | ||
17 | arbitration lost in bit 16 of identifier (Extended frame messages only) | ||
18 | arbitration lost in bit 17 of identifier (Extended frame messages only) | ||
19 | arbitration lost in bit 18 of identifier (Extended frame messages only) | ||
20 | arbitration lost in bit 19 of identifier (Extended frame messages only) | ||
21 | arbitration lost in bit 20 of identifier (Extended frame messages only) | ||
22 | arbitration lost in bit 21 of identifier (Extended frame messages only) | ||
23 | arbitration lost in bit 22 of identifier (Extended frame messages only) | ||
24 | arbitration lost in bit 23 of identifier (Extended frame messages only) | ||
25 | arbitration lost in bit 24 of identifier (Extended frame messages only) | ||
26 | arbitration lost in bit 25 of identifier (Extended frame messages only) | ||
27 | arbitration lost in bit 26 of identifier (Extended frame messages only) | ||
28 | arbitration lost in bit 27 of identifier (Extended frame messages only) | ||
29 | arbitration lost in bit 28 of identifier (Extended frame messages only) | ||
30 | arbitration lost in bit 29 of identifier (Extended frame messages only) | ||
31 | arbitration lost in bit RTR of identifier (Extended frame messages only) |
Please also see generic events for non card-specific events.
IOCTL name | Function | Data field length/purpose |
GCANGETBTRS | Get SJA1000 BTR values | 2 data bytes returned: current BTR0 and BTR1 values |
GCANSETBTRS | Set SJA1000 BTR values | 2 data bytes: new BTR0 and BTR1 values Set values valid only after next INIT ioctl. |
GCANGETBC | Get SJA1000 Output Control Register | 1 data byte: current output control register |
GCANSETBC | Set SJA1000 Output Control Register | 1 data byte: new output control register Value valid only after next INIT ioctl. |
GCANSETMODE | Set internal/external transceiver selection | 1 data byte: new transceiver selection (effective immediately) (Version 1.1 and above) |
GCANGETTRANS | Get internal/external transceiver selection | 1 data byte: current transceiver selection |
GCANSETTRANS | Set internal/external transceiver selection | 1 data byte: new transceiver selection (effective immediately). As above. |
GCANSENDERR | Send an error frame. (The error level must have its least significant bit set for this to work.) | None |
GCANRSETSTDID | set remote standard ID | None |
GCANRSETEXTID | set remote extended ID | None |
GCANRSETDATA | set remote frame data | None |
GCANRENABLE | enable remote object | None |
GCANRDISABLE | disable remote object | None |
GCANRSETMASKS | set remote frame masks | None |
GCANSWSETMODE | Set transceiver mode | 1 data byte: new mode. Bits control tool resistance, sleep mode, hi voltage mode, hi speed mode. See dev_527.h for bit assignments. |
GGETERRLEV | Get driver error level reporting | 1 data byte: current mode Modes include (values may be ORed): |
GSETERRLEV | Set driver error level reporting | 1 data byte: new mode (effective after next INIT ioctl). As above. |
GSJAGETLISTEN | Get listen/normal mode | 1 data byte: current mode |
GSJASETLISTEN | Set listen/normal mode | 1 data byte: new mode Mode changes only after next INIT ioctl. As above. |
GSJAGETSELFTEST | Get self test/normal mode | 1 data byte: current mode |
GSJASETSELFTEST | Set self test/normal mode | 1 data byte: new mode Mode changes only after next INIT ioctl. As above. |
GSJAGETXMITONCE | Get transmit once/normal mode | 1 data byte: current mode |
GSJASETXMITONCE | Set transmit once/normal mode | 1 data byte: new mode Mode changes immediately. As above. |
GCANSWGETMODE | Get transceiver mode | 1 data byte: current mode. Bits indicate tool resistance, sleep mode, hi voltage mode, hi speed mode. See dev_527.h for bit assignments. |
GCANSWSETMODE | Set transceiver mode | 1 data byte: new mode. Bits control tool resistance, sleep mode, hi voltage mode, hi speed mode. See dev_527.h for bit assignments. |
Notes:
|