PE1X - EE1X - HF51XX - Eport Operation Guide - 20200402
PE1X - EE1X - HF51XX - Eport Operation Guide - 20200402
PE1X - EE1X - HF51XX - Eport Operation Guide - 20200402
Ethernet Products
Operation Guide
This document applies to the following series of products, please refer to
PE11
Single
EE10, EE11
Ethernet
HF5111S, HF5111B,
HF5111A
http://www.hi-flying.com/ -1-
E10, E20, E30, EP10,
EP20, EP40
Double HF5122
Ethernet
Quad
HF5142B, HF5142A
Ethernet
http://www.hi-flying.com/ -2-
1. HARDWARE INTRODUCTION ......................................................................................................... 4
APPENDIX A:REFERENCES................................................................................................................. 38
http://www.hi-flying.com/ -3-
1. HARDWARE INTRODUCTION
PE1X, EE1X, HF51XX, Eport are all serial ports to Ethernet products. This doc takes
one product as example, others usage is the same.
The related tools mentioned in this article can be downloaded from the official
website.
http://www.hi-flying.com/index.php?route=download/category&path=1_4
http://www.hi-flying.com/ -4-
⚫ EE10 8PIN Connector
http://www.hi-flying.com/ -5-
May also make cable according to the following picture.
http://www.hi-flying.com/ -6-
1.3. HF5111S/HF5111B/HF5111A Hardware Introduction
1 RS232 / RS485 / RS422 serial port (HF5111B, HF5111A), 1 RS485 (HF5111S)
1 Ethernet port
http://www.hi-flying.com/ -7-
1.5. HF5122 Hardware Introduction
2 RS232 / RS485 / RS422 serial port
2 Ethernet port
http://www.hi-flying.com/ -8-
http://www.hi-flying.com/ -9-
2. INITIAL SETUP
HF Products provide multiple methods to config, webpage and IOTService tools.
Webpage is easy to use, but only for local setup and can not manage multiple device,
recommend to use IOTService tools.
http://www.hi-flying.com/ - 10 -
Default UART parameters is as following.
If need static IP, set DHCP to off and input static IP.
Note: setting is valid after reboot.
http://www.hi-flying.com/ - 11 -
If upgrade firmware at the following position.
There is another internal webpage for upgrade the firmware and webpage (external config
webpage as above, this source code is open at our website for customer to change). Login with
IP/hide.
Webpage source file:
http://www.hi-flying.com/download-center-1/application-notes-1/download-item-iot-device-webpage-
source-code
http://www.hi-flying.com/ - 12 -
2.2 IOTService Set
IOTService is simple to manage the products, config and even communicate with it.
Download address:
http://www.hi-flying.com/download-center-1/applications-1/download-item-iotservice
Install IOTService and register account in the IOTBridge cloud(http://bridge.iotworkshop.com/)
according to that tools doc.
PC connect to products AP(Same as previous chapter), and open tools, The device will be
shown in IOTService.
Note: See IOTService doc for more detailed usage, here just simply use it.
Double click the product list to see the device status.
http://www.hi-flying.com/ - 13 -
Set static IP if needed.
http://www.hi-flying.com/ - 14 -
3. SERIAL PORT SETTINGS
3.1. Serial Port Tool SecureCRT
Open SecureCRT find an executable program, click Open.
Click the Quick Connect button to create a connection.
Note: The default serial port data of the device is as shown in the figure above. Users can modify
the working parameters of the product by using IOTService.
http://www.hi-flying.com/ - 15 -
Click the button to send the corresponding data. When the interface displays "EPORT>", you
have entered the CLI command mode.
Note:
Any serial tool can do this. Sending "+++" must be a continuous package of data, and there
can be no other data before and after (such as carriage return and line feed).
⚫ Telnet mode.
Step 1: Enter the IP address of the device (the IP address can be obtained by searching
through the IOTService tool, which will be detailed later), port 23.
http://www.hi-flying.com/ - 16 -
Step 2: The default login name and password are both admin, then "EPORT>" is displayed,
and you have logged in to the Cli command mode.
http://www.hi-flying.com/ - 17 -
4. TEST EXAMPLE
Elfin-EE1X use TCP/IP protocol for communication. There is two main parameters one for IP
address and another for port number.
http://www.hi-flying.com/ - 18 -
The default socket used by product.
◼ After successful connection, the left turns to be green arrow, yellow if fails.
http://www.hi-flying.com/ - 19 -
Open serial tool according to following parameters (115200 baud rate as default)
http://www.hi-flying.com/ - 20 -
http://www.hi-flying.com/ - 21 -
4.3. Router Networking
Elfin-EE1X connect to router LAN and PC also connect to the same router. PC open
IOTService tools and the device will show on the tools.
Can also use this IP to enter the device webpage (default login account is admin/admin)
http://www.hi-flying.com/ - 22 -
4.4. TCP Server Test
Open TCP&UDP test tool and generate TCP connection as following steps. Device has
already created a TCP Server (port 8899) for use. TCP&UDP test tool can be downloaded from
the website:
⚫ DestIP:Destination IP address.
⚫ Port:Destination Port.
http://www.hi-flying.com/ - 23 -
Open serial tool according to following parameters (115200 baud rate as default)
http://www.hi-flying.com/ - 24 -
4.5. HTTP Client Test
HTTP data flow is as following, take EW11 as example, all HTTP related setting is the same.
http://www.hi-flying.com/ - 25 -
Server response back and products UART output packet. It filter the HTTP response header
and only output the header.
http://www.hi-flying.com/ - 26 -
⚫ HTTP POST Test:
Test server address: 115.29.164.59
Test server port: 8432
Path: /iot
Header:
Host:115.29.164.59:8432
Connection: keep-alive
Products setting as following.
Server response back and products UART output packet. It filter the HTTP response header
and only output the header.
http://www.hi-flying.com/ - 27 -
Data flow is as following.
http://www.hi-flying.com/ - 28 -
Use MQTT.fx tools to test, set publish topic to the device Subscribe Topic and the publish
data will be sent to device UART.
Set tools subscribe topic to the device publish topic and the send UART data, the MQTT.fx
tools got the packet.
http://www.hi-flying.com/ - 29 -
4.7. Firmware Upgrade
Firmware download address:
http://www.hi-flying.com/index.php?route=download/category&path=1_3
⚫ Webpage Local Upgrade:
PC connect to device, login with device IP(10.10.100.254 or STA IP got from router)
There is another internal webpage for upgrade the firmware and webpage (external config
webpage as above, this source code is open at our website for customer to chagne). Login with
IP/hide.
http://www.hi-flying.com/ - 30 -
⚫ IOTService Remote Upgrade:
Refer to IOTService tools doc for remote upgrade.
http://www.hi-flying.com/index.php?route=download/category&path=1_7
http://www.hi-flying.com/ - 31 -
5. HF5122 NETWORK CREATION
5.1. Basic Usage
The Single UART usage is the same as above, the following introduce double UART usage.
Open IOTService and click device setting. The following figure can set two serial parameter.
http://www.hi-flying.com/ - 32 -
Create another socket and choose uart2.
Reboot device. Open TCP&UDP test tool and create two clients connect to device TCP
Server(port numbers are 5555 and 6666)
http://www.hi-flying.com/ - 33 -
Mutual data transmission between TCP and two serial ports.
http://www.hi-flying.com/ - 34 -
5.3. Multiple Ethernet Connection
HF5122 has two Ethernet interfaces and it can be connected by Ethernet cable, note that the
LAN and WAN IP must be in different subnet.
Modify device socket information, make it working as TCP Client connecting to our test
server. The test server will reply with the received packet.
HF test server:test.server.iotworkshop.com
http://www.hi-flying.com/ - 35 -
TCP port:40432
UDP port:40431
Add heartbeat packet function and set it to MAC address. Device will send this heatbeat
packet to server every 10 seconds.
Our test server will response with the received data, so the PC uart will get MAC address
every 10 seconds.
http://www.hi-flying.com/ - 36 -
The Device Status page will see the packet statistics information.
http://www.hi-flying.com/ - 37 -
APPENDIX A:REFERENCES
A.1.Test Tools
http://www.hi-flying.com/download-center-1/applications-1/download-item-iotservice
http://www.hi-flying.com/ - 38 -