-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrated to PI 4, bad range? (USB3 2.4GHz interference) #430
Comments
Did you also change to an SSD drive in stead of SD card at the same time? or any other hardware changes? |
Yeah i upgraded my setup to a SSD, do i need to change something when migrating to a SSD? |
SSD drives block the Bluetooth signal for some reason. It is a very common problem (I had it myself too). I've written something in the faq about this issue (https://github.com/custom-components/ble_monitor/blob/master/faq.md#my-sensor-doesnt-receive-any-readings-from-my-sensors-anymore-or-only-occasionally) The solution is to use an extension cable between your PI and SSD drive, and place the SSD as far away from your PI. Somehow SSD drives interfere with the Bluetooth signal. |
Ok i'll try it! Its a shame, i really like my new case with the SSD on the bottom :( |
Yeah, sorry 😢 Unfortunately, I'm pretty confident that this is the issue you are facing. You are not the first.... |
I assume your issue is solved with these tips. Feel free to reopen if you still encounter issues. |
I am having a similar isssue. I have connected the SSD via an 1m extension cable to the Pi. If I move the BT sensor in the same room as the Pi, I am able to receive the data. However, if I move the sensor to the place it used to be, the Pi is unable to receive the data. Anything else I can do? |
Try to move the SSD around, it might be better in another position. If that doesn’t work, try to disable WiFi and connect the pi via a LAN cable. Other options are using an external Bluetooth adapter, with antenna |
The Pi is connected via LAN. How do I disable the Wifi? |
First hit in google https://raspberrytips.com/disable-wifi-raspberry-pi/ if you are on Home Assistant Os, it might not work. You can use this |
I am not able to figure out where to find the config.txt file. I have the SSH addon installed. |
The addon does not have access to this part of the file system, as far as i know. You need ssh access to the host OS. The following method may be easier - gracefully turn off the raspberry, remove the SD card, insert it into the card reader and connect it to Linux or Windows machine (macOS can't read SD card of such a format, but you can use virtual machine in this case), ignore the warnings asking you to format the disk and look for a partition called |
Thx @Magalex2x14. Well, I have migrated my installation to a SSD. But I did connect my SSD to a Windows machine yesterday but it did not get recognised. Tried the same with my Mac as well. (But then as you mentioned, it did not get recognised). Tried the missus' PC and it worked. Anyways, I made the change to Probably have to get the ferrite clamps. |
Consider also to install external usb bluetooth dongle - it will work significantly better than the built-in one. Even a simple one without a full-sized antenna, such as the Asus USB-BT400. Even installed without a USB extension cable (but better with one, like a one- or two-meter USB-A male to USB-A female). And ferrite clamps, yes. |
Thx. I'm assuming it does not matter whether it's a BT 4.0 or 5.0 adapter. |
Yes, BT LE support has been around since the Bluetooth 4.0 specification. |
One of the key points when choosing an adapter is the software support of its chip in linux. With the BT 5 adapter, you are more likely to run into such a software issues, than with BT 4.0... The HomeassistantOS image uses not so old kernel, so this probability is small, but still not zero. |
Thx again @Magalex2x14. I have ordered an adapter. Will provide further update. |
Hi @Magalex2x14, I have plugged in the adapter to the Pi. I also changed the adapter to be used in the Integration options page. It still does not seem to find the sensor. Do I need to disable the BT on the actual Pi? |
No, it's not necessary. And it will not give a tangible reduction in energy consumption. You can simply uncheck it in the integration settings so as not to create an extra CPU load. Did you plug it directly into the raspberry, or is it already with a USB extension cable? |
Plugged directly to the Pi |
I'll try to shed more light on the situation. Apparently, interference in the 2.4GHz region occurs due to the use of USB3 peripherals. The problem occurs not only with Bluetooth, but also with WiFi. It's easy to google. Lots of posts on reddit. There are many posts on the Intel website (they even had an article on this topic). Synology NAS even have the "Downgrade USB 3.0 device to reduce interference of 2.4G signal" option. Judging by what I see, the source of broadband noise is RPi USB3 interface itself, the interface cable, USB3-SATA adapter (or other device), and SSD itself. Based on this I would go the following way:
If not possible to use an external BT-adapter, and there is no way out other than using the built-in one, then yes, as @Ernst said, you need to take away the SSD and SATA adapter from the raspberry and try to shield it. And rely on luck... P.S. just few links: Pay special attention to this document - it describes methods of dealing with the problem: |
This is is my current setup - Wifi has been disabled on the Pi as well. |
So, to no avail, as far as I understand? You need to try to localise the source of noise. Without special equipment, this problem is solved only by trial and error, experiments. Armed with aluminum foil, I would start trying to shield the elements of the system. For example, here is a link to a forum with amazing illustrations (pay special attention to the presence of electrical contact with existing shielding elements, household aluminum foil can be conductive on one side only): Just for note, in addition to foil, there are also special aluminium and copper shielding tapes and special spray paints with metal powder, designed specifically to solve shielding problems. You need to deal with shielding. As mentioned above, a lot depends on the cables (don't forget the ferrite clamps). After making sure of the quality of the cables, and, perhaps, having tried different options, as I wrote above, I personally would try to box up the raspberry and the SSD into some kind of a metal case (shared for both devices). Like this one: More related links: I don't know how else to help. The problem is not so simple. And there can be many solutions - it all depends on the specific situation... |
Hi @Magalex2x14, thanks for taking the time to explain all this. I have ordered some ferrite clamps. I connected the BT adapter using a USB2 extension cable. But that hasn't made any difference. If the clamps don't work, I will get try out something else. |
Hi @Magalex2x14. I got the clamps and put them on the cables connected to the SSD as well as the cable connecting the BT adapter. This has resolved the range issue. Thx once again. |
Glad I was able to help 👍 |
@Magalex2x14 the rssi sensor is recording around -83dBm. |
Hi @Magalex2x14, I am still getting range issues. I have connected the SSD drive using a short shielded USB3 cable with a ferrite clamp. Connected the BT adapter to the RPi using a USB2 extension cable. Any other suggestions? PS: I have moved the sensor a bit closer to the RPi and am getting a rssi value of -77.7 dBm. |
For me, it was the Aluminum Case i bought. |
Hi,
I've been using this custom integration for over a year and it just works perfect with my Xiaomi Mijia Bluetooth sensors.
But last week i did a migration from my pi3 to a pi4 and now it seems that the sensors upstairs are out of range..
I thought the raspberry 4 had better bluetooth range, not worse?
ANy ideas?
The text was updated successfully, but these errors were encountered: