Page 1
HF2211 Serial Server Device User Manual HF2211 Serial Server Device User Manual V 1.1 Overview of Characteristic MIPS MCU with 4MB Flash and 8MB SRAM. Run on eCos Support TCP/IP/Telnet /Modbus TCP Protocol Support RS232/RS422/RS485 to Ethernet/Wi-Fi Conversion, Serial Speed Upto 460800 bps ...
HF2211 Serial Server Device User Manual TABLE OF CONTENTS TABLE OF CONTENTS TABLE OF CONTENTS TABLE OF CONTENTS ................2 LIST OF FIGURES ..........................5 LIST OF TABLES ..........................7 HISTORY ............................7 PRODUCT OVERVIEW ......................8 1.1. General Description ......................8 1.2.
Page 3
HF2211 Serial Server Device User Manual 3.9. UART Frame Scheme ......................35 3.9.1. UART Free-Frame ......................35 3.9.2. UART Auto-Frame ......................35 3.9.3. Tag Function ........................36 3.10. Modbus Protocol .......................36 3.11. Cli Command ........................37 3.12. UART Flow Control and RS485 Function ...............37 3.13.
HF2211 Serial Server Device User Manual LIST OF TABLES Table 1. HF2211 Technical Specifications ....................... 9 Table 2. HF2211 Interface Definition ........................13 Table 3. RS232 Interface ............................14 Table 4. RJ45 Interface ............................15 HISTORY Ed. V1.0 08-03-2017 First Version Ed.
The HF2211 integrate TCP/IP controller, memory, 10/100M Ethernet transceiver, high- speed serial port and integrates a fully developed TCP/IP network stack and ECos OS.The HF2211 also includes an embedded web server used to remotely configure, monitor, or troubleshoot the attached device.
HF2211 Serial Server Device User Manual 1.3. Device Paremeters Table 1. HF2211 Technical Specifications Item Parameters System Information Processor/Frequency MIPS/320MHz Flash/SDRAM 4MB/8MB Operating System ECos Ethernet Port Port Number 1 RJ45 Interface Standard 10/100 Base-T Auto-Negotiation Protection 8KV Isolation Transformer Integrated IP,TCP,UDP,DHCP,DNS,HTTP Server/Client,ARP,...
Working Current ~200mA Power <700mW Other Information Certificate CE, FCC, RoHS 1.4. Key Application The HF2211 device connects serial device to Ethernet networks using the TCP/IP protocol: Remote equipment monitoring Asset tracking and telemetry Security Application ...
HF2211 Serial Server Device User Manual 2. HARDWARE INTRODUCTION The HF2211 unit is a complete solution for serial port device connecting to network. This powerful device supports a 10/100BASE-T Ethernet connection, a reliable and proven operating system stored in flash memory, an embedded web server, a full TCP/IP protocol stack,and standards-based (AES) encryption.
HF2211 Serial Server Device User Manual Figure 3. HF2211 Side View Table 2. HF2211 Interface Definition Function Name Description External RJ45 Ethernet 10/100M Ethernet Interface Antenna SMA Interface RS232 RS232 Communication RS485/RS422 RS485/RS422 Communicaton Earth Protect Earth DC Input DC Power 5~36V Input or 9~50VDC...
HF2211 Serial Server Device User Manual 2.2. RS232 Interface Device serial 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, 7-8 no connection), see the following table for pin defination.
Description Transfer Data+ Transfer Data- Receive Data+ Transformer Tap Voltage PHY-VCC Transformer Tap Voltage PHY-VCC Receive Data- None Connect N.C. None Connect N.C. 2.6. Mechanical Size The dimensions of HF2211 are defined as following picture (mm): http://www.iotworkshop.com - 15 -...
Figure 7. HF2211 Mechanical Dimension 2.7. Rail Mounting We support to provide rail for mounting as the following picture. Figure 8. HF2211 Rail 2.8. Order Information Base on customer detailed requirement, HF2211 provide different configuration version, Details as below: http://www.iotworkshop.com - 16 -...
HF2211 Serial Server Device User Manual Figure 9. HF2211 Product Order Information 2.9. Package Information 1 * HF2211 1 * 12V/1A DC adapter 1 * RS232 cable 1 * Ethernet cable 1 * SMA Antenna http://www.iotworkshop.com - 17 -...
3.2. Wireless Network HF2211 can be set as a wireless STA and AP as well. And logically, it supports two wireless interfaces, one is used as STA and the other is AP. Other STA devices can join into the wireless network through AP interface.
STA: Wireless station which is terminal of a wireless network. Such as laptop and pad etc. 3.2.1. AP Network HF2211 can construct a wireless network as AP. All the STA devices will consider the AP as the centre of the wireless network. The mutual communication can be transponded by AP,shown as follow: Figure 12.
HF2211 Serial Server Device User Manual 3.2.2. STA Wireless Network Take the following picture as example. When router works in AP mode, HF2211 connects to the user’s devices by RS232/RS485 interface. In this topology, the whole wireless network can be easily stretched.
HF2211 Serial Server Device User Manual Figure 14. AP+STA Wireless Network In this picture, HF2211 open the AP+STA function and the STA interface can be connected to the remote server by the router. Similarly, the AP interface can also be used. Phone/PAD can be connected to the AP interface and to control the serial devices or set itself.
AP and STA parts must set to the different sub-network for the product working as APSTA mode. 3.2.5. IOTService Software Open the IOTService after connect to the AP hotspot generated by HF2211 or connect to Product Ethernet port to PC, then configure the parameter.
HF2211 Serial Server Device User Manual Use PC to connect with HF2211 through its AP hotspot or Ethernet connection. Input the default IP(10.10.100.254, default username and password: admin/admin) to login the webpage to configure the parameter. Figure 18. Configure the Wi-Fi Parameter Figure 19.
HF2211 Serial Server Device User Manual Figure 20. Ethernet Interface Function HF2211 servers as APSTA and generate a central network. The IP addresses of all the devices and module’s are in the same network segment. Note: If product works in AP mode, then the Ethernet is working as WANN mode, PC will use Auto-IP to set its IP when connect via Ethernet.
3.3.2. Ethernet Interface Function(Router) Figure 21. Ethernet Interface Function(Router) The HF2211 device Ethernet interface work in router mode. When connect to router, it will get IP address from router(as picture 192.168.1.100). The product itself generate a subnet(10.10.100.254 default). The device from the Ethernet interface is assigned with IP address by module (10.10.100.101 ).Then the device and the PC1 are in the same subnet for network communication.
3.3.3. Ethernet Port Function(Bridge) Figure 22. Ethernet Port Function(Bridge) The HF2211 device Ethernet interface work in router mode. When connect to router, it will get IP address from router(as picture 192.168.1.101). AT the whole network, the product is like an invisible device.
3.4. Working Mode 3.4.1. Transparent Transmission Mode The HF2211 Device support transparent transmission mode of serial interface, In this mode, User only need to set some necessary parameter(network communication parameter). After power on, the device can auto connect to default socket setting(TCP/UDP). Use web page or PC IOTService software to set commucation parameter.
HF2211 Serial Server Device User Manual Figure 23. Transparent data transmission example 3.4.2. TCP Server Transparent transmission mode support TCP Server、TCP Client、UDP Server、UDP Client communication application, UDP Server is special function, Details see following Cli instruction. There is a default tcp server socket created. The Socket can be modified to work at one of the above working mode.
Figure 26. Webpage set up multi Socket channel 3.4.3. HTTP Mode HF2211 device support sending data in HTTP format to HTTP server(Set product working mode by IOTService software or webpage). When device socket works in HTTP mode, All received UART data will automaticly transform to HTTP format(add HTTP header) and transmit to HTTP server.
HF2211 Serial Server Device User Manual Figure 28. Web Page Configure HF2211 UART received“pppp”data, send below data to HTTP Server. GET /abcdefg HTTP/1.1 api-key: A4hQnojCHf8PurykvCHvsQ4JCMM= pppp HTTP Server send below data, HF2211 serial output“abcde” GET /abcdefg HTTP/1.1 api-key: A4hQnojCHf8PurykvCHvsQ4JCMM= abcde Figure 29.
When device work in Telnetd mode, UART port can connect to user device console port(some gateway and switch device may have this console port to set parameters of its working mode). May use HF2211 to config user device via Telnetd mode. Figure 30. IOTService Software Configure Protocol Figure 31.
Figure 32. Telnet details example 3.5. AES/DES3/TLS Data Encryption To improve device security and ensure the data won’t be cracked and illegal used, The HF2211 device can do encryption to UART data before transmit to network. Figure 33. IOTService Software Configure Encryption http://www.iotworkshop.com...
HF2211 Serial Server Device User Manual Figure 34. Web Page Configure Encryption 3.6. Keepalive When TCP connection between device and server became abnormal. The device will check the obnormal status and reconnect to server ( when the device working in TCP Client Mode), When the device working in TCP Server, It will break the TCP client and wait for next connection.
HF2211 Serial Server Device User Manual Figure 36. Web Page Configure Timeout 3.8. Route Setup The data received from Socket channel can be set to another socket channel. (Default: socket Destination channel is UART, It also can be other Socket channel, Or take the Socket as log print...
3.9. UART Frame Scheme 3.9.1. UART Free-Frame HF2211 support UART Free-Frame function, If user select to open this function,Module will check the intervals between any two bytes when receiving UART data, If the interval time exceed the setting value, It will think it as the end of one frame, Or it will receive data until greater than internal buffer bytes( Default: 512, the largest 1400 bytes), then transfer to Socket Channel.
Figure 42. UART Auto-Frame Tag Function 3.10. Modbus Protocol HF2211 support ModbusRTU to ModbusTCP and ModbusTCP to ModbusRTU. It’s very convenient to connect with Modbus device. Modbus protocol setting as below: http://www.iotworkshop.com - 36 -...
If it exceed default 300s when no Cli command is input, it will exit Cli command mode. When the HF2211 receive continuous UART data of “+++”, it will enter into Cli command. ( The device working in transparent transmission mode by default) May also set the device working in Cli command mode by default or disable this function .
Figure 46. UART Half Duplex Function 3.13. Firmware Upgrade HF2211 support OTA(over the air) firmware upgrade. User can use webpage to upgrade its firmware, whether external or internal webpage(192.168.0.101/hide. Internal webpage can be used for upgrade external webpage). Please check below example. IP address is assigned by router.
HF2211 Serial Server Device User Manual 3.14. Web Page Function Web page function can be enabled or disabled. Figure 49. Web Page Function Setting 3.15. Auto-IP Function Connect device Ethernet with PC, the device will use default auto IP. The PC may use this IP to config the device or transfer data(PC will need about 15 seconds to use default 169.254.xxx.xxx IP,...
Product support Cli command to config its parameters, but also support special HEX format UART data for fast config, see application manual for detailed usage. 3.19. Other Function The HF2211 device parameters can be exported and loaded into other equipment.. http://www.iotworkshop.com - 40 -...
HF2211 Serial Server Device User Manual 4. CLI COMMAND NOTES 4.1. Working Mode The device will enter into default transparent transmission mode after powered on. User can switch to Cli command mode through special UART data. Module default UART parameters are as below: Figure 55.
HF2211 Serial Server Device User Manual Figure 56. Switch Transparent Transmission Mode to Cli Command Mode <Notes>: In Cli command mode, users can set or query parameters. Cli command details see next chapter 4.2. Cli Command Overview Cli command can be input through terminal (SecureCRT or other UART tools) or by user device MCU programming.
HF2211 Serial Server Device User Manual Figure 61. Cli Other Command 4.2.1. Cli Command Format Cli command is in ASCII format. The usage is similar to Linux terminal. Command format as following: Format Notes < >: Cli command name or directory.
HF2211 Serial Server Device User Manual Show [SYS/UART/SOCK] Parameter: Show all information if no parameters. Parameter can be one of the following: SYS: System running status UART: UART status SOCK: Socket status 4.2.1.2. SYS Directory ...
HF2211 Serial Server Device User Manual value: set value. Length range 1~29 characters 4.2.1.5. SYS/Auth/Password Command Function: Display/Set web or Telnet Cli command login password(function see appendix) Format: Query <Password> <Password> [value] Parameter: Setting is valid immediately ...
HF2211 Serial Server Device User Manual Disable: Disable Telnet function. 4.2.1.13. SYS/Web Instruction Function: Display/Set Web config function. Format: Query <Web> <Web> [Enable/Disable] Parameter: Webpage is used for config module working parameters. Setting is valid after reboot.
HF2211 Serial Server Device User Manual <NTP> [Enable/Disable] Parameter: NTP is used for product to get and output real time. See uart fast config application manual to fast query. Setting is valid immediately. Enable: Enable NTP Function. ...
HF2211 Serial Server Device User Manual 4.2.1.25. UART/Buf/GapTime Instruction Function: Display/Set UART free frame gap time. Format: Query <GapTime> <GapTime> [value] Parameter: GapTime is used for setting UART free frame time gap. If the received data gap time is more than setting value, the data packet will be breaked into two frame.
HF2211 Serial Server Device User Manual Disable: Default: Value. 4.2.1.35. UART/Edit Command Function: Set UART parameter Format: <Edit> [baudrate databits stopbits parity] Parameter: Set all UART communication parameter including baud rate, data bit, stop bit and parity.
Page 57
HF2211 Serial Server Device User Manual TCP-CLIENT: TCP Client Mode. It is used for connecting server. UDP-SERVER: UDP Server Mode. Special function. Product will record the last received UDP package source IP and Port information. The received UART data will be send to this IP and port, not the setting Destination .
HF2211 Serial Server Device User Manual Input Timeout[300]: Same as above. Input Sock Security[Disable]: Same as above Set HeartBeat[Disable]: Set Heartbeat function, default is Disable Input HeartBeat Serial[F0FE6B1C3D35]: Set Heartbeat content, default is MAC address ...
HF2211 Serial Server Device User Manual The network data packets information can be checked from webpage. The command will reset the data count. 4.2.1.42. DATA Directory Function: Display/Set Cli command mode communication Format: Tab Query Default: data sent in ASCII format. Also can change to send by HEX, The command is used for Cli command mode to transfer data.
HF2211 Serial Server Device User Manual 4.2.1.47. WIFI/Mode Command Function: Display/Set WIFI work mode. Format: Query <Mode> <Mode> [AP/STA/APSTA] Parameter: Set WIFI work mode. Valid after restart. AP mode: Default, AP mode Input AP SSID:Input the name of AP, 1~31 characters ...
HF2211 Serial Server Device User Manual 4.2.1.50. Exit Command Function:Exit Cli command mode Format: <Exit> 4.2.1.51. Quit Command Function: Quit the current and go the father Cli command directory. Format: <Quit> 4.2.1.52. FwUpgrade Instruction ...
HF2211 Serial Server Device User Manual APPENDIX B:TELNET COMMUNICATION FUNCTION B.1.Telnet Use Scene: a)Remote management device b)Remote management uart equipment B.2.Telnet Features: a)Telnet support echo mode, b)Telnet only support one Client port. c)Telnet port number is 23 d)Telnet connected with TCP, If Client port don’t transmit data in 300s, It will auto disconnect.
Page 64
HF2211 Serial Server Device User Manual b)Use webpage account and password login in module, Then interface will show “EPORT>” . c)Later use are same as UART cli command, And can realise Telnet data with UART data transparent transmission application., http://www.iotworkshop.com...
Page 65
HF2211 Serial Server Device User Manual Telnet Software implementation principle: Step 1 Establish TCP connection with module Step 2 Module send “login”, Client port send user name(need end with Enter key,Tools can type Ctrl+Enter) Step 3 Module send 0xFF 0xFB 0x01 Close telnet input display.
Page 66
HF2211 Serial Server Device User Manual Step 5 Module send 0xFF 0xFC 0x01 Open telnet input display Step 6 It can send and receive Cli command After Enter into Cli command mode. http://www.iotworkshop.com - 66 -...
HF2211 Serial Server Device User Manual APPENDIX C: CONTACT INFORMATION ------------------------------------------------------------------------------------------------------------ Address: Room 1002,Building 1,No.3000,Longdong Avenue,Pudong New Area,Shanghai,China,201203 Web: www.iotworkshop.com www.hi-flying.com Contact: Sales: sales@iotworkshop.com Support: support@iotworkshop.com Service: service@iotworkshop.com Business: business@iotworkshop.com ---------------------------------------------------------------------------- ------------------------------- For more information about IOTworkshop modules, applications, and solutions, please visit our web site www.iotworkshop.com...
Need help?
Do you have a question about the HF2211 and is the answer not in the manual?
Questions and answers