21.11.2013 Views

CANgate User's Manual - dataTaker

CANgate User's Manual - dataTaker

CANgate User's Manual - dataTaker

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

hex data – enter a string of hexadecimal digits, eg. 12ff09270045db08. To make long strings easier to read, one<br />

or more underscores (or any other non-hex, non-whitespace character) can optionally be inserted between bytes, eg:<br />

12ff0927_0045db08. The hexadecimal prefix 0x can also be included if desired.<br />

string – enter an ASCII string inside quotation marks, eg. "big top", "\007Alert ", "\r\n"<br />

Control characters may be inserted into strings using a backslash followed by three decimal digits representing the ASCII<br />

code, eg. \013 will insert a carriage return. To insert an actual backslash character, use \\. As a shortcut, carriage return,<br />

newline (CR-LF) and tab characters may be inserted using \r, \n and \t respectively.<br />

Note: If DeTransfer is used to send commands to <strong>CANgate</strong> then each backslash must be entered as \\ in the DeTransfer<br />

Send window. So if you want the string to contain an actual backslash character you would need to enter \\\\ in<br />

DeTransfer.<br />

Commands must be terminated by a carriage return or a semi-colon (;) character.<br />

Comments may be included using an apostrophe (') character. All characters after the apostrophe up until the end of the<br />

line will be ignored.<br />

Run Mode and Program Mode<br />

<strong>CANgate</strong> has two operational modes.<br />

Run Mode is the normal mode of operation. Following power-up, <strong>CANgate</strong> always starts in Run Mode.<br />

In Run Mode, all configured memory slots will receive and/or transmit their programmed CAN or GPS messages, and return<br />

data to the host system as required.<br />

Whilst in Run Mode, any of the commands described in the Command Reference (P16) may be entered. However, only<br />

Memory Slot #0's configuration may be changed. Commands that attempt to modify any of the other memory slots will be<br />

ignored – the only way to update these slots is to switch to Program Mode.<br />

Program Mode is entered by sending the BEGIN command. This command will erase all existing memory slots and prepare<br />

<strong>CANgate</strong> for receiving new definitions.<br />

In Program Mode, the CAN and GPS ports are not active. The only commands that are accepted in this mode are the slot<br />

definition commands – RECV, RECVE, SEND, SENDE, RECVJ, RQST, RQSTJ and GPS.<br />

These commands are prefixed by the number of the memory slot to define, eg:<br />

12 RECV 1 0x712 1 2<br />

will define memory slot #12.<br />

When all required memory slots have been defined, the END command will save all memory slot details (except Slot #0) to<br />

non-volatile flash memory and return to Run Mode.<br />

UM-0086-A2 <strong>CANgate</strong> User’s <strong>Manual</strong> Page 14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!