MS Bluetooth stack causes data transfer delays? - Networking

Stockholm, August 21st 2006.
Dear Forum:
In searching for an answer why the transfer of data over a SPP bluetooth link from a scanner to a Smartphone (OS=MS Smartphone 2003) I came across the below forum entry, which I would like to ask you to comment on.
We have a C++ application running on the Qtek's developed in Visual Studio, using the scanner manufacturer's driver libraries, and many times we experience a difficulty already in the pairing of the two devices.
Secondly, the data transfer (a barcode of a few bytes) between these two devices seems to persistently take seconds, whereas the upload and subsequent ascii-code reply over GPRS from the server to display the validated data is much quicker once that data channel is up.
Where do we start the troubleshooting, and what can you perhaps say re. the BT stack problem here below? Probably the "timeout" it speaks of should really be referred to by some other term, no?
Looking forward to your analysis, AND please alert me by email of any blog/forum response!
Brgds,
/Per Hagman
===============================================
"I was not sure if the slowing part was the phone or the "Bluetooth to RS232" dongle.
So I wrote a test application that sends a char over ther serial port and measure the time it takes to get a echo response.
When I use a serial cable between PC and my Qtek 8080 (HTC) I got 10 ms in response time. Thats OK.
So changed to bluetooth connection.
The response time was now 1002 ms!!
I removed the "Bluetooth to RS232" dongle and connected a TECOM "Bluetooth to USB" dongle at the PC side. The TECOM use WIDCOMM 1.4210 bluetooth stack.
The responce this time was 1003 ms.
The Qtek 8080 (HTC Voyager) has microsoft bluetooth stack inside.
A conclusion of this is that the microsoft bluetooth stack has some kind of timeout that is set to 1000 ms.
It takes some time to pack/unpack data on the bluetooth link, but it should not take 1000 ms to do this.
Wonder if there is some way to change this timeout??
Honken"
URL= http://franson.com/forum/post.asp?method=ReplyQuote&REPLY_ID=359&TOPIC_ID=163&FORUM_ID=3

Related

Bluetooth sync not working!!!

