Wi-Fi Problem Locating Guide

[中文]

Overview

This chapter mainly introduces the methods of locating Wi-Fi common problem and capturing logs.

Analysis of Transceiver Path Problems

Common problems in the transceiver path include: low data transmission bandwidth, data transmission packet loss, and high data transmission delay. This type of problem generally requires checking some statistical information through CLI commands, and even requires analyzing the transceiver path log and Wi-Fi air packets. Armino SDK supports LWIP and Wi-Fi bottom layer output sending and receiving related logs by default. These logs are not enabled by default and can be enabled through the API interface when needed to view them. For details, please refer to cli_pkt_debug_cmd function implementation.

Important

LWIP and Wi-Fi logs will affect system performance, please make sure to enable them only when locating problems

Wi-Fi Path Debug Command

The Wi-Fi module also provides sending and receiving statistical information. This information can be queried through the get mac_trx status command. The command returns the following:

$get mac_trx status

$wifid:I(1077306):======================= MAC RX INFO ========================
wifid:I(1077308):rx data cnt:31, upload cnt:36, forward cnt:36, memerr cnt:0
wifid:I(1077308):======================= MAC TX INFO ========================
wifid:I(1077308):tx data dld cnt:12, retry cnt:0, single cnt:12, agg cnt:5, discard cnt:0, success cnt:12
wifid:I(1077308):tx data tx time:269, avg time:22, max time:152
CMDRSP:OK

Note

To view Wi-Fi CLI commands, you need to ensure that the cli_wifi.c module is involved in compilation

Analysis Method of Common Issues about Wi-Fi Transmission

  • Low transmission bandwidth: If the TCP transmission bandwidth is low, you need to pay attention to whether the upper-layer application frequently sends data and encounters a situation where the TCP buffer is full. If similar problems exist, you need to open the logs of LWIP and Wi-Fi and cooperate with the Wi-Fi air interface for analysis.

  • Transmission packet loss: First, confirm whether the transmission and reception is normal through lwip log. If there is no abnormality, you need to open lwip log and Wi-Fi log and analyze the Wi-Fi air interface packet.

  • High transmission delay: This type of problem is generally related to the environment. You can first use the ping program to confirm whether the delay with the target communication address is as expected. If the ping delay is normal, you need to enable lwip log and Wi-Fi log and analyze the Wi-Fi air interface packets.