|
Serial Function Document
The serial port will accept ASCII input and attempt to parse the
input into an executable command. The command string consists of
leaders, functions, delimiters, parameters and terminators.
Example Command Strings:
1. Function code.
2. Function code and parameters:
- >#58 76 [Remote Key Code 'VIEW']
- >#36 680 [Audio_Right_Frequency 6.80 MHz]
- >#59 1255 "WEST" [Longitude 125.5 WEST]
- >#30 "ESPN" [Name Channel "ESPN"]
- >#30 "GALAXY 5" [Name Satellite "GALAXY 5"]
- >#105 "CHAP. UNIT 4" [Write "CHAP. UNIT 4"
to scratch pad]
- >#107 0 [Autotune Dish Position]
Example Command Strings:
Leader:
- Pound sign "#"
Function:
- Integer 234
Parameter:
- Integer 1546
- String "ESPN" NOTE: There is a 12 character limit
on names.
Delimiter:
- End of a parameter (SPACE, TAB, COMMA).
Terminator:
- End of command string (CR, SEMICOLON).
Description of Output
Good Message: Every character is echoed back out the serial port.
Error Condition: If a message is invalid a question mark '?' is
echoed back out the serial port.
NOTE: ALL FUNCTION CODE NUMBERS ARE SUBJECT TO CHANGE WITHOUT NOTICE!!!
Function Code Commands Listed by Name:
| Code |
Command |
Parameters |
| 78 ** |
Add Channel |
0=Video, 1=Audio) |
| 106 * |
Add 'C' Band Satellite |
(0=Horizontal, 1=Vertical...1st channel) |
| 41 |
Audio Deemphasis |
(0=flat, 1=50us, 2=75us, 3=j17) |
| 39 |
Audio Mode |
(0=stereo, 1=mono) |
| 18 |
Audio, Return all |
n/a |
| 107 * |
Autotune |
(0=Dish position, 1=Polarity, 2=Freq) |
| 40 |
Bandwidth Audio |
(0=narrow, 1=normal, 2=wide) |
| 43 |
Bandwidth IF |
(0=15Mhz, 1=27Mhz, 2=32Mhz) |
| 108 * |
Calculate Sat Position |
("Sat") ...Set longitude first |
| 10 |
Channel Down |
n/a |
| 50 |
Channel Groups |
(0-255) ...'Favorite group bits' |
| 11 |
Channel Up |
n/a |
| 23 |
Channel, Return all |
n/a |
| 24 |
Channel, Return one |
n/a |
| 67 g |
Clock Set |
(Yr Yrday Hour Min Sec) |
| 76 |
Comm RcvAddress, Set |
(0-99) |
| 57 |
Contrast |
(0=low, 1=normal, 2=high, 3=flat) |
| 15 |
Database, Get from Rcvr |
n/a ...'Download in binary' |
| 20 |
Database, Get from Rcvr |
n/a ...'Listing in ascii' |
| 16 |
Database, Send to Rcvr |
n/a ...'Upload in binary' |
| 44 |
Decoder Out |
(0=flat, 1=deemph, 2=lowpass, 3=dmac) |
| 12 ** |
Dish Status |
n/a ...returns dish status and position |
| 82 ** |
Event Cancel |
(1-25) |
| 65 g |
Event Load |
(Yr Yrday Hour Min LenMin "Sat" "Chan"
"**")
(**=S -Single, **=D -Daily, **=W -Weekly) |
| 27 |
Event Status |
n/a |
| 35 |
Frequency Audio Left |
(500-950 Mhz) |
| 36 |
Frequency Audio Right |
(500-950 Mhz) |
| 34 |
Frequency Video |
(9500-20500 = 950.0-2050.0 Mhz) |
| 72 g |
Go To Audio Name |
("string") |
| 71 g |
Go To Channel Name |
("string") |
| 73 g |
Go To Channel Number |
(0-99) |
| 51 |
Go To Dish Position |
(0-9999) |
| 70 g |
Go To Satellite Name |
("string") |
| 77 **g |
Go To Sat. Number |
(01-nn) |
| 75 ** |
Home Set |
("Sat" "Chan" Hour Min MinTimeout) |
| 52 |
Limit East |
(0-9999) |
| 53 |
Limit West |
(0-9999) |
| 46 |
LNB Voltage |
(0=17v, 1=13v) |
| 59 |
Longitude |
(0-1800) ("EAST", "WEST") ...'180.0' |
| 55 |
Mute |
(0=Off, 1=On) |
| 30 |
Name Current Channel |
"string" |
| 29 |
Name Current Satellite |
"string" |
| 79 ** |
Name Favorite Group |
(1-7) "string"(no string returns grp. name) |
| 31 |
Number Channel |
(0-99) |
| 14 |
Part Number |
n/a |
| 45 |
Polarity |
(80-220) |
| 68 |
Polarizer |
(0=periodic, 1=continuous, 2=ferrite) |
| 54 g |
Power |
(0=Off, 1=On) |
| 26 |
Qualifier Return Data |
n/a |
| 74 |
Qualifier Set Addr |
(L1 L2 L3 DevNbr Q1 Q2 Q3 F1 ... F10) |
| 63 |
Realign Dish Position |
(0-9999) |
| 25 |
Return A2D Values |
n/a ... Signal/Noise |
| 103 ** |
Satellite Up |
n/a |
| 104 ** |
Satellite Down |
n/a |
| 21 |
Satellite, Return all |
n/a |
| 22 |
Satellite, Return one |
n/a |
| 32 |
Satellite, Set Position |
(0-9999) |
| 105 * |
Scratch Pad Message |
("string") |
| 100 g |
Screen Message |
(1-11) "string" (">string" temporary
msg) |
| 60 |
Source Audio |
(0=sat, 1=external) |
| 62 |
Source Toggle |
(0=sat, 1=external) |
| 61 |
Source Video |
(0=sat, 1=external) |
| 47 |
Switch A |
(0=off, 1=on) |
| 48 g |
Switch B |
(0=off, 1=on) |
| 49 |
Sync |
(0=off, 1=on, 2=auto) |
| 17 |
Time in GMT |
n/a |
| 80 |
Tuner A/B input |
(0=A, 1=B) |
| 37 |
Video Format |
(0=ntsc, 1=pal, 2=secam) |
| 38 |
Video Invert |
(0=off, 1=on) |
| 58 |
View/clear screen |
(76-View) |
| 56 |
Volume |
(0-37) |
* Function codes with a ( * ) must have firmware with System
Version: 100C 970129 67D or higher. DO NOT INCLUDE THE ( * ) IN
THE COMMAND LINE!
** Function codes with a ( ** ) must have firmware with System
Version 100C 970422 DE77A or higher. DO NOT INCLUDE THE ( ** ) IN
THE COMMAND LINE!.
g Global Command. Must have System Version 100C 940422 DE77A
or higher and be registered with Chaparral for enabled global command
usage. DO NOT INCLUDE THE ( g ) IN THE COMMAND LINE!
DATABASE NAME (#14)
- Database Name ("100C 970131")
GLOBAL INFORMATION (#22)
- gbl: 0 1 1 27 5000 4280 5220 01-01-95 001 00:27:15 GMT
- DishStatus (0=Done, 1=Moving, 2=Brake, 3=Error)
- Power (0=Off, 1=On)
- Mute (0=Off, 1=On)
- Volume (0-37)
- DishPosition (0-9999)
- East Limit (0-9999)
- West Limit (0-9999)
- Date (01-01-95)
- Day of Year (1-365)
- GMT Time (00:27:15)
SATELLITE
- sat: "G2 " 4473 074.0W
- Name "G2 "
- Database position (0-9999)
- Longitude (0-1800E/W) ...'74.0ø WEST'
VIDEO CHANNEL (#24)
- chn: 01 "SPORTS NY " 14300 100 680 680 x58 xA9 x60
x04 x00
- Number (1-99)
- Name "SPORTS NY "
- If Freq (950.0 - 2250.0 Mhz)
- Polarity (80-220)
- Left Audio Freq (500-950 Mhz)
- Right Audio Freq (500-950 Mhz)
- Data 0 (x00-xFF)
- Data 1 (x00-xFF)
- Data 2 (x00-xFF)
- Data 3 (x00-xFF)
- Group (x00-x0F)
AUDIO CHANNEL (#18)
- aud: 21 "SOFT ROCK " 10300 095 522 540 x48 x08 x60
x04 x00
- Number (1-99)
- Name "SPORTS NY "
- If Freq (950.0 - 2250.0 Mhz)
- Polarity (80-220)
- Left Audio Freq (500-950 Mhz)
- Right Audio Freq (500-950 Mhz)
- Data 0 (x00-xFF)
- Data 1 (x00-xFF)
- Data 2 (x00-xFF)
- Data 3 (x00-xFF)
- Group (x00-x0F)
|