background image

HF2111  GPRS  Serial Server  User  Manual 

Shanghai High-Flying Electronics Technology Co., Ltd  

21/29 

 

Query  Operation 

 

   

AT+SOCKB<CR>

 

 

   

+ok=<protocol,port,IP,mode><CR><LF><CR><LF>

 

 

Set Operation 

AT+SOCKB=<protocol,port,IP,mode><CR> 

 

 

 

+ok<CR><LF><CR><LF>

 

 

Parameters: 

 

protocol: 

 

NONE:  none  setting, clear  current  setting. 

 

TCP 

 

UDP 

 

port: protocol  port ID:  Decimal  digit and  less than  65535 

 

IP: S

erver’s  IP address or domain name 

 

mode:  Connectiontype 

 

LONG:  long  link connection 

 

SHORT:  short link connection. 

4.2.2.16. 

 

AT+SOCKC 

 

Function:  Set/Query SOCK  C network  protocol  parameters,  Setting is valid  after 
reset. Support  SMS config. 

 

Format: 

 

Query  Operation 

 

   

AT+SOCKC<CR>

 

 

   

+ok=<protocol,port,IP,mode><CR><LF><CR><LF>

 

 

Set Operation 

AT+SOCKC=<protocol,port,IP,mode><CR> 

 

 

 

+ok<CR><LF><CR><LF>

 

 

Parameters: 

 

protocol: 

 

NONE:  none  setting, clear  current  setting. 

 

TCP 

 

UDP 

 

port: protocol  port ID:  Decimal  digit and  less than  65535 

 

IP: Server’s  IP address or domain name 

 

mode:  Connectiontype 

 

LONG:  long  link connection 

 

SHORT:  short link connection. 

4.2.2.17. 

 

AT+TCPALK 

 

Function:  Query  if SOCK A TCP  link already  build-up; 

 

Format: 

AT+TCPALK<CR>

 

+ok=<sta><CR><LF><CR><LF> 

 

Parameters: 

 

sta.: if module  already  setup  TCP  link; 

 

on: TCP  link setup; 

 

off:  TCP  link not  setup; 

4.2.2.18. 

 

AT+TCPBLK 

 

Function:  Query  if SOCK A TCP  link already  build-up; 

 

Format: 

AT+TCPBLK<CR>

 

+ok=<sta><CR><LF><CR><LF> 

 

Parameters: 

Summary of Contents for HF211

Page 1: ...viewof Characteristic Support Four Frequency Bands Global Standard 850 900 1800 1900MHz Support GSM GPRS No 3G Network and 2G 3G 4G CMCC or CUCC SIM Card Support Max 3 channel TCP UDP Support Multiple...

Page 2: ...SerialTool 11 3 1 Description 11 3 2 UI 11 3 3 Operation Steps 12 4 AT INSTRUCTION INTRODUCTION 14 4 1 Configuration Mode 14 4 1 1 Switch to Configuration Mode 14 4 2 AT Instruction Set Overview 15 4...

Page 3: ...2 2 27 AT GVER 23 4 2 2 28 AT GCID 23 4 2 2 29 AT CIMI 24 4 2 2 30 AT CGSN 24 4 2 2 31 AT GSLQ 24 4 2 2 32 AT LOGIN 24 4 2 2 33 AT MODBUSPROTO 25 4 2 2 34 AT SCRIPTUART 25 4 2 2 35 AT MOVESCRIPT 25 5...

Page 4: ...h to Configuration Mode 14 Figure 8 AT H Instruction for Help 15 LIST OF TABLES Table1 HF2111 Basic Parameters 5 Table2 HF2111 External Interface 6 Table3 RS232 Interface 7 Table4 RS422 Connectioin 8...

Page 5: ...0 GSM900 Class 4 2W DCS1800 PCS1900 Class 1 1W Application AT Command Network Protocol TCP UDP Max Link 3 SIM Card 1 8V 3V Antenna Interface SMA female 50 Hardware Parameter Port Interface 1 RS232 RS4...

Page 6: ...ctronics Technology Co Ltd 6 29 1 2 Hardware Introduction Figure 1 HF2111 Appearance 1 2 1 Interface Description Table2 HF2111 External Interface Function Name Description External Interface RS232 RS2...

Page 7: ...al port is male needle RS232 voltage level can connect to PC directly Pin Order is cosistent with PC COM port Use cross Cable connected with PC 2 3 cross 7 8 cross 5 5 direct see the following table f...

Page 8: ...nsfer Data RX Receive Data RX Receive Data Table4 RS422 Connectioin 1 2 5 Mechanical Size HF2111 device physical size as follows Figure 3 HF2111 Mechanical Dimension 1 2 6 Order Information Acorrding...

