Kramer Electronics SP-14 User Manual

Page 15

Advertising
background image

3.2.2.2 Success Reply Packet with return value
For a function that returns a numeric value the reply packet of a successful call will look like this:

1

2

3

4

5

6

7

8

9

‘O’

‘K’

‘:’

value

Where value is the requested value represented in base 64.

3.2.2.3 Success Reply Packet with string returned
For a function that returns a string the reply packet of a successful call will look like this:

1

2

3

4

… n

‘O’

‘K’

‘:’

ASCII characters …

The string length will vary. The maximum length of string to expect is 100 characters. Therefore, it is

recommended to use a buffer of 103 bytes minimum for receiving this packet.

3.2.2.4 Failed Function (Error) Reply Packet
All function may fail due to errors occurring, in this case an error will be returned.

The reply packet will look like this:

1

2

3

4

5

6

7

8

9

10 11 12 13 14 15

‘E’

‘R’

‘:’

error

errorLL

Where

error

is the major error number represented in base 64.

errorLL

is the minor error number represented in base 64.

This table lists the major error codes.
Identifier

Value

Base 64

Description

avParamErr_none

0

AAAAAA OK, no error

1

AAAAAB Undisclosed

avParamErr_param

2

AAAAAC Parameter invalid or out-of-range.

avParamErr_func

3

AAAAAD Function is not implemented.

4

AAAAAE Undisclosed

5

AAAAAF Undisclosed

6

AAAAAG Undisclosed

7

AAAAAH Undisclosed

8

AAAAAI

Undisclosed

9

AAAAAJ Undisclosed

10

AAAAAK Undisclosed

11

AAAAAL Undisclosed

avParamErr_remtUnknown

12

AAAAAM Unknown remote command.

avParamErr_internal

13

AAAAAN Function failed error in errorLL.

Unlisted or undisclosed major error numbers received suggest a problem with the firmware or an

update to this protocol. The minor error number is only useful in debugging firmware and is therefore

undisclosed.

Advertising