Advanced Java Network Programming: Basics of HTTP Protocol and Web Development

Advanced Java Network Programming: Basics of HTTP Protocol and Web Development In this article, we will delve into the HTTP protocol and learn how to perform simple web development using Java. As a basic user, you will understand the fundamental concepts of HTTP and how to create a simple HTTP server using Java. What is … Read more

Siemens PLC and MQTT Protocol: IoT Application Examples

Hello everyone! Today, let’s talk about how to connect Siemens PLCs in the workshop to the Internet of Things (IoT). The MQTT protocol (think of it as a “WeChat group” in the IoT world) is being used more and more in factories, and it’s essential to know how to work with it! After over a … Read more

Communication Distances (Serial; Profibus; MPI; Ethernet)

In SIEMENS industrial communication, the most commonly used methods are Serial; Profibus; MPI; and Ethernet communication. The maximum communication distances for each are described in the table below. Serial Communication Type Rate Maximum Distance RS 232C 300~115200bps 15 m 20 mA TTY 9600 bps 1000 m 19,200 bps 500 m 422/485 115.2 kbps 250 m … Read more

Setting Up a Modbus Simulation Testing Environment

Setting Up a Modbus Simulation Testing Environment If you like this, please click the little red heart, share it, and if you want to reward me, I will continue to work hard. 1.Simulating Modbus Communication in Modbus_TCP Mode: 1.Set up a Modbus virtual master station. Use the modsim32 program to set up the Modbus_TCP virtual … Read more

Definition and Meaning of JTAG Interface Pins

JTAG interfaces come in 10-pin, 14-pin, and 20-pin configurations. Although the number of pins and their arrangement differ, some pins are common across these configurations. The definitions of each pin are as follows: 1. Pin Definitions Test Clock Input (TCK) —– Required 1 TCK is mandated by the IEEE 1149.1 standard. TCK provides an independent, … Read more

Using CMake for Project Development

Installing CMake Tool yum install cmake Installing yaml-cpp Unzipping yaml-cpp [root@vbox ~]# unzip yaml-cpp-master.zip Entering the Source Directory [root@vbox ~]# cd yaml-cpp-master/ Creating Build Directory [root@vbox yaml-cpp-master]# mkdir build && cd build Generating Build Files [root@vbox build]# ls CMakeCache.txt cmake_install.cmake CTestTestfile.cmake Makefile util yaml-cpp-config-version.cmake CMakeFiles cmake_uninstall.cmake DartConfiguration.tcl Testing yaml-cpp-config.cmake yaml-cpp.pc CMake Installation (Generating Shared Library) … Read more

Package Management Module FetchContent in CMake

Background Introduction In the realm of C++ package management tools, aside from Microsoft’s vcpkg, there doesn’t seem to be a particularly famous package manager. CMake actually provides basic package management functionality. By using the <span>FetchContent</span> module commands, you can download the source code or other files that your project depends on. Basic Usage <span>FetchContent_Declare</span> command … Read more

Keil uVision5 C51v959 Download Link and Installation Guide

Keil uVision5 C51v959 Download Link and Installation Guide Download Link ① Baidu Cloud: Link: https://pan.baidu.com/s/1c1VYsdhEgqXyCwZT1OoWqg?pwd=2024 Extraction Code: 2024 Download Link ② Quark Cloud (tested to be faster than Baidu Cloud without membership): Link:https://pan.quark.cn/s/9578d9ddc891 Software Compatibility: Windows 7/Windows 8/Windows 10/Windows 11. Software Language: Simplified Chinese Software Introduction: Keil software is a powerful, easy-to-use, and widely supported … Read more

Rewriting Examples of Modern X86 Assembly Language Programming in C Language and AT&T Assembly Format (Part 15)

1. Writing the C program ch03_05_01.c /* * This program constructs a structure TestStruct with members of different lengths. * It sums the structure members using both C functions and assembly functions to verify the correctness of the assembly code. * The focus is on the Pad8 member, which does not participate in calculations, but … Read more