[Q] Bluetooth HDP Profile Android 4.0 - Samsung Galaxy Nexus

Im testing HDP profile for android 4.0. I think that it doesnt works correctly because Im trying with Nonin 9560BT and it connects but it doesnt sends medical data to android.
The trouble is the next:
First, I init bluetoothAdapter and I getProfileProxy. After, device connects to android. I catch ACL_CONNECTED with broadcastReceiver. I ask for bluetoothHealth.getMainFD to open communication but it says Proxy not attached to service. Finally, device disconnected.
Somebody can help me?
Thanks.

Maybe think about putting this in the Android Dev forum?

Related

Incoming Port (Bluetooth)

Hello,
I am trying to allow my Apple Mac to use the phone as a modem. Before I upgraded to WM6 I had this working with no problems.
In order to get it to work, once I had paired the devices I had to create a new incoming port on comm 0. Unfortunately in WM6 I no longer have the "New Incoming Port" option.
Does anyone know how I enable this?
Cheers,
Tim
You really should do some searching...
I'm going to try not to completely jump all over you on this...but you should really read more about the stuff you're putting on your device before you start question threads like this.
Tethering in WM6 does NOT work like it did in WM5...Instead of using silly modem strings and jumping through crazy port hoops and stuff...now there is the internet sharing option in WM6. If you'll start that up you can then use your phone to tether with your mac. If you want to use bluetooth to do this...you'll need Mac OS 10.4.9 to enable the bluetooth PAN profile. If you want to do this through USB...you'll need The Missing Sync for Mac OS X by Markspace. Do some searching...do some reading...the info is already here on how to do it.
enjoy the forums...
Thanks for the reply, your right I found all that info just after posting. I should have said and stopped you waisting your time.
Still can't get it to work properly as it's not allocating an IP from the phone to the mac.

WM6 and Linux - Bluetooth issue

