background image

4 AT command set

The device's parameters can be altered by using the AT command set. The commands
are sent to the device by using the terminal program (HyperTerminal or similar) over
the serial RS232 port at the speed 9600bps with 8 data bits, no parity, 1 stop bit. The
modem device accepts the commands only in 

command 

mode. Changing the mode of

the device from 

data transfer

 to 

command

 can be achieved in two ways:

While turning on the modem, press and hold the SET button on the front
panel, – the device will start-up in the 

command

 mode.

If the device is already turned on and in the 

data transfer 

mode, the 

command

mode is entered by sending the array that consists of the character repeated
three times within the given time frame. Before and after the array, the pause
in sending must be made. The pause intervals before and after the sequence
must be of the same duration. The default character for this purpose is ASCII
plus sign. Therefore, to enter the 

command

 mode “+++” sequence ought to be

sent. The pause time interval is set in ms by using the ET command. The
default value is 1000 (or 1s). Bearing in mind the default setting, the 

command

mode is entered by sending the following sequence:  

pause 1s  "+++" pause 1s

In both cases the modem will respond with OK when the 

command 

mode is entered.

If SET button is used for entering  

command  

mode, serial port parameters will be

fixed: speed 9600 b/s, format 8 data, no parity, 1 stop bit. If sequence "+++" is used
for the same task, modem will keep data formats used during  

data transfer

 mode.

Each   AT   command   consists   of   the   command   itself   and,   optionally,   additional
parameters. At the end of each AT command, the Carriage Return (CR) character
must be sent. On keyboards, it is usually the new line or Enter key. The modem will
also accept the Line Feed (LF) character as well as CR LF and LF CR combinations.

The parameters can be entered in both the decimal and hexadecimal numeric systems.
For example, to set a network address both 

ATNA10779

 and 

ATNA0x2A1B 

can be

used.

By using the  

ATDC

  command,  all  set parameters and their  values can be listed.

Below   the   manufacturer   name   and   type   of   the   device,   the   frequency   range   and
firmware release date are listed. The device output, as a result of  

ATDC 

command, is

given in the following frame: 

Radio modem PRM4 868MHz /User's manual V1.6 / 24.05.2011

12

Содержание PRM4

Страница 1: ...DECODE Radio modem PRM4 868MHz User s manual v1 6 http www decode rs ...

Страница 2: ...gnaling lights 10 3 5 Jumpers 11 4 AT command set 12 4 1 Setup of the serial interface parameters 14 4 2 Setup of the radio interface 15 4 3 Command mode setup 16 4 4 Reduced power consumption mode setup 16 5 Firmware update 18 5 1 The procedure for writing the new firmware 18 6 Technical specifications 19 Radio modem PRM4 868MHz User s manual V1 6 24 05 2011 2 ...

Страница 3: ...ving of parameters which haven t been saved with ATWR command while exiting command mode New function introduced to keep the same bps and data format while entering command mode with sequence New function that set speed to 9600 bps and data format to 8N1 while entering command mode with SET pushbutton Bug related to same speed 9600 bps while entering command mode with SET pushbutton corrected Date...

Страница 4: ...hronous serial data between two or more PRM4 devices in point to point or point to multipoint configuration The RS 232 485 422 connection enables the implementation of the device into the existing systems without the need for additional equipment PRM4 Device The standard delivery contains the PRM4 device network power supply adapter for 230V mini omni directional antenna for ISM 868MHz band DB9 M ...

Страница 5: ...ed to identify the device inside a network The SA can take values between 0 and 255 inclusive Note that the SA must be set uniquely inside a network If a point to multipoint connection is required e g for master slave protocols used with SCADA software or PLC devices the destination address DA masking is used This way it is possible to mask a number of bits when comparing the DA and SA and consequ...

Страница 6: ...et The data is sent when there are no new data for a specified time interval after the last data has been received on the serial interface This time interval can be set by using the AT commands and it is referred to as the packetization timeout The default value of this parameter is set to 5ms In other words if communicating on 9600bps a 5 character pause will induce the modem to send the entire m...

Страница 7: ...n mode of operation can be adjusted to fit the various field configurations If the devices with the reduced power consumption are communicating only with a device in a normal mode the first group of devices is set to ATSM2 whereas the device operating in normal mode is set with ATSM1 On the other hand if all the devices are operating in low power consumption mode they ought to be set with ATSM3 Im...

Страница 8: ...voltage protections PRM4 back plate 3 2 Serial connector The connection of a serial interface is achieved by 9 pin female connector DB9F Depending on the position of the jumpers located on the circuit board the device can be connected with the following interfaces RS 232C RS 422 and RS 485 If the jumpers are set for RS 232C the signal layout matches the DCE side The following table shows the DB9F ...

