Thread
:
[Announce] Advanced Clock Plugin
View Single Post
Mentalist Traceur
2011-01-04 , 17:28
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#
203
Yep. Meanwhile, I still can't find a good file to use for figuring out if the wifi module is loaded or not... I suppose I can check /proc/modules, and use a search function/call/whatever it's called, but whatever. I need to know if that's computationally more efficient than python calling a shell command every second, or searching 'proc/modules'... I guess it's ultimately the same or similar...
I'm thinking of using the /proc/net/dev file for calculating data traffic, as it seems to be the only place I've detected telephony data going in/out a lot when idling with GSM and 3G radios on. It also includes local and wmaster and wlan interfaces... I THINK I stumbled into the bt0 interface somewhere (bluetooth), but I can't for the life of me remember where, or if it had the right data.
The only problem is, if usb0 is up, I need to test if loading g_ether instead of g_nokia/g_file_storage and ifup'ing usb0 will change the line order in that file. And if so, that's extra if/then statement hell.
I also would LIKE to be fetching just DATA traffic, not internet traffic. So I want not just USB internet traffic, when available, but all USB data i/o, same with wlan, telephony, and bluetooth. I REALLY wish there was a convenient, nicely documented place where such system information could be found. If there is, I don't know where the documentation is, although I could probably spend more time looking in the development section of this site.
Quote & Reply
|
Mentalist Traceur
View Public Profile
Send a private message to Mentalist Traceur
Find all posts by Mentalist Traceur