Siemens PLC for Smart Home: Cost-Effective and Reliable

Siemens PLC for Smart Home: Cost-Effective and Reliable

Siemens PLC for Smart Home: Cost-Effective and Reliable Want to use a PLC for smart home control? Today, we will guide you step-by-step using the Siemens S7-1200 PLC, from lighting control to security integration! 1. Quick Overview of System Functions • Remote control of home appliances via mobile phone • Automatic light switch with sensors … Read more

MQTT 5.0: 7 New Features and Migration Considerations

MQTT 5.0: 7 New Features and Migration Considerations

The MQTT protocol (Message Queuing Telemetry Transport) is a lightweight messaging protocol designed for resource-constrained devices and low-bandwidth, high-latency networks. It is particularly suitable for remote connections that require minimal code footprint or limited network bandwidth. MQTT 5.0 is the latest version of this protocol, featuring numerous improvements over previous versions. New functionalities include: reason … Read more

Using MQTT on Android and Common Problem Solutions

Using MQTT on Android and Common Problem Solutions

1. Basic Usage of MQTT 1. Add Dependencies // build.gradle (app) implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5' implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1' 2. Configure Permissions <!– AndroidManifest.xml –> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <service android:name="org.eclipse.paho.android.service.MqttService" /> 3. Core Code Example class MqttManager(context: Context) { private val serverUri = "tcp://mqtt.eclipse.org:1883" private val clientId = "android-client-${System.currentTimeMillis()}" private val qos = … Read more

MQTT 5.0: Enhanced Security Features

MQTT 5.0: Enhanced Security Features

MQTT Introduction  MQTT[1] 5.0, launched in March 2019 by OASIS (Organization for the Advancement of Structured Information Standards), is a significant upgrade from the MQTT 3.1.1 version released in 2014.  As a messaging protocol specifically designed for the Internet of Things (IoT) and Industrial IoT, it was previously introduced in ‘MQTT, Friend of Weak Networks’, … Read more

Best Practices for Reporting Temperature Data to Observability Cloud via MQTT Protocol

Best Practices for Reporting Temperature Data to Observability Cloud via MQTT Protocol

Introduction to MQTT MQTT (Message Queuing Telemetry Transport) is a lightweight messaging protocol based on the publish/subscribe model, designed for low-bandwidth, high-latency, or unreliable network environments. It is widely used in the Internet of Things (IoT), mobile applications, and distributed systems to enable efficient communication between devices. By reducing data transmission volume and simplifying communication … Read more

What You May Not Know About MQTT

What You May Not Know About MQTT

MQTT (Message Queuing Telemetry Transport) is a lightweight publish/subscribe protocol that is indeed very suitable for IoT devices operating under low bandwidth communication conditions. The following sections provide a detailed introduction from multiple perspectives: Basic Principles of the Protocol MQTT is based on a client-server (i.e., broker) publish/subscribe model. In this model, client devices can … Read more

Essential Guide to Embedded Development: Choosing Between Buildroot and Yocto with Qt

Essential Guide to Embedded Development: Choosing Between Buildroot and Yocto with Qt

In embedded Linux development, Buildroot and Yocto are extremely popular build systems, while Qt is a “magic tool” for graphical interface development. Today, let’s discuss how to choose between Buildroot and Yocto when using Qt! 👇 —- 🎯 Buildroot + Qt: Lightweight and Fast, Suitable for Small Projects 🌟 Features • Lightweight and Fast: Buildroot … Read more

Embedded Programming Model | Observer Pattern

Embedded Programming Model | Observer Pattern

Hello everyone, I am the Mixed Content Master. This time we share a commonly used concept/programming model in embedded systems—the Observer Pattern. Overview of the Observer Pattern The Observer Pattern is a behavioral design pattern that focuses on establishing a dynamic subscription-notification mechanism between objects. It defines a one-to-many dependency between objects, so that when … Read more

Lightweight Communication Protocol – MQTT

Lightweight Communication Protocol - MQTT

Introduction “MQTT (Message Queuing Telemetry Transport)” is a lightweight messaging protocol commonly used for communication in the Internet of Things (IoT) and sensor networks. It is designed to transmit data in low-bandwidth, unstable, or high-latency network environments, making it particularly suitable for communication between connected devices, especially in resource-constrained environments. This article will briefly introduce … Read more

MQTT + UART = Remote Debugging?

MQTT + UART = Remote Debugging?

In previous articles, we introduced MQTT and UART. So what do we get when we combine them? As engineers, we often encounter the following scenario: on-site, we need to connect a computer to a PLC or control device via a serial port, and the PC reads or writes data to the on-site device using a … Read more