Pairing with CSR BLE 4.0 dongle - bluetooth-lowenergy

I have a CSR4.0 BLE dongle I am using in Raspberry Pi. I am using Bluez stack in the Pi and can make the dongle up & running. Now, when I use some iOS app (LightBlue) to find out nearby BLE devices, most of the time it can't find the CSR device.
A few times the app can find the CSR device, but when I press CSR name in the app, the app tries to connect to the CSR dongle but fails. Then the dongle becomes invisible.
Any thought on why this happens? How can I reliably find the CSR dongle? And how can I connect to it? Do I need to write some BLE application code to run on the Raspberry Pi?

You'll need to advertise a BLE service on the Pi so LightBlue can discover it from your iPhone.
One way to do this is to create a service on the Raspberry Pi using Bleno. Try the battery-service example.

Related

Is there a way to push a wifi signal to a Raspberry Pi with a Xamarin.Forms app

I am looking if there is a way with Xamarin.Form to push a wi-fi signal to a RaspBerry Pi as http://www.berrylan.org/ does.
I already tried creating an app with QT and implement Berrylands code but its not working because i developed it with Felgo
So thats why i starting developing on Xamarin.Forms, but i dont know if there is a library or a open source code that does this.
i am trying to connect a Raspberry Pi via Bluetooth and pushing the wifi password in order to connect to the Wif-fi

Testing Microchip RN4871 BLE Module with Raspberry Pi 3

I got a Microchip RN4871 BLE Module and want it to act as beacon.
So, I connected over UART and executed the following commands:
SS,20
SC,2
NB,09,656667
I am able to scan and connect to it using hcitool and gattool command. Now I want to verify whether the beacon functionality is working or not. I mean the device is periodically broadcasting Beacon packets or not..
How can I verify that.. Is there any android application which can help or can i do with raspberry pi 3 as it has in built Bluetooth Chip
There are some really nice apps from nordic for free available. I like the nrF connect app. I guess it will help you.

Prevent Raspberry Pi 3 from automatically connecting to bluetooth le device

I have a TI SensorTag bluetooth le device. It is not paired with my raspberry Pi. I installed bluez, but I don't have any applications of my own running. The second I power on the device, something on the Pi instantly connects to it. If I disable bluetooth on the Pi, the device becomes available for connections.
This is a problem for me because my own application can't connect to the device because something on the Pi has aggressively connected to it.
I am not sure what the reason is but this worked for me. Try following steps.
Go to terminal and type bluetoothctl.
Then type disconnect <device_address>

How to communicate I2c device connected to Arduino to Windows 10 IoT Core

I have a UWP app which will display values of sensors connected to Arduino which will be connected to that UWP app. I have a I2C device connected to that Arduino. I want to communicate to that I2C device from my UWP application. But, I can't find a way to do that. Can Someone can help me with that.
There is a technology called Windows Remote Arduino that allows you to control Arduino microcontroller connected to your Windows 10 UWP App. It uses FIRMATA protocol underneath, and I believe it allows you to control I2C sensors as well. If not, you can tweak the source code, because both FIRMATA implementation and Windows Remote Arduino are open source.

How can multiple smartphones connect to a mcu at the same time?

I'm having the hardest time to get the solution of the following problem.
Main issue:
Several smartphones(up to 30) must communicate with a MCU at the same time.
System overview:
There are many rooms(each room is a cabinet that 30 people can go into), and every cabinet will have one MCU for the smartphone users.
MCU will control some device of the cabinet.
The scenario of this system is as follows:
1. The users go into the cabinet.
2. Smartphone app will recognize the MCU(or MCU will recognize the smartphone) and the MCU will send some data to the smartphone and this data will be noticed to the user.
3. User inputs some data at the smartphone app and this data will be sent to the MCU to control the cabinet device.
4. Up to 30 people can go into the cabinet at the same time and the system should handle all the users simultaneously.
I'm going to develop smartphone application and MCU firmware for this system.
My thought:
I'm thinking to use Arduino/RFduino/Raspberry Pi as MCU and I'm thinking to use Bluetooth LE/Wifi/3G as communication material.
I've tried the following solutions
1. Using bluetooth low energy on Arduino/RFduino/Raspberry Pi.
MCU will be BLE peripheral and my smartphone app will be BLE central.
But I found that a BLE peripheral can only be connected to a BLE central at the same time so I can't use this method.
2. Using wifi on Raspberry Pi
I think that Raspberry Pi can run web service and my smartphone app can communicate with the server through http.
But every time the smartphone user go into the Raspberry Pi based wifi-zone, the user should select the wifi-hotspot at the network setting if he registered this wifi already, and the user should register the wifi-hotspot if this is the first time at the wifi-zone(cabinet).
This is very inconvenient for the users so can't be used for me.
3. Using 3G network on Raspberry Pi
Unfortunately, there's no 3G signal in the cabinet so I can't use this method.
I'm looking forward your kind answer.
Any hints or comments will be welcome.
Thanks for your attention.
Thanks for your answer in advance.
Toltori Kim
Well... I'd go with wifi. And QR codes.
I'd make either a single wifi network for all the cabinets (so only one set of credentials, or even an open one - without security) and then the app can connect to the raspberries using a sort of authentication (where the credentials are written in a QR code inside the cabinet) or a wifi network for each cabinet and its credentials are written in a QR code.
I'd use the first one, maybe without security. So the user has just to go in the cabinet, connect to the common wifi, make a photo at the qr code and then can use the RPi

Resources