kkamikakoi / btstack

Automatically exported from code.google.com/p/btstack
0 stars 0 forks source link

SSP problem with Windows #373

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using btstack with the IOIO board. We are using the latest btstack in the 
latest IOIO release 5. I tried enabling SSP for pinless Bluetooth pairing. It 
worked fine when pairing to Android devices, no Bluetooth pin was required and 
the applications worked fine. It also was able to pair to the Mac just fine 
with no pin. But was not able to pair to Windows, I tried a windows XP box and 
a windows 7 box. Attached are the error messages when trying to pair to 
Windows. Just wondering if SSP on Windows is supported and if any ideas.

Thanks,

Al

Original issue reported on code.google.com by alinke2...@gmail.com on 27 Jan 2014 at 8:14

Attachments:

GoogleCodeExporter commented 8 years ago
hi. The screenshot don't give a clue what's going wrong. Without a log of the 
actual packets between the host and the Bluetooth module (either on Windows or 
on the IOIO), I have no way of analyzing it.

Original comment by matthias.ringwald@gmail.com on 27 Jan 2014 at 11:56

GoogleCodeExporter commented 8 years ago
Thanks Matthias, sorry about that, I will post a log shortly. Is there any 
particular Bluetooth packet analyzer utility you recommend for Windows? I was 
going to try this one out http://www.sysnucleus.com/usbtrace_download.html

Original comment by alinke2...@gmail.com on 28 Jan 2014 at 8:53

GoogleCodeExporter commented 8 years ago
No need to be sorry, I'm just stating the fact. :) I have no idea how to do 
Bluetooth logging. I've tried an USB logger before and it was a pain to find 
the actual Bluetooth data. hm.. OS X has a decent logger. Maybe you could 
reproduce this in a Windows VM that runs on OS X? :) the OS X packet logger is 
part of the "Hardware IO Tools for Xcode" available from Apple as registered 
(free) developer.

Original comment by matthias.ringwald@gmail.com on 28 Jan 2014 at 10:45

GoogleCodeExporter commented 8 years ago
Well just for fun, I rebuilt my IOIO firmware and now it works! very weird, 
I'll do some more testing to verify but at least from initial testing, SSP 
works on Android and PC (Windows 7, XP, and VM Ware on OSX), can bluetooth pair 
with no pin. And just for your reference, the Mac OSX PacketLogger app (from 
Hardware IO Tools for Xcode) does log packets from VMWare Windows too (nice!).

If you get a chance, here is a separate problem that I've had on the Mac with 
IOIO + btstack. On the Mac, I can bluetooth pair just fine. But the problem is 
a very high latency on the Mac. My IOIO application is sending an animated .gif 
to an LED matrix. In my test, in the attached log file, I'm sending 30 frames 
at 1.5Kb per frame. The same app running on Android and the PC, this is sent 
very fast (within a few seconds). On the Mac, it takes over a minute for the 30 
frames to be sent over Bluetooth. Just for reference if I use USB mode on the 
IOIO with the Mac, it is sent also within seconds so does seem to be something 
specific to the combination of Mac + IOIO + btstack. Attached is the log from 
the PackerLogger app, the file is in the file format specific to that app, 
hopefully you can read it but if not, I can convert to something else. Thanks 
for your help!

Original comment by alinke2...@gmail.com on 29 Jan 2014 at 8:49

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Al

well, so no SSP problem. Your OS X code only sends about 100 bytes every 250 
ms. There's nothing in BTstack on the IOIO to cause that. It's either your app 
of the virtual serial port you're using. Try using IOBluetooth and a real 
RFCOMM connection. Also. post on the mailing list, maybe someone run into that  
before.

Original comment by matthias.ringwald@gmail.com on 29 Jan 2014 at 11:24

GoogleCodeExporter commented 8 years ago
thanks Matthias, appreciate the help. What's weird is my application runs fine 
on Windows and even VMWare on the Mac, just on the native Mac OSX, it reverts 
to this slow mode. The application is a Java app so it's exactly the same code 
on all the platforms.  Anyhow, I'll play around and see if I can figure it out, 
thanks again.

Best,

Al

Original comment by alinke2...@gmail.com on 2 Feb 2014 at 3:59