News for hackers. Stuff that matters.
Re:Bluetooth remains an 'unusually painful' technology after... by nine_k on Wednesday July 20, 2022 @04:44AM (#32163057)
I tried to learn why BT is still somehow painful to use, and the article basically does not have an answer.

My take from comments here and my experience:

- Makers of BT devices can't agree on many important common things (easy discovery / pairing mode, priority, etc), and have little incentive to seek agreement. It's like phone chargers before USB.

- Makers of BT devices tend to cut corners and/or add not-entirely-standard features. They "save" on writing a good driver. They care little if devices made by their competition don't work reliably or at all in the mix. (And even sometimes their own!)

- RF noise makes radio interfaces like BT inherently not always reliable. But the user never notices when a small EM storm rages nearby, for the user it's just "damn bluetooth glitches for no reason at all".

Re:Bluetooth remains an 'unusually painful' technology after... by smackeyacky on Wednesday July 20, 2022 @04:51AM (#32163098)
They do agree on an awful lot of stuff, but the tools provided by the Bluetooth guys aged very poorly (i.e. their tools for generating GATT interfaces as C code is absolute garbage, full of holes and has a built-in buffer overflow capability).

The one thing nobody seems to do is stick to the standards provided, because they simply aren't broad enough for the creative stuff that people do with Bluetooth and Bluetooth LE. Most of us working in this space have some cack-handed way to advertise data without connecting because (for example) most of the connections to Bluetooth LE devices involve you having to do device discovery, even if you are connecting to 500 of the same damn device.

Also, the bluetooth library in Android started out terrible and didn't improve despite being replaced, the Bluetooth chips in most cheap phones are also rubbish and fail when you exceed their undocumented number of connections, often requiring a reboot of the device etc.

In short: You can sheet a lot of the problems back to an ill thought out spec and bluetooth chips in things like phones that just plain suck.

Things like RF interference - I just don't know. Sometimes there is just a heap more bluetooth traffic around than anybody knows about. Packet sniffers are relatively cheap, it's interesting to fire one up in a busy office and see how many bluetooth packet collisions there are (hint: it's a lot). Blame RF storms or whatever but it's more likely to be something advertising a lot and spamming the spectrum.

Re:Bluetooth remains an 'unusually painful' technology after... by seanalltogether on Wednesday July 20, 2022 @09:16AM (#32165347)
> The one thing nobody seems to do is stick to the standards provided, because they simply aren't broad enough for the creative stuff that people do with Bluetooth and Bluetooth LE.

Yeah, I've been working with BLE now for clients for 3 years, it seems like most people think of their devices as little CRUD servers (unless you're doing genuine pairing with constant data streams). BLE would be much better using a simple REST model than the GATT table model.

> Also, the bluetooth library in Android started out terrible and didn't improve despite being replaced

One thing I'll give Apple credit for is having a very solid bluetooth stack. We've had only a handful of BLE connection failures on our testers apples devices over the past 3 years, whereas on android test devices we get at least one connection failure DAILY that interrupts test cases from running. Furthermore Android devices just reach a point of critical failure where you need to just restart the device to resume BLE.

Re:Bluetooth remains an 'unusually painful' technology after... by toxik on Wednesday July 20, 2022 @06:36AM (#32163761)
Something I’ve noticed is that Bluetooth breaks down around major construction sites, like infrastructure projects. It’s very strange, I wonder if they have some kind of high power BT transmitters for some reason.
Re:Bluetooth remains an 'unusually painful' technology after... by mschuster91 on Wednesday July 20, 2022 @07:22AM (#32164150)
On construction sites, I'd suspect that the problem is an awful lot of EM noise from machinery that should have been replaced or at least maintained decades ago, like mechanic spark generators/distributors from simple combustion motors or brushed electric motors (e.g. in drills).

Additionally, remote controls for cranes, concrete pumps and other machinery may be the cause, depending on the frequency bands these use. Here in Germany, it's all 433/869 MHz from what I remember from sites I worked at, but no idea about the US.

Re:Bluetooth remains an 'unusually painful' technology after... by toxik on Wednesday July 20, 2022 @08:30AM (#32164791)
It may be motor noise but anecdotal evidence suggests that it happens even when the machines are off, eg on national holidays. Some kind of transmitter seems likely though. I know one construction site had analog video signals in the 2.4 Ghz range for their surveillance cameras. I accidentally found out when I did a range sweep on a video receiver for other reasons.

PS I am in northern Europe, not the US.

Re:Bluetooth remains an 'unusually painful' technology after... by consp on Wednesday July 20, 2022 @07:19AM (#32164126)
Any high power 2.4ghz transmitter will destroy Bluetooth communication, this is all in the same 2.45ghz ISM band. I guess they use some devices communicating on that band.
Re:Bluetooth remains an 'unusually painful' technology after... by dcx on Wednesday July 20, 2022 @07:37AM (#32164253)
They certainly do - walkie-talkies!

Edit: Yes, they do exist - you can google this. But on reflection, a commenter below is probably right that it's more likely wireless security cameras, given typical site requirements (range, penetration depth)

Re:Bluetooth remains an 'unusually painful' technology after... by gruez on Wednesday July 20, 2022 @08:29AM (#32164786)
I don't think they use the 2.4 GHz band.

https://en.wikipedia.org/wiki/General_Mobile_Radio_Service

Re:Bluetooth remains an 'unusually painful' technology after... by gorgoiler on Wednesday July 20, 2022 @08:20AM (#32164687)
Handhelds are usually UHF - in the 446MHz range. Do you know of personal radios that operate in the 2.4GHz unlicensed spectrum?
Re:Bluetooth remains an 'unusually painful' technology after... by tekknik on Thursday July 21, 2022 @09:18AM (#32178974)
Drones (FPV), baby monitors to name two. I’m sure there’s more.
Re:Bluetooth remains an 'unusually painful' technology after... by Bouncingsoul1 on Wednesday July 20, 2022 @07:03AM (#32163992)
/Opinion: "Makers of BT devices can't agree on many important common things (easy discovery / pairing mode, priority, etc)." => I think it is not the creators of the devices (peripherals), it is in my expierence the SmartPhones (Apple/Google) => iOS won't let you discover BLE Devices which have only generic or costum services/characteristics => iOS will hide parts of advertisment/discovery data from app developers => iOS won't let you know if a device is bonded/paired via API => on iOS if you want to initiate bonding, you have to initiate it from the peripheral => Android sometimes "forgets" keys of paired devices => Android sometimes scrambles data from characteristic notify() => Android sometimes "misses" characteristic writes (ratio 1:1000000) This is just what I could come up with in a minute. I develop both FW for peripherals and Apps, so my 2 cents => It's almost never the peripheral/fw and most time the Smartphone => RF noise is (almost) never an issue, glitchses come from phones
Re:Bluetooth remains an 'unusually painful' technology after... by tekknik on Thursday July 21, 2022 @09:19AM (#32178988)
Why is this written with slashes and fat arrows?
Re:Bluetooth remains an 'unusually painful' technology after... by jacquesm on Wednesday July 20, 2022 @05:48AM (#32163455)
> It's like phone chargers before USB.

No, it's like phone chargers before EU regulators stepped in.

Re:Bluetooth remains an 'unusually painful' technology after... by Certhas on Wednesday July 20, 2022 @06:40AM (#32163797)
That was my first association as well. This seems like a much much harder thing to regulate though...

For USB chargers industry had come up with a good solution but market failure meant there was no incentive to adopt it. That's text book regulation stuff. Here there doesn't seem to be a good proven solution out there that you could mandate...

Re:Bluetooth remains an 'unusually painful' technology after... by pas on Wednesday July 20, 2022 @08:13AM (#32164615)
there's no need to mandate it, but the EU could spend a few ebucks on consumer appliances interoperability testing, and simply shaming those that suck. (or at least put out a statement about the problem, which could be simply lack of incentives for cooperation on solving the issues. or maybe too much backward compatibility preventing the whole ecosystem to move to more robust BT standards, etc.)

for example just a few days (week) ago there was a thread about how Logitech wireless stuff and wireless headphones interfere.

sure, it's hard to point to a singular root cause (Logitech emits too much, or headphones are ill-designed and BT is simply not the right tool for this because this or that)

but there are clear software (firmware, drivers, kernel) failures, that stem from simply releasing absolute garbage. (and every layer just coding for the happy path.)

Re:Bluetooth remains an 'unusually painful' technology after... by dghlsakjg on Wednesday July 20, 2022 @10:41AM (#32166418)
Logitech bluetooth wireless and apple airpods specifically. Logitech over their own wireless protocol, or any other set of wireless headphones is fine.

I have three sets of bluetooth headphones that I use on a rotating basis daily with my logitech bluetooth mouse and keyboard, and they are all dead reliable... well dead reliable for bluetooth devices

Re:Bluetooth remains an 'unusually painful' technology after... by moonchrome on Wednesday July 20, 2022 @06:50AM (#32163874)
>No, it's like phone chargers before EU regulators stepped in.

When did this happen ?

Re:Bluetooth remains an 'unusually painful' technology after... by npteljes on Wednesday July 20, 2022 @07:31AM (#32164202)
Re:Bluetooth remains an 'unusually painful' technology after... by detaro on Wednesday July 20, 2022 @06:51AM (#32163881)
2009
Re:Bluetooth remains an 'unusually painful' technology after... by tekknik on Thursday July 21, 2022 @09:20AM (#32179000)
I for one will be very happy when the EU forces my US iPhone to drop lightning.

/s

Re:Bluetooth remains an 'unusually painful' technology after... by grnmamba on Wednesday July 20, 2022 @05:53AM (#32163478)
Everyone except Apple was already on USB.

And even in the pre-smartphone days, phone chargers always worked reliably. Phone charging is and was the complete opposite of what bluetooth is today.

Re:Bluetooth remains an 'unusually painful' technology after... by bigbillheck on Wednesday July 20, 2022 @06:01AM (#32163539)
Re:Bluetooth remains an 'unusually painful' technology after... by grnmamba on Wednesday July 20, 2022 @06:10AM (#32163600)
Ok, so since 2009 everyone except Apple was on USB.
Re:Bluetooth remains an 'unusually painful' technology after... by seszett on Wednesday July 20, 2022 @09:01AM (#32165163)
2009 is when the EU stepped in. They didn't have to set it into law because the industry agreed to it voluntarily except for Apple.
Re:Bluetooth remains an 'unusually painful' technology after... by artiii on Wednesday July 20, 2022 @06:38PM (#32173329)
"industry agreed to it voluntarily" China before eu(~1-2y) forces usb chargers. and industry had choice, make special version for them or not.
Re:Bluetooth remains an 'unusually painful' technology after... by id on Wednesday July 20, 2022 @06:35AM (#32163756)
No, because there were many other manufacturers.
Re:Bluetooth remains an 'unusually painful' technology after... by ralfd on Wednesday July 20, 2022 @09:40AM (#32165641)
Thankfully that EU initiative failed. They wanted the industry to adopt micro-usb as the standard, which would have sucked and would be worse than the situation today
Re:Bluetooth remains an 'unusually painful' technology after... by afiori on Wednesday July 20, 2022 @11:16AM (#32166954)
The EU charger mandate required USB if USB was sufficient, IIRC apple managed to continue using lightning connectors b arguing that USB standards of the time where not enough for the iPhone.
Re:Bluetooth remains an 'unusually painful' technology after... by bigbillheck on Wednesday July 20, 2022 @12:14PM (#32167917)
Is the situation today not 'everything is micro-usb, usb-c, or apple'?
Re:Bluetooth remains an 'unusually painful' technology after... by detaro on Wednesday July 20, 2022 @09:42AM (#32165672)
How was getting all manufacturers to agree a "failure"?
Re:Bluetooth remains an 'unusually painful' technology after... by RedShift1 on Wednesday July 20, 2022 @06:51AM (#32163882)
> Everyone except Apple was already on USB.

My old box of chargers begs to differ

Re:Bluetooth remains an 'unusually painful' technology after... by qbasic_forever on Wednesday July 20, 2022 @01:58PM (#32169701)
The specs (there are multiple) are enormous and you honestly have zero hope of fully implementing one from scratch. It's thousands and thousands of pages covering everything from the physical layer all the way up to deep application-layer integration. Manufacturers rely on support libraries and hardware that does most of the work, and until only the last few years most of those on the whole have been total garbage (again because the specs are so massive it just costs too much time and effort to implement them). I don't expect anything less than a team of 10 people all with a mix of senior hardware and software/firmware experience could fully implement bluetooth & bluetooth LE from scratch in less than a year.
Re:Bluetooth remains an 'unusually painful' technology after... by chasil on Wednesday July 20, 2022 @05:01AM (#32163167)
Bluetooth devices will "frequency hop" in a schedule to which they both agree. Noisy frequencies that result in lost data will be removed from their scheduled shifts.

There are only a maximum of 79 channels switched 1600/second, and if there is more noise than not, then the data rate will suffer, although updated modulation standards might compensate, if implemented.

Re:Bluetooth remains an 'unusually painful' technology after... by makeitdouble on Wednesday July 20, 2022 @11:14AM (#32166928)
BT device makers are also coming in a slightly less explored field and have to make UX decisions that might not have clear answers yet.

For instance some BT headset have only a few buttons, and the play/pause button does also redial the last connected phone number depending on the phone’s state. I’m sure someone thought this feature made a ton of sense and really helps them in their day to day life, while I hate with the heat of a thousand suns.

I’d expect it takes us a few more years to come to a consensus on how to cleanly solve this kind of diverging views.

Re:Bluetooth remains an 'unusually painful' technology after... by westmeal on Wednesday July 20, 2022 @05:56PM (#32172961)
Config files/settings.
Re:Bluetooth remains an 'unusually painful' technology after... by makeitdouble on Wednesday July 20, 2022 @07:59PM (#32174078)
This is of course part of the puzzle, and that behavior having no config is probably a sign it's still not mature enough.
Re:Bluetooth remains an 'unusually painful' technology after... by CipherThrowaway on Wednesday July 20, 2022 @11:38AM (#32167324)
I'll add that the specs are so bad that it's not commercially viable to try to fully understand them before building and launching BT products and middleware.
Re:Bluetooth remains an 'unusually painful' technology after... by snarf21 on Wednesday July 20, 2022 @11:56AM (#32167606)
Most of it is the Bluetooth SIGs fault. It has got away from them. It reminds me of SMTP or HTTP, it is so useful that people couldn't wait for things and just implemented and added whatever they wanted. No certification is required just a registration for the logo so it has made it the wild wild west. Additionally being stuck in the "free" frequencies means that it has no ability to deliver quality in a noisy room.
Re:Bluetooth remains an 'unusually painful' technology after... by nothis on Wednesday July 20, 2022 @09:52AM (#32165802)
Trying to understand bluetooth's awfulness is a dead-end. I tried. I thought, "yea, you're nerdy enough to read the tech specs, it will be boring but after an hour you'll understand and your bluetooth keyboard will pair every time instead of 85% of times". Nope.
Re:Bluetooth remains an 'unusually painful' technology after... by fullstop on Wednesday July 20, 2022 @10:08AM (#32166005)
Also, head units generally don't get updates and the lifespan of a car is quite long. The phones that we are using now didn't always exist when the head unit was made.
Re:Bluetooth remains an 'unusually painful' technology after... by yosito on Wednesday July 20, 2022 @07:10AM (#32164053)
> user never notices when a small EM storm rages nearby

What's the easiest way to detect this? Is this something an average smartphone can detect with the right app? Or would I need to buy specific hardware to detect it?

Re:Bluetooth remains an 'unusually painful' technology after... by anon_123g987 on Wednesday July 20, 2022 @07:30AM (#32164197)
We just learned that any Bluetooth device can detect it easily.