Страница 9: ...upply input 2 On some devices with RS485 422 connection the signals have been denoted as A and B In that case the A signals should be connected to the signals of the modem Vice verse the B signals should be connected to the signals of the modem Radio modem PRM4 868MHz User s manual V1 6 24 05 2011 9 ...

Страница 10: ...bove figure illustrates the layout of the LED signaling lights The LED functions are shown in the following table Indicator Colour Description LED Power Green Constantly on when the power supply is connected the device s processor is active and if the reduced power consumption mode is set to 0 or 2 If this parameter is set to 1 or 3 this indicator flashes with the frequency of 8Hz LED Mode Red On ...

Страница 11: ...RS 422 485 4 wire no termination 1 2 J8 J9 2 3 RS 422 485 4 wire R termination 120Ω 1 2 J8 2 3 RS 422 485 4 wire T termination 120Ω 1 2 J9 2 3 RS 422 485 4 wire T and R termination 120Ω 1 2 2 3 The following figure illustrates the device s circuit board with the layout of the jumpers The jumpers J1 and J2 are used to set the device into the firmware upgrade mode Otherwise they ought to be in 2 3 s...

Страница 12: ... The default value is 1000 or 1s Bearing in mind the default setting the command mode is entered by sending the following sequence pause 1s pause 1s In both cases the modem will respond with OK when the command mode is entered If SET button is used for entering command mode serial port parameters will be fixed speed 9600 b s format 8 data no parity 1 stop bit If sequence is used for the same task ...

Страница 13: ...ORMAT 3 STOP BITS 0 PACKETIZATION TIMEOUT 5 RF FREQUENCY 4000 RF POWER 63 SOURCE ADDRESS 0 0x0 DESTINATION ADDRESS 0 0x0 NETWORK ADDRESS 0 0x0 ADDRESS MASK 255 0xFF ECHO MODE 1 SLEEP MODE 0 ESCAPE CHARACTER 43 ESCAPE TIMEOUT 1000 OK Radio modem PRM4 868MHz User s manual V1 6 24 05 2011 13 ...

Страница 14: ...tered by SET button 0 7 no par 1 7 odd par 2 7 even par 3 8 no par 4 8 odd par 5 8 even par 3 SB Stop Bits This command sets the number of stop bits on the serial interface for the data transmission mode 0 1 stop bit 1 2 stop bits 0 PT Packetization Timeout Time in ms from the last received data on the serial interface till the data in the output buffer is sent on the radio interface 1 1000 5 EC E...

Страница 15: ...n address The modem will regard all packets where the significant bits of the destination address match its source address The source address bits on positions where there are 1 in address mask are considered as significant bits 0 255 0 DA Destination Address The destination address is the source address of the modem to which the data is intended 0 255 0 NA Network Address The network address desc...

Страница 16: ... the device none DC Display Configuration This command displays the current configuration none 4 4 Reduced power consumption mode setup AT Command Description Parameter Default value SM Sleep Mode By using this command the reduced power consumption mode of operation can be adjusted to fit the various field configurations If the devices with the reduced power consumption are communicating only with...

Страница 17: ...ides on receiver turn on during the reduced power consumption mode Parameter is expressed in dBm Example 115 value determines that all signals above 115dBm should turn the receiver on to be received at the same time Signals weaker than 115dBm will be rejected 110 125 115 Radio modem PRM4 868MHz User s manual V1 6 24 05 2011 17 ...

Страница 18: ...e adapter for PRM 4 is DB9 female to DB9 male cable with the following pin connections DB9 female DB9 male pin 2 pin 8 pin 3 pin 7 pin 4 pin 4 pin 5 pin 5 pin 7 pin 3 Set the J1 and J2 into the 1 2 state The rest of the jumpers should be in a state corresponding for RS 232C serial connection according to the aforementioned table Connect the power supply Start the MSPFET load the prm4xxx hex using ...

Страница 19: ...ce 8 data None parity 1 stop bit 1200 2400 4800 9600 19200 38400 57600 115200 Serial connector DB9 DCE RS 232 Tx Rx RTS CTS DTR DSR DCD RI GND RS 422 Tx Tx Rx Rx GND 2W 4W selectable RS 485 Tx Tx Rx Rx GND 2W 4W selectable Termination 120 Ohm for RS 422 and RS 485 selectable Settings through AT command set Addressing scheme 65536 network addresses 256 source addresses Network configuration Point t...

Страница 20: ...Contact Decode Data Communications Address 12G Zorana Djindjica Blvd 11070 Belgrade Serbia Web http www decode rs Email office decode rs Tel Fax 381 11 3110027 ...

Отзывы: