Hello!
I have a gsm module and I would like to read the signal strenght (rssi). According with this page: http://wiki.openwrt.org/doc/recipes/3gd … leshooting I can do it with the command gcom -d /dev/ttyUSB0 sig
But when I type this command and the interface gsm is up, it prints:
root@OpenWrt:~# gcom -d /dev/ttyUSB0 sig
comgt 14:49:32 -> -- Error Report --
comgt 14:49:32 -> ----> ^
comgt 14:49:32 -> Error @133, line 8, Could not write to COM device. (1)
So I need to type ifdown gsm and it works.
root@OpenWrt:~# ifdown gsm
root@OpenWrt:~# gcom -d /dev/ttyUSB0 sig
Signal Quality: 13,99
My problem is: the gsm is the only internet connection my device has.
I was thinking putting in my ash script something like this:
ifdown gsm && gcom -d /dev/ttyUSB0 sig | myprogram && ifup gsm && /etc/init.d/openvpn restart
But I don't want to disable the interface to enable it again and risk loosing the connection to my vpn, I don't think it is a good idea.
Is there another way to get the signal strengh?
Any help or indications of where I can find more informations will be more then welcome.
Thanks