Hot Plug Problem of RNDIS and ECM

- Jul 31, 2019-

Recently, a wave of hot swap communication anomalies between RNDIS and ECM has been fixed, and configuration options for configuring RNDIS delay linkup through menuconfig have been added. The repair points are as follows:


RNDIS:


Hot-swap Windows sends REMOTE_NDIS_RESET_MSG when there is a communication link. This instruction has not been implemented and is now implemented.


Hot-swapping eth_tx threads have a high probability of death when there are communication links, which leads to LWIP card death.


When there is a communication link, the receiving buffer of the hotplug eth_rx is not reset, resulting in an exception to the received data.


ECM:


Hot-swapping eth_tx threads have a high probability of death when there are communication links, which leads to LWIP card death.


When there is a communication link, the receiving buffer of the hotplug eth_rx is not reset, resulting in an exception to the received data.


RNDIS has been tested under stm32f469i-discovery/LWIP2.0.2/Windows 10 1903. The function of RNDIS is normal after repeated hot-swapping during iperf transmission. The function of delay linkup macro is normal before and after opening, and the function of continuous hot-swapping is normal.


ECM has been tested under stm32f469i-discovery/LWIP2.0.2/MacOS Mojave 10.14.2. The function of ECM is normal after repeated hot swapping during iperf transmission.


Previous:On NDIS Next:Six Key Points of Intelligent Security System Monitoring