I am trying to get my laptop running linux to use my hermes as a modem over bluetooth. So far I am not succeeding, I have paired the phone and the laptop, but no services show up to share. I have sent files over bluetooth to the laptop and that is just fine.
Has anyone else done this? I really don't want to change my laptop back to windows just so I can surf the net using my phone.
Thanks
What distribution of linux and what window manager do you use?
And does the file transfer work both ways? (to the phone and from it).
I might help you a little
Using Ubuntu - Edgy Eft and Gnome.
I don't have a way for files to be sent from the latop, I am using the blue tooth file sharing program - which seems to be one way only.
I did this a long time ago, so I might have forgot something, but let's give it a try.
First check if you have a rfcomm device in /dev/, there should be something like rfcomm0.
And this is there if you have edited and paired your phone correctly!
(you should add your device to /etc/bluetooth/rfcomm.conf)
Try Gnome-PPP, it's a very good program for dialup rutines ^^
Code:
sudo apt-get install gnome-ppp
The gnome-ppp should be run in root mode because rfcomm device has no privileges, or then you could just chmod it.
But anyways, I've made a script for myself to turn on BT and start gnome-ppp, to run it with root privileges with the following command
Code:
gksudo -u root gnome-ppp
after that you see a window with username password etc.
press setup and put in the following config..
Setup
Now we need a init string! I have no idea what is your provider and what init string is needed for it.
In the Setup window press Init Strings...
And in the first place you set the string.
With Saunalahti as a provider I have a init string of:
AT+CGDCONT=1,"IP","internet.saunalahti"
notice that internet.saunalahti is the APN name for my providers internet gprs connections! So replace this with yours, or then contact your provider and ask for that info
Now back to the first window.
My ISP doesn't require any username but you can't connect without them so put in whatever you like for example
username: none and password: none
or
if you need username and password for your providers GPRS, then add them here
For the phonenumber set the number: *99#
Nothing else, that should be it then if I got it all and remember correct
Then just connect (notice that on TyTN there isn't any "connecting to GPRS" popups when you use a PPP from linux).
in WM6, the phone internet sharing no longer behaves like a modem. not sure how to get it working with Linux
joej said:
in WM6, the phone internet sharing no longer behaves like a modem. not sure how to get it working with Linux
Click to expand...
Click to collapse
what do you mean, the "Wireless Modem" program that you can find in the Programs folder?
I never used that, there's no need of it.
In fact, don't use it, propably wont work with it.
StewartG said:
I am trying to get my laptop running linux to use my hermes as a modem over bluetooth. So far I am not succeeding, I have paired the phone and the laptop, but no services show up to share. I have sent files over bluetooth to the laptop and that is just fine.
Has anyone else done this? I really don't want to change my laptop back to windows just so I can surf the net using my phone.
Click to expand...
Click to collapse
I've been successfully using my Wizard and Hermes as BT modems for GPRS/EDGE/UMTS connections, but only with WM5 (check out my tutorial here: http://klamstwo.org/evad/archives/20 ). After upgrading Hermes to WM6 I am no longer able to create rfcomm device, and I don't know why.
However, it is still possible to use GPRS/UMTS connection under Linux! I've managed to get it working through Bluetooth PAN profile. I'm planning to write some kind of tutorial on my blog pretty soon, but in meanwhile have a look here: http://bluez.sourceforge.net/contrib/HOWTO-PAN - this HOWTO describes quite comprehensively BT PAN usage under Linux.
Basically, you need to set up Internet Sharing via BT on your Hermes, and then connect from your Linux using pand daemon. Check out HOWTO, give it a try, if nothings comes up - feel free to ask here. Good luck.
Btw, my distro is FC6.
gvoima said:
what do you mean, the "Wireless Modem" program that you can find in the Programs folder?
I never used that, there's no need of it.
In fact, don't use it, propably wont work with it.
Click to expand...
Click to collapse
In WM5 it didn't work even with Windows (or I didn't know how to set it up properly). WM6 brings completely new Internet Sharing application which is accessible from Linux without big problems via Bluetooth PAN profile - check out my post above.
I'm planning to try connecting to internet through Hermes/WM6 via USB cable. I guess it's just a matter of installing some usb-driver. It's worth to try, as UMTS/HSDPA connection together with BT drains battery really (I mean REALLY) fast, and also - USB cable offers higher speeds than BT...
Nice to know, i'm using WM5 atm, waiting the official WM6 release from sweden (I live in finland and tried to contact finnish HTC regarding that matter), then I might look into it more.
eva_d said:
I've been successfully using my Wizard and Hermes as BT modems for GPRS/EDGE/UMTS connections, but only with WM5 (check out my tutorial here: http://klamstwo.org/evad/archives/20 ). After upgrading Hermes to WM6 I am no longer able to create rfcomm device, and I don't know why.
However, it is still possible to use GPRS/UMTS connection under Linux! I've managed to get it working through Bluetooth PAN profile. I'm planning to write some kind of tutorial on my blog pretty soon, but in meanwhile have a look here: http://bluez.sourceforge.net/contrib/HOWTO-PAN - this HOWTO describes quite comprehensively BT PAN usage under Linux.
Basically, you need to set up Internet Sharing via BT on your Hermes, and then connect from your Linux using pand daemon. Check out HOWTO, give it a try, if nothings comes up - feel free to ask here. Good luck.
Btw, my distro is FC6.
Click to expand...
Click to collapse
I see your point now, I upgraded to a new ROM and AKU, now the wireless modem is gone and I cannot connect to a rfcomm device anymore. But there is the Internet Sharing application, I'm going to try your tutorial in a moment
What about USB modem?
eva_d said:
[...]I'm planning to try connecting to internet through Hermes/WM6 via USB cable. I guess it's just a matter of installing some usb-driver. It's worth to try, as UMTS/HSDPA connection together with BT drains battery really (I mean REALLY) fast, and also - USB cable offers higher speeds than BT...
Click to expand...
Click to collapse
Hi all,
It's my first post on this forum. But I'm looking forward to finding a way to use my HTC Wizard has a USB modem...
I've seen on another forum that configuring this device as an USB modem can be quite easy done on Windows. So it would be nice to have this working for Linux
joej said:
in WM6, the phone internet sharing no longer behaves like a modem. not sure how to get it working with Linux
Click to expand...
Click to collapse
You can get it working as modem the same way you could do it in WM5 - using the "internet sharing " application.
The problem described here is that when you do
$ sdptool browse <bluetooth_mac_address>
you see no services.
I have the same problem with ubuntu.
When I browse the services of another phone - a nokia for example - I see all of them .
However I had this problem with ubuntu even before upgrading to WM6.
So it seems the problem is in the bluez version delivered with ubuntu.
What I am going to try the next few days is to uninstall the ubuntu release of bluez and build the source code and install.
I had an issue with synce also with ubuntu - not working. So I downloaded synce 's sources and everything works now.
deyanmf said:
You can get it working as modem the same way you could do it in WM5 - using the "internet sharing " application.
The problem described here is that when you do
$ sdptool browse <bluetooth_mac_address>
you see no services.
I have the same problem with ubuntu.
When I browse the services of another phone - a nokia for example - I see all of them .
However I had this problem with ubuntu even before upgrading to WM6.
So it seems the problem is in the bluez version delivered with ubuntu.
What I am going to try the next few days is to uninstall the ubuntu release of bluez and build the source code and install.
I had an issue with synce also with ubuntu - not working. So I downloaded synce 's sources and everything works now.
Click to expand...
Click to collapse
This is mainly because the connection method has changed in WM6.
In WM5 it was done via DUN (Dialup Networking Profile). WM6 Internet Connection Sharing does not utilise or advertise this profile when in place, but sets up a PUNU (Personal Area Network) profile, basically turning the Hermes into a router with dhcp services.
I followed the referenced howto and was able to get my laptop running FC6 connected to the Hermes and auto-assigning an IP address. Unfortunately, though, the connection was not stable and disconnects not long after it was established.
I'll have another read at the howto as I've noticed persistent connection flags that should force reconnection, however if I'm connected to the Company VPN, then I suspect that will continually drop also.
Can anyone post any success stories and configuration/command output that they used to create a stable connection?
Ta
Darren
numanoids said:
Can anyone post any success stories and configuration/command output that they used to create a stable connection?
Click to expand...
Click to collapse
Check out my solution: http://klamstwo.org/evad/archives/40
It actually works stable, however I have never used single connection for more than like 30-60 minutes, yet - I guess.
Btw, works also with Fedora 7.