:x i have been trying to get the bluetooth sync to work to no avail. i am using a 3com bluetooth usb adapter on my pc and card on my notebook. i am having problems with both when i try to synchronise. i can see my i-mate has been discovered and bonded; i can send files too. but i cannot synchronise. either there is a bug in the PDA software, or its really hard (needs a rocket scientist) to use!!! either way its dissappointing. can anyone help?
by the way my nokia and ericsson phones sync fine with my current setup.
I have the same problem using a toshiba portege 4010 with bluetooth built in, it works with my Nokia but not with the XDA i am using aytivesync 3.7.1
I would also like some help or ideas please
Thanks
John
Got bluetooth to work once
I got bluetooth to work only once using a Billionton USB Bluetooth adapter. The software is neat, but requires so much messing around with to get the PDA to actually synchronise in bluetooth mode. Unfortunately, I could not get it to work again. Should have documented what I did the first time.
After trying lots of times, it works. I sycronised a XDA2 in bluetooth mode.
There are a few important things
1. You first have to sychronise the XDA2 in USB Cradle to build a standard-partnership between desktop pc and XDA2.
2.remove the XDA2 from the Cradle.
3.look which com-port your bluetooth serial port is using
4.take these settings over to the active sync settings (must be exactly the same com port)
5. pair the two devices
6.start active sync on the XDA2 and sychronise via bluetooth
It works.....
i made a better description with screenshots (in german) but i don't know how to post it.
I use a toshiba laptop with bluetooth built in, but when i scan the available bluetooth things in the XDA 2 it only finds "voice gateway" and "SSA" or something like that, there is no serial port listed, when i scan a phone (nokia) it finds "dun" "serial port" "fax" etc etc.
So i cant connect my XDA2 as the only profiles it seems to have are Voice gateway and some SSA thing, so as there is no serial port listed i cant use activesync, i have bonded with both the voice and SSA thing to com ports from 5 to 9 and get a connection, but as its not a serial port it will not work with activesync.
Sorry for my terrible description of the problem, but if yours works i am sur e it will make sence to you
Thanks
John
Your right ! The XDA2 provides no serial port profile to my Bluetooth stick too. And thats why the Bluetooth GPS Receiver doesn't work.
I know this sounds strange, but with Active Sync Bluetooth definitely works.
Yes I finally got it to work a couple of days ago with a certain type of bluetooth usb adapter and software. All I can say, is that bluetooth is not very user friendly!!!! Activesync should have it show up just as it shows "infrared" in the connection settings. This will make it very easy to select it. In this day and age, you cannot expect a technology to be successful from mass usage if it is not totally idiot proof. BLUETOOTH is not.... WIFI will rule!!!!
Hi so have you bonded to the "ssa" profile, and then what ever com port you used you then changed activesync to use this port and it then works, because i tried this and it done not work.
I also have a tomtom bluetooth that a friend is borrowing, but by the looks of it there is no point in getting it back as if there is no serial port on the available using bluetooth that will not work either
Thanks
John
try this link. it may help u set up your bluetooth with active sync - http://www.bluetoothnews.com/features/ActiveSync.htm
@applecom
No. You just have to pair the Devices. Don't connect to any Profile.
Pair them and then start Active Sync from the XDA 2 and connect with bluetooth.
activesync and bluetooth with xda II
start > settings > system > bluetooth settings > Activesync over blutooth (START)
Nutty but there you go.
XDA II Bluetooth ActiveSync
I noted if you add or change the registry will work even better :
\HLKM\SOFT\Microsoft\Bluetooth\Activesync
IsBTASsetup from 0 to 1
Hi
I have changed the registry like you said, But how dose it work better, the only problems i have are when i ask activesync on the XDA to connect over BT it oftern trys and says port in use, i just retry a few times and it works. After doing the reg edit it did connect first time, but is this what you ment by "its works better"
Thanks
John
As this my first ever post, I don't want to come over as smug, but I took delivery of my XDA 2 today and it synced using bluetooth after about 25 minutes of 'messing'!
All I did was delete all the bonding between the PC and the XDA and told it to sync via bluetooth, initiating from the XDA, I thought that it had failed...but then the XDA sprang to life and 'Bob was my uncle'!!
Very impressed with my XDA 2, having used an XDA for about 8 months.
Andy.
Bluetooth Sync
What I meant was it has become easier to get XDA II sync via bluetooth. Please note that you have to unpair your PC first then change the registry and pair again. If your PC's Bluetooth dongle support Headset profile ( I used anycom USB220 which has this profile) you will see your XDA II asking you if you want Headset profile added and Activesync screen for bluetooth appeared as well. Changing the registry will always make the sync work is what i noted. Seems like XDA II Bluetooth supports many profile just that dont know how to make it works.
Bluetooth Activesync problems
I'm on the verge of giving up on this! Think I should stick to USB sync...here goes...
I've tried the tricks mentioned in the forum to try to get my XDA II to sync via bluetooth with my Sony VAIO laptop (it has built-in bluetooth). I can get the two devices to bond (I enter the PIN number on both the laptop and XDA and it succeeds) but then I try to run the Bluetooth Activesync setup (in Settings-->Bluetooth Settings on the XDA) I get an error message every time that says "Please bond with other Bluetooth device which supports serial port or Activesync profile as your Activesync partner!"
I thought I already HAD bonded the devices? Any ideas?
Cheers
Carlton
Finally sorted it out. Delete the partnership that you already have. Start from start>settings>system>Bluetooth Settings. When you clik start, then pair your device again. After the pairing, you will get the message that Bluetooth Active Sync is now ready.
Still no joy
Thanks for your help Merc.
I tried doing exactly what you suggested but still doesn't work. This is what happens:
I deleted the existing bond on both XDA II and PC.
I went to start>settings>system>Bluetooth Settings and clicked on Start. This gave me the message "Please bond with other Bluetooth device which supports serial port or Activesync profile as your Activesync partner!" like before, then automatically opened the Bluetooth connections control panel in the "Mode" pane. I chose 'Discoverable' and clicked OK. I then went to my PC and used the Wireless Link control panel and clicked 'Add' (to run Bluetooth connection wizard) which searched for devices. It found my XDA II and I entered the passkey on both XDAII and PC (same passkey on each).
The Bluetooth connection wizard then told me that the XDAII was offering DUN (dial up networking) services. I selected this and then clicked next. Was I supposed to select this (actually, it made no difference when I tried again without selecting!).
The wizard completed and both the PC and XDAII notified me that the bond was successful. I then waited and waited for something else to 'happen' (like a message to say that Bluetooth Active Sync is now ready.) but nothing happened. I gave it a couple of minutes.
I went to Activesync on the XDA and tried the 'connct with Bluetooth' just in case it had worked, but nothing happened. I went to Activesync on the PC and tried using a different COM port for infrared/serial links (as I assume this is what bluetooth uses) but no joy. I only had COM3 and COM4 showing in the connection settings in activesync, which surprised me as I thought there would be more.
That's it. I tried 3 times but still no luck. Any other ideas are greatly appreciated!
Cheers
Carlton
The
Your procedure is just like mine. But I used "On" and discovered the PC from the PDA. Do not use "Discoverable". Let me hear if you have any luck
The only way I have got it to work is assigning the bluetooth serial port to COM 6. Then set Activesync on the desktop to COM 6.
Any other COM port just won't work. Anybody else got it working on a different bluetooth COM port?
xdaguru

