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 ...
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.
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)
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.
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,...
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 ...
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.
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...
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.
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.
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 -...
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.
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.
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.
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.
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 -...
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).
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.
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.
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).
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...
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.
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.
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).
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,...
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 -...
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.
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 -...
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.
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.
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.
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 ...
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 ...
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.
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.
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.
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.
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.
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.
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: ...
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 -...
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...
Need help?
Do you have a question about the HF5111B and is the answer not in the manual?
Questions and answers