Wifi to bluetooth

Hi, I have a tactical sail program to my windows phone, but this software can only use bluetooth to connect to the system on my boat. My boat only sends out signals over wifi. Is there a program for windows mobile that lets me receive wifi from the boat and trick the sailing software to belive it gets the information over bluetooth?
Martin
no lol. both two total different communication protocols..
I'm not sure you understood what I meant. Is there a program that can take wifi signals and send them as bluetooth inside the phone, to the sail program.
Martin
im pretty sure what u meant..
and i still say no. thats not possible
its like flying with a bicycle , without wings..
impossible
been searching a bit for bluetooth proxies...
looks worth while investigating it
google bluetooth proxy and check the web-pages which pop up.
i'm not a programmer but still i think u can get this idea to some developer to get it done.....
like my idea would be like get the data from wifi means from specific IPORT and redirect the data to a internal COM port...... u can add this port to a incoming PORT in ur application.....
but again im not sure how much this is possible in implementation
jallajalla said:
Hi, I have a tactical sail program to my windows phone, but this software can only use bluetooth to connect to the system on my boat. My boat only sends out signals over wifi. Is there a program for windows mobile that lets me receive wifi from the boat and trick the sailing software to belive it gets the information over bluetooth?
Martin
Click to expand...
Click to collapse

Bluetooth API?

Hey,
i want to start programming an app for my HD2 which should connect one of my bluetooth devices by starting it. I only know a bit about programming under desktop-windows. Where do I find a reference for the programmers api on WM6.5 / where can i look for the commands i need?
//Edit: The functions i found in the MSDN are for connecting - communicating - closing in this way, but i only want to connect a profile (serialport for tmc) and end.
Hope you can help. Thanks.
125
Found the 32Feet.net SDK but still i can't get the procedures i need.
Nobody with information on programming bluetooth apps?
Somebody must have down something similiar in the past or?
These?:
http://www.codeproject.com/KB/windows/BluetoothDevicesDiscovery.aspx
http://www.mobile-soft-dev.blogspot.com/2010/03/c-wrapper-for-nearby-bluetooth-devices.html
Thanks for the links. Ok that is how to enumerate the devices and i could do a connection over winsock, but still i can't find information on not really do a connection but only pair the bt device so other applications can use it afterwards. Damn
(More Information: App should be used on WIDCOMM stack to connect tmc and start navigation after that to get rid of the annoying selector window which disappears to quick)

Bluetooth SPP Profile

Does anyone know how to enable the bluetooth SPP profile for any of the Sense 3.5 ROMs? What I would like to do is tether my GPS location to my Win7_64bit laptop. Verizon's latest OTA has it enabled and my laptop configures the modem/COM port just fine, but when I try to connect to any of the newer Sense 3.5 ROMs my laptop doesn't detect the SPP feature from my phone and doesn't create a COM port, but creates the other audio features.
Could it be as easy as copying the bluetooth.apk from the Verizon OTA and installing it in one of the 3.5 ROMs?
make a backup and try and let us know
Snag ShareGPS from the market, it will turn your phone into a bluetooth GPS transceiver.
Weselers said:
make a backup and try and let us know
Click to expand...
Click to collapse
I tried that, phone kept restarting when I went into Bluetooth settings. Understandable.
Nova5 said:
Snag ShareGPS from the market, it will turn your phone into a bluetooth GPS transceiver.
Click to expand...
Click to collapse
Thank you for the suggestion! Funny though that I tried this about a day before you replied! I'm such a noob So it seems that the OTA with its DUN, I think, tells my laptop that there's a COM port, and is constantly running, which now makes complete sense. I think it was when I was trying ShareGPS, and actually had it running when I added my phone as a bluetooth device, that I noticed the Serial Port (SPP) within the services of my phone properties on my laptop. The other times I didn't have any GPS tether app running when I added my phone, or any app that creates a bluetooth serial port for that matter, so the SPP service was not listed...brilliant Great learning experience though! In the end I prefer GPS over BT though...guess I'm a sucker for tons of info

Categories

Resources