[Q] Bluetooth com port reset - HD2 General

Dear All,
I have a great problem with the Toshiba htc hd2 with the Bluetooth com port.
The question is so important that I can arrange to gift a new htc hd2 to the solver, I'm desperate and here is my story:
My company buy 10 htc hd2 with windows mobile 6.5 to use it for sending data grabbed from an external ecg/cardio measurement.
The software solution was to use the cardio device with the bluetooth. We developed the program that listen to the Bluetooth com port and
acquire signals from the cardio device using c#. With the visual studio mobile emulator everything works fine, we are able to use Bluetooth configured com port and
to acquire data from the device, using his proprietary protocol.
However when we move to the HTC HD2 we find the following problem. We are able to connect the HTC HD2 with the cardio device after doing the pairing. We write in a config file the name of the com port. We acquire data and everything is works great.
Unfortunately after this first step configuration when the Bluetooth connection is closed and we try to reopen it again it seems that the com port previously configure is not in the system so we need to
redo the pairing and to reconfigure the port name. This is a great problem because the system will be give to elderly people so it is impossible to teach them how to reconfigure the Bluetooth com port every time they do the measure.
Does anyone found a similar problem?
Again I can arrange to give to the solver a new htc hd2
HELP!!!!
Piero

Can you post the full name or a link to the cardio device you are using? This will be helpful to anyone that knows how to maybe fix or create a work around for your issue.

the problem is that the device is not a commercial one but a research project one
again I pointed out that with pc and other mobiles the connection remain stable it seems a HTC HD2 configuration issues.

paolgiacometti said:
the problem is that the device is not a commercial one but a research project one
again I pointed out that with pc and other mobiles the connection remain stable it seems a HTC HD2 configuration issues.
Click to expand...
Click to collapse
Oh I see then Is there any way you can post the bluetooth specs and protocols for the device in question as one will need to know this information to make a work around or a straight forward fix for your issue.

Related

Auspicious development project - Is it even possible?!

