IoT: Choosing Between UDP, TCP, Modbus, and the Dwindling IPv4 Era

IoT: Choosing Between UDP, TCP, Modbus, and the Dwindling IPv4 Era

Introduction In the world of the Internet of Things (IoT), the communication method is the “soul dialogue” between devices. The choice of which “language” you use often directly determines whether they work in harmony or talk past each other. IoT communication can actually be viewed from two levels:Physical Layer and Application Layer. The previous section … Read more

Linux Socket Programming (Not Limited to Linux)

Linux Socket Programming (Not Limited to Linux)

(Click the public account above to quickly follow) Source: Wu Qin Link: http://www.cnblogs.com/skynet/archive/2010/12/12/1903949.html “Everything is a Socket!” This statement may be somewhat exaggerated, but the fact is that almost all network programming today uses sockets. —— Reflections from practical programming and open-source project research. We deeply understand the value of information exchange. How do processes … Read more

C Language Network Programming: From Beginner to Proficiency, Understand It All in One Article

Recommended Reading C Language Learning Guide: Have You Mastered These Core Knowledge Points? C Language Functions: From Beginner to Proficiency, Understand It All in One Article C Language Pointers: From Beginner to Proficiency, Understand It All in One Article C Language Arrays: From Beginner to Proficiency, Understand It All in One Article C Language Structures: … Read more

Network Programming in C: Basics of Socket Programming

Network Programming in C: Basics of Socket Programming

In modern computer networks, a socket is the fundamental interface for network communication. Through sockets, programs can transfer data between different hosts. This article will introduce how to implement simple network programming using C, including creating a server and a client. 1. Introduction to Sockets A socket is a mechanism for inter-process communication that provides … Read more

Network Programming in C: Basics of Socket Programming

Network Programming in C: Basics of Socket Programming

In modern computer science, network programming is an important field. The C language, as a low-level language, provides powerful capabilities for network communication. This article will introduce the basics of Socket programming in C, helping beginners understand how to use Sockets for simple network communication. What is a Socket? A Socket is a mechanism for … Read more

Modbus TCP Communication Between Newland Industrial Barcode Scanner and Mitsubishi PLC

Modbus TCP Communication Between Newland Industrial Barcode Scanner and Mitsubishi PLC

This article explains the Modbus TCP communication operation between the Newland industrial barcode scanner and Mitsubishi PLC. 1. Environment PLC: FX5U-32MR/ES, with supporting software GX Works3 Barcode Scanner: Soldier300 V2, with supporting software NSet, configured as a Modbus TCP client 2. Configuration on the Scanner Side The configuration of the scanner can refer to the … Read more

The 60-Second Curse in HTTP Protocol: A Performance Mystery Triggered by an Irregular Response

The 60-Second Curse in HTTP Protocol: A Performance Mystery Triggered by an Irregular Response

Introduction The operations engineer stared at the 60-second loading progress bar on the monitoring screen, frowning. A JS file of less than 400KB was stuck in the browser for a full 60 seconds. Network packet capture showed a peculiar TCP closing trilogy between the SSL gateway and the backend server, with everything pointing to that … Read more

Detailed Explanation of MODBUS TCP Communication Commands

Detailed Explanation of MODBUS TCP Communication Commands

Detailed Explanation of MODBUS TCP Communication Commands Continuing from the previous article on the built-in MODBUS TCP command usage, the previous text only briefly mentioned the formats of three commands. Below is a detailed introduction. SP.SOCOPEN – Confirm Link In the list of built-in communication commands, you can see this command and its function description, … Read more

Illustration of the HTTP Protocol

Illustration of the HTTP Protocol

1. Technical Foundations and Overview Q: What is HTTP? A: HTTP is a standard TCP for requests and responses between client and server. It is actually built on top of TCP. When we open the Baidu webpage, it looks like this: https://www.baidu.com The extra ‘S’ actually stands for TLS/SSL. We won’t explain that here, so … Read more

Complete Guide to Network Protocols: In-Depth Conversations from HTTP Long and Short Connections to TCP-UDP

Complete Guide to Network Protocols: In-Depth Conversations from HTTP Long and Short Connections to TCP-UDP

🌐 Complete Guide to Network Protocols: In-Depth Conversations from HTTP Long and Short Connections to TCP-UDP This article adopts a conversational format, through the Q&A of Xiao Li and Xiao Wang, to explain core concepts such as network protocols and long/short connections in a simple and accessible manner, helping readers establish a complete knowledge system … Read more