0% found this document useful (0 votes)
127 views26 pages

PG46 - EG46 - EG46B - Operation Guide V1.1 (20220510)

This document provides instructions for testing the functions of the PG46_EG46_EG46B series of products. It introduces the products and accessories, describes how to set up the serial port connection, and provides steps to test functions like direct network connection, TCP server and client tests, firmware upgrades via LAN or remotely, and Modbus polling. The document contains detailed guidance for evaluating the core capabilities of the PG46_EG46_EG46B products.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views26 pages

PG46 - EG46 - EG46B - Operation Guide V1.1 (20220510)

This document provides instructions for testing the functions of the PG46_EG46_EG46B series of products. It introduces the products and accessories, describes how to set up the serial port connection, and provides steps to test functions like direct network connection, TCP server and client tests, firmware upgrades via LAN or remotely, and Modbus polling. The document contains detailed guidance for evaluating the core capabilities of the PG46_EG46_EG46B products.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

PG46_EG46_EG46B Operation Guide

PG46_EG46_EG46B
Operation Guide
V 1.1

This document applies to the following series of products, please refer to

the user manual for product hardware description.

Elfin-EG46

Protoss-PG46

Elfin-EG46B

http://www.hi-flying.com/ -1-
PG46_EG46_EG46B Operation Guide

1. PG46_EG46_EG46B INTRODUCTION ................................................................................................ 3

1.1. EG46 CONNECT TO 8PIN TERMINAL ............................................................................................. 3


1.2. EG46 INTERFACE CONVERSION CABLE ...................................................................................... 4
1.3. SIM CARD INSERTION ICON .............................................................................................................4

2. SERIAL PORT SETTING ........................................................................................................................ 5

2.1. SERIAL PORT TOOL SECURECRT ..................................................................................................5


2.2. SETTING SERIAL PORT PARAMETERS .........................................................................................5

3. FUNCTIONS TEST .................................................................................................................................. 6

3.1. NETWORK PORT DIRECT CONNECTION MODE ........................................................................ 6


3.2. TCP SERVER TEST IN NETWORK PORT DIRECT CONNECTION MODE ............................. 7
3.3. TCP CLIENT TEST IN 4G MODE .....................................................................................................10
3.4. UPGRADE FUNCTION .......................................................................................................................13
3.4.1. LAN APPLICATION UPGRADE .................................................................................................... 13
3.4.2. LAN WEB CONFIGURATION PAGE UPGRADE ...................................................................... 14
3.4.3. ROMOTE APPLICATION UPGRADE .......................................................................................... 14
3.5. MODBUS MASTER POLLING FUNCTION .....................................................................................18
3.6. VIRTUAL SERIAL PORT, VIRTUAL CHANNEL FUNCTION .......................................................25
3.7. HIS SCRIPT FUNCTION .................................................................................................................... 25
3.8. OTHER FUNCTIONS ..........................................................................................................................25

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:

1.1. EG46 CONNECT TO 8PIN TERMINAL

http://www.hi-flying.com/ -3-
PG46_EG46_EG46B Operation Guide

1.2. EG46 INTERFACE CONVERSION CABLE

1.3. SIM CARD INSERTION ICON

http://www.hi-flying.com/ -4-
PG46_EG46_EG46B Operation Guide

2. SERIAL PORT SETTING


2.1. SERIAL PORT TOOL SECURECRT

Download address: http://www.hi-flying.com/index.php?route=download/category&path=1_4

Unzip the folder, open the SecureCRT executable program, and click Open.

Click the Quick Connect button to create a connection.

2.2. SETTING SERIAL PORT PARAMETERS