Page 9: ...Serial Server User Manual Shanghai High Flying Electronics Technology Co Ltd 9 29 Figure 4 HF2111 Production Code Definition 1 2 7 Package Information 1 HF2111 1 5V 1A Power Adapter 1 RS232 Cable 1 G...

Page 10: ...c network It is suggested to use build in TCP IP protocol stack to achieve remote control and monitor through UDP TCP connection with server Figure 5 GPRSwireless network 2 2 Work Mode 2 3 1 Support s...

Page 11: ...RS422 interface 3 2 UI The following is a note on the interface of this tool in Chinese Computer serial port parameters Serial number Refresh Baud rate Data bit Check bit Stop bit Disable serial port...

Page 12: ...quipment upgrade confirm Close 3 3 OperationSteps a Click IOTSerialTool exe to open the tool b Set tool serial parameters and click open the serial product default parameter is 115200 8 N 1 c Click in...

Page 13: ...HF2111 GPRS Serial Server User Manual Shanghai High Flying Electronics Technology Co Ltd 13 29...

Page 14: ...truction set which cover all web page setting function 4 1 1 Switch to Configuration Mode Two steps to finish switching from transparent transmission mode to configuration mode UART input after produc...

Page 15: ...terminal also can program the AT Instruction to script User can also input AT H to list all AT Instruction and description to start Figure 8 AT H Instruction for Help 4 2 1 Instruction Syntax Format 4...

Page 16: ...appened CR ASCII 0x0d LF ASCIII 0x0a Error Code Table5 Error Code Describtion Error Code Description 1 Invalid Command Format 2 Invalid Command 3 Invalid Operation Symbol 4 Invalid Parameter 5 Operati...

Page 17: ...uery heartbeat parameters LOGIN Set Query register data MODBUSPROT O Set Query Modbus RTU to Modbus TCP function Upgrade Instruction Set UPGRADE Upgrade Firmware GPRS Instruction Set GSLQ Query GPRS s...

Page 18: ...information Format Query Operation AT APPVER CR ok ver CR LF CR LF Parameters ver Module custmized software version information 4 2 2 5 AT RELD Function module restore to factory default setting Forma...

Page 19: ...arity flowctrl CR ok CR LF CR LF Parameters baudrate 1200 1800 2400 4800 9600 19200 38400 57600 115200 data_bits 8 stop_bits 1 2 parity NONE EVEN ODD Flowctrl CTSRTS NFC No hardware flow control FC ha...

Page 20: ...CR ok None CR LF CR LF ok data_len data CR LF CR LF Parameters data_len head data length data head data if need hex format add blank character Ex 68 79 90 Support SMS config 4 2 2 14 AT SOCKA Function...

Page 21: ...ting is valid after reset Support SMS config Format Query Operation AT SOCKC CR ok protocol port IP mode CR LF CR LF Set Operation AT SOCKC protocol port IP mode CR ok CR LF CR LF Parameters protocol...

Page 22: ...recv_num CR LF CR LF Parameters send_num socket a send data bytes recv_num socket a receive data bytes 4 2 2 21 AT SOCKBNUM Function Set Query SOCK B send receive data bytes Format Query Operation AT...

Page 23: ...on AT HEART beat_time beat_datalen beta_data CR ok CR LF CR LF Cancle Operation AT HEART None CR ok CR LF CR LF Parameters beat_time beat time unit second beat_datalen beat length beat_data beat data...

Page 24: ...CGSN CR ok imei CR LF CR LF Parameters imei IMEI 4 2 2 31 AT GSLQ Function Query GPRS signal strength Format Query Operation AT GSLQ CR ok state ret CR LF CR LF Parameters state signal strength Discon...

Page 25: ...LF CR LF Parameters status enable disable Modbus RTU to Modbus TCP on enable off disable 4 2 2 34 AT SCRIPTUART Function Set Query uart download HIS Format Set Operation AT SCRIPTUART CR CR LF CR LF...

Page 26: ...connectto server Step 1 Refer to chapter 3 to change to AT command mode Step 2 Set the server information and reboot The following is our test server address it will feedback with the protocol ip add...

Page 27: ...lem input AT WANN and AT TCPALK to check the network status 5 2 Use SMS to Set Parameters Step1 Send AT SOCKA AT SOCKB or AT SOCKC as following picture Step2 if success will receive SOCKET if fail wil...

Page 28: ...Technology Co Ltd 28 29 5 3 Use SMS to Upgrade Firmware AT UPURL http node cn iotworkshop com otadata file GPRS HF2111 LPB S2W_UPGARDE bin 5 4 Use SMS to Upgrade HIS Script AT SCRIPTHTTP http node cn...

Page 29: ...ight High Flying May 2011 The information disclosed herein is proprietaryto High Flying and is not to be used by or disclosed to unauthorized persons without the written consent of High Flying The rec...

Reviews: