Networking
In the esp-iot-bridge/examples/wireless_nic project, the module runs in AP mode and provides networking over USB. The PC/phone connected to the AP gets 192.168.5.2, while the MCU connected over USB gets 192.168.4.2. Since they are on different subnets, can a PC or phone still remotely control the MCU across subnets?
Yes. The USB NIC side uses 192.168.4.2, while the PC or phone connected to the module AP is on the 192.168.5.x subnet. Packets sent by the PC or phone are forwarded internally by the module to 192.168.4.1, so the two sides can communicate across subnets and even ping each other.
When using ESP32-S3 with EG800AK over USB RNDIS, the network disconnects as soon as Light-sleep starts. Is there any way to reduce power consumption without dropping the network connection?
Once Light-sleep is entered, the APB and USB PHY clocks are shut down, so the USB-related controller can no longer operate normally. As a result, the USB network link is dropped. This is a hardware-level limitation, so it is not possible to keep the USB network connection alive while the chip remains in Light-sleep.
Possible alternatives:
- Switch to a
Wi-Fi + Light-sleepsolution. - Enable
CONFIG_USJ_NO_AUTO_LS_ON_CONNECTIONso the device does not enter sleep while USB is connected, though this increases power consumption. - Use a different 4G interface and switch from USB to
UART.