I am developing one app which uses bluetooth low energy for communication between device and App. My device is peripheral and App is central.While developing Android app, I have added some custom ble services by creating gattserver on android app side and it is working ok. Now i want to achieve same thing with iOS.
My question is how to add gattserver in iOS app? Or iOS used some other procedure to achieve the same.
I belive iOS uses the CoreBluetooth system to achive this. Check out this example
https://developer.apple.com/library/content/samplecode/BTLE_Transfer/Introduction/Intro.html
There are like on Android two modes, Central and Peripheral. You want to be the in the Central mode here too. Then it should work similar to the Android GATT server.
Thanks Jotunacorn for your link
This link help me to solve my issue
Implement gattserver on iPhone
Related
I am working with a peripheral device that communicates with an app via BLE UART.
To test and modify the peripheral’s firmware, I want to find a starter Android app that can communicate with the peripheral. I want to be able to modify the app along the way as I modify the peripheral firmware.
I got the Nordic nRF Toolbox app working in Android Studio and running on my tablet. However, when I look through this project it is far too difficult for me to understand right now. I have worked through several tutorials that offer a far simpler solution, however not a single one of them has ever fully compiled correctly at the end – I assume they are all out of date. So it has been a difficult journey so far.
I need the app to be able to scan for devices, and allow the user to connect to one – and then be able to communicate with the BLE peripheral via UART.
Can anyone point me to (a) a starter app with code on GitHub or similar, that they have tried recently, or (b) a tutorial / walk-through, that they have successfully completed recently?
Thanks in advance for any suggestions
Garrett
I am making a small school project. I am developing a P2P android mobile application that will detect other similar devices(devices that are using the same app) around.
My question is how can I test it while developing? Can I somehow run 2 physical devices at the same time and then check their Bluetooth functionalities(If yes, then please link a video, article etc.)? Or is there any other solution for this?
Thank you
I need to send data between iOS and Android where there is no internet connection.
This leaves me with NFC, but I hear the iOS limits usage of NFC to apple pay.
I looked at using Bluetooth LE, but not sure how to go about this.
The best option is WifiDirect, which I already do in Android and would like to use in iOS.
Does iOS support WifiDirect? Or a variation of this, where I create an enterprise "profile" and push that wifi profile onto the device at runtime?
No Directly you wont be able to communicate from android to iOS.
But by using a simple TCP Socket connection you can create a communication bridge between two.
On Android, use the Socket class, on iOS use socket programming.
Here are some useful tutorials for that.
Raywenerlich Tutorial with sample code
Manicdev Tutorial with sample code and explanations
If you do not want to do it with IPs then search for zeroconfig/bonjour
I want to connect a 3rd party bluetooth device to my Android Wear watch (Samsung Gear Live). I am trying to find documentation on how to do this but I am not having any luck. All the searches I do seem to think I want to attach to a phone.
Does anyone know of a good example that shows how to connect, for example, a bluetooth heart rate monitor (or other device) to the Android Wear so I can keep a history when the phone isn't present? Is this even possible? Would it be the same protocols as doing it from a phone/tablet?
#Ryan Tensmeyer, I think #Wayne Pieksarki's answer is now out-dated. I was able to create and run a stand-alone app that used BLE to connect to a third-party bluetooth device, namely, a wireless thermometer. I used a library called SweetBlue and tested the stand-alone app on an Android Wear Moto 360. It worked great -- no phone required!
It is not possible to connect 3rd party bluetooth devices to an Android Wear watch as you describe. You will need to pair your heart rate monitor with your phone, extract the data you want, and then use the Data Layer API to send the data to the wearable for display to the user.
EDIT: Android Wear devices now support the ability to pair with Bluetooth devices.
I was thinking of developing an iPhone and android application so that they can share data between each other via bluetooth. Is it possible? If yes how?
Thanks for your help
The Question from user1080731 was - Is it possible to transfer Files Via Bluetooth between Android and iPhone.
And I think that the answer is NO.
The App referred to in the previous responses does not seem to use Bluetooth (the App's description is misleading)
In the demo video for the app - It used Bluetooth when talking between 2 iOS devices, but uses WiFi when talking between Android and iPhone.
in iOS the only possibility is to use the GameKit APIs (primarily meant for peer to peer gaming) to talk to other iOS device using Bluetooth. So you can potentially write an App over this API to do file transfer between iOS devices, (But Gamekit will not work for iOS to Android)
You can use File Transfer Profile of bluetooth for transferring files between bluetooth devices. This is generic for bluetooth not for Operating system(Android, iOS, Windows, etc.).
Coming to your requirement, in both Android and iOS the framework will provide API to use the bluetooth profiles. Just read about bluetooth profiles and OS framework you will get ideas to design your app.
If you are interested, see the Bluetooth Chat App available at Android Developers website, you will get good knowledge about how to use bluetooth in Android. But i don't know about iPhone(iOS) framework. I experienced the bluetooth in Android and at firmware development for embedded products. If you want more in formation about bluetooth profiles see this link
I hope it may help you.