Raspberry Pi 3 + Bluno nano sensor network
Hello!
I've done some research on the forum and on other websites and tried to find a solution before I landed here.
I'm going to first write down my goal then my problem and lastly my tried method. Hopefully someone can guide me in the right direction to solve my problem.
Goal
My goal is to have a Raspberry Pi 3b+ as a gateway that fetches data and sends it over Internet to a database. I will use several Blueno nano's as sensor nodes that measure different environmental measurements such as temperature, humidity etc. The Raspberry Pi will in intervals ask the different Blueno's for measurements that packs it and sends it to its destination.
This sensor network will be on a remote location that makes it costly to upgrade the code on the nanos physically and one of my objectives is to use the Raspberry Pi to upgrade the code via Bluetooth via command line (make command with arduino-mk).
Problems
My main issue right now is that I'm not able to upload the code to the Blueno over Bluetooth.
Approach
This is my idea to solve this based on stuff I've found over Internet and what I'm familiar to:
Step 4. fails and I cannot pair the Raspberry Pi and the Bluethooth with Failed to pair: org.bluez.Error.AuthenticationFailed error.
Step 6. does not work I've tried to attach a screen to the /dev/rfcomm0 but it does not work. Bluetoothctl can connect to the Bluno but rfcomm cannot.
Have anyone tried something similar and got it to work?
Best regards
Rasmossen
I've done some research on the forum and on other websites and tried to find a solution before I landed here.
I'm going to first write down my goal then my problem and lastly my tried method. Hopefully someone can guide me in the right direction to solve my problem.
Goal
My goal is to have a Raspberry Pi 3b+ as a gateway that fetches data and sends it over Internet to a database. I will use several Blueno nano's as sensor nodes that measure different environmental measurements such as temperature, humidity etc. The Raspberry Pi will in intervals ask the different Blueno's for measurements that packs it and sends it to its destination.
This sensor network will be on a remote location that makes it costly to upgrade the code on the nanos physically and one of my objectives is to use the Raspberry Pi to upgrade the code via Bluetooth via command line (make command with arduino-mk).
Problems
My main issue right now is that I'm not able to upload the code to the Blueno over Bluetooth.
Approach
This is my idea to solve this based on stuff I've found over Internet and what I'm familiar to:
- 1. Upgrade the Blueno firmware
2. Scan for the Blueno (Bluetoothctl)Code: Select all3. Trust the Blueno (Bluetoothctl)scan on
Code: Select all4. Pair the Blueno (Bluetoothctl)trust [MAC-address]
Code: Select all5. Create a new rfcomm devices associated to the Blueno MAC-address(rfcomm)pair [MAC-address]
Code: Select all6. Set the Blueno in programming modesudo rfcomm -i hci0 bind /dev/rfcomm0 [MAC-address]
Code: Select all7. Upload new code to the Blueno (arduino-mk)echo "+++" > /dev/rfcomm0 echo "AT+SETTING=DEFPERIPHERAL<CR+LF>" > /dev/rfcomm0
Code: Select all8. Set the Bluno in operational modemake upload clean (makefile has /dev/rfcomm0 as Aurdino Port)
Step 4. fails and I cannot pair the Raspberry Pi and the Bluethooth with Failed to pair: org.bluez.Error.AuthenticationFailed error.
Step 6. does not work I've tried to attach a screen to the /dev/rfcomm0 but it does not work. Bluetoothctl can connect to the Bluno but rfcomm cannot.
Have anyone tried something similar and got it to work?
Best regards
Rasmossen