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, UC100, UC300, UC5xx series, WS558, CT series, etc.
o Micro USB Cable: for UC11-T1, UC11xx, UC3x
o TTL Cable with converter (1.25mm 4pin, JST, female): for all nodes with TTL port
- 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: if the Milesight device does not have USB port and only has TTL serial port,
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 Send to open debug mode to get device log.
Open debug mode command:
@ENABLE UNXX USB DEBUG@
@ENABLE UNXX UART DEBUG@
Note: When getting the log file from cellular type devices (Example: UC3x/UC300), please send these commands:
@ENABLE UNXX MOBILE DEBUG@
@ENABLE UNXX BASE 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 close debug mode and stop printing logs. Click Close to stop TCPCOM to take up this USB or TTL port.
Close debug mode command:
@DISABLE UNXX USB DEBUG@
@DISABLE UNXX UART DEBUG@
Note: you will fail to log in the sensor configuration page via ToolBox PC software if you did not close the debug mode.
Step 8. Copy and save all printed logs to send it to Milesight Technical support to analyze further.
---End---