Measuring the 2/3G traffic with /proc/net/dev - Galaxy Tab 10.1 Q&A, Help & Troubleshooting

There is currently no app to measure the mobile traffic (2G/3G) of the galaxy tab 10.1. The reason for this is that the linux file /proc/net/dev is not counting the bytes for interface rmnet0 (used for 2G/3G) correctly. The number packets are increasing, but the bytes are jumping around. It looks like the driver is implemented wrong. Is there any kernel hacker who can confirm this? Has anybody tried to contact Samsung regarding this problem? I think we just have to wait for an update...

michaelkebe said:
There is currently no app to measure the mobile traffic (2G/3G) of the galaxy tab 10.1. The reason for this is that the linux file /proc/net/dev is not counting the bytes for interface rmnet0 (used for 2G/3G) correctly. The number packets are increasing, but the bytes are jumping around. It looks like the driver is implemented wrong. Is there any kernel hacker who can confirm this? Has anybody tried to contact Samsung regarding this problem? I think we just have to wait for an update...
Click to expand...
Click to collapse
had the same problem, and its anoying. Got a P7500. Found out that flashing Pershoots kernel tackled that problem.
http://forum.xda-developers.com/showthread.php?t=1138167
The kernel is to be found here.
http://droidbasement.com/db-blog/?p=2301

Related

[DEV] Wireless Monitor Mode

BCM4329 driver source code suggests that monitor mode is possible (for kismet_drone, WIDSs, etc).
http://forum.aircrack-ng.org/index.php?topic=6735.msg34733#msg34733
The idea is to modify wl_iw_set_mode(), and allow IW_MODE_MONITOR by setting these flags:
WLC_SET_MONITOR and maybe WLC_SET_PROMISC too.
Then test with tcpdump if anything changed.
Have you come across anything regarding injection with this driver/chip? Monitoring mode would be nice, but add packet injection to the mix and the Nexus one becomes a lean mean WEP cracking machine.
airo*-ng with gpsd sounds fun.
overridex said:
Have you come across anything regarding injection with this driver/chip? Monitoring mode would be nice, but add packet injection to the mix and the Nexus one becomes a lean mean WEP cracking machine.
Click to expand...
Click to collapse
Confirmed. Damn would that be a seriously good feature for a phone. Wouldn't have to use the laptop then
mer6 said:
Confirmed. Damn would that be a seriously good feature for a phone. Wouldn't have to use the laptop then
Click to expand...
Click to collapse
I would LOVE this. Hate having to drag the laptop around....
I had a go at putting it into monitor mode within a debian Chroot but wasnt having any of it. No idea if its debian/driver/hardware thats stopping it.
Code:
[email protected]:~$ sudo iwconfig eth0
eth0 IEEE 802.11-DS ESSID:"" Nickname:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:72 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Managementmode:All packets received
Link Quality=5/5 Signal level=0 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[email protected]:~$ sudo iwconfig eth0 mode Monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device eth0 ; Invalid argument.
It wont give error when trying to swap into Ad-Hoc but then doesnt swap.
It is about driver, you need to modify it.
If anyone is able to compile & run a compiled wifi driver I can try write a patch for enabling monitor mode.
bump
bump... just wondering
any word on aircrack suite working?
usually broadcom chips don't support it.
fleebailey33 said:
usually broadcom chips don't support it.
Click to expand...
Click to collapse
Can't agree with that assert.
http://aircrack-ng.org/doku.php?id=compatibility_drivers
I'm waiting N1 to be released in my country so I can get one and start investigating.
Any news on this? Would truly be great.
deprecated
fleebailey33 said:
usually broadcom chips don't support it.
Click to expand...
Click to collapse
That's not true, look at the b43 module .. it proves that the broadcom chips are capable of being set into monitor mode, the only thing you'll need is a firmware that is able to supports the monitor mode
sorry for the noob question but what does this accomplish..i see ppl posting not having to carry the laptop and got interested
bonkasnucca said:
sorry for the noob question but what does this accomplish..i see ppl posting not having to carry the laptop and got interested
Click to expand...
Click to collapse
It would basically make our Nexus capable of injecting packets which would allow us to crack a WEP encryption on a secured network to obtain the key and then connect to that network and use the internet
gravufo said:
It would basically make our Nexus capable of injecting packets which would allow us to crack a WEP encryption on a secured network to obtain the key and then connect to that network and use the internet
Click to expand...
Click to collapse
So any work on this been made since OP or is this still being thought about even? Status update would be great.
hi guys,
bcm4329 is also in Desire Z, and Galaxy S I9000.
I posted here in galaxy dev thread,
but there is no further interest..
br
condi
deprecated
gravufo said:
It would basically make our Nexus capable of injecting packets which would allow us to crack a WEP encryption on a secured network to obtain the key and then connect to that network and use the internet
Click to expand...
Click to collapse
There is an app for that try looking for "penetrate" apps on market.
BTW someone need to compil new kernel and drivers files with this flags to test it

