Related
Hello,
I did quite some searching on this topic but nothing to be found. Maybe some developers can shed some light on this issue?
Many developers have written excellent applications that take the GPS output of the phone and display your coordinates, altitude, speed, and other variables. Presumably, this information can be gathered without the need for a data application.
Now, let's say the data format that the GPS is outputted in (NEMA Standard) is slipstreamed consistently into a Maps application (like Microsoft Streets & Maps), then you would have a winner. The combination of preloaded maps with the power of the GPS receiver in the G1 would give you awesome maps functionality on the cheap (perfect for that Netbook).
However, much GPS status applications only display the output on screen. While it is nice to have a coordinate staring at you in the face, that's all it's doing. Instead, utilizing those NEMA values for the computer to interpret would simplify the process.
My friend and I proposed a couple of concepts on how to take this on:
1) Upload the NEMA data to a server
*Okay idea but defeats the purpose of going Data-less. I might as well use Google Maps
2) Upload the NEMA data to a local server
*Good idea but if the laptop is connected to an ad-hoc network or some weird [sic] network, the phone maybe unable to connect to the same network (i.e. business-style wifi logins)
3) Bluetooth. Beam data through OBEX file transfer or other method.
*Better idea but the implementation of bluetooth in Android does not currently support OBEX file transfers or other pairing mechanisms. Would this be possible to carry out?
4) Serial output via USB.
*Best idea. This would put the GPS receiver in tandem to the other devices.
So...any ideas? Would love to hear them. Are there people who could utilize such functionality for a netbook/laptop combination? Spill your comments, questions, concerns.
Developers, feel free to chime in at any time Thanks.
~NerveBand
try BlueNMEA witch is avaible on the market, it send NMEA over bluetooth.
So does anyone use BlueNMEA and if so can you help set mine up. I cant seem to find any real documentation.
Are there any other options for utilizing the gps on a program like streets and trips?
Can anyone confirm blueNEMA and CM-4.1.9999?
Has anyone successfully gotten this blueNEMA working with a G1 + Bluetooth + Laptop and Streets and Trips?
Love to get this working too... I have the BlueNMEA installed, paird with my laptop over BT but I cant get MS Streets and Trips to see it, if I scan it doesnt see it either... weird.
Here's a bit of documentation I found: http://git.snow-crash.org/?p=blue-nmea.git;a=blob_plain;f=README
Sorry for the bump, but...
Is there any possibility of this ever working over USB rather than bluetooth?
How can I join an Android device to a Bluetooth PAN (Personal Area Network) as a client? In some areas, the only internet connection available would be to tether it through another cell phone via bluetooth PAN (other phone has no wifi).
Solutions that require rooting or config file editing are OK.
I've searched alot, but all results are about going the other way - tethering other devices through the Android.
Soundman6 said:
How can I join an Android device to a Bluetooth PAN (Personal Area Network) as a client? In some areas, the only internet connection available would be to tether it through another cell phone via bluetooth PAN (other phone has no wifi).
Solutions that require rooting or config file editing are OK.
I've searched alot, but all results are about going the other way - tethering other devices through the Android.
Click to expand...
Click to collapse
It's Linux, man, all you need is setting network config I was using reverse tethering for some time, this is my script (run on PC):
Code:
sudo pand --listen --role NAP
adb shell pand --connect XX:XX:XX:XX:XX:XX
sudo ifconfig bnep0 192.168.101.1
adb shell ifconfig bnep0 down 192.168.101.2 up
adb shell route add default gw 192.168.101.1 dev bnep0
adb shell setprop net.dns1 192.168.101.1
Of course you should omit 1st and 3rd lines.
Are you sure second phone supports PAN connections, not DUN? PAN is quite complicated for phone, because it requires full NAT.
And you will have problems with Android Market and some other apps. Internet is configured at linux level, Android OS don't know about it, so if application asks: "Do we have internet connection?", Android replies: "No". Android Market will wait for connection even if there is one.
Brut.all said:
And you will have problems with Android Market and some other apps. Internet is configured at linux level, Android OS don't know about it, so if application asks: "Do we have internet connection?", Android replies: "No". Android Market will wait for connection even if there is one.
Click to expand...
Click to collapse
I believe that is a valid concern. Anyone know how to deal with this? Thanks.
Soundman6 said:
I believe that is a valid concern. Anyone know how to deal with this? Thanks.
Click to expand...
Click to collapse
But most of the apps don't check internet status and just use it - they will work. AFAIR I couldn't use Market, GTalk and syncing feature, but Browser, Gmail and many, many more was working.
If you have any WiFi device then you could connect Android to it. Even if it doesn't share internet connection, Android OS will think, that it does (but will use BT connection configured at linux level ) - then any app should work.
At work I got a laptop with windows XP, There's a wireless network but it's EAP secured and I can't connect to it with the phone (Motorola Milestone - Android 2.1).
Did you manage to make internet work through Bluetooth PAN? I just need to use the borwser, so It's not important if market or other apps don't work.
I have android sdk with adb on my laptop and terminal emulator with busybox on my phone. I'm kind of a newbie in this so some hints would be nice. I think many people like me would be gratefull
haxxy said:
Has anybody got it working?
At work I got a laptop with windows XP, There's a wireless network but it's EAP secured and I can't connect to it with the phone (Motorola Milestone - Android 2.1).
Did you manage to make internet work through Bluetooth PAN? I just need to use the borwser, so It's not important if market or other apps don't work.
I have android sdk with adb on my laptop and terminal emulator with busybox on my phone. I'm kind of a newbie in this so some hints would be nice. I think many people like me would be gratefull
Click to expand...
Click to collapse
And my first post was about what, you think? I don't use it now, but I was reverse-tethering through BT for several months, until I bought some data plan.
Above commands should work for you, but... they will let you connect your phone to PC, but I don't know, how to share internet connection on Windows XP. AFAIR I tried to do it, but failed.
There's a bluetooth network icon. I know it's possible to share the internet connection from my ethernet to the other network cards. So this should work also with the bluetooth network.
I will try the commands and see how it goes.
haxxy said:
it's possible to share the internet connection from my ethernet to the other network cards. So this should work also with the bluetooth network.
Click to expand...
Click to collapse
Unfortunately not ;-) It is a cost of easy-clicking-configuration that Windows has - it's very limited, don't work for BT connections. I guess there is some professional software for internet sharing on Windows, but I don't know one.
Brut.all said:
Unfortunately not ;-) It is a cost of easy-clicking-configuration that Windows has - it's very limited, don't work for BT connections. I guess there is some professional software for internet sharing on Windows, but I don't know one.
Click to expand...
Click to collapse
I did this with my symbian phone. I managed to share internet to the bluetooth network, but the phone had a bluetooth PAN profile that connected to my laptop.
No! Already I have a bluetooth network set up on my Ubuntu Laptop - pand is running and there is a dhcp server monitoring the interface. What I need is not the below advice, which are commands to run on the PC, but an application / utility / instructions for enabling BLUETOOTH PAN CLIENT on Android. That is what the original question was too! Anybody?
Paul Beardsell
Brut.all said:
It's Linux, man, all you need is setting network config I was using reverse tethering for some time, this is my script (run on PC):
Code:
sudo pand --listen --role NAP
adb shell pand --connect XX:XX:XX:XX:XX:XX
sudo ifconfig bnep0 192.168.101.1
adb shell ifconfig bnep0 down 192.168.101.2 up
adb shell route add default gw 192.168.101.1 dev bnep0
adb shell setprop net.dns1 192.168.101.1
Of course you should omit 1st and 3rd lines.
Are you sure second phone supports PAN connections, not DUN? PAN is quite complicated for phone, because it requires full NAT.
Click to expand...
Click to collapse
psb777 said:
What I need is not the below advice, which are commands to run on the PC, but an application / utility / instructions for enabling BLUETOOTH PAN CLIENT on Android.
Click to expand...
Click to collapse
4 of 6 lines of my instructions were for setting Android client: connecting, setting IP, routing and DNS. And yes, they are run on Android, not on PC - I thought you will notice "adb shell" prefixes... You can also use dhcpcd instead of last 3 lines, but if you don't understand, what are you doing, you will have problems anyway.
Maybe anyone with Froyo can confirm that there's still no official option for joining a Bluetooth PAN from Android there?
@Brut.all So I guess there's currently no way to kind of telling Android there's a configured connection on Linux level?
By the way, every Mac allows the creation of a Bluetooth PAN with one click so this would be my usage scenario ;-)
This seems like it should work, and indeed I can use a similar technique from an ubuntu laptop to connect to another device, but my HTC Hero doesn't seem to have hcitool or pand installed on it. I downloaded some prebuilt binaries for them but they don't seem to be able to access the bluetooth device:
# /data/tmp/pand --role PANU --connect 00:17:83:0F:0F:C7 -n
pand[5083]: Bluetooth PAN daemon version 3.36
pand[5083]: Connecting to 00:17:83:0F:0F:C7
pand[5083]: Connect to 00:17:83:0F:0F:C7 failed. No route to host(113)
Do all versions of Android come with pand and hcitool? I'm on 1.5 although I'll be reflashing to 2.1 soon.
"find / -name pand" yields no results
trphunk said:
Do all versions of Android come with pand and hcitool? I'm on 1.5 although I'll be reflashing to 2.1 soon.
Click to expand...
Click to collapse
No, it was added by rom cookers and I don't know how they did this. I think there are missing some kernel modules or something like that.
trphunk said:
This seems like it should work, and indeed I can use a similar technique from an ubuntu laptop to connect to another device, but my HTC Hero doesn't seem to have hcitool or pand installed on it. I downloaded some prebuilt binaries for them but they don't seem to be able to access the bluetooth device:
# /data/tmp/pand --role PANU --connect 00:17:83:0F:0F:C7 -n
pand[5083]: Bluetooth PAN daemon version 3.36
pand[5083]: Connecting to 00:17:83:0F:0F:C7
pand[5083]: Connect to 00:17:83:0F:0F:C7 failed. No route to host(113)
Do all versions of Android come with pand and hcitool? I'm on 1.5 although I'll be reflashing to 2.1 soon.
"find / -name pand" yields no results
Click to expand...
Click to collapse
Brut.all said:
No, it was added by rom cookers and I don't know how they did this. I think there are missing some kernel modules or something like that.
Click to expand...
Click to collapse
Thanks, I've got the FroydVillain ROM installed now and can confirm that it comes with pand and hcitool compiled and working.
Reverse tether does seem to work, the method that's worked for me has been to use:
Code:
pand --connect <remote BT device hex address>
ifconfig bnep0 down
dhcpcd bnep0
setprop net.dns1 8.8.8.8
This allows the device to access the internet, and you can ping www . google . com and get a response etc.
However, a lot of android apps (including the built-in google apps for gmail etc) use the ConnectivityService (see source code here) to access the net, and since this method of reverse tethering doesn't change the connectivity state within this service, those apps still believe that there is no internet connection on the device.
I can't see an easy way of "tricking" the ConnectivityService as it appears to have been hard coded to only cater for WIFI and 3G connectivity. So perhaps the only way is to rewrite it.
I've found a few cases of others going through the same issues online, although I think the getMobileDataEnabled return value is a red herring:
(I'm not allowed to post links, so you will need to add http : // www to these
superuser.com/questions/188636/close-connect-android-to-internet-using-usb-tether-through-laptops-newtwork
forceclose.com/questions/2669/connect-android-to-internet-using-usb-tether-through-laptops-newtwork
Looking at the code in ConnectivityService.java it seems that apps must subscribe to this service via getInstance() and then wait for a sendConnectedBroadcast() to occur, triggering them into action (e.g. the gmail app will attempt to sync to the gmail server etc).
Anyone got any ideas for an easier route than rewriting ConnectivityService.java to add an additional connectivity type?
Edit to add:
Found another related discussion at the following site. Seems to suggest modifying the ConnectivityService is the way to go:
comments.gmane.org/gmane.comp.handhelds.android.porting/12028
Based on the posts I've seen in this thread, I'm guessing I can't use BlueTooth PAN tethering from my rooted Dinc to provide internet access to a Samsung Galaxy Tab???
So has anyone tried to Bluetooth tether a Galaxy tab with a phone?
Thanks for this thread! I just successfully Tethered both internet+gps over bluetooth from my G1 to my AdventVega tablet.
For now I am using GScript lite with the following script commands:
Code:
pand --connect {my phones BT hex address}
ifconfig bnep0 down
dhcpcd bnep0
setprop net.dns1 8.8.8.8
dhcpcd bnep0
(for some reason the first dhcpcd command always says permission denied, but the last one always works)
So...
1) Get in to car with Android phone and Vega Tablet.
2) On phone: Enable GPS/Bluetooth, click GPS2Bluetooth widget button, click WiFi Tether (configure for BT), press to start tethering.
3) On tablet: Enable Bluetooth, click Bluetooth GPS Provider, click Start, click Back or Home, click GScript Lite, click "Connect to BT-PAN" (above script)
4) Run GoogleMaps/Navigation on tablet and enjoy using your tablet as the ultimate GPS navigation system (while streaming Pandora in the background)!
I am very happy. I just wish I could make step 2 & 3 be a single click instead of so many.
NOTE: Must have "Allow mock locations" enabled in Settings->Applications->Development
NOTE2: You must pair your phone and tablet in BT settings (it will never say "connected" though, which is fine)
I tried this, but still no connection between my android phone and the other phone. Is there some other method?
Hi, just released Remote Keyboard and could need some feedback.
What it does
Remote Keyboard starts a telnet server on your Droid, so you can connect from your Desktop PC and type on it without having to use a softkeyboard.
It's quite handy for app developers, especially since it allows for copy&pasting text between droid and desktop in both directions.
Remote Keyboard is licensed under the terms of the APL2. It's free of charge and doesn't contain ads
how to connect to pc? i already plug through usb but nothing happen....
remote keyboard is llistening on port 2323 of host blablabla.....test your connection here
Sancipak said:
how to connect to pc? i already plug through usb but nothing happen....
remote keyboard is llistening on port 2323 of host blablabla.....test your connection here
Click to expand...
Click to collapse
Normally, you'd connect via WIFI. USB is the way to go if you can't trust your network. You need to have the Android SDK installed, which allows you to tunnel TCP/IP connections through your USB cable:
adb forward tcp:2323 tcp:2323
Just pushed v1.1 to Google Play. Changes:
- Added a widget to select the keyboard
- Made the UI more instructive
- Added CTRL-S and CTRL-L which directly link to Search and Send action.
- New, more flexible infrastructure for interpreting telnet commands (preparation for future features).
- Made Home, End, and Delete work
- Enabled word selection using CTRL-Cursor.
Big version bumpasaurs:
V1.3:
Map Q to the Back button
No longer show a toast when a connection is made
Reintroduced the disconnect button
Bugfix: no longer show the preview boxes on keypresses
V1.4:
BUGFIX: Don't crash when hitting CTRL-R while not inside an editable
Registered a Settings activity
Connections can now be password protected
F-Keys can now be configured to act as quicklaunchers
Sharing text with Remote Keyboard sends it directly to the telnet client
Added german translation
V1.5
Show IP address in the system notification
Added UP navigation
Show a progressbar while the settings are loading
onyxbits said:
Big version bumpasaurs:
V1.3:
Map Q to the Back button
No longer show a toast when a connection is made
Reintroduced the disconnect button
Bugfix: no longer show the preview boxes on keypresses
V1.4:
BUGFIX: Don't crash when hitting CTRL-R while not inside an editable
Registered a Settings activity
Connections can now be password protected
F-Keys can now be configured to act as quicklaunchers
Sharing text with Remote Keyboard sends it directly to the telnet client
Added german translation
V1.5
Show IP address in the system notification
Added UP navigation
Show a progressbar while the settings are loading
Click to expand...
Click to collapse
had a hard time finding about telnet, and i m still not able to activate it(having connection failed cant find connection on 192.168.1.102 port 2323 and something something,when using cmd...), i will try once i get my laptop back, i m currently using my brother's laptop and i dont want to download 3rd party software here
Will definately try it later and will give reviews then ...
Is it possible to use my device with this and is this able to work with a smart TV?
XT912 RaZR SpYdEr CDMA
hit ThAnKs if I was helpful!!!
is support TV?
Higard, 1droidmod:
I'm not quite sure I understand what you are asking.
New release
Just pushed v1.6 to GPlay. This is a minor feature release, adding the ability to toggle fullscreen in landscape mode.
I want to connect via USB, but i dont get ist.
I typed on windows:
Code:
E:\Android_DEV_Kit\android-sdk-windows\platform-tools>adb forward tcp:2323 tcp:2323
now start Remote Keyboard said Wait for 0.0.0.0 Port 2323
I start Putty -> Telnet 0.0.0.0 : 2323
Network Error: Cannot assign request address
What is wrong?
Dawnrazor said:
I want to connect via USB, but i dont get ist.
I typed on windows:
Code:
E:\Android_DEV_Kit\android-sdk-windows\platform-tools>adb forward tcp:2323 tcp:2323
now start Remote Keyboard said Wait for 0.0.0.0 Port 2323
I start Putty -> Telnet 0.0.0.0 : 2323
Network Error: Cannot assign request address
What is wrong?
Click to expand...
Click to collapse
The IP address is wrong. 0.0.0.0 is nothing you can connect to. Seems like your network interface on Android is down, blocked by a firewall or otherwise inaccessible due to some privacy guard app.
NOTE: even though you tunnel through USB, you still need the TCP/IP layer. You are only forwarding your connection through another transport, not fundamentally switching from network IO to something else.
onyxbits said:
The IP address is wrong. 0.0.0.0 is nothing you can connect to. Seems like your network interface on Android is down, blocked by a firewall or otherwise inaccessible due to some privacy guard app.
NOTE: even though you tunnel through USB, you still need the TCP/IP layer. You are only forwarding your connection through another transport, not fundamentally switching from network IO to something else.
Click to expand...
Click to collapse
Oh thank you, i will check this
onyxbits, thanks for this little app.
i, too, have problems connecting.
i tried the wifi method but i'm not sure if it applies to my setup: i don't have a wifi network at home, but use my phone as a wifi hotspot instead.
what i tried here (arch linux desktop / cyanogenmod 10.1 samsung galaxy mini):
"Test your connection here":
- usb cable connected, issued
Code:
$ adb forward --remove-all
$ adb forward tcp:2323 tcp:2323
$ telnet 0.0.0.0 2323
Trying 0.0.0.0...
telnet: Unable to connect to remote host: Connection refused
- wifi hotspot active and connection established:
Code:
$ adb forward --remove-all
$ telnet 0.0.0.0 2323
Trying 0.0.0.0...
Connected to 0.0.0.0.
Escape character is '^]'.
Connection closed by foreign host.
i am using a hosts-based adblocker on my computer.
i have a similar app on my phone but disabled it (and rebooted) until i figure this one out.
any suggestions?
Im trying to make it work through USB, I type in the cmd "adb forward tcp:2323 tcp:2323" but it does nothing, the USB is plugged in, the Remote Keyboard is on, why is it not working?
to the other guys who wonder, why it does not work:
In my case, after some time, I got it:
If you open the RemoteKeyboard App and click on the text input field and the soft keyboard comes up,
Then you forgot to select the RemoteKeyboard as Input Method.
The RemoteKeyboard App even has a shortcut button at the top right (v1.6 at least), so just click, select RemoteKeyboard,
and the telnet port 2323 should be reachable and present the interface.
@8nexus8: after you did the above, did you try connecting to the phone via telnet on port 2323? Using well.. telnet from the commandline or the PuTTy software for Windows?
also, the "interface" requires a proper telnet interface in order to work. using netcat will work, but with local echo and it will only send input after carriage return
IP 0.0.0.0 , can't connect
Hey Guys,
i also have displayed the IP 0.0.0.0 in App on Phone.
I can't connect via TelNet, i'm using ADB-Tool forward tcp:2323 tcp:2323.
The "real" IP of the Phone is : 127.0.0.1
=> So you need to connect to 127.0.0.1 on Port 2323
In fact TelNet ( i'm on Windows XP ) always try to Connect on Port 23 !
=> SOLUTION : I use PuTTy where you can setup Port "2323" and connect to 127.0.0.1:2323
Everything works quite nice.
I have written a little Batch-File, which execute the comandline "adb.exe forward tcp:2323 tcp:2323" for me, i'm lazy...
Thx to the guy who written this little APK
Thanks for your software.
I used XShell to connect a Sony L50t (4.4, rooted), it had a small problem: I need to press ^<Return> instead of just press <Return> in XShell to send a return to phone.
Besides, what will happen if someone use a scanner to try to login the phone? do it has limitation times of retry?
Thanks.
Not sure if this is the right place to put this, forgive me I'm relatively new to these forums.
But what I have difficulty doing (without setting up a whole static ip / dynamic port or w.e) is trying to turn my home PC on remotely, off the network (technically), then I thought my tablet is always at home, connected to the internet, surely I can use it as a gate way to remotely turn my home computer on using a wake on lan app like unified remote, however I now need to find a way to remotely control my tablet (off network) to do this, I thought team viewer would have been the answer but it requires verification on my tablets end rather than password input to control it, does anyone have any recommendations?
I believe splashtop allows remote control but requires you to be on the same network unless you pay, mobizen will technically allow me but i'd need to 2 step authorise it on every PC i go to, which isn't practical for remote connection.
So wondering if theres anything easier which i've missed!
Craig's Walky Talky!
ok, this does not use voip, no servers, no Internet required!
It has 2 modes
1st mode (default on run) it simply uses your wifi modem to relay your voice data, so everyone using the app on the same wifi network can hear each other!
2nd mode "enable ap" this turns your phone into a wifi router, once enabled on 1 device.. on the other android device click wifi and scan for the ap from the first device..
This mode allows you to talk out in the open anywhere anyplace using just 2 or more android devices just like a real walky talky!
Oh and yes!.... it's the ONLY walky talky app which supports a floating mic! Yup browse the net / play games and still voice chat!
https://play.google.com/store/apps/details?id=com.walkytalky.craigs.walkytalky
No suggestions?
Craig's Remote Control!
A Control your laptop/pc/desktop (98/xp/vista/win7/win8+) from your Android!!
Core Rewritten for more stability on lollipop!
Once the AP is enabled, it can't auto detect what the mobile Hotspot IP is. (No reciever) I'd. .. simply press reset/detect ip to force it to detect ...
Eg 0.0.0.0 simply hit reset button...
https://play.google.com/store/apps/details?id=com.craigs.remote
Craig's Walky Talky!
A Fun tool to allow you to chat with your voice over wifi on the same network!!
Now with easy AP setup, simply press the button to configure the password or open it etc...
Auto switch between wifi and AP from 1 button press!
Wifi access point allows up to 5 people up to 100m..
Default mode uses wifi.... screenshot attached
have tried this, and it works but in 1 second bursts, press 'send' on one handset and the other handset hears 'on/off/on/off/on...' etc. Not a continuous conversation as its just in bits, a bit like morse code.
It's possible there's a fault with wifi or you were too far from the router... does the same happen if you create a hotspot/AP?
I've tested this out on...
Galaxy express - ok
S2 - OK
Galaxy tab - Ok
S4 - ok
But i had issues with an s3, anyone able to confirm if this works on an S3? You might have one in the draw on still in use?
Thanks!