by wiremine · 8y ago · 0 comments
1. The problem isn't the transport layer, it's the application layer. The transport layer is mostly solved via MQTT, COAP, Thread, etc. Sure, we can improve there, but the real problem is the application layer. So I applaud Mozilla's attempt to bring something into this space.
2. Bootstrapping this will require a substantial number of hardware vendors to sign on, both at the edge and at the hub layers. IMHO this is why Google Weave [1] never took off in it's original incarnation. Bootstrapping this like they did with web stuff isn't enough, because this isn't the web.
3. Devices are only part of the problem: We need a software services layer, too. Think time services, IFTTT-like orchestrators, media services, etc.
4. JSON is a non-starter long-term: it sucks for small devices. They need a binary format that is easy to parse.
5. Request-Response isn't the right pattern for most use cases.
6. The Property/Action/Event concept is a solid start.
7. For the love of everything holy, add versioning!
[1] http://internetofthingsagenda.techtarget.com/feature/Google-...
Edit: Grammar.
Maybe a web implementation with all it's built in protections really is the most pragmatic solution even if it isn't light weight.
I think a safe language like SML/ocaml, erlang, or rust (each with various performance/productivity tradeoffs) is a better solution if we can get a secure framework on top.
Client certificates can cover the client auth side although there are gotchas:
(1) dealing with revocation is more difficult as devices can more easily become compromised (physical access = extracting keys from flash/RAM.)
(2) assume a vendor issues a unique client cert on every device, and the chain reaches a CA. For multi-tenant cloud vendors, you still need to figure out which e.g. Philips Hue bulb is Bob's when Bob logs into his cloud portal. So there's a pairing issue that usually requires a one-time-pad or similar. Right now everyone does that differently.
To put it another way: Mozilla proposal needs to work with _multiple_ security models. They won't get there overnight.
Our company does Device integration stuff but most of the big guys are using older automation systems (typically a bms)
We have not seen any significant adoption of iot so far. Maybe our market is just different.
* Industrial IoT - If I had to guess, most of the projects are 95% analytics, 5% command and control (i.e., configure machines and/or centrally control them) - PLCs make this suck, but as that moves to SBCs we're seeing that improve. Energy management, too. Get a lot of questions about Industry 4.0, too.
* Transportation - Mostly telematics (GPS, listening off the CAN Bus for events, etc.)
* Healthcare - RTLS, some basic analytics. C&C is unlikely due to security and use cases.
* Retail - Restock tracking, footfall traffic, etc. Ordering by voice. ("Alexa, I'd like to order 5 cases of carrots")
* Consumer IoT - Voice, energy management (Europe has some great use cases here), some analytics. C&C is big in this this space. "Alexa, set my Jenn-Air oven to 350 degrees for 25 minutes" was a recent project.
* Insurance - The 5 five all have innovation groups very intent on IoT, but I haven't see a really great use case yet.
* Smart City - Energy management, parking. We weren't involved too much, but our city's snowmelt system is another example: https://runengine.com/vroom/58-smart-city-snowmelt-monitor (The guy with the beard is one of my SAs)
https://www.hackster.io/kayakpete/snowmelt-system-monitor-be...
One last thought: I've noticed is that IoT really screws with the traditional "Enterprise Architecture" patterns. Startups are going to kill it once they figure that out, because traditional enterprise architects are lost in that space.
I imagine the "Enterprise service bus" architecture is probably a good fit, but maybe I'm missing something.
I've seen someone have intimate contact with Beckhoff PLCs and the upgrade story isn't great, plus using git with it tends to be painful, and writing modular code seems so too. It would be great to learn about an alternative that's more hackable.
Thanks!
Data Science & Data Engineering don't require an EE background
> 4. JSON is a non-starter long-term: it sucks for small devices. They need a binary format that is easy to parse.
ASN.1?
https://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One
> ASN.1 is similar in purpose and use to protocol buffers and Apache Thrift, which are also interface description languages for cross-platform data serialization. Like those languages, it has a schema (in ASN.1, called a "module"), and a set of encodings, typically type-length-value encodings. However, ASN.1, defined in 1984, predates them by many years. It also includes a wider variety of basic data types, some of which are obsolete, and has more options for extensibility. A single ASN.1 message can include data from multiple modules defined in multiple standards, even standards defined years apart.
There are plenty of more modern binary formats that would be a good alternative. CBOR, MessagePack, Protobufs, etc.
from https://essr.esa.int/project/asn1scc-asn-1-space-certifiable... :
> ASN1SCC is an ASN.1 compiler that was developed for ESA to cover all data modelling needs of space applications.
> The compiler is targeting safe systems and generate either Spark/Ada or C code. Runtime library is minimalistic and open-source. The tool handles custom binary encoding layouts, is fully customizable through a code templating engine, generates ICDs and automatic test cases.
https://github.com/ttsiodras/asn1scc
> This repository contains the complete source code and tests of the ASN1SCC compiler ; an ASN.1 compiler that targets C and Ada, while placing specific emphasis on embedded systems: no black-box run-time library, portable code able to run under any OS (embedded or otherwise), no dynamic memory used anywhere, etc.
See also blog post about it: https://ttsiodras.github.io/asn1.html