need: Site A: (1) Link aggregation LACP link aggregation is performed between LSW1 and LSW2. The maximum number of active links is 2, the active end is LSW1, and preemption is allowed. (2)VRRP LSW1 serves as the gateway of vlan10, and LSW2 serves as the gateway of VLAN20; (3)VLAN In order to ensure security and […]
Tag: mmu
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 […]
Serial communication based on interrupt DMA
Article directory 1. Configure this project through stm32CubeMX 1Set up RCC 2Set up SYS 3Set up USART 4Set up NVIC 5 clock tree 6Create a project. 2 keil debugging 3. Burn and check the effect Configure this project through stm32CubeMX 1Set RCC High Speed Clock Select Crystal. 2Set SYS Debug select Serial wire. 3Set USART […]
HAL library interrupt mode for serial communication
1. Configure the project through STM32CubeMX 1. Set up RCC 2. Set up SYS 3. Set up USART 4. Set up NVIC Click GENERATE CODE to generate code 2. Set the receive interrupt in the main function Function description: Serial port interrupt reception, receiving data of specified length in interrupt mode. The general process is […]
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 […]
Use SSH to communicate between windows and linux
Introduction SSH is a secure network protocol designed to allow secure data transfer between clients and servers. The core idea of SSH is to use a combination of public key encryption technology and shared key encryption technology to establish a secure connection between the client and the server. When a client initiates a connection request, […]
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 […]