XDA2 Bluetooth synching with Toshiba 5100 laptop

God, I'm supposed to be good at this, but I've tried all 4 billion permutations on offer and give up - HELP!
Back when I still had hair a few days ago I thought getting the two units to talk to eachother would be fiddly but possible - now I'm not so sure...
First question:
if I delete the partnership and start afresh by trying to sync using BT the XDA re-establishes a partnership OK, and then pops up a dialog asking "BT serial Port COM5, this BT device supports serial port profile, would you like to create a BT serial port for it". The Toshiba BT Service Centre on the laptop now claims ports 4-7 are available (and also says that of these 5 is actually connencted), so I hit OK. AFAIK at this point the paired unts are able to communicate over port 5, but I can't beam files or sync and on checking again on the PC COM5 is now not connected, What is going on?
Second Question:
Has anybody managed to get a real working BT connection between a Tosh 5100 and an XDA2 - maybe it's the bloody Toshiba software?
Third Question:
Where does Mr. Bluetooth live and does anybody fancy going over to his place with me and firebombing it. :evil:
Cheers, I feel better getting that off my chest. And it's my birthday goddamit so I entitled to a good rant.
Peter (now bald)
Bluetooth Sync
Sync Via Bluetooth?
The user manual tells me that it can be done, but not how. should i believe it & keep on trying or just give up now?
Smiley

PAN and Bluesoleil stack

I own 2 Magician devices (A and B), both Bluesoleil stack installed and working. Problems arise when i try to connect the two devices directly via pan. On Device A i initiate the PAN connection via "Bluetooth Manager->Device B->Scanning Services->PAN". Now Device A shows (status) an PANGN connection outgoing and B has an PANGN connection incoming. Device A starts IE and a getting IP dialog right after connection initiation.
So far so good. But both devices are on completely different subnets. While Dev. A is on sth. like 169.254.182.118, B's IP is completely different. Now if i try to fire up a game of snails for testing on A, i see the game open on B but joining leads to system hang. (Tried Warfare Inc., same results.)
As i am pretty new to this topic, maybe so. can tell me what went wrong... is it even possible to build up a PAN that way?!
Best Regards,
Regi[/b]
Very intresting.
I played Snails between Magician and Windows XP PC and all was good.
Try to join from device B to Device A, or try to disable DHCP service and setup IP manually...
thx for your reply. your answer triggered sth in my ol'rusty brain ... There ARE options to change ip/mask/gw etc. but they aren't to be found under bluesoleil settings
lol
thx again,
regi
I just noticed something weird: both of my Magicians have the same hw-address: 00:02:5B:00:A5:A5... that's why my PAN network (using Bluez stack and Debian) always keeps disconnecting one of the devices. it thinks it's the same device. any way to change this address?
I just noticed something weird: both of my Magicians have the same hw-address: 00:02:5B:00:A5:A5... that's why my PAN network (using Bluez stack and Debian) always keeps disconnecting one of the devices. it thinks it's the same device. any way to change this address?
i think that is also the reason why i am not able to play games ....
Maybe this address is hardwired in the BT stack. Chances are you find this string in the .CAB used for installation. If so: you can change it to your liking.
We have the same problem here, also opened a new topic about this.
A friend and I have a Magician, and like yours the same bluetooth adress
(00:02:5B:00:A5:A5)
The weird part is that when we just both installed bluesoleil, we were able to play warfare over the PAN.
But 2 days later, it stops working??? As you said, every time one tries to connect, it hangs. Have to reset every time.....
I tried to change the adress in the register, but no luck so far It changes back by itselves?
Does anybody know a solution? And can someone confirm that the problem is caused by the same device name?
thnx

