How to analyze which channel is included in the HTTP API log 2020-06-30
Technical Guides
How to analyze which channel is included in the HTTP API log
-
- This instruction guide aims to help technical staff determine which channel is included in the HTTP API log. Sometimes the client reports that a USSD/SMS passes through the wrong channel when a USSD/SMS is sent via HTTP API. In these cases, it is impossible to analyze the fault via the client’s HTTP packet and we must check the logs on the UC2000 side. Since the HTTP API log does not directly indicate channel information, we must convert it to hexadecimal.
- Channels 0‑7 on the UC2000‑VE side are inserted with SIM cards and registered OK. The device’s IP address is 192.168.34.50. We will send HTTP requests to UC2000 and use one of the channels to send SMS.
HTTP Log Capture
1. Telnet of UC2000-VE- Run the "Putty" application and connect it to UC2000-VE via IP 192.168.34.50 (refer to the following settings). The default telnet port is 23:

- Note :
- If the connection fails, please click Tolls>>>>>Management on the page to check if the Telnet option is enabled on the UC2000‑VF side.
- Restart the device for the configuration to take effect.
2. Open the ADA monitoring window- Connect to telnet and enter the command “en”, then “^ada”. Press Enter to enter ADA mode as follows:
- Enter the command turnon 84 to open the ECC:
Send the HTTP request
- Send SMS to UC2000-VF via the HTTP API.
Analyze the log
1. Retrieve port information value- Locate the "port_map" in the log, you will see the value. For example, the current value is 6:
2. Launch the calculator- Switch the calculator to programmer mode and select Hex.
3. Analyze Value- Enter the value above 6 into the calculator, you will see it converts to hexadecimal.
- The hexadecimal has 32 digits to map 32 channels of UC2000.
- The rule is right-to-left mapping to the UC2000 side channel 0-31.
- The current UC2000-VF has only 16 channels, so we use the first 16 digits.
- In red, you can see that the numeric values 2nd and 3rd are 1 and the two digits are mapped to channels 1 and 2 on the UC2000‑VF side.
- Thus the HTTP client sends SMS to channels 1 and 2.

