seanhold3n / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 0 forks source link

Samsung Galaxy S (Vibrant/Captivate): Infrastructure Mode #449

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which device (manufacturer, type)?
Samsung vibrant

Which firmware is installed?
Stock 2.1

What version of wireless tether are you using?
All

What steps will reproduce the problem?
1. feature doesnt exist.
2.
3.

What is the expected output? What do you see instead?
XXXX

Please provide any additional information below.

I was hoping you guys can add infostruc to this app. It would help alot of us 
out there. who have devices that cant tether to ad-hoc networks. THANKS

Original issue reported on code.google.com by john.b.h...@gmail.com on 20 Jul 2010 at 7:52

GoogleCodeExporter commented 9 years ago
Assuming view log shows no errors, maybe your laptop has problems connecting to 
ad-hoc networks.  

Mine did. I myself have dell e6400 with xp, I could not connect to captivate, 
so I downloaded latest dell driver for the wireless card (intel 5300) rebooted, 
used the intel wireless program (not the windows one), and it works fine now.

This MAY be helpful: when I first installed this wonderful program (thanks 
author, inspiring) I got log errors about could not set ad-hoc mode, and after 
(note this is probably just co-incidence) setting launcherpro as default home 
and rebooting then no more errors about seeting ad-hoc mode.

Original comment by itsbr...@gmail.com on 30 Jul 2010 at 12:48

GoogleCodeExporter commented 9 years ago
Any news to get infrastructure mode working? It would really be great since the 
TMO/ATT removed the AP mode :( I want to connect my andorid tablet to my phone.

Original comment by john.b.h...@gmail.com on 30 Jul 2010 at 5:56

GoogleCodeExporter commented 9 years ago
Wow, this is great guys, using 
http://android-wifi-tether.googlecode.com/files/wireless_tether_2_0_5-pre5.apk 
I connected to my Vibrant's connection and got this on my laptop:

Latency: 113ms
Down: 0.20 Mb/s
Up: 1.06 Mb/s

So once TMO upgrades our area past 3G, I think the speeds should be better.

Thanks again!

Original comment by brian...@earthlink.net on 30 Jul 2010 at 5:18

GoogleCodeExporter commented 9 years ago
2.0.5 pre5 still doesn't work on my Vibrant. It says errors while starting 
tethering...

Error log:
Loading wifi driver - done
Activating wifi interface - done
Setting ad-hoc mode - failed
Setting essid - done
Setting channel - failed
Enabling NAT rules - done
Enabling IP forwarding - done
Tethering now running...

Original comment by alset...@gmail.com on 31 Jul 2010 at 5:22

GoogleCodeExporter commented 9 years ago
Interesting situation occurred today. I was driving around and decided to turn 
on the wifi on my Vibrant. I am running pre5. The app would open, however would 
freeze the phone while the start tethering pop up was running. This happened 
several times in a row between forced reboots. I usually run a pitch black 
background however since I was showing off the phone today I started up a live 
wallpaper called Galactic core last night. Since it was the only change I had 
made to the phone since using the program last I changed my wallpaper back to 
pitch black and Wireless Tether worked flawlessly once again. Changed back to 
verify my findings and the live wallpaper was the culprit.

Original comment by kc0...@gmail.com on 2 Aug 2010 at 1:47

GoogleCodeExporter commented 9 years ago
Yes. I have the same error today. When i open wifi-tether the screen is black. 
and when i try to exit. it freezes the whole phone.

Also, can we expect infrastructure mode?

Original comment by john.b.h...@gmail.com on 2 Aug 2010 at 3:20

GoogleCodeExporter commented 9 years ago
I'm going to put -pre6 together tonight. Anyway ... it makes no sense (at least 
at the moment) to me that changing the wallpaper has impact to the tethering 
app.

Regarding infrastructure/master mode: First we need to figure out how to load 
the wifi-firmware which hopefully supports master-mode for these devices. See 
my comment #24. 

Original comment by harald....@gmail.com on 2 Aug 2010 at 1:59

GoogleCodeExporter commented 9 years ago
Doesn't make much sense to me either, but I'm not a dev I'm a RF engineer. 
However, once I got into work this morning I tried enabling the live wallpaper 
again and wireless tether hung up again and froze the phone. Rebooted and 
changed back to a static wallpaper and no problems...so there is a nexus 
somewhere. I gotta tell you that whenever I start the program and my iPad 
connects and works I get a big smile on my face, for no matter how long I have 
been an RF engineer it is still magic to me. So, thanks for all your hard 
work...it is appreciated

