---
title: "IoT solution powered by the SMQ protocol"
url: "https://maker.wiznet.io/louis_m/projects/iot-solution-powered-by-the-smq-protocol/"
markdown_url: "https://maker.wiznet.io/louis_m/projects/iot-solution-powered-by-the-smq-protocol/md"
type: "UCC: User Created Content"
author: "realtimelogic"
author_url: "https://realtimelogic.com/jobs/graviti/"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "realtimelogic"
original_url: "https://realtimelogic.com/jobs/graviti/"
published: "2023-09-01"
language: "en"
hardware: ["WIZnet W5500"]
likes: 0
views: 350
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# IoT solution powered by the SMQ protocol

> IoT solution powered by the SMQ protocol

Original author: realtimelogic (source: https://realtimelogic.com/jobs/graviti/)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Article

The robust [Mako Server](https://makoserver.net/) is central to our IoT solution, which operates as an online cloud portal and provides seamless functionality and efficient edge device management capabilities. This portal, which acts as a control hub, enables remote access and control over IoT-enabled car charger stations. Users can thus interact with these IoT devices effortlessly through our cloud-based server portal.

Our team used [Lua](https://realtimelogic.com/products/lua-server-pages/), a versatile scripting language, to craft the software for both the server-side portal and edge device code. This allowed us to create a cohesive ecosystem that seamlessly integrates all components. The client-side browser code was designed as a Single Page Application (SPA) by using React.

### SSO Login Page

![](https://realtimelogic.com/jobs/graviti/sso-login.png)

Using Active Directory Single Sign-On (SSO) for the portal presents numerous advantages over traditional authentication methods, including enhanced convenience, improved operational efficiency, bolstered security, reduced IT support costs, and facilitated compliance.

Check the tutorial [Single Sign On for Microcontrollers](https://www.linkedin.com/posts/real-time-logic-llc_sso-embeddedsystems-microcontroller-activity-7084793842620645376-Sse0) to learn more about the benefits of using SSO.

### Quarantined Devices

![](https://realtimelogic.com/jobs/graviti/quarantined.png)

When an edge device establishes a connection with a portal through an encrypted TLS (Transport Layer Security) connection, it confirms the authenticity of the server's certificate. This step ensures that the device genuinely connects to the intended portal, not falling prey to a 'man-in-the-middle' attack.

In the realm of IoT infrastructure, mutual TLS (mTLS) is often employed. This is a process where not only does the device validate the portal's certificate, but the portal also reciprocates by authenticating the device's certificate. However, using mTLS can introduce an undue burden in logistics and IT configuration, potentially escalating operational costs.

Our chosen approach significantly minimizes the need for configuring new devices. Under this approach, new devices are automatically relegated to a quarantine list, preventing them from accessing the portal. The operator has the choice to accept the device; this acceptance triggers the generation of a cryptographic key which is then sent to the device. This key allows the device to log into the portal successfully.

For a more in-depth understanding of the logistical challenges posed by using mTLS in IoT infrastructure, check out the article [Mutual Transport Layer Security](https://makoserver.net/articles/How-to-Connect-to-AWS-IoT-Core-using-MQTT-amp-ALPN).

Edge Device Hardware

Not only did we excel in software development, but we also took the hardware design of the devices to new heights. We meticulously crafted the device housing, as showcased in the accompanying images. The attention to detail in our design is a testament to our commitment to delivering excellence in all aspects of the project.

### Enclosure

![](https://realtimelogic.com/jobs/graviti/gravity_asm_enclosure.png)

### Enclosure - Exploded View

![](https://realtimelogic.com/jobs/graviti/gravity_explode.png)

### PCB

![](https://realtimelogic.com/jobs/graviti/pcb.png)

### Components

![](https://realtimelogic.com/jobs/graviti/3D_pcb_xedge-gravity.png)

### The ESP32-S3 microcontroller

The cornerstone of the device hardware is the ESP32-S3 microcontroller, augmented with Ethernet capabilities via the W5500 chip. This powerful combination ensures reliable connectivity and efficient data transmission, enabling robust control of the car charger stations.

The ESP32-S3 microcontroller is notable for its cost-effectiveness. Despite offering a rich set of features, it remains one of the most affordable microcontrollers on the market, ensuring our solution delivers value for money. Moreover, the ESP32-S3 enjoys a stable supply chain, ensuring our production timelines are unaffected by unforeseen delays or shortages.

---

Source: https://maker.wiznet.io/louis_m/projects/iot-solution-powered-by-the-smq-protocol/