[Q] counting mobile data doesnt work

hey folks,
I've been trying around to get a tool working which does count my internet stats.
I've already tried the following ones:
- netcounter
- 3g watchdog
- stats free
- traffic monitor
My device is a galaxy tab 10.1 p7500 (3G) latest stock firmware. rooted + cwm (no custom rom). Does someone else has a similar problem? It's counting Wifi data but not mobile ones. it's not displayed as zero but something like 68KB and I watched videos (connected to mobile data, yes! ) and run varios other applications with internet connection required such as mail, facebook, etc.
Thanks for your support
hey guys,
nobody else having this problem? It wouldn't matter that much at the moment but my internet flat is limited to 300MB HSDPA, afterwards GPRS/EDGE ... so I would like to have an overview about how much data I have used.
Would appreciate if anybody could help me out and let me know if I should test some stuff.
thx a lot
I have a unlimited plan, so i have not tried using counters, but i will try it for you.
EDIT: I tried 3G Watchdog and you are right, it doesn't work. So it seems that data counters are not compatible.
I have another problem, on my device it seems that the signal strength display in asu is stuck at 4. DBm seems to show the correct value but asu shows always 4. Can you please check what yours shows?
thanks for your reply.
same for me. dBm changes but asu shows always '4'.
on my DHD asu is changing nearly everytime. same for the galaxy tab 7" with android 2.3.3 of a colleague, asu is changing and also counters are working.
have you tried installing and using netcounter or something similar on your device?
johansenmo said:
thanks for your reply.
same for me. dBm changes but asu shows always '4'.
on my DHD asu is changing nearly everytime. same for the galaxy tab 7" with android 2.3.3 of a colleague, asu is changing and also counters are working.
have you tried installing and using netcounter or something similar on your device?
Click to expand...
Click to collapse
Thanks for the info, i'm glad to hear that it's not a problem with my tab (or at least i'm not the only one with this problem). Hope it can be fixed with a future software update.
No i haven't tried any other data counter apps, but if 3g watchdog doesn't work, i'm sure none will work. This is either a problem with Honeycomb or Samsung modifications. I'm going to try and search and find out if any other people with other HC tablets have had such problems.
I have the verizon model and used 3g watchdog but now switched over to verizons app. Both worked for me and are pretty accurate when compared to my bill. Just sucks i dont have unlimited.
Tried 3gwatchdog and it was not counting... will email the dev.
nardusg said:
Tried 3gwatchdog and it was not counting... will email the dev.
Click to expand...
Click to collapse
that would be awesome to have a fix for that!
also found a german blog entry yesterday that it's a known problem but there is no fix yet
if someone can read german:
http://www.android-hilfe.de/1437639-post1.html
I searced a little, it seems these apps work on Xoom, so it can't be a Honeycomb problem. I found people are having problems only with European GT10.1 and GT10.1V, so it seems to be Samsung specific problem.
In 3G watchdog there is the option in settings to "Use pre-Froyo traffic counting interface"
androidtee said:
In 3G watchdog there is the option in settings to "Use pre-Froyo traffic counting interface"
Click to expand...
Click to collapse
already tried that, will not help!
would be really nice to have a fix for that because even there may be users which do not have a mobile data limit ... there may be some that have one
same here. cell data not counting. using traffic counter pro. maybe the incorrect interface have been selected. couldnt fi d the correct one yet.
Same here. Let me know if anyone has a option. It is not fun browsing in the dark (not knowing where my data plan is)
Will a custom ROM solve this maybe?
Vissie
Seo fixed it over in the Galaxy Tab 10.1 V section.
To bad that he has the V version and not the normal.. he is a great developer..
http://forum.xda-developers.com/showthread.php?t=1155023
try data counter widget. Works great for me
same problem here with 3g monitoring on my P7510

Serious PEAP Wireless Problem (SK17i)

I've been having serious problem with Wifi on my SK17i when connected to the PEAP 802.11x wireless network at work.
At first I thought it was the wireless connection attempting to maintain too high a link speed but more testing suggests it's more fundamental than that.
What I've discovered is that I can set up an ICMP ping to the default gateway that will work fine as long as that is the only traffic but soon after I start transferring data outside the network the pings to the default gateway start failing (with the message ping: sendmsg: No buffer space available) and no network traffic goes anywhere over the wifi connection until I turn it off and on again, but if I do that then as soon as I start sending real data again the connection will collapse once more.
$ ping -c 50 10.4.0.1
ping -c 50 10.4.0.1
PING 10.4.0.1 (10.4.0.1) 56(84) bytes of data.
64 bytes from 10.4.0.1: icmp_seq=1 ttl=63 time=45.9 ms
...
64 bytes from 10.4.0.1: icmp_seq=28 ttl=63 time=31.7 ms
ping: sendmsg: No buffer space available
I've tested this with stock 4.0.2.A.0.58 (both rooted and unrooted) and CM7 FXP046.
Has anyone else seen anything similar or have any ideas what can be done about it (I've raised it as a bug with SE [though who knows if they'll even read it] and also on the Free Xperia issue tracker)
I use PEAP too, and I have not experienced problems with 4.0.2.A.0.58
That's very interesting...
Can you post your wpa_supplicant.conf (with ssid, id and password removed of course) to check which settings your connection is using ?

