Serial communication based on interrupt/DMA mode

1. Introduction to serial port interrupts 1. Serial port sending/receiving function HAL_UART_Transmit(); Serial port sends data, using timeout management mechanism HAL_UART_Receive(); The serial port receives data and uses the timeout management mechanism HAL_UART_Transmit_IT(); Serial port interrupt mode transmission HAL_UART_Receive_IT(); Serial port interrupt mode reception HAL_UART_Transmit_DMA(); Serial port DMA mode transmission HAL_UART_Transmit_DMA(); Serial port DMA mode […]

springBoot project+websocket+vue realizes two-way communication

Table of Contents 1. Understand the WebSocket protocol WebSocket features Real time communication: Two-way communication: Long connection: Cross-domain communication: 2. Back-end code implementation Introduce maven dependencies WebSocketConfig WebSocketConfig function: WebSocketConfig.java code MyWebSocket @annotation explanation MyWebSocket function: MyWebSocket.java code 3. Test whether the server is connected normally 1. Open the websocket test gadget 2. Enter the […]

The nature of communication, communication methods, the principles and multiple characteristics of anonymous pipes (access control, pipe_buf, atomicity, half-duplex), pipe() + simulation implementation code, communication between multiple processes (anonymous pipes, simulation implementation code )

Table of Contents communication introduce Why should there be communication? the nature of communication How to communicate pipeline system V posix standard Signal pipeline introduce anonymous pipe Principle introduce process Implement — pipe() function prototype parameter return value mock code Features Used for communication between parent and child processes Provide access control When the buffer […]

Locust single-machine multi-core stress test, and data communication processing of master-slave nodes

Let me briefly explain the background first. Before the APP is launched, the login interface needs to be performance tested. After evaluation, I gave priority to locust for script development. This time I used locust’s single-machine multi-core running capability, but it also involves data communication between master and slave nodes. There are very few effective […]

[Orangepi Zero2 Allwinner H616] Driver serial communication

1. Basic understanding of serial port 2. Serial port electrical standards and protocol standards 3. Serial communication protocol 4. Using serial port communication in Linux system 5. orangepi zern2 two sets of serial ports 6. Serial test serialtest Modify the configuration file according to the manual According to the results, we know that the code […]

Specific application of ROS Service Service communication mechanism in unmanned vehicles

1. Introduction In the communication mechanism, we have introduced this Service service before: Application of ROS Communication Mechanism Service (Service) It is generally suitable for scenarios where communication processing is relatively simple. Here we will actually operate some very common services on the unmanned vehicle: publishing voltage data, turning on and off LED lights, turning […]