beautypg.com

Manual-25 – Rane SR 3 User Manual

Page 25

background image

Manual-25

The SR 3 always returns its address switch setting plus $80.

Note: Upon power-up of the SR 3, a status screen is displayed on the LCD display

that reports the switch setting. In firmware version >2.1, the status screen also displays

the firmware version and can be displayed any time by holding the encoder in for six

seconds. The status screen is displayed until the encoder is released. This feature is not

affected by the hardware lock, although it can be defeated by the software lock. See

ILK

command in the SR 3 Command Set for details.

<msgtype> The msgtype is a one byte set of flags indicating options, bit 7=MSB:

bit 0)

set = checksum is valid

bit 1)

set = there has been an error (response only)

bit 2-5) reserved, cleared to 0

bit 6)

always 1

bit 7)

always 0

If the controller wants the SR 3 to verify the checksum, it would send a value of

$41, or an ASCII ‘A’. If the controller wants the SR 3 to ignore the checksum, it would

send a value of $40, or an ASCII ‘@’. The SR 3 echoes back the <msgtype> it was

sent. In the case of an error, the SR 3 sets bit 1.

<devtype> The SR 3 device type value is $31, or an ASCII ‘1’. The SR 3 also ac-

cepts a value of $30, or an ASCII ‘0’, the universal device type used for polling. The

SR 3 always returns its device type of $31.

<checksum> The checksum is defined as the sum of the ASCII encoded values of

the <command/data> section. The sum is then masked with $007F to produce one

byte with the MSB set to zero.

The controller would send a valid checksum as defined above if it sent a value of

$41 for the <msgtype>. The SR 3 then verifies the sent checksum by calculating the

checksum from the data it received in the <command/data> section of the sent mes-

sage. On the other hand, if the controller sent a value of $40 for the <msgtype> the

SR 3 ignores the sent checksum. The controller must always send a checksum less than

or equal to $7F, even if it intends for the SR 3 to ignore it.

The SR 3 <checksum> response is based on the <msgtype> it was sent. If the SR

3 received a <msgtype> of $41, it returns a valid checksum (as defined) calculated

from it’s response data. If the SR 3 received a <msgtype> of $40, it returns zero.

<command/data> The general format is . The

commas are part of the structure and act as delimiters between the

ASCII encoded commands and data. Text string arguments are delimited with quotes

("String"). If the string argument contains quotes, an accent character (') placed in

the string argument will be interpreted by the SR 3 as a double quote character (").

The ASCII value for the accent char is $60, not to be confused with a single quote

character ('), ASCII value $27. For example: string argument: "A string that contains

'quotes'" is interpreted as: A string that contains "quotes".