Rs-232c protocol, Hardware specification, Software specification – Teac T-R680RS User Manual

Page 14: Rx format, Tx format

Advertising
background image

14

Hardware Specification

Protocol

Baud rate: 38400 bps
Data Bit: 8 Bits
Stop Bit: 1 Bits
Parity: None

Connector & Pin Defined

T-R680RS Connector: 9-pin female DB
PC Connector: 9-pin male DB

PC

T-R680RS

Pin 2 RxD —— TxD Pin 2
Pin 3 TxD —— RxD Pin 3
Pin 5 Gnd —— Gnd Pin 5

Software Specification

Rx Format

1. Flow Control: No
2. Rx Format:

IR System Code 1 + IR System Code 2 + Key Code +
CheckSum
Checksum = IR System Code 1 + IR System Code 2 + Key
Code

3. Each of tx format code needs the 100ms of the partition

Function

Code

Remark

Power

“\x81\x73\x07\xfb”

Power on/off toggle

Power On

“\x81\x73\x4b\x3f”

Power Off

“\x81\x73\x4c\x40”

AM Band

“\x81\x73\x4d\x41”

FM Band

“\x81\x73\x4e\x42”

FM mode

“\x81\x73\x61\x55”

Stereo/Mono toggle

Tuning Up

“\x81\x73\x0c\x00”

Tuning Down

“\x81\x73\x0d\x01”

Tuning Mode

“\x81\x73\x4a\x3e”

Preset/Tuning toggle

Direct Tuning

“\x81\x73\x47\x3b”

Tuner Preset 1

“\x81\x73\x17\x0b”

Tuner Preset 2

“\x81\x73\x18\x0c”

Tuner Preset 3

“\x81\x73\x19\x0d”

Tuner Preset 4

“\x81\x73\x1a\x0e”

Tuner Preset 5

“\x81\x73\x1b\x0f”

Tuner Preset 6

“\x81\x73\x1c\x10”

Tuner Preset 7

“\x81\x73\x1d\x11”

Tuner Preset 8

“\x81\x73\x1e\x12”

Tuner Preset 9

“\x81\x73\x1f\x13”

Tuner Preset 0

“\x81\x73\x40\x34”

Memory

“\x81\x73\x63\x57”

Tuner Autosave “\x81\x73\xcd\xc1”
Time Mode

“\x81\x73\x62\x56”

Timer

“\x81\x73\x60\x54”

Sleep

“\x81\x73\x41\x35”

Echo On

“\x81\x73\xce\xc2”

Enable T-R680RS

sends out the display message(default)

Echo Off

“\x81\x73\xcf\xc3”
Disable T-R680RS sends out the display message

DeviceID

“\x81\x73\xff\xf3” Echo “\x81\x73\xff\xf3”

BIT 7

ICON BIT MAP 0

*

*

*

*

*

*

*

*

BIT 6

BIT 5

BIT 4

BIT 3

BIT 2

BIT 1

BIT 0

BIT 7

ICON BIT MAP 2

*

*

*

*

*

*

TIMER

SLEEP

BIT 6

BIT 5

BIT 4

BIT 3

BIT 2

BIT 1

BIT 0

BIT 7

ICON BIT MAP 1

TIME

MARK

AUTO

KHz

Frequency

dot

MHz

STEREO TUNED

BIT 6

BIT 5

BIT 4

BIT 3

BIT 2

BIT 1

BIT 0

BIT 7

ICON BIT MAP 3

*

*

*

*

PRESET PRESET

CH.

*

MEMORY

BIT 6

BIT 5

BIT 4

BIT 3

BIT 2

BIT 1

BIT 0

Tx Format

T-R680RS to PC Protocol
Flow Control: No
Data transferring through T-R680RS to PC are always with the
following “Package” structure.
Protocol: Head + Tx Type + Icon Bit Map + Main Display
Data + Channel Display Data + Checksum

Head(1 byte): 0xcd
Tx Type(1 byte): 0 , 40, 41
Icon Bit Map( 4 byte): HEX code
Main Display Data( 8 byte): ASCII data
Channel Display Data(2 byte): ASCII data
Checksum(1 byte): Head + Tx Type + Icon Bit Map + Main
Display Data + Channel Display Data

Basic Tx commands are categorized as below:

1. Tx Type 40

Code: 0xcd + 0x28 + 0x00 + 0xf5
Description: T-R680RS send out Power Off Command

2. Tx Type 41

Code: 0xcd + 0x29 + 0x00 + 0xf6
Description: T-R680RS send out Power On Command

3. Tx Type 0

Code: Head + Tx Type + Icon Bit Map + Display String +
Channel Data + Checksum
Description: T-R680RS send Display Windows String
Command

Explain the meaning of delivering the data format below

ICOM BIT MAP

Show the ICON of the main display

*: not used

RS-232C Protocol

Advertising