Original comment by kc0...@gmail.com on 2 Aug 2010 at 3:15

GoogleCodeExporter commented 9 years ago
Ahh, well I never use live wallpapers, so that might explain why this has 
worked for me ever since I loaded -pre5. WEP too, its a cool app and feature!

Original comment by brian...@earthlink.net on 2 Aug 2010 at 5:07

GoogleCodeExporter commented 9 years ago
-pre6 is up. This one has some small enhancements regarding the 
startup/shutdown-procedures.

Original comment by harald....@gmail.com on 2 Aug 2010 at 11:38

GoogleCodeExporter commented 9 years ago
Just removed pre5 and loaded up pre6 and it opens and allows you to press to 
start tethering, the pop up displays and starts...it then freezes up the phone 
and requires a hard shutdown and subsequent reboot. This is on a Vibrant.

Original comment by kc0...@gmail.com on 3 Aug 2010 at 12:11

GoogleCodeExporter commented 9 years ago
originally had pre4 installed on my captivate and it would error out and crash 
the app when I touched the screen to tether.  I then removed pre4 and installed 
pre6 but it still wouldn't work until I removed the old install files and 
rebooted the phone.

from adb shell do 'rm -r /data/data/android.tether'

After reboot wireless tether re-installed itself upon attempting to tether and 
all necessary files are there and tethering now works flawlessly!!!

Original comment by hazlew...@gmail.com on 3 Aug 2010 at 1:41

GoogleCodeExporter commented 9 years ago
Removed pre5 once again and removed all files associated with it. Rebooted 
phone and loaded pre6. Rebooted once again. Started the program. This time it 
went into tethering mode, program now appears to be running correctly. There 
were no errors on the log all showed a green "done". I was able to start and 
stop tethering several times without closing the program. Was also able to 
start and stop tethering with closing and opening the program. I'm thinking 
that it is important to reboot after removing the old program and reboot after 
installing the new program. Changing SSID and channel both work properly as 
does encryption. Will continue to evaluate as time permits. Using a Vibrant 
phone.

Original comment by kc0...@gmail.com on 3 Aug 2010 at 3:46

GoogleCodeExporter commented 9 years ago
Captivate (att galaxy s)... with uninstalled pre5, installed pre6... everything 
I tested is working for me without the use of adb/sdk (rooted, with the latest 
busybox stable update and the ability to install 3rd party apps)  If I can 
provide any logs, configs, etc... I would be happy to. I tested encryption, 
ssid change, access control, and channel change.

Original comment by pjperfe...@gmail.com on 4 Aug 2010 at 12:08

GoogleCodeExporter commented 9 years ago
ok have tried all so far ... shows the wireless tehering is working, can 
visually see it in my wifi connections but when i attempt to connect it will 
not connect over wifi. I am using a Toshiba laptop, have checked the settings, 
even changed channels on the tethering program and still not able to connect. 
Have gone into the device manager in the comp and checked for updated drivers 
for my wifi and all is current.. am using an intel wifi link 5100 agn.... 
anyone have any ideas on what can be done to connect in unsecured or with wep 
set up?

Original comment by cermak.a...@gmail.com on 5 Aug 2010 at 3:42

GoogleCodeExporter commented 9 years ago
Im on a vibrant. It seems to work persay. But, when you turn it off. it still 
beacons out the signal. I had it on the whole day after turing it off and it 
killed my battery.

I found out when i opened my laptop and clicked airport and i saw my phone. 
then i had to reboot it.

Anyone else?

Original comment by john.b.h...@gmail.com on 5 Aug 2010 at 3:46

GoogleCodeExporter commented 9 years ago
when using pre-6, it worked great.. if it didn't crash then starting the 
tethering (and even sometimes stopping it).

I am trying pre-7 now, harold do you have a changelog anywhere?

Also, thank you so much for continually improving this!

Original comment by nguyener on 5 Aug 2010 at 5:32

GoogleCodeExporter commented 9 years ago
i tried all of them and olny pre4 seems to work in rest of the versions it 
starts fine and my laptop is able to connect to the AP but the internet just 
doesnt work.

Original comment by anil...@gmail.com on 5 Aug 2010 at 6:28

GoogleCodeExporter commented 9 years ago
btw i am on ATT Captivate