[Q] Clarification needed to study fast dormancy

I'm trying monitor fast dormancy(FD). I'm testing it on my Samsung Galaxy s2. I had rooted my phone and installed samsung kernel back.(Android 2.3.4-kernel 2.6.35.7-Carrier:AT&T)
First doubt is, after monitoring the tcp packets, and logcat, there is no sign of FD getting activated (Although i have added entries in nwk_info.db for my carrier, also build.prop doesn't have any entries related to FD). So i think this kernel doesnt support it although my network does. Is there a way to invoke FD in my current OS? Are there any particular custom ROMs tat might support FD (AT&T carrier)?
Second doubt is tat we created a simple app to send and receive(client,server) a single udp packet(full internet access permission given). It works on the emulator(eclipse), but on the phone its working only with wifi, doesn't work with my 4g/3g data connection when wifi is turned off. Is there a fix for this issue?!
Thanks in advance.
galaxys2_fd said:
I'm trying monitor fast dormancy(FD). I'm testing it on my Samsung Galaxy s2. I had rooted my phone and installed samsung kernel back.(Android 2.3.4-kernel 2.6.35.7-Carrier:AT&T)
First doubt is, after monitoring the tcp packets, and logcat, there is no sign of FD getting activated (Although i have added entries in nwk_info.db for my carrier, also build.prop doesn't have any entries related to FD). So i think this kernel doesnt support it although my network does. Is there a way to invoke FD in my current OS? Are there any particular custom ROMs tat might support FD (AT&T carrier)?
Second doubt is tat we created a simple app to send and receive(client,server) a single udp packet(full internet access permission given). It works on the emulator(eclipse), but on the phone its working only with wifi, doesn't work with my 4g/3g data connection when wifi is turned off. Is there a fix for this issue?!
Thanks in advance.
Click to expand...
Click to collapse
1) Where is the confirmation that AT&T supports FD? Everywhere I have ever looked on this subject I've seen conflicting information.
2) FD changes would be in the RIL and modem, not the kernel - don't confuse the svnet-dormancy wakelock with radio fast dormancy. The svnet-dormancy wakelock is just Samsung being lazy and inhibiting CPU suspend for a fixed amount of time after doing anything with the radio rather than determining when it's safe to suspend and destroying the wakelock immediately. (In general, wake_lock_timeouts that ALWAYs expire are a sign of bad coding.) I'm fairly certain it's disabled by default in the stock I777 firmware. (There's a "secret code" in the dialer that you can use to see what it is set to - however last time I tried changing it, it did nothing, and I forget what the code was.)
3) How are you monitoring FD behavior?
4) As to the UDP issue, have you confirmed that it isn't just AT&T's NAT implementation blackholing something? What happens if you run the same app on a wifi device that is tethered to the GS2?

