Bluetooth Module?
BlitzMax Forums/BlitzMax Programming/Bluetooth Module?
| ||
Hi all, Does anyone know of any module for bmax that can handle bluetooth communication easily? Thanks |
| ||
To do what on which OS? |
| ||
Sorry should of been more specific. My aim is to set up a Bluetooth link between phone and computer with the aim of continuously sending all the phones sensor data to the PC. Its probably a larger project then I should do for my first android app but I'm always ambition. The overall aim is to make an open source extension for Scratch V2 so you will be able to use the sensor data in the application. Thanks |
| ||
And what phone OS? RFComm doesn't sound like an easy thing to use and I doubt very much if there is a BlitzMax module, which is only going to help with less than half your problem anyway. links: http://developer.android.com/guide/topics/connectivity/bluetooth.html http://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedotherprotocol4q.html |
| ||
Trying to use android. Think I'll end up giving up on trying to use Blitzmax for this particular task. The main problem is just finding examples of android pc communication using bluetooth that aren't 5 years old and probably wont compile (Looking at using Java). |
| ||
It's a pretty odd approach wanting to use bluetooth which compared to wifi has pretty limited bandwidth. For sharing sensor data, a standard you could look at is OSC - Open Sound Control. It uses UDP over sockets for transport protocol. Many OSC apps for phone stream accelerometer values for use as performance data in realtime music apps and there may be some that transmit from other sensors also. |
| ||
The reason I'm looking at bluetooth is because I want to use it in schools and running through wifi there would be difficult. |