当前位置:网站首页>Modification and analysis of libcoap source code by Hongmeng device discovery module
Modification and analysis of libcoap source code by Hongmeng device discovery module
2022-06-13 05:02:00 【Snow * sleet * snow】
The soft bus device discovery module of Hongmeng system discovery The module uses coap agreement , And based on libcoap Open source library for development , The specific use is libcoap2.0 edition ( at present libcoap Updated to 3.0).
Use coap The protocol mainly considers the operation HarmonyOS In addition to mobile phones with good hardware performance 、 Computers and other equipment , There are also Internet of things devices with limited resources , Of these devices ram、rom Relatively small .coap The protocol supports lightweight and reliable transmission , It is suitable for small embedded devices with limited resources .
discovery The premise of the implementation is to ensure that the discovery end device and the receiving end device are in the same LAN and can receive each other's messages . The process consists of three steps :
- Discovery end device , Use coap The protocol sends the broadcast over the LAN ;
- Use of receiving end equipment PublishService Interface publishing service , When the receiver receives the broadcast , send out coap Protocol unicast to discovery end ;
- The discovery end device receives the reply unicast message , Update device information .
But the original libcoap Broadcast not supported , So we need to make some changes to its source code , So that it can support broadcasting .
Hongmeng libcoap Source warehouse :third_party_libcoap
The code mainly uses a macro to separate :COAP_SUPPORT_SOCKET_BROADCAST
边栏推荐
- Optocoupler working principle function electric parameter application circuit
- What is the saturate operation in opencv
- Construction problem of D Xiaohong
- Robot pose description and coordinate transformation
- 2021TPAMI/图像处理:Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation
- RuoYi-Cloud启动教程(手把手图文)
- Dup2 use
- C language learning log 12.25
- [JS solution] leedcode 200 Number of islands
- [JS solution] leedcode 117 Populate the next right node pointer II for each node
猜你喜欢

Kaggle 时间序列教程

Advanced C - Section 3 - character functions and string functions

Ruoyi cloud startup tutorial (hand-held graphics)
![[JS solution] leedcode 200 Number of islands](/img/c1/bcdb3fc079c634a9a1b3d0fc264987.png)
[JS solution] leedcode 200 Number of islands

Simple sr: Best Buddy Gans for highly detailed image super resolution Paper Analysis

The games that you've tasted

Recursion and recursion

Regular expressions in QT

Explain the differences and usage scenarios between created and mounted

2021TPAMI/图像处理:Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation
随机推荐
lookup
Section 6 - pointers
Luogu p1088 Martians
QT interface rendering style
[JS solution] leedcode 117 Populate the next right node pointer II for each node
Win8.1和Win10各自的優勢
Binary search and binary answer
PostgreSQL Guide: inside exploration (Chapter 10 basic backup and point in time recovery) - Notes
System file interface open
Construction problem of D Xiaohong
Simple greedy strategy
Interpretation of QT keypressevent
Clause 30: be familiar with the failure of perfect forwarding
Luogu p1036 number selection
C language learning log 11.7
17.6 unique_lock详解
String()和toString()方法得区别
C language learning log 10.6
Time display of the 12th Blue Bridge Cup
Bomb disposal cat