PG46 - EG46 - EG46B - Operation Guide V1.1 (20220510)
PG46 - EG46 - EG46B - Operation Guide V1.1 (20220510)
PG46_EG46_EG46B
Operation Guide
V 1.1
Elfin-EG46
Protoss-PG46
Elfin-EG46B
http://www.hi-flying.com/ -1-
PG46_EG46_EG46B Operation Guide
http://www.hi-flying.com/ -2-
PG46_EG46_EG46B Operation Guide
1. PG46_EG46_EG46B INTRODUCTION
Protoss-PG46 and Elfin-EG46 are the same software platform, so function is the same, just the
product hardware interface is different.
EG46 accessories include the following:
http://www.hi-flying.com/ -3-
PG46_EG46_EG46B Operation Guide
http://www.hi-flying.com/ -4-
PG46_EG46_EG46B Operation Guide
Unzip the folder, open the SecureCRT executable program, and click Open.
Protocol:Serial
Port:The port that the computer is actually connected to (see "My Computer"-> "Device
Note: The factory serial port parameters of the product are as shown in the figure above. The user can
modify the working parameters of the product by using IOT Service Tool.
http://www.hi-flying.com/ -5-
PG46_EG46_EG46B Operation Guide
3. FUNCTIONS TEST
This article uses the following examples for test instructions.
Related tools can be downloaded from:
http://www.hi-flying.com/index.php?route=download/category&path=1_4
EG46 Ethernet defaults to LAN port mode, IP address 10.10.100.254, PC can be directly
connected to the Ethernet for parameter configuration or data transmission communication. For
specific Ethernet wiring, please check the product hardware definition or use the interface conversion
cable provided by High Flying. The USB to RS485 adapter is connected to the PC.
Step 1: After the PC network cable is directly connected to the EG46, wait for the product to
automatically assign an IP address to the PC, as shown in the figure below, you can query the PC's IP
address.
http://www.hi-flying.com/ -6-
PG46_EG46_EG46B Operation Guide
A TCP Server (default port 8899, which can be modified) has been created for the product by
default.
http://www.hi-flying.com/ -7-
PG46_EG46_EG46B Operation Guide
Step 3: After connecting the computer's serial port to the device, open the serial port tool with the
following parameters (default 115200 baud rate).
http://www.hi-flying.com/ -8-
PG46_EG46_EG46B Operation Guide
http://www.hi-flying.com/ -9-
PG46_EG46_EG46B Operation Guide
Step 1: The PC is directly connected to the Elfin-EG46 network port, open the IOTService tool, and
check the device status. The following figure shows that 4G has obtained an IP address, the strength
is 83, and it is working properly.
Ability to access the product configuration page using the 10.10.100.254 IP address (default account:
admin / admin)
http://www.hi-flying.com/ - 10 -
PG46_EG46_EG46B Operation Guide
Step 2: Modify the device communication method, establish a TCP Client to connect to the High Flying
test server, and the test server will directly reply to the received data.
http://www.hi-flying.com/ - 11 -
PG46_EG46_EG46B Operation Guide
Step 3: Send data through the serial port, you can see that the same data is received, and at the same
time, the tool can view the statistics of the number of bytes sent and received.
http://www.hi-flying.com/ - 12 -
PG46_EG46_EG46B Operation Guide
The product supports LAN, remote upgrade firmware, upgrade web configuration page, as
detailed below.
3.4.1. LAN APPLICATION UPGRADE
Log in to the product web page (10.10.100.254) on the LAN, and click Firmware Upgrade to
upgrade the application.
Note: Do not power off during the upgrade process, which will cause the product to malfunction
abnormally. Subsequent software versions will be updated to support the firmware backup function.
http://www.hi-flying.com/ - 13 -
PG46_EG46_EG46B Operation Guide
The source code of the configuration webpage can be downloaded from the following address.
You can use this source code to add functions such as displaying the logo on the webpage.
http://www.hi-flying.com/download-center-1/application-notes-1
http://www.hi-flying.com/ - 14 -
PG46_EG46_EG46B Operation Guide
After inserting the SIM card, power on the device, wait until the product is registered to the
network, or look at the network status below, it shows that the network connection is OK.
Add the module MAC address to the tool for binding. It is recommended to use the Cli command
to write the UserId obtained from IOTBridge to the device to prevent the device from being maliciously
bound by other accounts.
http://www.hi-flying.com/ - 15 -
PG46_EG46_EG46B Operation Guide
The computer is switched to connect to the router. In the external network environment, you can
also remotely view the device status.
Log in to http://bridge.iotworkshop.com/, and load the updated OTA firmware (strictly fill in the
figure below, type APP)
After uploading, get and copy the download link address from the background.
http://www.hi-flying.com/ - 16 -
PG46_EG46_EG46B Operation Guide
Copy the link into the tool and right-click the upgrade to upgrade the product remotely.
http://www.hi-flying.com/ - 17 -
PG46_EG46_EG46B Operation Guide
http://www.hi-flying.com/ - 18 -
PG46_EG46_EG46B Operation Guide
Modify the serial protocol to device (modbus master function, the cli command cannot be used
on the serial port in this configuration state.)。
Right click on the device information to enter the modbus setting page.
http://www.hi-flying.com/ - 19 -
PG46_EG46_EG46B Operation Guide
http://www.hi-flying.com/ - 20 -
PG46_EG46_EG46B Operation Guide
Name: The name used when data is reported. When polling multiple register numbers, data
without a name is automatically reported under the regXX name.
Data type: short, bool or float, which affects data reporting.
bool: report as false or true
short: The data is a short integer with a 2-byte length as a register value.
float: The data is in floating point, and the length of 4 bytes is used as a register value.
Byte order: The byte order of the data, whether the high order or low order comes first.
abcd: big-endian mode
badc: big-endian mode and swap byte order.
dcba: little-endian mode
cdab: little-endian mode and swap byte order.
Function code: Function code when modbus polling.
Register address: Modbus polling register start address
Number of registers: The number of modbus polling registers.
Maximum value: The maximum value of data allowed in the float data type.
Minimum value: The minimum allowable data value under the float data type.
http://www.hi-flying.com/ - 21 -
PG46_EG46_EG46B Operation Guide
Create a task, set the collection time and collection range, and restart the device after the task is
created to take effect.
Open the modbus slave software on the PC and simulate the modbus device, as shown in the
figure below, with the address set to 1, function code 3, and the register value set as shown in the
figure below.
http://www.hi-flying.com/ - 22 -
PG46_EG46_EG46B Operation Guide
After the above configuration, the serial port is set up, and then data reporting can be set. TCP,
HTTP, MQTT and other methods can be used. The following example uses TCP Client to connect to a
PC to view the data reported after polling. The aircraft software establishes TCP Server, port 8899,
10.10.100.173 is the PC IP address, and restart the device after the configuration is complete, and
restart the device after the configuration is complete.。
From the PC side, you can see the message sent by the device after polling.
http://www.hi-flying.com/ - 23 -
PG46_EG46_EG46B Operation Guide
According to the configuration of the serial port in the above example, the product automatically
initiates polling data every 10 seconds, and two instructions are issued in a single poll
Instruction 1: modbus address 1, function code 3, register start address 0, length 10.
Instruction 2: modbus address 1, function code 3, register start address 20, length 4.
For the received data, the data is parsed according to the floating point number or short type in
the configuration, and the configuration information is reported.
{
"da": "Device1", //device name
"ti": 0, //task tag
"ts": "2019-08-22 14:14:05.409", //time stamp
"dl": {
"reg1": 0, //register name, short type.
"reg2": 1,
"reg3": 2,
"reg4": 3,
"reg5": 4,
"reg6": 5,
http://www.hi-flying.com/ - 24 -
PG46_EG46_EG46B Operation Guide
"reg7": 6,
"reg8": 7,
"reg9": 8,
"reg10": 9,
"reg20": 0.223400, //Register name, floating point type.
"reg21": 49.999001
}
}
Remarks:
1、 Support the creation of multiple modbus slave devices.
2、 Support several data points.
3、 Support batch import and export of configuration information, directly import parameters,
and complete parameter configuration with one click.
http://www.hi-flying.com/ - 25 -
PG46_EG46_EG46B Operation Guide
http://www.hi-flying.com/ - 26 -