Bluetooth to Android Connection

Hey all,

This is my first time posting here and I am quite new to the Arduino scene. I have recently created a traffic light using the Nano 33 IoT. Currently, the LED's just run on a pretimed circuit. Now to my question:

I would like to connect my Android phone to the chip, with the intent that the lights are to change depending on whether or not I am receiving a call. The three lights are to operate like so:

RED = Currently on a Call
YELLOW = Ringing, but not call is currently unanswered.
GREEN = Not on a call and not ringing (Default)

I am even newer to the Android scene and do not understand how to have my device ask for these items without an application.

I know it is possible to do this without an application because I have used Bluetooth headsets that are able to connect to my phone, ring in my ear and turn off music when I am receiving a call, and communicates with the Android device on a call to send and receive audio information.

In summary, how can I get my device to ask for this information without a UI on the Android Device outside of establishing the initial connection?

Any help would be greatly appreciated. I am currently studying up on the ArduinoBLE Library but thought someone on here might be able to steer me in the right direction.

Thank you in advance!

Welcome to the forum.

kozzybear:
I know it is possible to do this without an application because I have used Bluetooth headsets that are able to connect to my phone, ring in my ear and turn off music when I am receiving a call, and communicates with the Android device on a call to send and receive audio information.

That is because your headset is a Bluetooth device with a profile that is supported by the OS. The application is part of the OS. There are likely other things that are supported by the OS without an additional application e.g., keyboards.

I do not know whether there are any BLE devices supported by the OS that would not need an app.

Everything else needs an application.

Note. Out of the box the Arduino Nano 33 IoT supports BLE and not Bluetooth Classic. There were some discussions in the Nano 33 IoT sub forum about converting to Bluetooth Classic. Have a look if you feel like you have the skills.

https://forum.arduino.cc/index.php?topic=654631.0

With Bluetooth Classic will need to recharge your device on a regular basis. That is why they invented BLE.

The ArduinoBLE library does not support pairing. This is an optional feature of BLE and not implemented. For BLE apps can just connect to BLE peripherals. So, any peripheral device would require an app that connects to that devices.

Your best chance is to find out whether Android allows an app to connect to a BLE device when it runs in the background.

Thanks Klaus! Super helpful information.

Since posting I have been studying the Android side of things and it certainly seems that way. (I am still a noob on that end too, but gotta start somewhere.)

Guess I should start posting on some Android Dev boards lol.

Thanks again.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.