When the Xiaomi AIoT AC2350 runs OpenWrt 25.12.3, if all terminals disconnect simultaneously, first use a wired computer to verify whether the router is still accessible. Actions such as radio restart, WAN reconnection, and full device reboot may all appear merely as "a momentary network outage." Only after reconnecting can you check the local system logs—by which time, the critical log entries from just before the disconnection have likely already been lost.
Leave a marker for this boot
Log in via SSH from the wired management interface, record cat /proc/sys/kernel/random/boot_id and the first number from cat /proc/uptime (in seconds). If the issue reoccurs, log in again and read the value once more. If the boot ID remains unchanged and uptime continues to increment, check the up, uptime, and address in ubus call network.interface.wan status, as well as wireless association status. A shortened WAN uptime may simply indicate a re-establishment of the interface. Only if the boot ID changes should the investigation focus shift to the end of the previous boot.
On another wired machine, receive a log first.
Prepare a wired server at home that is still powered and has a functioning network connection. Enable syslog reception, and note its management network address, listening port, and whether it uses UDP or TCP. Configure the receiving end firewall to allow only requests from the test router. In LuCI under «System → System → Logs», save the original settings. Then, fill in the remote address, port, and protocol, and apply the configuration. The address and port used here are for isolation testing only; at home, please enter your own receiving endpoint.

cat /proc/sys/kernel/random/boot_id
logger -t reboot-check "boot=$(cat /proc/sys/kernel/random/boot_id) uptime=$(cut -d. -f1 /proc/uptime)"
logread -e reboot-check
On the receiving end, check for reboot-check and look up by the same boot value. Only when the marker is seen locally, sequentially verify: whether the receiving service is listening, whether the protocol configured in the router matches, and the routing and receiving-end firewall settings. After receiving, wait for the next naturally occurring failure. Logs may contain internal network addresses or device names; during debugging, use a receiver endpoint under your management, and retain a segment sufficient to cross over the failure.
Align local and receiving ends using the boot identifier
Recorded a gm52-mark transmission inside a 25.12.6 x86/64 virtual machine, and on the receiving end outside the virtual machine, the mark was read back. First, the startup identifiers from both sides were compared to ensure consistency, followed by a comparison of reception timestamps. After the recording ended, the isolated virtual machine was restarted. The receiving end still retained the old startup marker (6bd96357…), then received the new startup marker (680a9125…), with the new marker being sent when uptime was 13 seconds. This allows differentiation between the two startups; whether the last line before the failure was successfully delivered still depends on the disconnection method.

How to read the last few lines after the next disconnection?
First, record the last old boot marker, fault window, and new marker after reconnection at the receiver end. When encountering continuous kernel panic or watchdog logs, preserve the complete context. In cases of sudden interruption, it may still be due to power loss, kernel stoppage, or interruption in log transmission. Especially for UDP, losing a single line mid-transmission makes it difficult for the receiver to detect the issue. If the board has been configured with pstore/ramoops, after reboot, promptly check only read /sys/fs/pstore to see if any records remain; an empty directory does not rule out a crash. After modifying drivers, even if no disconnections occur, verify that both frequency bands can associate, obtain leases, and access services before concluding that the system has truly recovered.
Restore the LuCI remote logging option afterward, verify that the local logger tag is still visible, and shut down the temporary receive service as needed. The experiment confirmed the log retention path and did not reproduce the AC2350 failure.OpenWrt centrally receives system logs
Comments