Question

I am using the IOBluetooth framework provided by Apple in OS X to communicate with an Arduino robot that i built. I've managed to get it working with only one problem, it only works for about 10 seconds before the RFCOMM channel closes for some unknown reason. I've searching through the apple docs but I can't find a way to get some sort of error code or description on why the RFCOMM Channel was closed.

Is there a way to find out why the RFCOMM channel closed?

Was it helpful?

Solution

You could use the packetlogger that comes with XCode. Also you can look at the system logs.

EDIT: enter image description here

OTHER TIPS

Well after two 2 days of fiddling with the software I realized that it was not software at all. It was actually a hardware issue, the motors on the Arduino were drawing more current from the capacitor than I thought and this caused the Arduino to reboot. All I had to do was put the motors on a separate supply and everything worked! I wish I could have gotten an error message that said "Device dropped connection" that would have saved me a lot of time. But anyways thanks for the help Dennis it really sped things up (:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top