Adcom manual A720B and A723, but see also the comments in Remote on

Page 47

 

CHAPTER 4

 

Using terminal commands

APPLIES TO

A720B and A723, but see also the comments in “Remote” on

 

page 49.

DESCRIPTION

A complex command acting upon the I/O ports of a device.

PARAMETERS

A control byte specifying the command, the bit of the port the

 

command is acting on, and two 16-bit parameters, depending on

 

the control byte; for some commands, one or both of them may be

 

missing. However, if they are needed for a certain command but

 

not given, null values are implied.

 

The control byte’s significance is shown in Figure 14.

47

Command Code

Port Number

Figure 14. Control Byte Layout

The Port Number selects a the port that will be affected by the command. For the A720/A723, only 0000 and 0001 are accepted.

The Command Code specifies the operation that will be applied to the selected port.

Table 5 shows the command codes definitions.

Table 5. Command Code Definitions

Code

Description

Parameters

Returns

0000

RDP – Read Data Port. This command reads the

None

A 16-bit integer and the

 

whole 16-bit port and returns its value; the Port

 

result (OK or ERROR).

 

Number has no significance for this command.

 

 

 

 

 

 

0001

RDDR – Read Data Direction Register. This com-

None

A 16-bit integer and the

 

mand reads the whole 16-bit Data Direction

 

result (OK or ERROR).

 

Register and returns its value; the Port Number

 

 

 

has no significance for this command.

 

 

 

 

 

 

0010

CAI – Configure the port specified by Port Num-

The port number.

Result (OK or ERROR).

 

ber as input (acts upon the Data Direction Regis-

 

 

 

ter).

 

 

 

 

 

 

0011

CAO – Configure the port specified by Port

The port number.

Result (OK or ERROR).

 

Number as output (acts upon the Data Direction

 

 

 

Register).

 

 

Image 47
Contents ADC N ADC N Contents Contents What are addIT devices? IntroductionInstallation issues Italics ConventionsChapter Opening the packages Using the Base StationInstalling the receiver Installing the base stationAddIT Power Supply Installing the power supplyConfiguring the software Replacing the fuseUsing the RTU Shows an addIT RTU Installing the RTUShows what a typical RTU field installation looks like More about the LED tool Configuring an addIT RTU in the addVANTAGE software RTU batteryMaintaining and servicing the RTU Changing the battery Chapter Chapter Performing Advanced Functions Device series Understanding connectorsReceiver connector Pins on an I/O Connector Top View RTU connectorsConfiguring the devices AddIT RTU Power Connector Top ViewGeneral format of an answer General format of a commandSerial communication protocol SET Ownid nnnn Using terminal commandsSeries 1 devices SET Slot 3600 SET OwnidSET PMP bl bh SET PMP 63SET Rssi value SET Freq freq stepSET Freq 467112500 SET Rssi Querying the actual configuration parametersCmds Series 2 and 3 devicesFreq 433925000 25000 FreqFreq 433925000 FreqSlot PMP SST PMP 65 72193 cm 193 CM 1Repl DEVDEL Repl 5667DEL Dn cs Data 5666 12/12/1998Data b1 b2 b3 ... bn Dd mm yyyy hh mm ss si ft d1 d2 ... dn dd mm yyyyFrame 38 description Frame 39 description Data 6367 30/4/1999Route DataImme Info FdevTemp = internalTem p Anlg Info 255 0 18/4/1999 21511 1.3 0 0 0 91146 900 Code Description Parameters Returns Sampling methods are defined by three bits, as follows Return result depends on the control byte see table. However A720B and A723, but see also the comments in Remote on Performing Advanced Functions Command Code Definitions Port 193 TX 6789 Port 7/5/1999 183422193 RX 15190 B 6789 B#234 BA #7851 BAVER 2.0 Blst 30/8/2001 160341VER VER 1.3Notifications Real time clock Returned errors listCommand line interpreter Device descriptors and storage handlerNotifications Chapter Parameter Min Typ Max Unit Appendix. SpecificationsTransmitter all measurements made on a 50 Ω resistive load Chapter Chapter Index INFO, 41 OWNID, 26 PMP PMP What a base station contains Xmit Colophon Credits and ColophonCredits