I'm looking to write some Android or iOS applications to access a Bluetooth heart-rate monitor. There are currently some apps available like Android's "Heart Rate Monitor" that connect to heart-rate monitors like the Zephyr HxM, so I know it can be done.
What is the programming API like? If I write an app, would it be able to connect to any heart-rate device? Or would I have to follow some application-layer protocol from the device manufacturer and read and process Bluetooth packets?
Many of the bluetooth enabled Heart-rate monitors supports the SPP profile and you can use the Android Bluetooth SPP socket APIs to access the device.
The Android chat example is a good application to modify to start with.
Related
I'm using an app that uses Bluetooth low energy to scan and detect devices however it does not detects other phones
is there a specific way on flutter to make it detect other mobile phones
You can only detect BLE devices that are advertising their services. A mobile phone often does not do that on its own. There are two solutions:
Use an already available app on the other device to advertise some service. One of the possible apps I personally use is nRF Connect, another one would be BLE Peripheral.
This might not be sufficient depending on your project and goal this might not be sufficient. If you need some specific service or characteristic that can't be generated by pre-existing apps you have to develop your own app for advertising. This would be possible with flutter_ble_peripheral (limited functionality on iOS)
I want to build a PWA with capability to connect with "regular" bluetooth, not with Bluetooth Low Energy (BLE). Is that possible ?
The Web Bluetooth API currently only supports the GATT (Generic Attribute Profile) portion of the Bluetooth specification, which is primarily used by Bluetooth Low Energy devices. It does not support other Bluetooth profiles.
My team maintains the Web Bluetooth specification and its implementation in Chromium-based browsers as well as work on bringing new capabilities to the web. What type of Bluetooth Classic device are you interested in integrating with a PWA?
I am trying to establish a bluetooth connection between a Windows CE handheld device(A bank card reader) and iPhone. I want to make data transfer betweeen the two. I have read that prior to IOS 6.0 this was not possible. But with IOS 6.0 I can use core bluetooth to establish a connection.
I would like to know whether the handheld devices bluetooth should be of certain spec to make it work with IOS devices? Or are there any restriction fro any bluetooth device to communicate with an IOS device?
I have read here that the device should be Bluetooth LE. How can I detect whether my handheld device is bluetooth LE?
Thanks
It would be nice if you would provide more information about this Windows CE device.
Just search for the specs of it. If it supports Bluetooth 4.0 LE you have to look if it specifies any of the known profiles. If not the manufacturer may have implemented an own profile to provide certain services and characteristics.
If this is not the case, there is no possibility to establish a connection over CoreBluetooth.
But if its a bank card reader I can't imagine, that it supports BLE.
If the device just supports Bluetooth 2.x you can only connect via the External Accessories Framework. But this only works if the manufacturer bought the MFi (Made for iPod) license and implemented the required specs into the hardware (only then the device is "MFi approved").
I want to develop an application for the iPhone 4GS that supports Bluetooth 4.
The application would continually listen to the data transmitted by a heart rate monitor over Bluetooth, and show information on a screen.
To achieve this, the application would have to listen to the data even when it's not the active foreground application.
Like Android, is it possible to silently listen to Bluetooth events on an iPhone as a background service?
I can't determine exactly what you're asking, but here are two tutorials for incorporating Bluetooth in iOS apps:
iPhone Bluetooth Programming
iOS Bluetooth Programming - Getting devices to see each other
Also, here is Apple's list of Supported Bluetooth profiles.
You won't find serial port profile (SPP) in iOS devices if you're looking for that.
So question about using it in the background would seem irrelevant.
You could use 'old style' FSK modem over BT audio an then decode the signal in
code. On the other hand you should consider going WiFi. Microchips MRF24WB0MA/RM for
example supports adhoc/infrastructure netwroks and it also has Bonjour support.
Has anybody succeeded in developing a bluetooth application on the iPhone that prints to a Bluetooth printer?
I have been investigating the feasibility of developing an iPhone application that could print to a Bluetooth-enabled printer. I've gone through the most of the postings in this thread and was confused by the mail exchanges.
As per my analysis:
Gamekit - can be used for bluetooth connectivity between iPhones and IPods ONLY
Bonjour - can be used for wi-fi connectivity between iPhones/IPods and bonjour-enabled printer
We can use an external accessory to connect to a third party Bluetooth-enabled printer provided the 3rd-party printer complies with the necessary regulations from Apple (registering for either “Made for iPod”/ “Works with iPhone”, and also customizing their printer with specific hardware/software, etc.)
Could someone please share their experiences?
You want their external accessory framework. Not GameKit. Happy coding!
The External Accessory framework provides support for communicating with external hardware connected to an iPhone OS–based device through the 30-pin dock connector or wirelessly using Bluetooth.
(This is exactly what you were looking for)
To detect and connect to external devices ExternalAccessoryFramework should be used.Me too developing an application for connecting iphone to other hardware devices via bluetooth .A'm facing the problem with the protocol.The protocol should be the hardware supported ones and the protocol should be given in the info plist file..
Happy coding.
You can want to try this Bluetooth printer, which is Apple MFI approved
http://www.bluebamboo.com/other_file/P25i%20Datasheet%20%28EN%29%20v1.0%2009-Oct-2011.pdf
I would bet that you would need to use Bonjour and Wi-Fi for this application. The bluetooth hardware is restricted to gameplay from what I've seen.
well i have sucsessfully accomplished bt printing on a customers I-phone both devices have to be in discovery mode to do so and then the combination wireless and bt will allow only photo printing though otherwise you will need an app