Protocol:Serial
Port:The port that the computer is actually connected to (see "My Computer"-> "Device

Manager"-> "Ports (COM and LPT)", as shown in the figure. )

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

3.1. NETWORK PORT DIRECT CONNECTION MODE

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.

Step 2: Open the IOTService and discover the device.

http://www.hi-flying.com/ -6-
PG46_EG46_EG46B Operation Guide

3.2. TCP SERVER TEST IN NETWORK PORT DIRECT CONNECTION MODE


Step 1: Open the TCP & UDP test tool, and use the tool to establish a TCP Client to connect to the
TCP Server of the product. (TCP & UDP test tool can be downloaded from the official website).

 DestIP: IP address of the product.


 Port: The port number of the product TCP Server. The default is 8899,which can also be set
by the user.

 A TCP Server (default port 8899, which can be modified) has been created for the product by
default.

Step 2: Click the Connect button to establish a TCP connection.


 After the connection is successfully established, the left side becomes a green arrow, and if
the connection fails, a yellow arrow.

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

Step 4: Data is transmitted between TCP and the serial port.

http://www.hi-flying.com/ -8-
PG46_EG46_EG46B Operation Guide

http://www.hi-flying.com/ -9-
PG46_EG46_EG46B Operation Guide

3.3. TCP CLIENT TEST IN 4G MODE

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.

High Flying test server: test.server.iotworkshop.com


TCP port: 40432
UDP port: 40431

http://www.hi-flying.com/ - 11 -
PG46_EG46_EG46B Operation Guide

Home page to check the connection status.

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

3.4. UPGRADE FUNCTION

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

3.4.2. LAN WEB CONFIGURATION PAGE UPGRADE


Log in to the product's internal webpage (10.10.100.254/hide) on the LAN, Upgrade application
can upgrade the application, and Upgrade customized webpage can upgrade the web configuration
page.

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

3.4.3. ROMOTE APPLICATION UPGRADE


Log in to High Flying's IOTBridge website (http://bridge.iotworkshop.com/) to register for an
account, or enter through High Flying's official website.

注册完毕后可以获取到 UserId(设备端用)和 ServiceId(IOTService 工具用)

Fill in this value in the tool.

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

3.5. MODBUS MASTER POLLING FUNCTION


PC network cable and serial cable connected to EG46

Open the IOTService tool and click Edit.

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

Right-click EG46 and select Add Device.

 Name: Modbus slave device name


 Protocol: Modbus slave device protocol type
 Port number: serial port number (EG46 only has one serial port, fill in UART1)
 Device ID: Modbus slave device address

http://www.hi-flying.com/ - 20 -
PG46_EG46_EG46B Operation Guide

Right-click the created Device and select Add Attribute.

 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

Two query instructions are established as follows, reg20 is a float type.

Create a task, set the collection time and collection range, and restart the device after the task is
created to take effect.

 Task tag: task id name


 Interval time: complete one polling cycle.
 Attribute selection: register names participating in polling.

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

The interaction process is explained as follows:

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.

Device polling instruction: 01 03 00 00 00 0A C5 CD


modbus Slave reply: 01 03 14 00 00 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00 08 00 09 CD
51

Instruction 2: modbus address 1, function code 3, register start address 20, length 4.

Device polling instruction: 01 03 00 14 00 04 04 0D


modbus Slave reply: 01 03 08 3E 64 C2 F8 42 47 FE FA E7 F1

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.

3.6. VIRTUAL SERIAL PORT, VIRTUAL CHANNEL FUNCTION


See the IOTService tool documentation for details on function usage.

3.7. HIS SCRIPT FUNCTION


See the HIS script documentation for the function usage details.
http://www.hi-flying.com/download-center-1/application-notes-1/download-item-his-script
3.8. OTHER FUNCTIONS
For details on MQTT, WebSocket, Modbus TCP to RTU and other applications, please refer to
the following documents.
http://www.hi-flying.com/download-center-1/application-notes-1/download-item-industry-products-
application-manual-20190528

http://www.hi-flying.com/ - 25 -
PG46_EG46_EG46B Operation Guide

http://www.hi-flying.com/ - 26 -

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy