Hi-flying HF5111B User Manual

Serial server device
Table of Contents

Advertisement

Quick Links

HF5111B Serial Server Device User Manual
Serial Server Device User Manual
Overview of Characteristic
Cortex-M3 MCU with 2MB Flash and 128KB SRAM
Use FreeRTOS Operation System
Support TCP/IP/Telnet /Modbus TCP Protocol
Support Serial To 10/100M Ethernet Conversion, Serial Speed Upto 921600 bps
Support 10/100M Ethernet Auto-Negotiation
Support Easy Configuration Through a Web Interface or PC IOTManager Tool
Support Security Protocol Such As TLS/AES/DES3
Support Web OTA Wirelss Upgrade
Support Industrial Temperature: -40 to +85˚ C
Wide DC Input 5~36VDC or 9~50VDC
Size: 94 x 65 x 25 mm (L x W x H)
FCC/CE/RoHS Certificated
http://www.iotworkshop.com
HF5111B
V 1.1
- 1 -

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Hi-flying HF5111B

  • Page 1 HF5111B Serial Server Device User Manual HF5111B Serial Server Device User Manual V 1.1 Overview of Characteristic  Cortex-M3 MCU with 2MB Flash and 128KB SRAM  Use FreeRTOS Operation System  Support TCP/IP/Telnet /Modbus TCP Protocol  Support Serial To 10/100M Ethernet Conversion, Serial Speed Upto 921600 bps ...
  • Page 2: Table Of Contents

    HF5111B 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 HF5111B Serial Server Device User Manual 3.13. Firmware Upgrade ......................30 3.14. Web Page Function ......................31 3.15. Auto-IP Function ......................31 3.16. Other Function .......................32 3.17. NTP Function ........................33 3.18. Heartbeat Function ......................33 3.19. UART Fast Config ......................34 CLI COMMAND NOTES ....................... 35 4.1.
  • Page 4 HF5111B Serial Server Device User Manual 4.2.1.33. UART/Frame/Tag Command..................48 4.2.1.34. UART/Edit Command ....................48 4.2.1.35. UART/Clean Command ....................48 4.2.1.36. SOCK Directory ......................49 4.2.1.37. SOCK/Show Command ....................49 4.2.1.38. SOCK/New Command....................49 4.2.1.39. SOCK/netp directory....................51 4.2.1.40. SOCK/netp/clean Command ..................51 4.2.1.41.
  • Page 5: List Of Figures

    HF5111B Serial Server Device User Manual LIST OF FIGURES Figure 1. HF5111B Appearance ........................11 Figure 2. HF5111B Interface ......................... 12 Figure 3. HF5111B Side View ........................12 Figure 4. RS232 Pin Defination(Male/Needle Type) ..................13 Figure 5. HF5111B RS422 Connectioin ......................14 Figure 6.
  • Page 6 HF5111B Serial Server Device User Manual Figure 44. IOTManager Tools NTP Setting ..................... 33 Figure 45. Cli Command NTP Setting and Query ................... 33 Figure 46. Heartbeat Function ........................33 Figure 47. HF5111 Default: UART Parameters ....................35 Figure 48.
  • Page 7: List Of Tables

    HF5111B Serial Server Device User Manual LIST OF TABLES Table1. HF5111B Technical Specifications ......................9 Table2. HF5111B Interface Definition........................ 13 Table3. RS232 Interface ............................ 13 Table4. RJ45 Interface ............................15 HISTORY Ed. V1.0 11-08-2016 First Version Ed. V1.1 02-10-2017 Add Auto-IP, heartbeat, ntp and UART fast config function(Firmware version:1.07c)
  • Page 8: Product Overview

    1. PRODUCT OVERVIEW 1.1. General Description The HF5111B provides a serial interface to Ethernet connectivity to web enable any device. The HF5111B integrate TCP/IP controller, memory, 10/100M Ethernet transceiver, high-speed serial port and integrates a fully developed TCP/IP network stack and FreeRTOS OS.The HF5111B also includes an embedded web server used to remotely configure, monitor, or troubleshoot the attached device.
  • Page 9: Device Paremeters

    HF5111B Serial Server Device User Manual 1.3. Device Paremeters Table1. HF5111B Technical Specifications Item Parameters System Information Processor/Frequency Cortex-M3/96MHz Flash/SDRAM 2MB/128KB Operating System FreeRTOS 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

    HF5111B Serial Server Device User Manual Power <400mW Other Information Certificate CE, FCC, RoHS 1.4. Key Application The HF5111B 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

    HF5111B Serial Server Device User Manual 2. HARDWARE INTRODUCTION The HF5111B 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

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

    HF5111B Serial Server Device User Manual Table2. HF5111B Interface Definition Function Name Description External RJ45 Ethernet 10/100M Ethernet Interface RS232 RS232 Communication RS485/RS422 RS485/RS422 Communicaton Earth Protect Earth DC Input DC Power 5~36V Input or 9~50VDC Internal Power Supply Indicator...
  • Page 14: Rs485 Interface

    HF5111B Serial Server Device User Manual Pin Number Name Description Request to Send Clear to Send 2.3. RS485 Interface RS485 use two wire links, A(DATA+), B(DATA-). Connect A(+) to A(+), B(-) to B(-) for communication. The RS485 interface support maximum 32 485 device, special hardware version can support max 255 device.
  • Page 15: Mechanical Size

    Receive Data- None Connect N.C. None Connect N.C. 2.6. Mechanical Size The dimensions of HF5111B are defined as following picture (mm): Figure 7. HF5111B Mechanical Dimension 2.7. Rail Mounting We support to provide rail for mounting as the following picture.
  • Page 16: Order Information

    HF5111B Serial Server Device User Manual Figure 8. HF5111B Rail 2.8. Order Information Base on customer detailed requirement, HF5111B provide different configuration version, Details as below: Figure 9. HF5111B Product Order Information 2.9. Device Difference The device difference is as following...
  • Page 17 HF5111B Serial Server Device User Manual 1 * 12V/1A DC adapter 1 * RS232 cable 1 * Ethernet cable http://www.iotworkshop.com - 17 -...
  • Page 18: Functional Description

    HF5111B Serial Server Device User Manual 3. FUNCTIONAL DESCRIPTION The HF5111 has the following feature:  Connect customer’s device with PC or server via TCP/UDP/Telnet.  Contain a HTTP web server allow user to configure through browser with PC or phone.
  • Page 19: Typical Network Architecture

    HF5111B Serial Server Device User Manual The HF5111 device Ethernet interface work in WANN functioin by default. When connect to router, it will get IP address from router(as picture 192.168.1.100). Then the device and the PC1 are in the same local area network(LAN) for network communication, The data of communication finally pass from UART to network to control or collect PLC device.
  • Page 20: Tcp Server

    HF5111B Serial Server Device User Manual device can auto connect to default socket setting(TCP/UDP). Use web page or PC IOTManager software to set commucation parameter. Figure 13. Transparent data transmission example 3.5.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.
  • Page 21: Http Mode

    HF5111B Serial Server Device User Manual Figure 14. TCP Server data transmission example The device support max 5 Socket channel, each socket can work individual at TCP/UDP, Multi Socket simultaneous communication of data stream is as following. Figure 15. Multi Socket data transmission example Multi Socket can be created through software configure or webpage configure.
  • Page 22: Figure 17. Iotmanager Software Configure

    HF5111B Serial Server Device User Manual Figure 17. IOTManager Software Configure Figure 18. Web Page Configure HF5111 UART received“pppp”data, send below data to HTTP Server. GET /abcdefg HTTP/1.1 api-key: A4hQnojCHf8PurykvCHvsQ4JCMM= pppp http://www.iotworkshop.com - 22 -...
  • Page 23: Telnetd Mode

    HF5111B Serial Server Device User Manual HTTP Server send below data, HF5111 serial output“abcde” GET /abcdefg HTTP/1.1 api-key: A4hQnojCHf8PurykvCHvsQ4JCMM= abcde Figure 19. HTTP transmit example 3.5.4. 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).
  • Page 24: Figure 20. Iotmanager Software Configure Protocol

    HF5111B Serial Server Device User Manual Figure 20. IOTManager Software Configure Protocol Figure 21. Web page configure protocol Connect device UART to user device console port(The example use NC916) and create Telnet connection. Then It can directly configure user device.
  • Page 25: Aes/Des3/Tls Data Encryption

    HF5111B Serial Server Device User Manual Figure 22. 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 HF5111 device can do encryption to UART data before transmit to network.
  • Page 26: Timeout

    HF5111B Serial Server Device User Manual Figure 25. Web Page Config Keepalive 3.7. Timeout The device will break the TCP connection after some time(default is 300 seconds and it can be modified)if there is no data packet received from DES3tination TCP target . It will reconnect to server(When device works in TCP Client mode).
  • Page 27: Uart Frame Scheme

    HF5111B Serial Server Device User Manual Figure 27. Route function setup example Figure 28. Route Function Data Flow Example 3.9. UART Frame Scheme 3.9.1. UART Free-Frame HF5111 support UART Free-Frame function, If user select to open this function,Module will check the...
  • Page 28: Uart Auto-Frame

    HF5111B Serial Server Device User Manual Figure 29. UART free-frame function 3.9.2. UART Auto-Frame HF5111 support UART Auto-Frame function, If user select to open this function,setting frame tigger length and auto frame trigger time parameters, Then the product will auto framing the data which received from UART port and transmitting to the network as pre-defined data structure.
  • Page 29: Modbus Protocol

    HF5111B Serial Server Device User Manual Figure 32. UART Auto-Frame Tag Function 3.10. Modbus Protocol HF5111 support ModbusRTU to ModbusTCP and ModbusTCP to ModbusRTU. It’s very convenient to connect with Modbus device. Modbus protocol setting as below: Figure 33. UART Modbus Function 3.11.
  • Page 30: Uart Flow Control And Rs485 Function

    HF5111B Serial Server Device User Manual Figure 34. Cli Command Setting 3.12. UART Flow Control and RS485 Function HF5111 support software and hardware UART flow control. If use hardware follow control, must use RS232 interface. If use software follow control, then It allowed the device output UART data after receive single UART 0x11 data(Default: value can be modified).
  • Page 31: Web

    HF5111B Serial Server Device User Manual Figure 38. Internal web page 3.14. Web Page Function Web page function can be enabled or disabled. Figure 39. 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 32: Other Function

    HF5111B Serial Server Device User Manual Figure 41. AUTO-IP Config Device Figure 42. Cli Command Query Device IP 3.16. Other Function The HF5111 device parameters can be exported and loaded into other equipment.. Figure 43. Other Function http://www.iotworkshop.com - 32 -...
  • Page 33: Ntp Function

    HF5111B Serial Server Device User Manual 3.17. NTP Function Support NTP function(default is disabled). Support set NTP server, port, time zone information, more detailed usage see application document of “UART Fast Config”.(112.124.43.15 is High-Flying test NTP server) Figure 44. IOTManager Tools NTP Setting Figure 45.
  • Page 34: Uart Fast Config

    HF5111B Serial Server Device User Manual 3.19. UART Fast Config 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. http://www.iotworkshop.com - 34 -...
  • Page 35: Cli Command Notes

    HF5111B 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 47.
  • Page 36: Cli Command Overview

    HF5111B Serial Server Device User Manual Figure 48. 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 37: Figure 50. Cli Command Sys Tree

    HF5111B Serial Server Device User Manual Figure 50. Cli Command SYS Tree Figure 51. Cli Command UART Tree http://www.iotworkshop.com - 37 -...
  • Page 38: Figure 52. Cli Command Sock Tree

    HF5111B Serial Server Device User Manual Figure 52. Cli Command SOCK Tree http://www.iotworkshop.com - 38 -...
  • Page 39: Cli Command Format

    HF5111B Serial Server Device User Manual Figure 53. 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 40: Sys Directory

    HF5111B 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 41: Sys/Auth/Password Command

    HF5111B 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 42: Sys/Network/Hostname Instruction

    HF5111B Serial Server Device User Manual <DNS>  <DNS> [IP]  Parameter: When DHCP function is Disabled, this setting is valid. Setting is valid after reboot.  IP Address: DNS server address. Default: 10.10.100.254. 4.2.1.10. SYS/Network/Hostname Instruction  Function: Display/Set Hostname.
  • Page 43: Sys/Mac Instruction

    HF5111B Serial Server Device User Manual  Input Port Number: Web Port Number. Default: 80  Disable: Disable Web config function 4.2.1.13. SYS/MAC Instruction  Function: Display/Set MAC address.  Format:  Query <MAC>  <MAC> [8888 value]  Parameter: Global unique MAC Address.
  • Page 44: Uart/Show Instruction

    HF5111B Serial Server Device User Manual  Format:  Tab key query 4.2.1.17. UART/Show Instruction  Function: Display UART information function.  Format:  Query <Show> 4.2.1.18. UART/Baudrate Instruction  Function: Display/Set UART baud rate function.  Format:  Query <Baudrate>...
  • Page 45: Uart/Parity Instruction

    HF5111B Serial Server Device User Manual 4.2.1.21. UART/Parity Instruction  Function: Display/Set UART parity function.  Format:  Query <Parity>  <Parity> [value]  Parameter: Setting is valid immediately.  Value: Default: None. Can choose NONE, EVEN, ODD. 4.2.1.22. UART/Buf Directory ...
  • Page 46: Uart/Buf/Flowctrl Command

    HF5111B Serial Server Device User Manual 4.2.1.25. UART/Buf/FlowCtrl Command  Function: Display/Set UART flow control function.  Format:  Query <FlowCtrl>  <FlowCtrl> [Enable/Disable]  Parameter: Flow control includes software flow control and hardware flow control. Software flow control priority is higher than hardware. If enable software flow control, the hardware flow control pin(CTS/RTS) will be useless.
  • Page 47: Uart/Cli-Waittime Command

    HF5111B Serial Server Device User Manual  [Input Serail String]: Default: +++, Range1~10 bytes. Also can input hex format data. The HEX data are separated by Spaces, Like【30 31 32 33 34】, When it recieved string data “01234”, then It can enter into Cli command.
  • Page 48: Uart/Frame/Frametime Command

    HF5111B Serial Server Device User Manual <FrameLen>  <FrameLen> [value]  Parameter: Set UART auto-frame length, Setting is valid immediately.  value: Default: 8, Range: 8~1400. 4.2.1.32. UART/Frame/FrameTime Command  Function: Display/Set UART auto-frame time  Format:  Query <FrameTime>...
  • Page 49: Sock Directory

    HF5111B Serial Server Device User Manual <Clean>  Parameter: Clear the UART data count(Data packet/Frame/Error packet and so on) shown in webpage. 4.2.1.36. SOCK Directory  Function: Display/Set Socket channel directory.  Format:  Tab key query Netp and UDP are created socket channel. Itsupport maximum 5 Sockets.
  • Page 50 HF5111B Serial Server Device User Manual  Input Local Port[0]: Set local port, Range 1~65535, 0 is random port. For TCP Server and UDP application, set it to a fixed 1~65535(TCP port 80 is used for its webpage). For TCP Client application, usually set it to 0.
  • Page 51: Sock/Netp Directory

    HF5111B Serial Server Device User Manual  Input Rout[uart]: Same as above UDP Server/ UDP Client HTTP Mode  Input HTTP type[POST]: HTTP request type. Default: POST. Can choose POST or GET.  Input HTTP path[/]: HTTP request path, Need start by“/”. The longest byte is 63 bytes.
  • Page 52: Reload Instruction

    HF5111B Serial Server Device User Manual  <Restart> 4.2.1.43. Reload Instruction  Function: Restore Factory setting instruction.  Format:  Reload [SYS/UART/SOCK]  Parameter: Reload to factory setting, if add the following parameters, it will only restore corresponding parameters. Parameter can including one of the below three: ...
  • Page 53: Appendix A:references

    HF5111B Serial Server Device User Manual APPENDIX A:REFERENCES A.1.Test Tools IOTManager 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 B.3.Quick Start Manual See our product application on website: http://www.hi-flying.com/products_detail/productId=96.html http://www.iotworkshop.com - 53 -...
  • Page 54: Appendix B:telnet Communication

    HF5111B 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 55 HF5111B 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 56 HF5111B 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 57 HF5111B 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 - 57 -...
  • Page 58: Appendix C: Contact Information

    HF5111B 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