TyTN Bluetooth | Random car disconnect

Hi all,
I know there are plenty of threads about the TyTN bluetooth issues, but my questions differs in two ways which I have yet to come across:
I do NOT have M$ VoiceCommander installed (and don't want to install it)
My bluetooth issue relates to my car's handsfree feature - my TyTN randomly connects and disconnects. Apparently Audis, VWs, BMWs, and Acura's all suffer from this this problem.
The situation:
When I start my car, the phone will successfully merge with my TyTN. Approximately 30 to 60 seconds later, the connection will be lost. Shortly after that the connection will re-establish itself, then it will disconnect itself a short period later. This pattern repeats endlessly.
I've tried each of the following Tweak programs but none have helped.
jetwaremobile
Tweak2k
HTweakC
I've heard that there is some kind of registry tweak that will prevent the bluetooth stack from disconnecting from my car's handsfree feature, but after looking for about 2 days now, I can't find it. Can anyone help?
thanks.
jm
Yep, got exactly the same on my BMW 630....
Can t find any tweak but....
I am a heavy email user (thru BlackBerry connect) and I noticed that
the higher the number of messages stored, the higher disconnections appears.
At the same time, the TyTn is slower and slower....so my idea that this is related to some timeouts somewhere....
For your complete info, the MS bluetooth stack in my previuos S100 have able to.....immobilize my 630 !!!!!!!!! yes, incredible...
The MS stack messed up with the BMW bt ...and this later would stay ON for ever...even after switching car s power off.
This was sucking the car s battery untill the car would start !...
BMW could not reset the BT module unless disconnecting battery....but...then the active steering had to be re adjusted with the proper BMW computer...
This is a real story.
johnmclean said:
Hi all,
I know there are plenty of threads about the TyTN bluetooth issues, but my questions differs in two ways which I have yet to come across:
I do NOT have M$ VoiceCommander installed (and don't want to install it)
My bluetooth issue relates to my car's handsfree feature - my TyTN randomly connects and disconnects. Apparently Audis, VWs, BMWs, and Acura's all suffer from this this problem.
The situation:
When I start my car, the phone will successfully merge with my TyTN. Approximately 30 to 60 seconds later, the connection will be lost. Shortly after that the connection will re-establish itself, then it will disconnect itself a short period later. This pattern repeats endlessly.
I've tried each of the following Tweak programs but none have helped.
jetwaremobile
Tweak2k
HTweakC
I've heard that there is some kind of registry tweak that will prevent the bluetooth stack from disconnecting from my car's handsfree feature, but after looking for about 2 days now, I can't find it. Can anyone help?
thanks.
jm
Click to expand...
Click to collapse
I have the same problem with a CK3100 kit, don't have a solution, but would like one, didn't have this problem with a Jasjar nor Wizard
TyTN bluetooth | random disconnect when using car handsfree - more details
Thanks for the replies so far.
Although the following thread did not help me with my problem, it might help one of you. If you're having problems mostly related to issuing voice commands using M$ VoiceCommander, I think there *might* be a solution in that other thread for you.
Just to reiterate my problem; my TyTN keeps randomly connecting and disconnecting from my car's built-in hands free bluetooth device.
There was a time when if i managed to made a call after first starting the car - before the first random disconnect - the phone would remain connected until the next time I started the car. That no longer appears to be the case.
-jm
I solved the BT problem with my Orange SPV M3100 by setting it to never switch off the display automatically (only switching off the backlight after 20 seconds or so). I also use an in-car charger to power the TyTN. The car is an A6 with RNS-E (BT enabled) and TyTN works fine and never loses the BT connection as long as the display is active.
This is a mid-term solution though and I'm still eagerly waiting for a ROM update that will solve the problem for good.
Has anyone tried a ROM with aku 3.3?
jasonrhcastle said:
Has anyone tried a ROM with aku 3.3?
Click to expand...
Click to collapse
Yes.
And on my CK3100 I now no longer get disconnects. I did have to uninstall jetware as it wasn't reliable. My TyTN now connects perfectly and no longer drops.
One thing I did find is that the TyTN hates it when more than one handsfree device is in its trusted list. Make sure that the ck3100 is the only handsfree device paired.
http://forum.xda-developers.com/showthread.php?t=247520&highlight=bluetooth+keeps+disconnecting
ajax007 said:
I solved the BT problem with my Orange SPV M3100 by setting it to never switch off the display automatically (only switching off the backlight after 20 seconds or so). I also use an in-car charger to power the TyTN. The car is an A6 with RNS-E (BT enabled) and TyTN works fine and never loses the BT connection as long as the display is active.
This is a mid-term solution though and I'm still eagerly waiting for a ROM update that will solve the problem for good.
Click to expand...
Click to collapse
I've tried changing the automatic switch off setting and it made no difference on my SPV M3100 (with Parrot CK3100) - I reckon that the external power is what fixed your problem (this has worked for others too).
Sadly it's not a convenient fix as I like to leave my phone in my pocket when I'm in and out of the car. Orange say there is no 'issue' so there's no sign of a ROM update but HTC know of the problem but I have to wait for Orange to release their ROM update. I can't use the HTC update. If only us Orange users could tell them enough times they might listen now that some AKU 3.3s are being released. Orange technical department won't speak to end users like me - they have actually refused to discuss it with me and just pass messages back and forth from customer relations. Any other ideas?
A solution - thanks to Parrot
Yippee - thanks to Parrot I have got a solution to the TYTN / CK3100 problem (my phone is the Orange SPV M3100).
As Orange and HTC can't find any solution I kept asking Parrot for ideas. Their excellent customer service department tried various settings which made no difference until I was offered a trial of some beta test software called VCF creator. Once you have the VCF from the PC's Outlook you just need to beam it by BT across to the CK3100 and alter some settings (takes 5 minutes maximum). The small sacrifice is that you don't have auto-synchronisation so if your numbers change a lot you will need to do another VCF upload. The extra bonus benefit is that all your numbers will be grouped together. So, for example, you access someones name and then you can see their mobile/home/work number rather than having a separate line in the main list for each phone number. The problem is a result of how Windows Mobile phones provide the data. With this bonus you can then use voice activation to input a name followed by a keyword mobile, home, work etc. Fantastic!
587dan said:
Yippee - thanks to Parrot I have got a solution to the TYTN / CK3100 problem (my phone is the Orange SPV M3100).
As Orange and HTC can't find any solution I kept asking Parrot for ideas. Their excellent customer service department tried various settings which made no difference until I was offered a trial of some beta test software called VCF creator. Once you have the VCF from the PC's Outlook you just need to beam it by BT across to the CK3100 and alter some settings (takes 5 minutes maximum). The small sacrifice is that you don't have auto-synchronisation so if your numbers change a lot you will need to do another VCF upload. The extra bonus benefit is that all your numbers will be grouped together. So, for example, you access someones name and then you can see their mobile/home/work number rather than having a separate line in the main list for each phone number. The problem is a result of how Windows Mobile phones provide the data. With this bonus you can then use voice activation to input a name followed by a keyword mobile, home, work etc. Fantastic!
Click to expand...
Click to collapse
If you use the Jetware BT software you can do the same thing e.g. beam the whole contact list in one go and then set the Parrot to not sync by choosing the Ericsson No Sync profile. This is how I have mine set up, also with the Jetware software it sends over the Service Provider, Battery and Signal strength settings to the Parrot, something which the native stack doesnt do.
Solution for this
Hey all, i have purchased a parrot 3100, the software in it was 1.6, i had the same problems but it's greatly and successfully solved using the new jetware 1.3 . i don't know if i can post some linx here, but here you go, if this is illegal for this site please remove them
http://rapidshare.com/files/30296941/JetWare_1.3.rar
http://www.megaupload.com/?d=PL5UX5KC

WM5 and WM6 bluetooth GPS, Delorme BT-20

I have 2x HTC Universal's (Jasjar's to be precise) and 2x xv6700's that I'd like to pair, configure, and make work with the Delorme BT-20 (and Street Atlas USA Plus 2009) I purchased. As of right now I am having problems and I'm asking for help getting this done. I've never used a GPS on windows mobile before, so I'm not sure what info to offer up. Here's what I can think of that might be relevant:
Setup:
* I have successfully paired the BT-20 over bluetooth with 2 different laptops, both running xp-pro 32 bit.
* I have connected the BT-20 to 4 different laptops (the 2 above, plus two more) via USB, one of which has Vista Home Premium 32 bit and the other Windows 2000.
* I can connect over bluetooth with both of the JasJars to the PC I maintain my contacts on and sync with them. (so bluetooth works)
* I can connect over bluetooth with the xv6700x to the other bluetooth enabled laptop I use (for software downloads, and RemoteAmp use). (so bluetooth works)
Problems
* I can't confirm when and if the phone is connected to the GPS device. There is supposed to be LED feedback on the BT-20 when it is connected to a device over bluetooth (an LED that stays lit), which does indicate a connection on a laptop, but not on the WM devices I have tried.
* Initially I couldn't even get the device to pair to my Windows mobile devices. Today I was able to get it to pair to a JaJar with Tomal's most recent 6.1 build.
* Usually trying to pair the device was a game of cat and mouse, very similar to this:
"""I've tried every setup suggestion I’ve found on how to setup the “Earthmate BT-20 GPS” on my new Mogul. Anytime I enter a passcode of any kind I get the messagebox “Your device did not connect with Earthmate BT-20 GPS. The connection failed or the passcode is incorrect.” The blue light has stops blinking and goes dark. Subsequent attempts fail until the BT-20 is rebooted.
With the No passcode it ends with the blue light OFF, but get message “Earthmate BT-20 GPS wants to connect with your device using Bluetooth. Do you want to add Earthmate BT-20 GPS to your device list?” I answer YES and it prompts again for the passcode, this time the “Next” is disabled until something is entered. I enter the 0000 code and it fails again with “Your device did not connect with Earthmate BT-20 GPS. The connection failed or the passcode is incorrect.” After clicking ok it seems to still be trying to connect (spinning color thingie) but lets me through to the “Serial Port” selection, which I select and click “Finish”. """"
- http://forum.delorme.com/viewtopic.php?t=10886
* The Delorme software can see the virtual COM port that the windows GPS manager creates, but I get an immediate message saying that the phone cannot connect to the GPS.
* The Delorme software cannot see the hardware port that the GPS is assigned in the bluetooth management settings.
Misc notes
* There is an option to allow windows to middle manage the GPS connection. This sounds cool, and there are so few options, I imagine it should just work. The Delorme software can see the virtual COM port that this package creates, but I get an immediate message saying that the phone cannot connect to the GPS.
* I have tried to call Delorme Tech support. That was a monumental exercise in fail. The guy said that because I was able to connect over bluetooth to GPS device it was not bad and refused to send me a new one. And that is literally all he said. I take that back, he did say that there were no magic tricks to get it working, that it should just work. I did tell him that I tried 4 different phones.
* I have never used a GPS on a WM device, so its quite possible I'm making a n00b mistake. Please feel free to tell me if I am.
* I get the impression that this is so simple and its just supposed to work.
* I have re-installed it once after I configured the Windows GPS manager. That did not seem to affect the outcome of trying to connect to it.
* I was able to get the unit successfully connected over bluetooth only after removing the battery for about a minute or two. I found that trick online somewhere, and while it helped for the laptops, did not for the WM devices.
Other places I have looked:
http://forum.delorme.com/viewtopic.php?t=10886
http://blogs.msdn.com/windowsmobile/archive/2006/06/07/620387.aspx
http://www.delorme.com/support/Results.aspx
http://www.delorme.com/support/supporttemplate.aspx?id=313
Status update
I contacted Delorme Tech support. Over the phone was useless, but when I emailed them, I was issued an advance replacement (the email guy was pretty helpful).
However, that does not appear to have fixed the problem(s). It seems that the problem is in the communication settings of the phone, or the setup of either the phone of the software, or the bluetooth connection itself. I still cannot make the Delorme software find the COM port that windows makes for the unit, but the software will find the virtual COM port the windows GPS manager makes.
Any ideas out there?

Categories

Resources