i'm using Bleno (https://github.com/sandeepmistry/bleno) for a small BLE project.
I've started with no problems on Raspberry Pi2 but switching on Pi3 i found that:
If i connect to my "BLE Pi3" i can interact with the device only for 2-3 seconds, then i get disconnected (working on Pi2)
If i try to read/write characteristics i receive a permissions error and i can't do anything (working
Related
I tried disconnecting my Bluetooth speaker, then everything works fine but whenever the Bluetooth speaker is connected the WiFi becomes so slow that I barely can use the internet.
Disconnecting the Bluetooth speaker fixes it but I need to connect my Bluetooth speaker as well.
I'm working on a project to control a drone using an EEG headset. The EEG headset is connected to my laptop [runnig ubuntu 18.04] and the drone to the raspberry pi [raspbian].
The code for processing the EEG data on the laptop as well as the code to control the drone is written on python 3.6 and work without any problems.
setup:
the EEG headset[ neurosky mindwave mobile 2] and the drone[ parrot mambo] both use BLE[bluetooth low energy] to connect with the devices. since both of them use Bluetooth it would be hard to send and receive data simultaneously to both the devices using a single code and laptop as they require a continuous uninterrupted connection and high data rates. hence the EEG headset is connected to the laptop via BLE and similarly the drone to the raspberry pi 3b+. The laptop takes care of processing the EEG signal and determining the desired command, while the raspberry pi acts as a wireless controller for the drone.
system setup
I need to pass the values between these 2 codes[and devices] so as to control the drone using the EEG signal. For eg, if I want to make the drone go forward after processing the signal I need to send say "1" or "f" to the raspberry pi from the laptop.
A wired connection such as Ethernet cable or USB is preferred over a wireless method.
The data size and rate is very less as a single character is sufficient and it will be sent only once every few seconds.
Which would be the best method to achieve this sort of communication
Use kafka or 0mq to loosely couple the laptop sender to the rasp pi receiver.
If one of them reboots, that's ok, the other will keep plugging away.
In the kafka case, you will enjoy the advantage of being able to replay a laptop publisher session again and again as you tweak and test the rasp pi client code.
I have a Raspberry Pi3 running Windows IoT version 10.0.14931.1000. The Raspberry Pi 3 onboard bluetooth adapter is supposed to be supported in this version of Windows IoT.
When I use the web portal to search for Bluetooth devices nothing is found, and my Raspberry Pi does not appear to be discoverable. When use Windows IoT Remote Client to connect to the Raspberry Pi and look at the Bluetooth settings it says: "No usable Bluetooth adapter can be found on this computer: The device is not ready for use. (Excep_FromHResult 0x800710DF)".
Is there something else I need to do to enable Bluetooth on the device?
I could try reinstalling Windows, but before I do that I wanted to know if I'm missing something obvious.
I reinstalled Windows (10.0.14393.0) on the Raspberry Pi 3 and Bluetooth is now working. I can only assume that because I started with an insider build that did not support Bluetooth it has got itself into an unexpected state.
If it was full blown Windows I suspect deleting the device and reinstalling it would have done the trick, but that's not an option on IoT.
I would like to ask how to connect GSM module pgsm-1 to Raspberry pi 2 running Windows IoT core. We are supposed to connect it to the RasPi 2 via pins RXD and TXD which are labeled as reserved by Microsoft now. How could we do that?
You could use any 'supported' USB-to-Serial adapter to connect to the GSM module. Altough the list of supported hardware offered by MS is a bit of a mess...
I use one with a "Silabs CP2102" chip, but it requires some re-plugging from time to time since it seems to freeze on Win 10 IoT Core...
We are trying to make an device which can connect to another device running BT and BLE application. Our device is running android kitkat. We are facing following issue.
Once we connect using BT (stream songs over BT) , BLE application running on the same device (that is streaming music) is not detected in BLE scan.
But is detected by other devices (phones in the vicinity).
When we connect using BLE and do some data transfer then connect BT and stream music fromt the same device then both work fine.
Only when we connect to BT first we are not able to detect BLE app running on same device.
Has anyone faced this issue before?
After checking the logs it seems device (Android) does get advertisement packets from BLE app running on another device (iOS) but not the scan response packets. So it keeps waiting for scan response packet. I tried looking for scan request function but couldn't find it.
I figured it out from debug logs of android stack. Stack was not reporting advertisement it was getting during the BT was streaming to application. It kept waiting for scan response packet. I enabled reporting of this packets in stack and now able to scan and connect to BLE app running iOS while streaming music from same iOS device over BT.
There is one mystery though, am unable to figure out why iPhone does not send scan response when streaming over BT. Will update if I figure it out.