Adcom A720, A723 manual Serial communication protocol, General format of a command

Page 25

CHAPTER 4

Serial communication protocol

25

Serial communication protocol

This protocol is based on a master sending commands and a node answering; the whole communication is conducted in plain ASCII, as strings. When exchanging numbers, they are represented in decimal format. All commands are terminated with a CR/LF combi- nation. All responses (answers) are terminated with the # character.

General format of a command

The commands have the following format:

ID Command Param1 Param2 ... ParamN

ID is the destination device. If you include an ID as part of a command, the node checks whether ID=ownID. If it does, the node executes the command on itself. If the ID is not the node’s ID, the node executes the command on a remote device, if such an ID exists. If the ID is missing, this implies that the command is addressed locally.

Note: Not all the commands can be relayed remotely.

Command is the command proper, which can be composed of a variable string of characters (for example, SLOT). Each node can implement a set of commands depending on the functionality of the node itself. However, as a minimum requirement, a node recognizes the CMDS command, which returns a list with the commands recognized by the node.

Param1 Param2 ... ParamN represent the parameters, which are command dependent. If you type no parameters when you issue a command, it is the equivalent of querying for information (the GET version of a command). If you type parameters, you are issuing the SET version of a command and are setting the command to the parameters you typed.

General format of an answer

The answers have the following format:

ID Command Result1 Result2 ... ResultN ErrResult #

ID is the answering device. If a command was further routed, it is the ID of the end device. The answer must always contain the ID on return.

Image 25
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 Maintaining and servicing the RTU RTU batteryConfiguring an addIT RTU in the addVANTAGE software Changing the battery Chapter Chapter Performing Advanced Functions Receiver connector Understanding connectorsDevice series Pins on an I/O Connector Top View RTU connectorsConfiguring the devices AddIT RTU Power Connector Top ViewSerial communication protocol General format of a commandGeneral format of an answer Series 1 devices Using terminal commandsSET Ownid nnnn SET PMP bl bh SET OwnidSET PMP 63 SET Slot 3600SET Freq 467112500 SET Freq freq stepSET Rssi value SET Rssi Querying the actual configuration parametersCmds Series 2 and 3 devicesFreq 433925000 FreqFreq Freq 433925000 25000Slot PMP 193 cm PMP 65 72193 CM 1 SSTRepl DEVDEL Repl 5667DEL Data b1 b2 b3 ... bn Data 5666 12/12/1998Dd mm yyyy hh mm ss si ft d1 d2 ... dn dd mm yyyy Dn csFrame 38 description Frame 39 description Data 6367 30/4/1999Imme DataRoute Info FdevTemp = internalTem p 146 900 Info 255 0 18/4/1999 21511 1.3 0 0 0 91Anlg 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 RX 6789 Port 7/5/1999 183422193 TX #234 BA 6789 B#7851 BA 15190 BVER Blst 30/8/2001 160341VER 1.3 VER 2.0Notifications Command line interpreter Returned errors listDevice descriptors and storage handler Real time clockNotifications 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 Credits Credits and ColophonColophon