All descriptions in this PC CONTROL COMMANDreference are for the users convenience only.KENWOOD will not support or warrantee thisdocumentation in any way.
HARDWAREDESCRIPTION
The TS-480 transceiver uses a full-duplex,asynchronous, serial interface for communicatingthrough the male 9-pin D-sub connector. Each datais constructed with 1 start bit, 8 data bits, and 1 stopbit (4800 bps must be configured as 2 stop bits). Noparity is used. The pinout and the pin functions of theCOM connector on the transceiver are shown below:
Front view
12345
9876
COM
COM
PinNo.
RXD:Transmit data is serial data transferred fromthe transceiver to the computer.
TXD:Receive data is serial data transferred fromthe computer to the transceiver.
GND:Signal ground pin
RTS:This signal is applied to the transceiver. It is
used to inhibit transmit data from the transceiverwhen the computer is not ready to receive data.Transmit data is inhibited when the level is low.
CTS:This signal is applied from the transceiver. Itis used to inhibit transmit data from the computerwhen the transceiver is not ready to receive data.Transmit data is stopped when the level is low.
COMPinName
(Ref.:Computer)
1
2
3
4
5
6
7
8
9
NC
RXD
TXD
NC
GND
NC
RTS
CTS
NC
Function
(Ref.:Transceiver)
—
Transmit data
Receive data
—
Signal ground
—
Receive enable
Transmit enable
—
I/O
—
Output
Input
—
—
Input
Output
—
CONTROLOPERATION
Most computers handle data in the form of “bits” and“bytes”. A bit is the smallest piece of information thata computer can handle. A byte is composed of eightbits. This is the most convenient form for mostcomputer data. This data may be sent in the form ofeither serial or parallel data strings. The parallelmethod is faster but more complicated, while theserial method is slower and requires less complicatedequipment. The serial form is, therefore, a lessexpensive alternative.
Serial data transmission uses time-division methodsover a single line. Using a single line also offers theadvantage of reducing the number of errors due toline noise.
Only 3 lines are required theoretically for control ofthe transceiver via the computer:
•Transmit data
•Receive data
•Ground
From a practical standpoint, it is also necessary toincorporate some means of controlling when this datatransfer will occur. The computer and transceivercannot be allowed to send data at the same time!The required control is achieved by using the RTSand CTS lines. To interface between the TS-480transceiver and a PC, use a commercially availablecable with a DB-9 female connector at each end.Each connector pin must be connected to the samepin number at the other end (a straight cable).
To control the transceiver from a PC, utilize thegeneral purpose terminal program to sendcommands to the tranceiver. The transceiverresponds the command accordingly.
For example, the transceiver is placed into thetransmit mode whenever the character string “TX;” issent from the computer. The character string “TX;” iscalled a PC control command.
You can further develop or create a script of thecommands using a macro function of the terminalprogram. Kenwood also provides the remote controlprogram, ARCP-480 at our Web site. You candownload the program for free and try it out on yourPC. Access http://www.kenwood.com/i/products/info/amateur.html and follow the instructions.
1
PCCONTROLCOMMAND
Error
Message
ReasonforError
• Command syntax was incorrect.
• Command was not executed due to the current status of the transceiver (even though the command syntax was correct).
A communication error occurred such as an overrun or framing error during a serial data transmission.
Receive data was sent but processing was not completed.
?;
E;
O;
Note: Occasionally this message may not appear due to microprocessor transients in thetransceiver.
COMPUTERCONTROLCOMMANDS
A computer control command is composed of analphabetical command, various parameters, and theterminator that signals the end of the controlcommand.
EXAMPLE: Command to set VFO A to 7 MHz
00007000000FA
Parameters
Alphabetical command
Commands can be classified as shown below:
Inputcommand(Input to the
transceiver)Computercontrolcommands
Outputcommand(From the
Answer command(Transmits a condition)
transceiver)
For example, note the following in the case of the FAcommand (Frequency of VFO A):
•To set the frequency to 7 MHz, the following
command is sent from the computer to thetransceiver:
“FA00007000000;”(Set command)
•To read the frequency of VFO A, the following
command is sent from the computer to thetransceiver:
“FA;”(Read command)
•When the Read command above has been sent,
the following command is returned to thecomputer:
“FA00007000000;”(Answer command)
Note:
◆
Do not use the control characters 00 to 1Fh since they are eitherignored or cause a “?” answer.
◆
Program execution may be delayed while turning the control rapidly.
;
Terminator
Set command(Sets a particular condition)
Read command(Reads an answer)
Tuning
■AlphabeticalCommands
A command consists of 2 alphabetical characters.You may use either lower or upper casecharacters. The commands available for thistransceiver are listed in the PC Control CommandTables from page 3.
■Parameters
Parameters are used to specify informationnecessary to implement the desired command.The parameters to be used for each command arepredetermined. The number of digits assigned toeach parameter is also predetermined. Refer tothe Computer Control Commands and the PCControl Command Tables to configure theappropriate parameters.
When configuring parameters, be careful not tomake the following mistakes.
(correct parameter: “IS+1000”)
IS1000;Not enough parameters specified
(No direction given for the IF shift)
IS+100;Not enough digits
(Only three frequency digits given)
IS
+1000;Unnecessary characters between
parameters
IS+10000;Too many digits
(Five frequency digits given)
Note:
If a particular parameter is not applicable to thistransceiver, the parameter digits should be filled using anycharacter except the ASCII control codes (00 to 1Fh) and theterminator (;).
■Terminator
To signal the end of a command, it is necessary touse a semicolon (;). The digit where this specialcharacter must appear differs depending on thecommand used.
■ErrorMessages
In addition to the Answer command, thetransceiver can send the following errormessages.