Session
Fahrplan rc3 2021

CoMatrix - Constrained Matrix

We like to present our prototype implementation of the CoMatrix project, which enables the usage of the Matrix protocol for constrained IoT devices via CoAP and CBOR in a constrained network (e.g. an IEEE 802.15.4/6LoWPAN network). A CoMatrix gateway, which acts as a CoAP-HTTP forward proxy, was implemented based on the Python library aiocoap, and is running on a Raspberry Pi, which is extended with an 802.15.4 radio module. On the client side we use RIOT-OS on a SAMR21-xpro board and implemented an external CoMatrix library module based on gcoap and nanocoap. We like to share some experiences we made during the implementation and discuss some problems we faced (e.g. randomization and transport encryption). Further, we will demonstrate two IoT use case applications utilizing CoMatrix for communication. We will also provide an outlook in future work.
Matrix is an open source project that publishes the Matrix open standard for secure, decentralized, real-time communication. The architecture of the Matrix protocol is based on HTTP/REST/JSON/TLS and is therefore not suitable for constrained devices. CoMatrix provides a gateway, which ports Matrix to CoAP/CBOR/(DTLS). This gateway communicates with constrained IoT devices on one side via CoAP+CBOR and translates to the Matrix protocol, more specifically the Matrix Client-Server API, on the other side (i.e. HTTP+JSON). We also provide a CoMatrix client library (for RIOT-OS) which provides a starting point to implement CoAP clients (for constrained devices) which are able to interact with Matrix homeservers via the gateway. As far as we know there were no practical implementations or use of Matrix on constrained IoT devices before CoMatrix. CoMatrix now provides the basis to integrate Matrix-based communications in your IoT project(s). It enables resource-sparing communications for devices where this is necessary (e.g. microcontrollers, SoCs), but it also enables reliable communications for non-constrained devices (i.e. PCs, servers, laptops, smartphones) via standard Matrix implementations. Currently CoMatrix supports the following features: - Sending of messages to a Matrix room - Receiving of the last message of a Matrix room - User registration at a Matrix Synapse homeserver - Joining of a Matrix room upon invitation - Login of a user at a Matrix Synapse homeserver - Logout of a user at a Matrix Synapse homeserver We will give a demo of two IoT use case applications: First the "CoMatrix chat" to show the current state of the client library functions. Then a temperature sensor application, which continuously sends temperature values into a Matrix room. ___ Further information: - CoMatrix documentation: https://www.comatrix.eu - CoMatrix code repository: https://gitlab.com/comatrix/comatrix - Matrix: https://matrix.org/ - RIOT-OS: https://www.riot-os.org/

Additional information

Live Stream https://streaming.media.ccc.de/rc3/franconiannet
Type Short Talk (30 min) + Q&A (10 min)
Language English

More sessions

12/27/21
R3S local fun
heyhej
r3s - Monheim/Rhein
Unser Opening auf der R3S - Remote Rhein Ruhr Stage
12/27/21
Chaos-West TV
The rC3 2021 NOWHERE opening
12/27/21
r3s - RemoteRheinRuhr Talk
Daniel Maslowski
r3s - Monheim/Rhein
With approaches dating back to the 20th century, the idea of a TPM is simple: An isolated, constrained environment to offload trust establishment in a larger computing environment. That implies cryptography, firmware, hardware, and per application, different requirements. This talk elaborates on how the seemingly simple concept has been expanded over the years, enumerating implementations in hardware, firmware, other layers of software, and even web browsers, explaining why it is in fact far ...
12/27/21
Abchillgleis
chilloutservice hahn a collective of music nerds
12/27/21
chaoszone crew
ChaosZone TV
Feierliche Eröffnung des ChaosZone TV Channels beim rC3 2021.
12/27/21
Thomas Fricke
c-base
In den letzten Wochen der scheidenden Bundesregierung erhielt der Sprecher eine Mail von der Open Knowledge Foundation https://okfn.de/en/ über seine Meinung zur Open Source Sicherheit. Daraufhin erstellte er er eine Studie zum Thema Sicherheit von Open Source Projekten. Vier Projekte dienten als Beispiele und deren Hauptakteur:innen wurden befragt. Darunter "the random programmer from Nebraska" https://www.explainxkcd.com/wiki/index.php/2347:_Dependency Ariadne Connill ...
12/27/21
r3s - RemoteRheinRuhr Talk
Siebo M. H. Janssen
r3s - Monheim/Rhein
kommt noch - wird nachgereicht - Wunschtermin: 27.12.2021 gegen Mittag - einzige Möglichkeit