Problem doing VPN

Hi all
I've setup VPn tunnels to my office on my S9+. I've setup a PPTP from the built in client and IPsec and SSL from the Fortinet Client and none of them are working.
I'm sure that authentications are correct as I use same settings on my laptop running windows 10 and on a iPhone 7 plus.
Anyone with the same problem?
This might not help you exactly but there seems to be an issue with the stock ROM and VPNs. Adguard, which blocks ads via VPN, was also having the same issue and the devs have reported it to Samsung from what I understand. The fix will probably come during a later update since VPN issues are a bigndeal, especially for people who need to use their devices in a corporate environment.
My VPNs include one PPTP and one IPSec/PSK, and they both connect without issues on four different Verizon S9+ phones.
tasmaniandevil69 said:
Hi all
I've setup VPn tunnels to my office on my S9+. I've setup a PPTP from the built in client and IPsec and SSL from the Fortinet Client and none of them are working.
I'm sure that authentications are correct as I use same settings on my laptop running windows 10 and on a iPhone 7 plus.
Anyone with the same problem?
Click to expand...
Click to collapse
Same here, PPTP not working on my s9+. But IPSec/PSK working (slow speed)
Hi
same here . It's little different for me
PPTP work with S9 but in hotspot, i can't connect to PPTP VPN on my laptop with wifi of S9 !
There is a really problem with PPTP ...
I opened ticket here : https://forum.xda-developers.com/galaxy-s9/help/hotspot-vpn-pptp-issue-t3765773 !
New firmware for s9+ and s9
I m waiting new file for my s9.
Bug of vpn pptp is solved ?
not solved with last firmware ...
jpbl1976 said:
This might not help you exactly but there seems to be an issue with the stock ROM and VPNs. Adguard, which blocks ads via VPN, was also having the same issue and the devs have reported it to Samsung from what I understand. The fix will probably come during a later update since VPN issues are a bigndeal, especially for people who need to use their devices in a corporate environment.
Click to expand...
Click to collapse
Hola
I just wanted to give you a heads up that Adguard dev's have figured out a temporary workaround to make the their VPN ad blocking features stick. You'll need to check their forums for the actual setting (or use their nightly release which has the setting enabled by default). I have this setting enabled and now I am able to browse ad free for the most part without issues.
I've just update the phone and it's now working yet. Besides that the problem is even worst because I can't even connect VPNs on my laptop if using the phone as hotspot.
I've reported to Samsung and I'm waiting for a call and a remote assistence but if I can get a fix in a few days the phone will be returned because this is a big issue for my work.
tasmaniandevil69 said:
I've just update the phone and it's now working yet. Besides that the problem is even worst because I can't even connect VPNs on my laptop if using the phone as hotspot.
I've reported to Samsung and I'm waiting for a call and a remote assistence but if I can get a fix in a few days the phone will be returned because this is a big issue for my work.
Click to expand...
Click to collapse
I used this functionality fairly frequently with my (Verizon) S8+.
I've just completed about an hour of testing with my (Verizon) S9+.
I tried the USB tether, the Bluetooth tether, and the Hotspot networking on the phone. In each case I established a network connection to the public Internet without issue.
The VPN connections from my Windows 10 system, however - using that S9+ connection - all fail now with one exception.
The PPTP, L2TP/PSK and IKEv2 connections (that all work[ed] with my S8+) will not connect using my S9+.
The one exception is the Microsoft-specific SSTP variant, which tunnels over port-443. That one will connect with the S9+ in all three networking scenarios - USB, bluetooth and Hotspot WiFi.
This seems to indicate that the new phone does not pass TCP port 1723 and/or GRE 47 (PPTP) and UDP ports 500 and/or 4500 (L2TP and IKEv2) through it's network tethering and the WiFi connections.
Bummer.
At least I can still use SSTP to get to my server resources - which is 90% of my VPN needs anyway - but the other connections are dead now.
Connections FROM the phone, using it's built-in PPTP and L2TP profiles to host networks, continue to work properly on the S9+ -- as they did on the S8+.
afh3 said:
I used this functionality fairly frequently with my (Verizon) S8+.
I've just completed about an hour of testing with my (Verizon) S9+.
I tried the USB tether, the Bluetooth tether, and the Hotspot networking on the phone. In each case I established a network connection to the public Internet without issue.
The VPN connections from my Windows 10 system, however - using that S9+ connection - all fail now with one exception.
The PPTP, L2TP/PSK and IKEv2 connections (that all work[ed] with my S8+) will not connect using my S9+.
The one exception is the Microsoft-specific SSTP variant, which tunnels over port-443. That one will connect with the S9+ in all three networking scenarios - USB, bluetooth and Hotspot WiFi.
This seems to indicate that the new phone does not pass TCP port 1723 and/or GRE 47 (PPTP) and UDP ports 500 and/or 4500 (L2TP and IKEv2) through it's network tethering and the WiFi connections.
Bummer.
At least I can still use SSTP to get to my server resources - which is 90% of my VPN needs anyway - but the other connections are dead now.
Connections FROM the phone, using it's built-in PPTP and L2TP profiles to host networks, continue to work properly on the S9+ -- as they did on the S8+.
Click to expand...
Click to collapse
That is the Snapdragon version? Does it have a special ROM from Verizon or is the stock Samsung?
Maybe that is the difference
tasmaniandevil69 said:
That is the Snapdragon version? Does it have a special ROM from Verizon or is the stock Samsung?
Maybe that is the difference
Click to expand...
Click to collapse
Stock Verizon (SD845 8.0) S9+ compared with a stock Verizon (SD835 7.0) S8+. I suppose the difference might be explained by going from Android 7 to Android 8, but I have no way of testing that hypothesis at this time.
(The last phone I modified was a 2013 Motorola RAZR. I've subsequently switched to using my phones as phones, rather than as a hobby. )
If someone has a different experience with employing a networked platform's VPN while using a similar phone in a tethered or hotspot configuration, it would interesting to know.
My own successes with the phone's built-in VPN (PPTP and L2TP) - as separate from the scenario described above -
apparently differ from those of others in this thread for reasons I cannot explain.
I'm in the same boat - a new S9 and can't connect to my work VPN when using the phone as a hotspot. It works fine on S8 and Iphones. Does anyone know how to fix this? This is a critical issue for me as I work remotely quite a bit.
julianskipworth said:
I'm in the same boat - a new S9 and can't connect to my work VPN when using the phone as a hotspot. It works fine on S8 and Iphones. Does anyone know how to fix this? This is a critical issue for me as I work remotely quite a bit.
Click to expand...
Click to collapse
I think there is no fix yet. I had someone from Samsung support connected to my S9 last Tuesday and they could not find anything so they escalated the problem inside Samsung but until now no further news.
S9+ work with IPSEC!
My Samsung S9+ work with IPSEC - tested on Andoid version 8.0.0..
grube007 said:
My Samsung S9+ work with IPSEC - tested on Andoid version 8.0.0..
Click to expand...
Click to collapse
What CPU does it have? Is it unlocked or from what network/provider is it?
tasmaniandevil69 said:
What CPU does it have? Is it unlocked or from what network/provider is it?
Click to expand...
Click to collapse
CPU - Exynos 9810 - 2,7 GHz, its on Croatian network - T-Com ( T-mobile ) - locked.
New update in germany : G960FXXS1ARD1
Maybe a good patch ...
My S9 unlocked (SD) can connect to my L2TP/Ipsec VPN but disconnects within a minute or so (even if the connection is under constant use.) I have another Anrdoid 7 device (and a Windows 10 laptop) that has no problem with the same VPN/router/WiFi combination and can stay connected for hours. I don't know how to escalate this with Samsung in a way where they just don't blame my other hardware.
https://eu.community.samsung.com/t5/Galaxy-S9-S9/VPN-PPTP-Broken-with-HotSpot-Galaxy-S9/td-p/522153

Categories

Resources