Live data from Hacker News

There's an ARM Cortex-M4 with Bluetooth inside a Covid test kit

twitter.com

161–170 of 199 posts

Re: There's an ARM Cortex-M4 with Bluetooth inside a Covid test kit

#161

Earlier quoted context omitted.

Say what you will about the hardware, but ESP-IDF is the gold standard for me now

ehh… It is pretty easy to use but there's way too much bundled stuff in there, you're always under FreeRTOS, and Wi-Fi support is all proprietary blobs (but that's unfortunately the case with every embedded Wi-Fi chip… unlike Bluetooth LE with has multiple fully FOSS implementations)

I don't know what you mean by "way too much stuff", it's mostly use what you want. It's easy enough to disable any features you don't want with their sdk config stuff

They used to even ship a "No OS" SDK for the 8266, but the demand just wasn't there, FreeRTOS is pretty solid for the core competency of their product after all...

Re: There's an ARM Cortex-M4 with Bluetooth inside a Covid test kit

#162
post #141

Earlier quoted context omitted.

Working on it in my github rurban/qemu-stm32 fork. Checkout supported platforms for qemu and better renode. There you also have debugging interfaces. Stressfree qemu support was only for my even smaller avr targets, the 1281. But AVR is crazy compared to the Cortex-M4. We switched to arm completely, no avr's anymore. Anyway, no need for qemu or other emulators, when you can easily write simulators. You just throw in…

Your simulations sound super interesting, I'd love to read more if you're willing to write about it!

Not the parent, but I wrote a little bit about this here: https://www.jonnor.com/2017/03/host-based-simulation-for-emb...

The key thing is to make the majority of the code portable enough to run on a PC. I find the best way to do that is to keep things data-oriented, using Plain Old Data type data structures and pure functions as much as possible. Alternative view: isolate out any device-specific pieces, like I/O into as small and simple pieces as possible. When one takes this mindset one realizes that even things that are considered as "device specific", like device drivers usually have a lot of logic that can actually be separate from the I/O. And by having a swappable I/O backend (say for I2C) one can actually test the vast majority of this logic on a computer. One should also have an implementation of the Hardware Abstraction Layer (HAL) that is "host", allowing to run on a PC, potentially with virtual inputs and outputs. This allows to run essentially all of the firmware on a PC. If one uses a embedded-friendly test framework, like Unity, then one can also run the same tests that is used on the PC on the device - to make sure that there is no difference when ran on host vs device.

Unfortunately, the code from embedded device vendors is rarely amenable to this, so that code can end up as "untestable" under this scheme. For them portability" is only considered between their own hardware devices, not to a computer. Then one has to trust that they have done their own QA. Which is usually not that great - looking at you ST HAL....

Re: There's an ARM Cortex-M4 with Bluetooth inside a Covid test kit

#163

As a European: why are there chips in this? I just broke open mine and it looks like this: https://imgur.com/a/muz7FIy I bought 50 of these 2 weeks ago. Were 3-4 euro a piece.

I'm wondering if they're subsidized, but the price in Germany at the supermarket hovers around 1€ each. I was really surprised to hear that these are not a thing in the US, any idea why?

They are a thing in the US as well.

Re: There's an ARM Cortex-M4 with Bluetooth inside a Covid test kit

#164
post #156

As a European: why are there chips in this? I just broke open mine and it looks like this: https://imgur.com/a/muz7FIy I bought 50 of these 2 weeks ago. Were 3-4 euro a piece.

For reference, this is one specific type of test available in the US, there are other more common tests which are electronics-free. There are some valid reasons for tests like this to exist. To quote later on in the linked Tweet thread [1]: BTW it's easy to say this is wasteful, and it probably is, but just like with the pregnancy test, you should consider that there's three main problems that can affect the accuracy…

There's no path for reusing the electronics, is the big issue here.

Re: There's an ARM Cortex-M4 with Bluetooth inside a Covid test kit

#165
I can't believe even a fractional percentage of customers would find it useful to have wireless interaction with a disposable single-use test kit, compared to reading the result off of a passive testing strip. It would've been reedemable if they had sold the strips as a separate replacable product so that the electronic device could be fully utilized.

Re: There's an ARM Cortex-M4 with Bluetooth inside a Covid test kit

#168
post #156

As a European: why are there chips in this? I just broke open mine and it looks like this: https://imgur.com/a/muz7FIy I bought 50 of these 2 weeks ago. Were 3-4 euro a piece.

For reference, this is one specific type of test available in the US, there are other more common tests which are electronics-free. There are some valid reasons for tests like this to exist. To quote later on in the linked Tweet thread [1]: BTW it's easy to say this is wasteful, and it probably is, but just like with the pregnancy test, you should consider that there's three main problems that can affect the accuracy…

Except the first 2 are examples of human error. You are supposed to follow the instructions, and the instructions tell you to carefully read the instructions which I have done with multiple 'manual' antigen tests. They're crystal clear. With regards to these 2 examples you can ensure decent lighting with a smartphone (torch) these days. Incorrect timing, can also be solved with a smartphone by setting an alarm (or just focusing on say letting 15 minutes pass as a matter of respect to the outcome and those possibly affected by it). We already got a swiss army knife in the form of a smartphone, we don't need another disposable technology (nevermind insecure technology).

Re: There's an ARM Cortex-M4 with Bluetooth inside a Covid test kit

#169

I can't believe even a fractional percentage of customers would find it useful to have wireless interaction with a disposable single-use test kit, compared to reading the result off of a passive testing strip. It would've been reedemable if they had sold the strips as a separate replacable product so that the electronic device could be fully utilized.

It might have its uses...If for privacy reasons, the testing subject is in a closed room and you want to make sure they report from the correct test.
Post reply on HN