(cardStatus [card_id])
The current status of the card, formatted as:
(cardStatus card_id (CAN_status_code CAN_status_string)
(server_status_code server_status_string)
(client_status_code client_status_string))where
| CAN_status_code | CAN_status_string | Meaning |
|---|---|---|
| 0x0001 | CAN_ONLINE | CAN interface ready to communicate |
| 0x0002 | CAN_BUSWARN | CAN bus warning |
| 0x0004 | CAN_BUSOFF | CAN offline due to excessive errors |
| 0x0008 | CAN_ACTIVITY | CAN activity detected |
| 0x0010 | CAN_TACKERR | CAN transmission not acknowledged |
| 0x0020 | CAN_TIMEOUT | CAN transmission incomplete |
| 0x0040 | CAN_OVERRUN | CAN receive buffer overrun |
| 0x0080 | CAN_LOST | CAN message lost |
| 0x0100 | CAN_ERROR | CAN bus error |
| 0x0200 | CAN_BUSPOWER | CAN bus power present |
| 0x1000 | CAN_ONLINE125 | CAN Online at 125 Kbaud |
| 0x2000 | CAN_ONLINE250 | CAN Online at 250 Kbaud |
| 0x4000 | CAN_ONLINE500 | CAN Online at 500 Kbaud |
| 0x8000 | CAN_SCANACTIVE | CAN Scanner active |
| server_status_code | server_status_string | Meaning |
|---|---|---|
| 0x00 | SS_IDLE | connection set not allocated |
| 0x01 | SS_ACTIVE | connection set allocated |
| client_status_code | client_status_string | Meaning |
|---|---|---|
| 0x00 | CS_IDLE | scanner idle |
| 0x01 | CS_ACTIVE | scanner active |
Otherwise, the following error message:
(error "cardStatus DR_ERR_CARD_INVALID (time) invalid card: card_id")
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.