Hello.
I have this project that I'm trying to work on.
The project consists on sending encrypted data received from the arduino (light, temperature, whatever it's included on the 33 sense BLE). I thought that it would be easier for me, since I've done a master/slave code with bluetooth HC05 before (arduino UNO), if I had another 33 sense BLE.
The problem is, it's not working. I'm not able to connect both arduinos via bluetooth. I don't kno why. I can post the code here but I've searched everywhere, in every forum and all I read is the problems around this arduino and how non "user friendly" this is with the bluetooth point.
Is there anyone that established the connection like this? Preference is arduino to arduino but even to the computer, how can I?
Thanks in advance and sorry if I didn't explain it well or if I'm on the wrong part of the forum.
immpg:
I thought that it would be easier for me, since I've done a master/slave code with bluetooth HC05 before (arduino UNO), if I had another 33 sense BLE.
I am not sure what you did with the HC05. Most user just use it as a transparent pipe for serial. The Arduino Nano 33 BLE uses BLE GATT. Which is what BLE is designed for. It looks more complicated at the beginning, but it is not.
immpg:
I can post the code here
Yes, please do. Use code tags.
immpg:
... problems around this arduino and how non "user friendly" this is with the bluetooth point.
BLE is very user friendly. You are not a user. You want to do something that was designed for and by engineers. Are you up to the task of learning? It is not as difficult as some people will tell you. The Arduino guys wrote an easy to use library.
immpg:
Is there anyone that established the connection like this? Preference is arduino to arduino but even to the computer, how can I?
Arduino to Arduino is easier than Arduino to PC because BLE support on PC is crap.
Here are a few points. Could you please let me know whether you understand them? I do not want to bore you with stuff you might already know.
Service and characteristics
16-bit vs 128-bit UUID
BLE peripheral vs BLE central
which of the two ArduinoBLE library example work together? Did you try them?
Did you use a generic BLE app on your smartphone and know how it works? I use BLE Scanner on iOS.
BLE Advertisement
Connecting vs Pairing
Just in case, some users had issues with the antenna on the Arduino BLE. Can you confirm yours are OK? There should be five small SMD components on the antenna area. If you are not careful they can get ripped off.
Thanks for the reply.
Can't remember properly since it has been years since I've done it but I remember using the Softwareserial and so on, and that's impossible to use with this arduino.
Moving on, I'm currently trying the central and peripheral examples, but I can't move on from the " Bluetooth device active, waiting for connections... ". How can I connect the peripheral afterall?
The code I'm using are the example ones. I decided to erase the one I had since it was very confusing and a mess.
immpg:
... I remember using the Softwareserial and so on, and that's impossible to use with this arduino.
Softwareserial is a dumb concept for modern processors. The Arduino BLE uses a ARM Cortex-M4 32-bit processors running at 64MHz. Using that to create and decode serial communication instead of using a UART is a serious waste of resources.
immpg:
How can I connect the peripheral afterall?
The Peripheral Explorer example shows you all the steps you need to do.
Scan for a UUID or just for any advertisement
check if you get a peripheral
try to connect
explore the services and characteristics ...
I recommend you try to connect to a peripheral sketch first with a generic BLE app on your smartphone. When that works try Peripheral Explorer. Make sure you modify line 51 to the localName used in your peripheral sketch.