Hi all
I need to develop an IT project for my HNC in Computing.
I'm a mature student with 5 years programming experience in VB. I've also got non-commercial experience with C#.
I was considering developing an application that would run on my QTEK 2020i.
I'm also a member of and MR2 owners club www.imoc.co.uk
I was thinking of combining these two interests and developing a diagnostic application.
Basically, as with most cars, the MR2 has a diagnostic port into which you can plug a diagnostic tool. Most of these tools simply run into a box with a single LED...the idea being that if there's a problem with your engine, the LED will blink and you are left to count those blinks and then look up that number of blinks to determine the error.
I was hoping to fabricate a connector from this diagnostic plug that I could connect to my QTEK 2020i. I would then read the pulses from the diagnostic port and interpret them programatically; presnenting the user of my application with an on-screen display of the erros and an option to print a report!
This could be expanded to encompass multiple vehicles...perhaps by providing the user with the ability to enter their own diganostic parameters etc.
Anyhow, I have no knowledge of developing on the .NET CE and even less when it comes to the potential uses of the various imputs on the QTEK.
Can anyone tell me if ANY of this sounds plausible?
Cheers
Wayne
This sounds a fun little project. Have you thought about using a modified Bluetooth GPS reciever to transmit the signal via bluetooth to your PDA which you could then check up apon when your running the engine on the move.
All you'd need to do is listen to the bluetooth com port and display the relavent data regarding your engine.
Just an idea to make it a wireless mod for a more impressive feature.
(Now I'm wondering if a QTEK 2020i could program an ECU for full engine customisation on the move.)
I saw a bluetooth car diagnostic system using a Microsoft smartphone at the Modaco meetup last year. Didn't get me excited, but did a full job at getting full diagnostics...
V
symondavis said:
This sounds a fun little project. Have you thought about using a modified Bluetooth GPS reciever to transmit the signal via bluetooth to your PDA which you could then check up apon when your running the engine on the move.
All you'd need to do is listen to the bluetooth com port and display the relavent data regarding your engine.
Just an idea to make it a wireless mod for a more impressive feature.
(Now I'm wondering if a QTEK 2020i could program an ECU for full engine customisation on the move.)
Click to expand...
Click to collapse
tbh I'd have no idea where to start with modding a Bluetooth receiver (don't yo umean transmitter though?).
Once I've got the application running it would be easy to expand later as I would hopefully develop it in a way that the different aspects of the application work very much "black box". I'd just have to write something to do the bluetooth side of things as an additional "black box" later on.
So, it sounds as though this is very possible then!
any idea if anyone on here knows enough about the numerous QTEK ports or how to access those via the .NET CE! :S
Cheers
Wayne
There is already a C# based OBDII diagnostic program out and contains all Source Code as well
OBDGauge 1.3 for PocketPC
http://www.qcontinuum.org/obdgauge/
I was coding my own version before until i found it, and decided not to reinvent the wheel
I used a XDAII Serial cable and connect it to the OBDII Port to my XDAII. Works perfectly, however, my Universal doesn't have a Serial Port, unless u get a Bluetooth version

TomTom - GPS receiver with short memory?

Hi,
I've trawled the forum and I've followed all the TomTom setup procedures. The Problem is they seem to be for people who can't get TomTom working at all. I can get it working, just awkwardly.
Once I pair with my GPS receiver and go into TomTom i can get a connection. However when i quit TomTom and turn off the GPS it seems to forget. Next time I turn it on I don't get a connection.
The way I understand TomTom is that it seems to wait for the GPS receiver to contact the phone. This seems odd as I would have thought the phone would be the one to initiate contact.
Anyway my GPS receiver just seems to forget what phone it was connected to. TomTom obviously isn't forgetting the port, windows obviously isn't forgetting the pairing. But Every time I use it I have to re-pair the receiver (thus reminding the receiver of the phone it's supposed to be bonded to). It's beginning to drive me a bit insane.
Anyone else have this issue? Perhaps it's to do with my incoming and outcoming ports? Hopefully someone has already solved this? Not seen any references to it anywhere.
Lewis
Hello,
Which version of Tomtom are you using ? The last one (5.21) ? If not, try to upgrade and try again.
Yep 5.2 latest release.
I was hoping upgrade would fix it but alas no.
Lewis
BigDamHero said:
Yep 5.2 latest release.
I was hoping upgrade would fix it but alas no.
Lewis
Click to expand...
Click to collapse
Don't mean to be picky, but 5.2 or 5.21?
I've held off installing TTN on my Wizard, as it works fine on my iPAQ 4700, I have a cradle for that, and according to ttcode, my current device is actually my old 3970, not the current iPAQ... Last week, I had a couple of hour drive to do, so I thought I'd give it a whirl. After an email exchange with TomTom support (who were more helpful than I'd originally given them credit for), I had a new activation code for the Wizard. Here's what I did, from a fairly recent hard reset with no previous TTN install whatsoever. Skip the mail if it doesn't look helpful, but I'll detail my steps in case it helps anyone else...
Although I believe the PC install is mended in 5.21 I copied the map and voice cab files from the CD to my SD card and installed them from there. The GPS drivers and main app I installed from the download I got from the TomTom support site by running the setup util on my PC. Once everything was installed, I moved the maps which seemed to finish up in a sub-directory on the card to the root of the card.
I paired the GPS (my old Emtac BT one) and selected serial port profile. I tried all the offered serial ports in the "Other BT GPS" list in TTN but none worked. Then I went to 'COM Ports' in Comm Manager/Bluetooth Settings and selected "New Outgoing Port". I picked the GPS from the list of paired SPP devices, and it created a new BT COM port on COM6. That definately hadn't been in TTN's list of BT com ports before, but is now there in the list with about half a dozen others. I selected that in the "Other BT GPS" list of BT ports, and TTN connects to the GPS each time.
As I said, I'd recently hard reset the device to try and prove a problem with my BT car-kit soit's quite possible the clean install was the secret, but try creating a new outgoing COM port against the GPS and see if TT remembers that...
Dox
BigDamHero said:
Hi,
I've trawled the forum and I've followed all the TomTom setup procedures.
Click to expand...
Click to collapse
Which?
There are 2 general ways to set it up, 1 works 100% (i use it so know it does ) 1 i dont use and have never tried so may well work in the reverse direction and be causing you errors.
The way i set up tomtom; pair the BT GPS. Open an OUTGOING port to the BT GPS, set my GPS as OTHER (wired/cable) NEMA device (NOT bluetooth) in TTN5. now my tomtom connects to the bluetooth, not the otherway round. This method has thrown up no errors for me at all.
If you have followed the reg edit/hack to show the GPS page in connections then i dont know how the settings differ and the possible results this could have on connection issues.
Let us know which way you are going
I have the exact problem as BigDamHero. Each time I wanna use TTN, I need to delete the previously paired BT GPS and then pair it again, otherwise the TTN will just say No GPS Device. I use TTN v5.21 and Wizard with Windows Mobile 5. I tried my BT GPS device on my brother's PDA which runs on Windows Mobile 3, and it connects like a gem every time. I am also looking if anyone has solved this issue, cos it is tedious re-pairing every time.
Had the same problem until 5 mins ago! Found an explanation in another thread, but only in Dutch..
Here's how to do it:
Turn on GPS
Activate bluetooth on device, go to BT parameters, delete previous pairing like you're used to
Create new pairing, choose GPS, enter passkey, check Serial port in services, go to COM ports and add outgoing port (e.g. COM6) like you're still used to :roll:
Add an incoming port too (e.g. COM7) <-- Here's the trick!
Set your GPS apps to use COM6 (the outgoing one)... and here you are! This time it will work, you can turn off GPS and device bluetooth, turn on again and it will connect by itself.
If you want a bit more you can activate GPS panel, set program port to COM8 (then you will have to use this in your apps) and COM6 as hardware port.
Everything works fine now!
hey man, wot a coincidence....i also just read that post which had the dutch explanation.....BUT however, it's not working for me.
toneslee said:
hey man, wot a coincidence....i also just read that post which had the dutch explanation.....BUT however, it's not working for me.
Click to expand...
Click to collapse
I did everything in the list except for creating the incoming port and it still works everytime (I know that's no consellation to you). I wonder if something else you've installed, or the way you installed the app is causing the problem? Is it worth a hard reset and trying the entire install on a clean wizard?
Dox
A friend didn't need the incoming port either. I believe it has something to do with the GPS, as he has a different brand than me.
With mine, before adding the incoming port if I started an app without erasing/redoing the pairing before I would get a notification saying "Navman GPS wants to connect" and asking me to pair. It would keep coming every 10 seconds whatever I did.
BigDamHero, what brand / model of GPS is it?
Maybe we can see if anybody here, or over on pocketgpsworld has been able to make the same combination work and if so, what they had to do to get it to fly...
Dox.
well, tomtom was the very first thing I installed when I got my new vario. it was only after I got tomtom fully working (but still need to re-pair everytime), then I installed a couple of simple Card games.
toneslee said:
well, tomtom was the very first thing I installed when I got my new vario. it was only after I got tomtom fully working (but still need to re-pair everytime), then I installed a couple of simple Card games.
Click to expand...
Click to collapse
A quick glance at pocketgps suggests others are having similar issues. There's a thread here that suggests leaving it a while, and I seem to remember other GPS issue threads saying power up the GPS and let it get a fix before starting TTN. A more detailed probe round the forum will probably show more of the same.
Dox
I've just flashed my Qtek 9100 to a new ROM, (the O2 one), and since then I've been getting this same problem. With my previous ROM everything worked fine. I was able to turn of either my PDA or GPS, and they would always auto-reconnect in a few seconds. Looks to me like something broke during one of the ROM changes. Which ROM versions does everyone with/without this problem have?
By the way, I have a BT77 GPS.
Hey sorry for the total lack of reply. Been snowed under with exams.
Ok I tried most of what you guys said but didn`t work. BT ports aren't available to select as hardware ports.
However I have managed to solve it. The key was to pair the GPS, and create an UNENCRYPTED OUTGOING port. That's all. Previously I had encrypted ports outgoing and incoming. My GPS applet in control pannel is set to none so it,s nothing to do with that.
I don't know what my GPS is. Its unbranded. One of the cheap common ones.
Hope this helps some people with the same problem.
Lewis

Unable to connect to the Internet via Bluetooth

Guys, could you please help? I have been trying to connect my laptop to the internet using my HTC 9100. I have installed the bluesoleil software, that came with the BT dongle and have also created a BT DUN modem.
The problem is that I cannot make the BT Modem link discoverable to the laptop. When I open Star Menu->programs->Modem link I see three menus. The first one is "Connection" but it only leaves me with the option of choosing between IrDA or USB. There is no Bluetooth to choose from that menu.
Any ideas would be warmly welcomed. I don't know why HTC made it so complicated. I've had SE's, Nokia's and other brands and have never faced such difficulties in connecting.
Thanks in advance for your consideration.
BTW my ROM version is 1.6.7.1
trustworthy said:
Guys, could you please help? I have been trying to connect my laptop to the internet using my HTC 9100. I have installed the bluesoleil software, that came with the BT dongle and have also created a BT DUN modem.
The problem is that I cannot make the BT Modem link discoverable to the laptop. When I open Star Menu->programs->Modem link I see three menus. The first one is "Connection" but it only leaves me with the option of choosing between IrDA or USB. There is no Bluetooth to choose from that menu.
Any ideas would be warmly welcomed. I don't know why HTC made it so complicated. I've had SE's, Nokia's and other brands and have never faced such difficulties in connecting.
Thanks in advance for your consideration.
BTW my ROM version is 1.6.7.1
Click to expand...
Click to collapse
Please read the AKU3 Networking Bible (it also has a lot of info on pre-AKU3 ROM's Internet connectivity): http://forum.xda-developers.com/showthread.php?t=282780
Thanks, Menneisyys. I am speechless, I have to admit. I read your thread (have to admit didn't get much of the essence )and couldn't believe what I read. Never imagined that a high-end device as an HTC Wizard would be deprived of a function like the BT DUN. Come on! This must be some kind of a sick joke!
I have been using mobile internet ever since our provider started offering this service over CSD some 6-7 years ago (maybe more). Noone had ever heard of BT and GPRS those days. At that time IrDA was quite an advance method of connecting my PC to the phone (good old Nokia 6210). No doubt that BT was a much more advanced method of connectiong and it was only logical for me to switch to BT to keep up with the latest in technology.
And now with a modern device (one Wizard undoubtedly is) in my hands I have to take a huge step back to data cable, because it's more convenient, bearing in mind that I got rid of my IrDA dongle, thinking that I may never have to use it again. Dead wrong! Yes, my laptop does not have built-in IrDA or BT modules, but that mainly because I don't change laptops as often as I change mobile phones.
Anyway, hopefully MS would reconsider this issue and do the necessary to deal with this stupid deficiency.
Just came to me: it is the same with HTC Hermes??? With the UMTS support and everything. Gee....hope it's not
trustworthy said:
Just came to me: it is the same with HTC Hermes??? With the UMTS support and everything. Gee....hope it's not
Click to expand...
Click to collapse
Not yet - if you use the standard, pre-AKU3 ROM. It, however, will become a problem with the Hermes too when AKU3 is released.
MS is awre of the problem - I've triggered / provided a lot of feedback on the provate MVBP mailing lists. I'm pretty sure they will reconsider including DUN back in a later AKU.
Thanks, mate. Hope that MS will re-gain their common sense

HTC X7500 - can't connect to two GPS antenna for topographic relief

Hello, my name is Manolo and i'm a surveyor. I'm trying to use my HTC X7500 as a data controller for topographic relief. I own two Topcon hiper pro gps antennas than can communicate with a controller via bluetooth or RS232 cable.
My problem is that when i connect via bluetooth the athena x7500 to the gps antennas, it can see both of them, but it can't hold always the to connections separate at the same time. 99,9% of times i belive the athena connected first to one gps antenna and second to the other one, but at the end i understand it gets the signal only from one. So, to bypass the problem i tryied to connect the athena to one gps via rs232+usb adapter and the other one via bluetooth, but i can't get the rs232 connection. It seems that only Hp ipaq hx series can handle the rs232 connections.
Any suggestions?
Any software that manage bluetooth connections?
typical data controllers: http://www.data-collectors.com/index.html
topcon instruments:http://global.topcon.com/positioning/index.html
Thanks,
Manolo
I don't know if this is relevent, but here is a hint...
When I used to have a bluetooth gps antenna, I had to set up an outgoing com port dedicated to this antenna.
Have you created two different outgoing ports in the bluetooth options, one for each antenna ?
The guy on this thread - http://forum.xda-developers.com/showthread.php?t=515103 - found a usb-to-serial solution for his problem. Maybe he could help you. He also mentions some sort of hardware/driver he's used.
Hope this helps.
Thank you MysterD for answering.
Yes, i tryed to give a different COM to gps antennas, but with no success.
For working with this GPS antennas Topcon gives you also a PPC/Controller (named FC 100), with the antennas. So, HTC 7500 should be an emergency controller that i bought when the original controller got broken and i sent it to the assistance.
So, i checked the Software settings on the original Controller, and it connects on the antennas via bluetooth always on COM8. Yes, same port for both the antennas!
Infact, when i start the software:
1) it scans for bluetooth devices
2) i select the first antenna (a base antenna that i live in a point and don't move it)
3) it disconnect from the first antenna
4) it scans again for bluetooth devices
5) i select the second antenna (rover antenna, that i bring with me during the mesuraments)
6) the software goes into a mesurament menu and o start working.
On the HTC i must search the devices first and than start the software. That's the problem! If i give the same COM8 at both bluetooth devices at the same time, HTC gets confused.
Thank you Wovens.
I'm gonna try the drivers. Let's see if they work!
And there's no place in your software that would enable setting that first antenna should use port COMX and the second one COMY ?
Also, have you tried disabling the feature that lets Windows Mobile manage the GPS ?
On my Diamond, i go to Start > Settings > System > External GPS ("GPS Externe" on my French rom) > Access tab ("Accès", the third tab...) > Uncheck the only option on the tab (manage GPS automatically "Gérer GPS automatiquement" ...).
Yep, i think i already tried, but i'll try again and let you know it tomorrow.
Thanks
Okay,
assigning different ports to bluetooth devices seems working. But there is always something wrong: i can't start mesuring when i get into the mesure page. i don't know, i'll try to figure it out. Thanks anyway.
To connect the cable to the athena i probably need a driver for windows mobile. I'll try to find it.
Thank you very much guys,
Manolo
You're welcome.
Let us know if you succeed in getting your measures done !

how to detect a bluetooth connection

hello,
i search a solution to detect a bluetooth connection, device is equal.
all what i found is getBondedDevices() from BluetoothAdapter, but pairing this is not a connection...
thanks 4 help
Solved!
i use ACTION_ACL_CONNECTED and ACTION_ACL_DICONNECTED from class BluetoothDevice.
Code:
getApplicationContext().registerReceiver(receiver,
new IntentFilter(BluetoothDevice.ACTION_ACL_CONNECTED));
getApplicationContext().registerReceiver(receiver,
new IntentFilter(BluetoothDevice.ACTION_ACL_DISCONNECTED));
Android-Wireless
Helo Sir,
How to switch On Bluetooth and Wireless programatically? Even i can't switch on bluetooth and wireless manually in android.
Emulator shows error.
dineshsubramanian said:
Helo Sir,
How to switch On Bluetooth and Wireless programatically? Even i can't switch on bluetooth and wireless manually in android.
Emulator shows error.
Click to expand...
Click to collapse
Emulator actualy dosn't support Bluetooth, WLan and GPS!
CodeFlatter said:
i use ACTION_ACL_CONNECTED and ACTION_ACL_DICONNECTED from class BluetoothDevice.
Code:
getApplicationContext().registerReceiver(receiver,
new IntentFilter(BluetoothDevice.ACTION_ACL_CONNECTED));
getApplicationContext().registerReceiver(receiver,
new IntentFilter(BluetoothDevice.ACTION_ACL_DISCONNECTED));
Click to expand...
Click to collapse
This only works if the device isn't yet connected. If the device is ALREADY connected when your app starts, how do you detect that, without starting a discovery?
been searching for a few days for an answer to this. Anyone got one?
Thanks
Scott
No one has any ideas on this? A month of searching has so far proven futile, but I can't believe it's not possible...
On the Google android developers site there is a complete example (a bluetooth chat).
http://developer.android.com/intl/de/resources
Hi!
I'm trying to connect my phone (HTC desire running Opendesire last update or HTC stock 2.2) to a serial to bluetooth converter module.
It seems to me that BluetoothChat sample is a good point to start as this application sends bytes over bluetooth.
That's just what i want to do: send some bytes from phone, receive some bytes from the module
I tried to run the Bluetoothchat sample on my phone:
Discovering and pairing the module is ok, but I'm unable to open a connection.
Anyone ever tried (and get success) to do same things as me?
Thank you.
Delvorak said:
This only works if the device isn't yet connected. If the device is ALREADY connected when your app starts, how do you detect that, without starting a discovery?
been searching for a few days for an answer to this. Anyone got one?
Thanks
Scott
Click to expand...
Click to collapse
Take a look at my SpeakerProximity Project => http://code.google.com/p/speakerproximity/
I faced the same problem and the solution that fitted the best was using BT connect/disconnect receivers that always get triggered and update a shared preference.
Hi,
I'm still having some issue with the bluetoothchat sample from sdk and bluetooth to serial converter module.
Now it works fine with AOSP rom but i'm still unable to make connection with HTC stock rom.
I've tried with a friend to run the application on a galaxy spica and we had the same issue. First the application didn't even start on spica and we had to change permissions to avoid Force Close.
Somebody knows what's wrong with bluetooth and HTC or Samsung?
Thank you
detecting bluetooth STATE_ON
in your OnStart() use :
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if (mBluetoothAdapter != null) //if null device does not support bluetooth
{
if (mBluetoothAdapter.getState()==BluetoothAdapter.STATE_ON) {
//do stuff
}
}
I use a bluetooth listener for the STATUS_CHANGED event to check if BT is switched on.
If so, i enable my scanning avtivities, else i disable them.
Greetz,
Mike
STATE_ON is not the same as connected, though. (I think).
Personally, I've be having trouble figuring out the disconnect event to listen for, but I think the ACL one is what I need. Will try to remember to post back if I get it working. Damn WiFi process always interupts my transfers epecially when email decides it's time to sync.
Anyways, one tip for those having trouble with the BluetoothChat example is that for some reason you dont want to be listening for a connection at the same time as trying to make one. If you try the BluetoothChat example it actually almost always fails to connect. But if you make sure only one device is using listenforRfcomm... and the other is connecting, you'll connect fine.
The Spica thing is some bug with that phone specifically, though I think some people have solved it with some type of strange method reflection. Check stackoverflow for spica/bluetooth.
Just an update for my problem the ACL braodcasts were just what I was looking for though the diconnect broadcast is sometimes very slow to trigger.

Categories

Resources