Doodle Labs Smart Radio Troubleshooting Manual - Page 12

Browse online or download pdf Troubleshooting Manual for Network Hardware Doodle Labs Smart Radio. Doodle Labs Smart Radio 16 pages. Advanced mimo mesh router for resilient private wireless networks

Smart Radio Trouble-Shooting
Guide
UART trouble-shooting
The UART port is described in more detail in the "Serial Interface Guide" available for download
in the Doodle Labs Technical Library [1]. The guide includes information about how to manually
configure the UART port over the CLI. Trouble-shooting the serial interface generally requires
the user to be able to
The general steps to debug the UART port are
1. Make sure you can get data from a PC to the UART port. You can SSH into the Smart
Radio and run the application
Make sure you disable
a. In order to eliminate the user's host machine as the source of the problem, you
can connect the UART port in loop-back mode but directly wiring the UART TX to
the RX. Any message you type in
b. Assuming loop-back works, then the problem could be a mismatch in the
signalling levels, or UART settings (baudrate, parity etc).
2. Assuming that serial data can be sent and received over the UART interface you can
debug the networking side. Close
interface bridge using the GUI. Then in the Smart Radio CLI, you can
a. Check that socat and ser2net are running (they will both be running)
root@smartradio:/# ps | grep -E "socat|ser2net" | grep -v "socat|ser2net"
3133 root
1012 S
3370 root
1072 S
b. Make sure that the firewall is open if you are using server mode
root@smartradio:/# iptables -L | grep 2000
ACCEPT
udp
--
/* !fw3: Allow-Socat */
ACCEPT
tcp
--
/* !fw3: Allow-Socat */
c. Check the status of the socket. In TCP mode, the socket should be either in a
LISTEN
empty or
root@smartradio:/# netstat -tuapn | grep 2000
tcp
0
20711/socat
d. If the connection state is not
trying to connect to the Smart Radio is unable to connect. This is normally a
© 2021 Doodle Labs. All rights reserved.
SSH
into the radio.
picocom
before running
socat
picocom
/usr/sbin/ser2net -c /var/run/ser2net.conf
/usr/bin/socat tcp:127.0.0.1:65534 UDP4-LISTEN:2000
anywhere
anywhere
state or an
ESTABLISHED
ESTABLISHED
0 0.0.0.0:2000
as described in the "Serial Interface Guide".
.
picocom
should be echoed back to you.
picocom
and re-enable and re-start the serial
anywhere
anywhere
state. In UDP mode, the state will be either
0.0.0.0:*
, then it means that the application
ESTABLISHED
Page 12
udp dpt:2000
tcp dpt:2000
LISTEN
September 8, 2021