Opening an application (iPhone) via low energy bluetooth

Hi, I hope someone can help me with this question as I thought it would be easy at first! I am studying an EE student who is not so good with code, but trying!

Let me tell you my goal at the end of this .....

I would like to be able to open the application on the iPhone, and then execute some code to send a message, all via Bluetooth.

I would like to be able to connect this small Bluetooth device to the iPhone only once and be able to sleep (500 nano-amplifiers: D awesome), and when I turn it on (via a small switch) it will open the application and send this message. (the application is already done, you just need to press the button in the application to send a message, so I would like to use a Bluetooth device so that you do not have to open the application at any time!)

Sorry for the long paragraph, but I need help! I have a Bluegiga BLE113 development kit and they are amazed at all the information they give you! But I don’t see anywhere where I connect to the iPhone and do what I want.

Has anyone done this before, can you steer me in the right direction?

+8
ios iphone bluetooth bluetooth-lowenergy core-bluetooth
source share
2 answers

As long as the user who downloaded the application previously opened the application, and they agreed to the possibility of background work, yes, you can send a message in the background (if it is already connected). However, you cannot get your application to the forefront on a non-jailbroken iOS device.

Check out the sample BLE application code to get started.

+4
source share

I assume you need:

  • periparel realizes a peripheral role
  • application implements a central role
  • the application tries to constantly connect to the periphery ( connectPeripheral:options:
  • the peripheral device wakes up on the trigger and the telephone connection request ends
  • peripheral signals to the center using performance change notification
  • The application receives a notification and performs the business functions of your desire.
  • peripheral goes into sleep mode again
  • the application receives the disconnect event and immediately launches connectPeripheral:options:
  • the application should use the new Core Bluetooth recovery feature (see video recording of the WWDC 2013 703 session).

This is just an outline, and you need to know a lot of little things to get it right. I suggest that you try to go ahead and implement in parts, and if you are stuck, ask new questions. As @tdevoy suggested, the BTLE Transfer app is a good starting point. A heart rate monitor is also a good source of information (OSX API is the same as iOS).

+1
source share

All Articles