stm32 dual machine (f1 and f4) serial communication sends multi-byte symbol number

When I looked for serial port communication information on the Internet, most of it was communication between the host computer and the board. I rarely saw communication between two computers. I will record my thoughts in this article and hope it will be helpful. Interface connection: Select serial port one for f103, select serial port […]

Embedded Linux development—UART serial communication driver hardware programming

0. Basic preparation of serial port In embedded systems, many devices can be controlled through serial ports, such as WiFi, Bluetooth, RFID, etc., so using serial ports in embedded devices is particularly important. First, a few concepts are briefly clarified. RS232, RS485 and TTL refer to electrical level standards. Generally speaking, TTL uses 0V to […]

Stm32_Standard library_18_Serial port & Bluetooth module_Communication between mobile phone and Bluetooth module_Control LED light on and off

Control the LED lights on and off by inputting LED_ON and LED_OFF respectively wiring: The positive electrode of the LED is connected to positive electricity, and the negative electrode is connected to GPIOA_Pin1 Bluetooth module TXD is connected to GPIOA_Pin3, VCC is connected to positive power, and GND is connected to negative power. Note: USART2 […]

“The charm of the GUI graphical interface, the secure communication of the SSH protocol and the efficient development of IDEA integrated with Git”

Article directory introduction 1. Practical application of GUI graphical interface 2. Secure communication using SSH protocol What is SSH? git/github generates the key and passes Remote github warehouse configuration 3. Quick start guide for integrating Git with IDEA Summarize Introduction In the field of computer science, a graphical user interface (GUI) is a user interface […]

JAVA Deepening Chapter_37 – TCP Communication Implementation and Project Cases

TCP communication implementation and project cases TCP communication implementation principle We mentioned that the TCP protocol is connection-oriented, and the client and server must establish a connection during communication. In network communication, the program that actively initiates communication for the first time is called the client program, or client for short, and the program that […]

STM32-HAL library 09-CAN communication (loopback mode)

1. Materials used: STM32F103C6T6 Minimum System Board STM32CUBEMX (HAL library software) MDK5 Serial debugging assistant 2. What you learned: Preliminarily learn how to use the CAN communication function of STM32. In this chapter, we mainly achieve the effect of on-board CAN communication, that is, 32 sends CAN information and then prints it out through the […]

STM32 I2C communication protocol and temperature and humidity sensor module

Learn the I2C bus communication protocol, use STM32F103 to complete the data collection of the AHT20 temperature and humidity sensor based on the I2C protocol, and output the collected temperature-humidity values through the serial port Article directory 1. Preliminary knowledge (1) I2C communication protocol (2) I2C physical layer (3) I2C timing (4) Hardware I2C and […]

How Node-Red communicates with OPC DA server

1. Introduction This article mainly introduces how Node-Red uses the plug-in node-red-contrib-opc-da and the plug-in node-red-contrib-opcda-client to communicate with the OPC DA server, and uses KEPServer to simulate the server. Environment setup This environment setup requires two machines, in the same LAN: Server Function: Simulate OPC DA server Operating system: Windows 7 Professional Client computer […]

Stream stream + immutable collection

Immutable collection Create an immutable collection: data cannot be modified and defensively copied to the immutable collection; safe when called by an untrusted library. There are static methods of in the List Set Map interface->Get an immutable collection–>Cannot add, delete, modify (read-only) List<String> list = List.of(“”,””,””); //remove add set xxx is not allowed Set<String> set […]