Thoughts on Serial Communication Design with 51 Microcontroller

Thoughts on Serial Communication Design with 51 Microcontroller

Recently, I needed to use the 51 microcontroller for some control tasks in a project. The main function is to receive commands from the host computer through the serial port, analyze and decode them, and wait for an external trigger signal to execute the previously received command actions. Fortunately, I had an STC89C52 on hand, … Read more

Mastering RS485: Data Transmission Basics

Mastering RS485: Data Transmission Basics

When it comes to communication, many people find it difficult and feel lost. I had the same feeling when I first encountered communication concepts. I gathered a lot of materials, mostly theoretical, and it always felt like I had no starting point. After finally understanding it, I realized that the main reason for not grasping … Read more

RS-232-C Serial Port and Cable Usage Instructions

RS-232-C Serial Port and Cable Usage Instructions

The serial interface, abbreviated as serial port, is also known as the serial communication interface (usually referring to the COM interface). It is an expanded interface that uses serial communication. If classified by interface, there are several types including RS-232, RS-422, and RS-485, among which the RS-232 serial port is the most commonly used serial … Read more

Solving USB to TTL Board Programming and Serial Debugging Issues for STC

Solving USB to TTL Board Programming and Serial Debugging Issues for STC

Problem: I used a USB to TTL board to program the STC89C52RC microcontroller. I connected the board’s RX to the microcontroller’s TX (P3.1), the board’s TX to the microcontroller’s RX (P3.0), and GND to GND. After making the connections, I couldn’t download the program, and I kept receiving the prompt “Please power on the MCU.” … Read more

Industrial Control Basics: Serial Data Capture and Simulation

Industrial Control Basics: Serial Data Capture and Simulation

Introduction In industrial control sites, there exists a fundamental yet easily overlooked aspect that all devices rely on—serial ports. So, what is a serial port? Is there a risk associated with serial communication? Qi’an Technology’s classroom provides answers and details how to conduct safe offense and defense regarding serial ports. What is a Serial Port … Read more

How to Gain Local Shell Access on IoT Devices

How to Gain Local Shell Access on IoT Devices

This article is a featured post from the KSY Forum by author ID: fengzhidian 1. Introduction The author has recently researched several smart home devices, which have fewer open ports and are generally unable to obtain debugging permissions from the network side. Gaining local debugging permissions on the device has become an important step in … Read more

How to Effectively Use ESP8266 and STM32

How to Effectively Use ESP8266 and STM32

Although the ESP8266 programs and related products have matured significantly, some beginners still don’t know how to learn. For example, how to use an ESP8266 along with an STM32 microcontroller to create a small product? What is the learning path like? How should we get started? In this regard, I suggest: 1. First, study the … Read more

Modbus-RUT Tutorial for Huichuan AM401 PLC

Modbus-RUT Tutorial for Huichuan AM401 PLC

Search on WeChat Technical Training Preparation: Hardware: Huichuan AM401 PLC, one USB to RS485 converter. Software: InoProShop (V1.6.2), Serial Assistant, Modbus-RUT slave simulator. Serial Debugging Process: 1. Program the PLC. 2. Use the Serial Assistant to check if the characters sent by the PLC are correct. 3. Connect the actual device for PLC-device debugging. (You … Read more

Getting Started with Raspberry Pi: Practical Configuration (VNC and Serial)

Getting Started with Raspberry Pi: Practical Configuration (VNC and Serial)

This section discusses practical application configurations, which are not the configurations mentioned earlier in the config.txt for the /boot partition, such as display and GPU settings. Since this is called getting started, the focus is mainly on practical configurations. 1. Serial Debugging Connection to Raspberry Pi The wire used is a USB to TTL cable … Read more

Debugging Tool – Serial Port Debugging

Debugging Tool - Serial Port Debugging

Click the blue text / Follow us As we all know, our new version of the debugging tool from Bafanghui2022 has been released! I believe that electrical engineers will use it when encountering difficulties at work. Today, I will detail the serial port debugging function of our new version of the debugging tool. First, open … Read more