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
- windows-pairing-problem.jpg 33.52KB
- windows-pairing-problem2.jpg 141.41KB
Comment #1
Posted on Jan 27, 2014 by Swift Oxhi. 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.
Comment #2
Posted on Jan 28, 2014 by Happy WombatThanks 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
Comment #3
Posted on Jan 28, 2014 by Swift OxNo 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.
Comment #4
Posted on Jan 29, 2014 by Happy WombatWell 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!
Comment #5
Posted on Jan 29, 2014 by Swift OxHi 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.
Comment #6
Posted on Feb 2, 2014 by Happy Wombatthanks 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
Status: WontFix
Labels:
Type-Defect
Priority-Medium