Understanding gRPC and HTTP/2

Traditional RPC Solutions: JSON + HTTP 1.x TCP + Custom Protocol Limitations Method Limitations HTTP/1.x + JSON Single connection order calls, frequent connection establishment incurs high overhead;Large JSON payloads, slow parsing; not suitable for streaming communication;Manual SDK writing required for multi-language calls or handling compatibility TCP Custom Protocol Packet sticking, unpacking, message boundaries, and concurrency … Read more

Protocol Compatibility Issues During Upgrades in Embedded Systems

Protocol Compatibility Issues During Upgrades in Embedded Systems

Hello everyone, I am the Mixed Content Guy. More and more hardware products are not just integrated on a single board, but consist of multiple control boards working together. At this point, communication between multiple boards (wired/wireless communication) comes into play, which involves communication protocols. Often, we define some custom protocols. Previously, we shared a … Read more

Different Linking Methods for CMake Libraries

Different Linking Methods for CMake Libraries

1. Different Libraries Have Different Linking Methods OpenCV uses ${OpenCV_LIBS} target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS}) protobuf uses ${PROTOBUF_LIBRARIES} target_link_libraries(${PROJECT_NAME} ${PROTOBUF_LIBRARIES}) jpeg-turbo uses the target name libjpeg-turbo::turbojpeg-static target_link_libraries(${PROJECT_NAME} libjpeg-turbo::turbojpeg-static) 2. How to Determine Which Method to Use Generally, the following methods can be used: Check the CMake file for usage instructions. (Well-written CMake files usually include usage instructions) Look … Read more