I'd rather this device presented itself as a drive containing various virtual files that contain temperature data in them, but the cat's out of the bag, so to speak.
I'd rather this device presented itself as a drive containing various virtual files that contain temperature data in them, but the cat's out of the bag, so to speak.
I can't see how the filesystem hack would work, if the OS has the drive mounted, it would cache files in memory, and not notice the file contents changing. You can't even modify the metadata, because most of that might also be in memory.
It's the same mechanism used to reach your router. Subnet-local / connected routes are routes in themselves. Routers let you leave your subnet.
MTP devices are ~mostly harmless~ and relatively easy to trust. Network devices are not.
https://media.ccc.de/v/35c3-9761-truly_cardless_jackpotting_...
USB is trash for security.
https://xlab.tencent.com/badbarcode/
Also, perhaps folks working in data centers can and confirm/deny, but from what I know it's usually strictly forbidden to bring any USB devices into a data center area.
We’re not a cloud provider, but I’ve been in lots of DCs and seen plenty of USB devices.
This is why everybody tries to piggyback on being a USB HID device.
Source: Have plugged several brands of USB-to-COM adapter in to Win 7 / 8.1 and they've "just worked".
Now, since most things use a Prolific chip, you only have to install the driver for one device and you pick up a ton of them.
But it has to be installed by somebody, and that means all of the silliness that goes along with Windows driver installation.
Very hard to troubleshoot.
"Sensor not detected? OK, open up Notepad and hit Caps Lock three times quickly. Did some text appear? The sensor is fine, the problem is with your computer."
The rest is just making up a serial protocol.
No need for a special driver.
:D Obviously you have to consider needs of your users as an engineer, when chosing any technology, for their particular problem.
The free (money-wise) approach we ended up doing was to use WinUSB and marking the device as “vendor specific”, and using libusb to talk directly to it. That was a bit awkward, but covered Windows, Linux, and OSX for us.
This was 5 years ago though. Windows 10 might directly support generic CDC devices, but Win 8.1 didn’t.
Edit: sibling mentions HID. HID does work like this, but we needed more bandwidth than HID provided. CDC was perfect for what we were doing but it didn’t auto install. Mass storage auto-installs but didn’t fit what we were doing.
But that requires custom software to interface with it and parse the data or make payload requests and developers are that lazy.
Maybe we should have stuck to PS/2 keyboards after all.