BLE Pairing with Camera

I am trying to control a Sony camera using BLE. The camera ignore any commands and disconnects if the client isn't paired. Pairing initiated in the camera does not require any pin. How can I do the pairing? Right now my target is an ESP32.

Thanks

Kurt

Installation and Troubleshooting is for problems with the IDE. As you don't have problems with the IDE, your topic has been moved to a more suitable location on the forum.

The camera might not be a BLE device. I understand any ESP32 can be configured for classic Bluetooth, but this is probably not automatic.

Nick

I loaded the Nortic Semiconductor NRF Connect App on my phone. I can connect to the camera and read the UUID's and also send the commands to the camera. If I pair the camera to the phone the camera executes the commands and if I unpair it it ignores the commands. I am new to this but I have high confidence that it is BLE.

Kurt

There doesn't seem to be much to doubt about that..... I have no real experience with BLE and this seems out of my league, but my experience is that you don't pair using BLE, you just go straight into comms from the app. I can only speculate that, if you are using BLE, and you are seeing stuff about pairing, it is because you are unintentionally stirring things up in the configuration. Further, I think you are mis-using the term "pair" anyway. Pairing involves only the preparation for communications, not the comms per se.

You might find this tutorial useful: ESP32 BLE Server and Client (Bluetooth Low Energy) | Random Nerd Tutorials

So My question is really about the Arduino BLE Library. There is an example pairing_passkey which pairs with a key but my camera does not ask for or require any key. So if I want to pair without a key is there an example of this?

What example are you talking about?

Your experience with the camera and nrf connect leads me to think that following the basic central example given in LedControl will get you connected to the camera and able to write to it.

Yes. I can connect to the camera however if the connection is unbonded then the camera ignores the writes.

Kurt

I think this issue is discussed here
https://github.com/arduino-libraries/ArduinoBLE/issues/36

And there may be a fork of ArduinoBLE.h which allows for this security pairing
https://github.com/unknownconstant/ArduinoBLE

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