GTCO Roll-Up II - Users Guide User Manual

Page 48

Advertising
background image

Roll-Up II 48

2. Send the command one character at a time. The Controller will respond by echoing

each character. Waiting for the character to be echoed will ensure that the
Controller has received the character and is waiting for the next one.

3. Once the command is complete, send a <CR> or <ESC> (hex 1B) to exit command

mode.

4. If you send a <CR>, go into a loop and grab one byte at a time until a > prompt is

received. Then continue sending commands as described in step 2.

Programming Example: To Send Version Command and Display Results

The QBASIC program interacts with the Roll-Up II in Command Mode. In this example, the
program activates Command Mode, sends the VR command and displays the resulting
firmware version transmitted by the Roll-Up II.

1. Configure Roll-Up II for 9600, N, 8, 1, GTCO ASCII, Point (SuperSet 42).
2. Enter and run this QBASIC program:

Advertising