Original comment by anil...@gmail.com on 5 Aug 2010 at 6:28

GoogleCodeExporter commented 9 years ago
Just wanted to report in a confirmed working Captivate on 2.0.5-pre7. I'm 
running the stock 2.1 rooted. Windows 7 for the computer.

Tested and working with Ad-Hoc mode. WEP working. Browsed all my normal rounds 
on the web both http and https. 

So happy I switched from T-Mobile to AT&T... I'm getting 3x3 with a 180ms ping.

Original comment by rudybank...@gmail.com on 6 Aug 2010 at 7:41

GoogleCodeExporter commented 9 years ago
I have install pre7. It has fixed the turn off issue and it still runs. so 
thank you :)

Also,

What about inftrstrucre mode? Now that the src is released for both the device 
+ kernel? I really would love this + others.

Original comment by john.b.h...@gmail.com on 6 Aug 2010 at 7:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Pre-8 still randomly hard crashes when trying to start it, forcing a battery 
pull. Happens randomly, no matter if its a fresh boot or after I have ended all 
tasks manually.

Also, randomly, it would lose working data on both the computer and the phone. 
I have to disable the tether then the data starts working again on the phone.

This is on the Samsung Captivate

Original comment by nguyener on 12 Aug 2010 at 12:12

GoogleCodeExporter commented 9 years ago
pre8 with a stock 2.1 vibrant with root installed and worked the first time 
around.  subsequent times, even with re-installation, the device can not 
determine the current state and asks to reboot.  Even with reboot, it still 
can't determine its state.  Starting it gives no errors, but DHCP refuses to 
give devices trying to tether to it an IP.

Original comment by fat...@gmail.com on 18 Aug 2010 at 8:24

GoogleCodeExporter commented 9 years ago
The native tethering setting, MobileAP, was ported from the GalaxyS i9000 to 
the Vibrant, which supports full Infrastructure mode and WPA wireless security:
http://forum.xda-developers.com/showthread.php?t=756804

It was semi-ported to the Captivate:
http://forum.xda-developers.com/showthread.php?p=7762440

Because it is possible to do infrastructure in the Samsung Galaxy S phones with 
the native app, can it be ported to android-wifi-tether, which has a lot more 
features than the native tethering app.

Original comment by nguyener on 21 Aug 2010 at 6:52

GoogleCodeExporter commented 9 years ago
@nguyener: No. That doesn't help at all. They have used the binaries (which are 
closed-source) and configs from another phone (model) and put an update.zip 
together. No sourcecode, nothing which would help. And ... the update.zip 
replaces the System.apk which I would call "dangerous". 

Regarding "hard crashes" when starting "wireless tether". I've NEVER got a 
useful output of dmesg or logcat.

Original comment by harald....@gmail.com on 21 Aug 2010 at 7:27

GoogleCodeExporter commented 9 years ago
Here are screenshots of logcat (since I'm not sure of how to output it to a 
file) of a hard card when trying to start the service. It was about the 3rd 
time I tried it upon a fresh boot that it crashed. image 1 is the furthest I 
could go up and image 3 is the last point where it hard crashed:

http://img828.imageshack.us/img828/6423/hardcrash1.jpg
http://img90.imageshack.us/img90/31/hardcrash2.jpg
http://img413.imageshack.us/img413/8382/hardcrash3.jpg

Original comment by nguyener on 23 Aug 2010 at 1:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Heres a pastebin (I figured out how to output to file) from the launch of wifi 
tether until the crash:
http://pastebin.com/nJG5YHp7

Both crashed at different points it seems, unless the output to the log file 
did not catch it all?

Original comment by nguyener on 23 Aug 2010 at 2:05

GoogleCodeExporter commented 9 years ago
Can you reproduce such crashes if you start from command-line?

adb shell
cd /data/data/android.tether/bin
./tether start 1

?

Original comment by harald....@gmail.com on 23 Aug 2010 at 9:01

GoogleCodeExporter commented 9 years ago
Yep that crashed the phone. I started a logcat to file on the phone using 
terminal app, but it seems the log file only logged the reboot? (I searched the 
file and there was no mention of tethering)

Original comment by nguyener on 24 Aug 2010 at 2:27

GoogleCodeExporter commented 9 years ago
Do you see any output on the console before it crashes? 
Could you please run "dmesg > /sdcard/dmesg_output.txt" in a terminal on your 
phone after such a crash. This will generate a file named "dmesg_output.txt" on 
your sdcard.

