My latest design & first wearable device. Propeller as tester & for configuration. Suppose to be as programmer too but couldn't get it to work, dunno why...
Hey, that's pretty cool. I've been working on integrating Android and a Propeller over Bluetooth as well. Care to share any technical specs? Language, hardware, PCB picture?
Thanks. Yes, it is very plausible to use the Prop. Initially, that was what I did but the problem was, the cost just started to add up very quickly. So, I had to find an alternative & tiny was 1/8 the cost of a Prop+EEPROM solution...
Anyway, on the Android side, I use Eclipse so Java. PCB ... sure you could figure that out
The Android version will be the first to release & on sale within these 2 days on my web-site. It'll probably take me another month or so for the iOS version to be ready.
Here's a question: I noticed that in the video there is a "Bluetooth connection lost" type message. I couldn't find anything in the Android docs that would give that information, and my tests indicate that a connection isn't indicated as disconnected even when the devices are out of range. The only way around this that I could see is a "ping" type system where Android pings the connected device, and if no response assumes a lost connection. Is this what you did?
The "isConnected()" method? I've looked at it before. I've done some tests where I've moved the Bluetooth devices out of range, and the connection didn't disconnect but it stopped receiving data. My guess is that the isConnected() method returns true not when there is an actual device at the other end, but when you've successfully "connect()"ed. Anyway, that's what I think I noticed a few months back. I take it you're using isConnected()? I may have to revisit my tests for that.
Hur? Communications are blocking functions so must be threaded & use BroadcastReceivers to catch the status.
I put the Bluetooth into a separate thread, but not a separate activity or service. From there, I get the BluetoothSocket of the connection and share that around. The short of my experiment was that isConnected() reflected the sequence of instructions on the Android device, not the actual Bluetooth link.
Comments
Anyway, on the Android side, I use Eclipse so Java. PCB ... sure you could figure that out
Does it work well with iPhone or Android ?
When, where, and how can I get one?
The Android version will be the first to release & on sale within these 2 days on my web-site. It'll probably take me another month or so for the iOS version to be ready.
Cheers.
Look at BluetoothSocket.
Thanks. I'm adding another round of features on social networking app notifications (Twitters, FB msg, Whatsapp) before moving on to iOS development.
The "isConnected()" method? I've looked at it before. I've done some tests where I've moved the Bluetooth devices out of range, and the connection didn't disconnect but it stopped receiving data. My guess is that the isConnected() method returns true not when there is an actual device at the other end, but when you've successfully "connect()"ed. Anyway, that's what I think I noticed a few months back. I take it you're using isConnected()? I may have to revisit my tests for that.
I put the Bluetooth into a separate thread, but not a separate activity or service. From there, I get the BluetoothSocket of the connection and share that around. The short of my experiment was that isConnected() reflected the sequence of instructions on the Android device, not the actual Bluetooth link.