Flexport HF2211 User Manual

Flexport HF2211 User Manual

Serial server device
Hide thumbs Also See for HF2211:
Table of Contents

Advertisement

HF2211 Serial Server Device User Manual
Serial Server Device User Manual
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
Support STA/AP/AP+STA Mode
Support Router or Bridge Network Working Mode.
Support 10/100M Ethernet Auto-Negotiation
Support Easy Configuration Through a Web Interface or PC IOTService Tool
Support Security Protocol Such As SSL/AES/DES3
Support Web OTA Wirelss Upgrade
Wide DC Input 5~36VDC or 9~50VDC
Size: 95 x 65 x 25 mm (L x W x H)
FCC/CE/RoHS Certificated
http://www.iotworkshop.com
HF2211
V 1.1
- 1 -

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HF2211 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Flexport HF2211

  • 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 ...
  • Page 2: Table Of Contents

    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.
  • Page 4 HF2211 Serial Server Device User Manual 4.2.1.26. UART/Buf/FlowCtrl Command..................53 4.2.1.27. UART/Buf/SWFlowCtrl Command ................53 4.2.1.28. UART/Cli-Getin Command ..................54 4.2.1.29. UART/Cli-WaitTime Command................... 54 4.2.1.30. UART/Proto command ....................54 4.2.1.31. UART/Frame Directory ....................55 4.2.1.32. UART/Frame/FrameLen Command ................55 4.2.1.33.
  • Page 5: List Of Figures

    Figure 6. RJ45 Pin Defination ..........................15 Figure 7. HF2211 Mechanical Dimension ....................... 16 Figure 8. HF2211 Rail ............................16 Figure 9. HF2211 Product Order Information ......................17 Figure 10. HF2211 Software Protocol Structure ..................... 18 Figure 11. HF2211 Function Structure ........................19 Figure 12.
  • Page 6 Figure 53. Heartbeat Function ..........................40 Figure 54. Other Function ............................41 Figure 55. HF2211 Default: UART Parameters ...................... 42 Figure 56. Switch Transparent Transmission Mode to Cli Command Mode ............43 Figure 57. Cli Command Root Directory ......................... 43 Figure 58.
  • Page 7: List Of Tables

    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.
  • Page 8: Product Overview

    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.
  • Page 9: Device Paremeters

    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,...
  • Page 10: Key Application

    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 ...
  • Page 11: Hardware Introduction

    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.
  • Page 12: Pins Definition

    HF2211 Serial Server Device User Manual 2.1. Pins Definition Figure 2. HF2211 Interface http://www.iotworkshop.com - 12 -...
  • Page 13: Figure 3. Hf2211 Side View

    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...
  • Page 14: Rs232 Interface

    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.
  • Page 15: Rj45 Interface

    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 -...
  • Page 16: Rail Mounting

    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 -...
  • Page 17: Package Information

    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 -...
  • Page 18: Functional Description

    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.
  • Page 19: Ap Network

    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.
  • Page 20: Sta Wireless Network

    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.
  • Page 21: Figure 14. Ap+Sta Wireless Network

    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.
  • Page 22: Iotservice Software

    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.
  • Page 23: Ethernet Interface Function

    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.
  • Page 24: Figure 20. Ethernet Interface Function

    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.
  • Page 25: Ethernet Interface Function(Router)

    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.
  • Page 26: Ethernet Port Function(Bridge)

    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.
  • Page 27: Working Mode

    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.
  • Page 28: Tcp Server

    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.
  • Page 29: Http 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.
  • Page 30: Figure 28. Web Page Configure

    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.
  • Page 31: Telnetd Mode

    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.
  • Page 32: Aes/Des3/Tls Data Encryption

    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...
  • Page 33: Keepalive

    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.
  • Page 34: Route Setup

    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...
  • Page 35: Uart Frame Scheme

    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.
  • Page 36: Tag Function

    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 -...
  • Page 37: Cli Command

    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 .
  • Page 38: Firmware Upgrade

    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.
  • Page 39: Web

    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,...
  • Page 40: Heartbeat Function

    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 -...
  • Page 41: Figure 54. Other Function

    HF2211 Serial Server Device User Manual Figure 54. Other Function http://www.iotworkshop.com - 41 -...
  • Page 42: Cli Command Notes

    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.
  • Page 43: Cli Command Overview

    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.
  • Page 44: Figure 58. Cli Command Sys Tree

    HF2211 Serial Server Device User Manual Figure 58. Cli Command SYS Tree Figure 59. Cli Command UART Tree http://www.iotworkshop.com - 44 -...
  • Page 45: Figure 60. Cli Command Sock Tree

    HF2211 Serial Server Device User Manual Figure 60. Cli Command SOCK Tree http://www.iotworkshop.com - 45 -...
  • Page 46: Cli Command Format

    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.
  • Page 47: Sys 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 ...
  • Page 48: Sys/Auth/Password Command

    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 ...
  • Page 49: Sys/Network/Mode Command

     <Hostname> [name]  Parameter: Hostname is the name which show in router DHCP client list. Setting is valid immediately.  Name Address: Hostname, length range: 1~30 characters. Default: HF2211. 4.2.1.12. SYS/Telnet Instruction  Function: Display/Set Telnet function.  Format: ...
  • Page 50: Sys/Web Instruction

    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.
  • Page 51: Uart Directory

    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. ...
  • Page 52: Uart/Stopbits Instruction

    HF2211 Serial Server Device User Manual  Value: Default: 8bits. Can choose 8. 4.2.1.21. UART/Stopbits Instruction  Function: Display/Set UART stop bits function.  Format:  Query <Stopbits>  <Stopbits> [value]  Parameter: Setting is valid immediately.  Value: Default: 1bits. Can choose 1, 1.5, 2.
  • Page 53: Uart/Buf/Gaptime Instruction

    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.
  • Page 54: Uart/Cli-Getin Command

    HF2211 Serial Server Device User Manual  Disable: disable software flow control function. Default: Disable. 4.2.1.28. UART/Cli-Getin Command  Function: Display/Set Cli command function  Format:  Query <Cli-Getin>  <Cli-Getin> [Serial-String/Always/Disable]  Parameter: Set Cli command parameters. Setting is valid immediately.
  • Page 55: Uart/Frame Directory

    HF2211 Serial Server Device User Manual  Frame: Enable auto-frame function. Relevant parameters are set in Frame command. 4.2.1.31. UART/Frame Directory  Function: Display/Set UART frame directory.  Format:  Tab key query 4.2.1.32. UART/Frame/FrameLen Command  Function: Display/Set UART auto-frame frame length ...
  • Page 56: Uart/Edit Command

    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 .
  • Page 58: Sock/Netp Directory

    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 ...
  • Page 59: Data Directory

    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.
  • Page 60: Wifi/Mode Command

    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 ...
  • Page 61: Exit Command

    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 ...
  • Page 62: Appendix A:references

    HF2211 Serial Server Device User Manual APPENDIX A:REFERENCES A.1.Test Tools IOTService Configure Software: http://gb.hi-flying.com/downloadsfront.do?method=picker&flag=all&id=8c366199-b599-47a4-8d9c- 20fa0b68bfcf&fileId=89&v=0.zip UART、Network Test software: http://www.hi- flying.com/download_list_dc/&downloadcategoryid=14&isMode=false&comp_stats=comp- FrontDownloadsCategory_show01-1376450727769.html A.2.Quick Start Manual See our product application on website: http://www.hi-flying.com/products_detail/productId=95.html http://www.iotworkshop.com - 62 -...
  • Page 63: Appendix B:telnet Communication Function

    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 -...
  • Page 67: Appendix C: Contact Information

    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...

Table of Contents

Save PDF