Original comment by harald....@gmail.com on 24 Aug 2010 at 4:23

GoogleCodeExporter commented 9 years ago
Like to confirm that 2_0_5-pre8-1 works on my T-Mob Vibrant.  I had to 
uninstall the previous version to make it work.  Actually on it right now to 
post this. 

Original comment by iceb...@gmail.com on 1 Sep 2010 at 2:23

GoogleCodeExporter commented 9 years ago
@icebrkr which download link are you using for pre-8-1?

Original comment by rich.al...@gmail.com on 1 Sep 2010 at 7:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I tried to tether my galazy and I guess I did out wrong if there a way to 
reverse or fix

Original comment by JWagner9...@gmail.com on 2 Sep 2010 at 10:33

GoogleCodeExporter commented 9 years ago
2.1 on captivate works great on pre9 for wifi. Bluetooth has unknown state!

Original comment by stepdiz...@gmail.com on 24 Sep 2010 at 5:12

GoogleCodeExporter commented 9 years ago
http://www.emoiz.com/how-to-connect-samsung-galaxy-s-to-ad-hoc-wifi-network

Original comment by dadyal.i...@gmail.com on 12 Oct 2010 at 4:11

GoogleCodeExporter commented 9 years ago
Doesn't work on my i9000M, none of the version works.

Original comment by samuel.k...@gmail.com on 20 Oct 2010 at 6:25

GoogleCodeExporter commented 9 years ago
mine fix is working for using laptop interent on mobile

Original comment by dadyal.i...@gmail.com on 30 Oct 2010 at 2:34

GoogleCodeExporter commented 9 years ago
I'm using 2.0.5-pre11, the tether works really great and it's awesome; however, 
sometimes the app freezes up my phone completely while starting up (I have to 
restart my phone to get it working again) and I still get the "unknown state".
Overall though, it's pretty minor, the app is great.

Original comment by alexprin...@gmail.com on 16 Nov 2010 at 9:56

GoogleCodeExporter commented 9 years ago
In reply to comment 3:

The source is available at http://opensource.samsung.com/. Look for "SGH-T959". 
I have attached the kernel config.

Original comment by robert.a...@gmail.com on 10 Jan 2011 at 3:44

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I just want you guys know that I'm working on new "method" to enable 
infrastructure-mode. This will (hopefully) work on every device which have "a 
sort of" an official hotspot-app included.

I hope to have a first test version ready in a week or two.

Stay tuned ...

Original comment by harald....@gmail.com on 25 Jan 2011 at 12:04

GoogleCodeExporter commented 9 years ago
Ok. There is now a new experimental version available for download ... this 
version probably support infrastructure (maybe only on android 2.2-devices) now.

http://android-wifi-tether.googlecode.com/files/wifi_tether_v3_0-pre5.apk

Original comment by harald....@gmail.com on 14 Feb 2011 at 9:52

GoogleCodeExporter commented 9 years ago
No feedback?

Original comment by harald....@gmail.com on 15 Feb 2011 at 8:35

GoogleCodeExporter commented 9 years ago
Not 100% sure if this applies to SGS devices other than the Vibrant/Captivate 
but... Currently, the pre5 version doesn't work on my Sprint Epic (Android 2.2 
DK28), it says tethering started with errors. In the log it says:

Loading WiFi driver... done
Stopping driver... done
Loading WiFi firmware... done
Starting driver... done
Configuring softap... failed
Starting softap... failed
Activating WiFi interface... failed
Enabling NAT rules... done
Enabling IP forwarding... done
Tethering now running... done

The earlier versions (pre1 & pre2) worked intermittently, but usually crashed 
the device. Additionally, the second 'hotspot active' notification no longer 
appears.

Clearing the application data didn't help, nor did manually setting my device 
type in the wifi tether settings.

Original comment by fish199...@gmail.com on 15 Feb 2011 at 11:22

GoogleCodeExporter commented 9 years ago
@fish199 ... what did you chose in (app)-settings -> device-profile?
Try to change it to the "epic"-profile or make sure "auto" is selected (the app 
should detect the phone-type automatically).

Original comment by harald....@gmail.com on 15 Feb 2011 at 11:36

GoogleCodeExporter commented 9 years ago
Device-profile was on "Epic 4G", but the same happens when I set it to auto

Original comment by fish199...@gmail.com on 16 Feb 2011 at 5:29