Description

When Milesight node log file is required to troubleshot, please follow this guide to get the log file by USB port or TTL port.


Requirement

  • Any Milesight LoRaWAN sensors or IoT Controller
  • Any Debug Cable depending on device model:

             o Type-C USB Cable: for AM104/AM107, AM300 series, EM300 series (hardware 2.x), EM500 series, UC300, UC5xx                                                      series, WS558

             o Micro USB Cable: for UC11-T1, UC11xx, UC3x

             o TTL Cable with converter (1.25mm 4pin, JST, female): for all nodes

  • Screwdriver (Optional)
  • Any Serial port tool: take TCPCOM as example


Configuration

Step 1. Open a serial port tool. You can also click here to download and install TCPCOM.

Step 2. Connect device to PC by USB port or TTL serial port. Many Milesight sensors do not have external serial port, please use screwdriver to open the housing of sensor, then connect internal USB port or TTL serial port to PC by debug Cable.

Note: 

1. Please refer to below pin definition to connect to TTL port:

2. If you do not have TTL cable with TTL-USB converter, please purchase it online or contact Milesight for it.


3. If the TTL port is unable to recognize via Milesight TTL cable and converter, click here to download and install the driver.




Step 3. Open TCPCOM, then choose COM port connected with sensor, and configure related parameters like below, click Open .

BauDR: 9600           

DPaity: NONE

DataB: 8bit            

StopB: 1 bit


Step 4. Enable Recv Options to ASCII. Enable Save data to file, then choose a path to save the log file.


Step 5. Enable Send Options to ASCII, then fill command to send window, click Sendto get device log.

USB Port command: @ENABLE UNXX USB DEBUG@

TTL Port command: @ENABLE UNXX UART DEBUG@


Note: When getting the log file from cellular type devices (Milesight UC3x/UC300 series product), please send this command:

@ENABLE UNXX MOBILE DEBUG@


Step 6. Reproduce the issue, and keep this TCPCOM running all the time during you reproduce the issue you met.

Step 7. After reproducing the issue you met, send command to stop printing log. Click Close to stop TCPCOM to take up this USB or TTL port.

USB Port command: @DISABLE UNXX USB DEBUG@

TTL Port command: @DISABLE UNXX UART DEBUG@


Copy and save all printed logs to send it to Milesight Technical support to analyze further.


-End-