Raspberry Pi 4 Bluetooth Weak Range - linux

Context:
I have a Raspberry Pi 4 sitting directly next to my iPhone. I have a bluetooth multisensor ~3 rooms away that I am able to connect to from my phone but I cannot reach it from my Raspberry Pi (verified via bluetoothctl) for home automation purposes with Home Assistant. When I bring the sensor in the same room as the iPhone and Raspberry Pi 4 I am able to receive data on both devices, but when I place it in its ideal location for my purposes, I am only able to reach it via iPhone.
Questions:
Is there a way that I am able to extend the Raspberry Pi Bluetooth range via terminal in anyway? I've already disabled WiFi in case that was causing any issues.
If not, is there a dongle I can add to the RP4 where I would be able to get an extended range?

Related

How to p2p_connect to device with WiFi Direct without MAC Address? (Raspberry Pi and Android)

I have an Android tablet and A Raspberry Pi and I want to established a connection between them automatically when the tablet sends a request to the Pi.
I followed an Android application example here and start discovering any nearby devices. (https://www.youtube.com/watch?v=qnY97iBxp30)
At the same time i run sudo wpa_cli and p2p_find 20. The Android application detects the Pi, and I try to establish connection with the Pi which will display
<3>P2P-GO-NEG-REQUEST TABLET_MAC_ADDRESS dev_passwd_id=4
Normally I would just p2p_connect TABLET_MAC_ADDRESS pbc to successfully connect them together but I find it inefficient if I were to swap to another mobile device.
Are there any other ways to connect the tablet without writing the tablet mac address? For example connecting to that specific device ssid when they send a P2P-GO-NEG-REQUEST to the pi?
TL;DR Nope.
If we look at the OSI ISO 7 layer model for network communication we can see that the Media Access Control (MAC) address is vital for identifying which device is which within a wifi network.
You could try setting up a bluetooth connection or a token-ring, but I suspect that would be more effort than you are looking for.
With IPv6 your devices could use neighbour discovery to automate past the MAC entry to the Internet Protocol, and its possible to connect between devices using their link-local address (fe80::some:thing)
Wifi carries packets of data, that have addresses. By analogy, if I tell you which town I live in, but don't write my building address on the packet, you are going to have a hard time delivering it.

Reading Bluetooth data and command (Raspberry pi 3)

I am currently working on a project that make me control media center and a few domotic parts in my living room.
I have connected on my raspberry pi 3 a NAS, my Spotify account (with hifiberry, controls to close my amp, my PC and a few lights...
At first to control it all I programmed a web server that I can access on my phone. That made the job but it is not completely user friendly since I have to have my phone go to the interface and do whatever I have to... And I'm not a web designer 😁 it's far from perfect!
I've made some research and I have decided to build a bluetooth remote control (raspberry pi 3 do have Bluetooth low energy).
Since nothing exist as I want, it is going to be a custom one made with Arduino mini and hm10 module.
But I'm stuck on the raspberry part!
How can I read the Bluetooth data send by my remote and launch scripts according to the command sent?
Via a serial listener of some kind?
Yes, in fact, you should use a serial port to connect your pi with Bluetooth module.
You then use software input information for your purposes, but you must first implement the hardware and hardware interface first.
You can build application software with the Python programming language.

use raspberry-pi zero & wifi dongle as access point

what I want to do :
use Raspi zero & wifi dongle to build a access point, so that other device like smart phone or PC can access to rasperry pi directly.
image in my mind is like this :
internet >> wifi router >> raspberry pi zero >> other device
what I used:
raspberry pi zero
WIFI dongle buffalo wli-uc-gnm2 (http://buffalo.jp/product/wireless-lan/client/wli-uc-gnm2)
I follow these processes:
use rasp-pi 3 as access point
use rasp-pi 2 and 2 wifi dongles as a router (http://qiita.com/mt08/items/4247894833bd4dcb27e2#_reference-27aa37c4be7f602667ff)
In the 2 instrument, with 2 dongles raspi can link to the wifi router, at the same time be an access point.
My question is can I use 1 wifi dongle to do the same thing, since buffalo wifi dongle has the ability to be AP and like to wifi router at the same time, but I cant find the instrument their site, the driver is only for windows PC.
any advice for linux environment todo that ??
I don't know if it's possible to achieve this with only 1 wifi dongle and I'm not even sure if it's possible with 2 since the only way I am aware of to set up a Pi as an AP is to connect it to your router via Ethernet and connect devices to your Pi via Wifi. But either way, isn't it possible to use a usb-hub on the Pi zero and then use 2 Wifi dongles or 1 Wifi dongle + Usb to Ethernet?
And to set up things I'd recommend: https://www.maketecheasier.com/set-up-raspberry-pi-as-wireless-access-point/

How to setup a raspberry pi 3 with two bluetooth connections at the same time?

Hello my name is Edris,
I am looking to make a connection between a raspberry and 2 arduino's with bluetooth. So the raspberry pi 3 would be the master and the arduino's slaves.
But then I thought mayby is it easier to have two connections at the same time.
So one with the build in bluetooth chip
and the other
with a usb bluetooth stick.
The bluetooth chips are all BLUE LoW Energy. Also the build in chip in the raspberry pi 3
Looking forward to hear from someone.
Edris
here are a couple of ways to connect
my preference is bluetoothctl. you'll be able to control each dongle by it's ID, given its ID appears when you do scan on and a list of IDs prints

Connecting Smart Watch to Raspberry Pi

I am developing project on Raspberry Pi and I need to add feature of measuring heart rate. I want to use Smart Watch to do that but I do not know which smart watch provide environment which allows me to implement wireless communication between watch and Raspberry (Raspbian OS) easily. Thank you in advance for each answer.
I don't think any smart-watch allows direct connection between Raspberry Pi and smart-watch. It is not recommended on android developer site to open lower level sockets as well. You can send smart-watch's sensor data to Phone and then send it to Raspberry Pi.

Resources