Detailed Explanation of MIPI CSI-2 Protocol (Part 2)

Detailed Explanation of MIPI CSI-2 Protocol (Part 2)

1. ECC MIPI CSI-2 uses a 24-bit ECC scheme. Inputting 24bit data, ECC encoding is performed to obtain an 8bit ECC result. Note: The 7th and 6th bits of the ECC byte must be 0. Data mapping relationship: Data identifier in the packet header DI[7:0] → corresponds to ECC input D[7:0] Low byte of word … Read more

PLC Communication Protocol with Siemens PLC

PLC Communication Protocol with Siemens PLC

1. Protocol Reverse Engineering Record (Wireshark Capture Code) # Wireshark filter rule (key fields marked in red)tcp.port == 102 && cotp && s7comm /* Typical handshake message structure 0000 03 00 00 16 11 e0 [TSAP:0x0100] [TSAP:0x0101] 00 00 00 01 00 c0 01 0a |_________| |___| |_____________| |_____________| |_TPKT_| |_COTP_| |S7C| */ #pragma pack(1) … Read more

Modbus Communication Protocol Explained

Modbus Communication Protocol Explained

Click the “Technical Training” above and select “Pin to Public Account” Over 150,000 industrial control professionals follow this WeChat platform: technical sharing, learning exchanges, industrial control videos The day before yesterday, I discovered a true fan who comments every day on the articles shared by Technical Training. He suggested that I share some content on … Read more

Detailed Explanation and Case Demonstration of Modbus Protocol

Detailed Explanation and Case Demonstration of Modbus Protocol

The Modbus RTU communication protocol uses a master-slave response method for data communication. Requests can only be initiated by the master (PC, HMI, etc.) through a unique slave address, and the slave (terminal device) responds to the master’s requests, thus enabling half-duplex communication. This protocol only allows the master to initiate requests, and the slave … Read more

Solutions for EMMC Socket Read/Write Errors

Solutions for EMMC Socket Read/Write Errors

EMMC Socket Usage: Enter “EMMC” under “Input Chip Marking” to see the following three options: EMMC_AUTO: Speed 8BIT (default), automatically recognized when EMMC. EMMC_AUTO_4BIT: 4BIT, recommended for most chips for stability. EMMC_AUTO_1BIT: 1BIT, can be selected when the above two cannot read; slower speed but may recover data in the chip. Additionally, the chip model … Read more

Understanding Modbus Communication Protocol

Understanding Modbus Communication Protocol

ModBus network is an industrial communication system formed by connecting programmable controllers with intelligent terminals and computers through public or local dedicated lines. Its system structure includes both hardware and software. It can be applied to various data acquisition and process monitoring. The ModBus network has only one master, and all communication is initiated by … Read more

Understanding The Modbus Communication Protocol

Understanding The Modbus Communication Protocol

Follow the “Automation Control System Communication” public account to understand the principles of automation control systems and master the knowledge of automation control systems. Click the blue “Automation Control System Communication” above to follow us. Understanding what the Modbus communication protocol is allows you to perform communication tests on-site using various third-party software. The Modbus … Read more

Why Does SPI DMA Circular Reception Fail When CRC Is Enabled?

Why Does SPI DMA Circular Reception Fail When CRC Is Enabled?

Someone is using the STM32G4 internal SPI configured as a slave full-duplex mode, using DMA for receiving. When the DMA is configured to CIRCULAR mode, problems occur where data transmission results in CRC verification failures and reception anomalies. If the DMA transfer mode is configured to NORMAL, there are no issues, and the received data … Read more

How to Calculate CRC Values in IAR and KEIL

How to Calculate CRC Values in IAR and KEIL

Introduction More and more products on the market have safety requirements regarding their use. How to avoid danger to operators during use or reduce the probability of such dangers occurring is a key consideration for product safety. In this regard, related products need to pass safety certifications from relevant industries before they can be produced … Read more

UART Application Layer Protocol Design

UART Application Layer Protocol Design

The serial port enables reliable communication between two terminal devices, functioning as the transport layer in this process. This article focuses on the data protocol. Similar Scenarios Hey! Hey! This is Dong Guai! Please respond! Please respond! over! Such dialogues are often seen in war-themed films when calling teammates through walkie-talkies or related wireless devices. … Read more