(dnsCmd) (dnsCmd card_id) (dnsCmd card_id cmd)
| CMD_DN_ONLINE |
| CMD_DN_OFFLINE |
| CMD_ADD_DEVICE |
| CMD_GET_DEVICE |
| CMD_DELETE_DEVICE |
| CMD_START_SCAN |
| CMD_STOP_SCAN |
| CMD_IO_ACTIVE |
| CMD_IO_IDLE |
If successful, the response will depend on the form of the command (see below) and the dnscan command, if issued. Otherwise, one of the following error messages:
(error "dnsCmd DR_ERR_CARD_INVALID (time) invalid card: card_id") (error "dnsCmd DR_ERR_NO_CARD (time) card not available") (error "dnsCmd DVN_ERR_CMD_UNDEFINED (time) Cmd not defined: cmd") (error "dnsCmd DVN_ERR_CMD_TIMEOUT (time) Cmd failed (timeout)")
This command provides access to the main initialization interface to the dnscan firmware module running on the 5136-DN/DNP or SST-DN3 series card. It can be used to query the module for available commands and command status. It can also be used to issue commands, but only without parameters, for debugging purposes. Generally, from within the DVN Driver the dnscan commands should be issued directly, using one of these: dnsOnline, dnsOffline, dnsDeviceAdd, dnsDeviceGet, dnsDeviceDelete, dnsScanStart, dnsScanStop, dnsIoActive, dnsIoIdle.
The dnsCmd command supports the three following syntax variations:
(dnsCmd CMD_DN_ONLINE CMD_DN_OFFLINE
CMD_ADD_DEVICE CMD_GET_DEVICE CMD_DELETE_DEVICE
CMD_START_SCAN CMD_STOP_SCAN CMD_IO_ACTIVE CMD_IO_IDLE)(dnsCmd card_id last_cmd)if the command executed successfully, or
(dnsCmd card_id last_cmd last_error)if the dnscan command caused an error.
> (dnsCmd 0 CMD_STOP_SCAN) (error "dnsCmd 7267 (030213@13:58:18) DEV: Cmd: Scanner not running") > (dnsCmd 0) (dnsCmd 0 CMD_STOP_SCAN "DEV: Cmd: Scanner not running") > (dnsCmd 0 CMD_START_SCAN) (dnsCmd 0 CMD_START_SCAN) > (dnsCmd 0) (dnsCmd 0 CMD_START_SCAN)
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.