Testing the Connection Status


EnOS Edge provides remote and local testing functions that include the following.

  • Protocol testing: Supports Ethernet and COMM port connection testing. You can view the raw data packet, data parsing result, and protocol log in Edge Details > Access Management > Test Connection. You can also view INFO- and DEBUG-level logs.

  • Communication testing: Supports a variety of console commands to debug communication issues, including Ping, Telnet, and commands that view local IP and TCP connections.

Before You Start

Ensure that the Edge device is connected to the EnOS. For more information, see Connecting Edge Devices to EnOS.

Procedures

  1. In EnOS Management Console, go to EnOS Edge > Edge List > Edge Details > Access .

  2. Click the Figure: Testing Button of the connection.

  3. Test the connection status according to the connection type. Procedures are as follows.

Testing the Ethernet Connection

You can test the added connections to the sub-devices after publishing them. At the Edge Details page, under the Access Management tab, click the Test icon Figure: Testing Button to the right of the connection to go to the Test Connection page where you can view the connections of Ethernet and serial ports created under this Edge device. You can also view the following at the Test Connection page.

  • Data: The real-time device data where you can set a measurement point value for a device.

  • Message: The communication messages under this connection.

  • Log: The communication logs under this connection. The log levels are as per the below.

    • DEBUG: The detailed progress information that can help developers to debug.

    • INFO: The progress and status information, generally useful for all end users.

    • WARN: The potential errors or fatal erros that may interrupt the connection.

    • ERROR: The errors that need to be addressed. The connection may not be affacted.

    • FATAL: The fatal errors that make the connection stop functioning.

    The log levels above are categorized and listed in an ascending order according to the severity, with DEBUG being the least severe and FATAL the most.


You can also view the data, messages, and logs, and set measurement points or record the logs. For detailed procedures, see the chapter “Configuring Data and Logs” below.

Testing the Serial Port Communication

You can test the serial port communication at the Test Connection page. Select the Serial Port tab and click Start.


You can also view the data, messages, and logs, and set measurement points or record the logs. For detailed procedures, see the chapter “Configuring Data and Logs” below.

Using the Console Commands

Common communication debugging commands are provided in the Console tab, including basic ping testing, local IP viewing, Telnet, and TCP connection viewing commands.

Configuring Data and Logs

When testing the connection of the Ethernet or serial port, you can go to the Data or Log tab for configuration.

Setting a Measurement Point Value

To set a simulated value for a measurement point to send to EnOS, click the Set icon set under the Data tab, enter a value, and click the Send icon send.


This operation will not interrupt the uploading of real-time data from sub-devices to EnOS Cloud but will insert the data you set into the uploading data stream.

Viewing Logs

Click Start to start the connection between the Edge and its sub-devices. The logs of level INFO and above will start to come in.


To view the logs of level DEBUG and above, toggle the Debug switch in the Log tab.

Recording Logs

After you start the connection, you can click Record to start recording logs of level INFO and above. If you need to record logs of level DEBUG and above, toggle the Debug switch before clicking Record.


If you toggle the Debug switch after you click Record, the logs of level INFO and above before you click Record and the level DEBUG and above will both be recorded.


The maximum recording period is 5 minutes, after which the recording will stop automatically. You can also click Stop midway. After the recording has finished, you can click Download to download it.

Note

  • Do not leave this page or close it during the recording, or the will recording stop and what has been recorded will be lost.

  • A more recent recording will overwrite a previous recording. Download the previous one before starting a new recording.