examples/LTE modem/README.md
This project demonstrates how to use Serial Studio to visualize signal quality data from a LTE modem HUAWEI K5161H.
Three methods of sending data are described:
The examples are implemented on OS Archlinux, in which Serial Studio can be:
yay
yay -S serial-studio-bin
Data from HUAWEI K5161H can be get by url API http://192.168.9.1/api/device/signal
Python was used to receive, process and generate data frames.
<a name="method_1"></a>
sudo pacman -S socat
socat -d -d pty,rawer,echo=0,link=/tmp/ttyV0,b9600 pty,rawer,echo=0,link=/tmp/ttyV1,b9600
/tmp/ttyV0
cat /tmp/ttyV0
/tmp/ttyV1
echo 100 > /tmp/ttyV1
python-pyserial
sudo pacman -S python-pyserial
lte_serial.py to process data and send it to the virtual serial port /tmp/ttyV1
python lte_serial.py
LTE Modem.ssproj/tmp/ttyV0 and press EnterAfter get first frame of data Serial Studio will automatic open dashboard with plots.
<a name="method_2"></a>
sudo pacman -S mosquitto
mosquitto --verbose
mosquitto_pub -m "abcd,100,50,75,89" -t "lte"
sudo pacman -S python-paho-mqtt
lte_mqtt.py to process and send data to the MQTT broker
python lte_mqtt.py
LTE Modem.ssprojAfter get first frame of data Serial Studio will automatic open dashboard with plots.
<a name="method_3"></a>
Solution with UDP Socket looks much simpler than other.
Run a Python script lte_udp.py to process data and send it to the UDP Socket
python lte_udp.py
LTE Modem.ssprojAfter get first frame of data Serial Studio will automatic open dashboard with plots.