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>
Related
I am working with an ESP32-CAM and have run into a bizarre problem with serial communication. I was able to burn the Edge Impulse (https://www.edgeimpulse.com/) firmware onto the ESP32 using a Raspberry Pi and their shell script, which invokes esptool. The firmware appears to write OK. Using esptool to query the chip id seems to work - it returns an id that changes when I swap ESP32 modules. However the Edge Impulse daemon cannot see the ESP32.
This is where it gets really weird. Using screen, I can't see anything on the USB port. I take the ESP32 and cable over to a different computer and I can see the firmware transmitting messages over USB if I use the Arduino serial monitor or the Termite serial program. However if I use Putty I see nothing. No messages, no gobbledygook, nothing at all, even if I reset the ESP32. I have checked (and re-checked) baud, port settings, flow control, local echo, CR/LF. I've tried resetting the ESP32 while watching output from Putty. I've also tried a different PC and gotten the same results.
I'd like to understand what is going on here. Can anyone offer an explanation?
thx
Burned firmware with esptool on Raspberry Pi - works
Queried chip_id with esptool on Raspberry Pi - works
(above shows that serial port, cable and ESP32 are good, I believe)
View USB output with screen and minicom on Raspberry Pi - nothing
View USB output with Arduino serial monitor and Termite from Windows 10 PC - works
View USB output with Putty from Windows 10 PC - nothing
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.
I setup my raspberry pi with a wifi connection (from a wifi extender), and had no issues. I could connect to the internet, everything was great.
I then changed my wifi extender, so went to my raspberry pi and logged into the new wireless. It says its connected to the wireless, but I can no longer connect to the internet or the network. Any thoughts?? When I switch back to my original wifi connection / extender, it works fine again.
Thanks
EDIT: This seems to be related to this!
https://github.com/raspberrypi/linux/issues/1542
In my opinion, I honestly dislike wireless. You could always get a Ethernet cable and plug it in, and it'll never do the error again. You can find them very cheap, and it's faster than wireless.
But, for some friendly Raspberry Pi reference, if you have another computer (it doesn't matter how old or slow, it'll work either way), you can download VNC Viewer, plug in your Ethernet cable to your Raspberry Pi (or you can use a WiFi adapter too!!), then find your Raspberry Pi's IP address, and use VNC Viewer to control your Raspberry Pi from that other computer. That's what I'm doing.
I hope I help with this :)
I am using the Arduino IDE and RasPiArduino (https://github.com/me-no-dev/RasPiArduino) to compile sketches for my Raspberry Pi Zero. It's working fine.
I figured that the Pi's USB OTG port could be used to directly upload the sketches via USB. So I have set up g_serial on the Pi and successfully logged into it using minicom. The Arduino IDE also lists the port under Tools -> Port. So far so good.
However, I am not yet able to actually upload a sketch over that port or to open the Serial Monitor. As far as I know, the IDE uses avrdude to upload sketches, but it seems that only works for Atmel chips? I am completely stuck here. Can this be done at all? Any ideas or pointers are greatly appreciated.
Thanks!
OK, I got it working as follows, thanks to the tip from jikuja:
Set up ethernet over USB using the gadget driver g_ether You may also have to set up a DHCP server (e.g. dnsmasq) on the Raspberry Pi in order to assign IPs to the Pi and the host. Details can be found here, for instance: https://gist.github.com/gbaman/50b6cca61dd1c3f88f41
Configure avahi to only provide the arduino service over the USB interface. To do this, modify /etc/avahi/avahi-daemon.conf and set options allow-interfaces=usb0 and deny-interfaces=wlan0.
The Arduino IDE (using RaspiArduino) should not be able to detect the Pi on the USB interface, but not the WiFi. Uploading sketches and serial monitor all work fine for me that way. :)
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.