On 5/6/2010 2:17 PM, Bastian Bittorf wrote: > * Mark Deneen <mden...@saucontech.com> [06.05.2010 17:30]: > > >> Somewhat related -- Sierra Wireless cards typically speak a proprietary >> protocol on one of the USB serial ports. I have enough of the protocol >> implemented to read RSSI values on UMTS and CDMA cards. >> >> Is this something that OpenWrt is looking to include -- data card signal >> strengths? >> > it would be very nice to include that in an (from user-perspective) > hardware independant way. please post a link to your scripts and > i will think about an interface. > > nbd: ATM there is no easy way to get a signal strength from > a any/madwifi/mac80211-wifi, something like: > > wifi_rssi () > { > local DEV="$WIFIDEV" > local NEIGHBOUR_MAC="$1" > > some_driver_specific_magic() > > echo "$RSSI" # maybe: return $POSITIVE_INTEGER > } > > or? this is also needed for GSM/UMTS-related stuff. > how to begin? > > bye, Bastian > >
Currently, I am interfacing with the serial port through C code -- the protocol is binary. It could be made into a program which returns the signal strength, but I have an issue where when one serial port on the data card is closed, the others close as well. That is, if I have an active PPP connection and I query the signal strength, the PPP connection is dropped. I solve this by having the process run all of the time, and handling the error state of the file closing on me. I am running a SVN version somewhere between 7.09 and 8.09 -- maybe the serial port issue has been resolved in backfire. Also, a "good" RSSI value appears to be different depend on the cellular network. Mark _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel