ClusterDuck-Protocol/ClusterDuck-Protocol
À propos
Firmware pour un réseau maillé ad hoc d’appareils IoT basé sur LoRa (Long Range radio), déployable rapidement et à faible coût.
Systèmes et infrastructureProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
A Flexible Wireless Mesh Protocol for Connecting IoT Devices
The ClusterDuck Protocol (CDP) is a low-bandwidth wireless mesh networking protocol harnessing the low-power capabilities or Long Range Radio (LoRa). It is distinct from LoRaWAN, which uses a star-of-stars topology and has certain restrictions on data flow.
CDP is a project under the Linux Foundation created by OWL Integrations (formerly Project OWL) to provide developers with an advanced library for crafting robust distributed communication networks, tailored for a variety of IoT applications and functional in diverse environments.
Ducks, Explained
Ducks (or DuckLinks) are node firmwares specifically built to work with the ClusterDuck Protocol. They offer a user-friendly way to interact with sensors and hardware to send data across the mesh and store it locally or in the cloud.
There are 3 main Duck types, PapaDuck, MamaDuck, and DuckLink. PapaDuck is the sink node/backhaul, it offers both relay functionality as well as MQTT integration to help store incoming packet data locally through something like InfluxDB, or in the cloud via OWL DMS (Device Management Software) or AWS solutions. (free tier cloud DMS platform in BETA! Reach out to us on Discord for more info)
MamaDuck is the core mesh node. It offers relay and routing capabilities like the Papa, but conserves resources by not needing MQTT or Wifi capabilities by default.
DuckLinks are a leaf node and offer no relay ability, having minimal routing. Their intention is as pure sensor nodes you can put at the edges of your network where data only needs to flow toward the backhaul. You can create a true mesh by only using Mama and Papa ducks, but have the option to add DuckLinks to create a hybrid mesh.

Setting Up
Check out the Wiki to learn how to create your Duck Devices and set up a ClusterDuck Network. Feel free to visit the ClusterDuck Protocol website for more information on projects that the community is building. You can reach out directly on our Discord Community for any questions and/or to work with the community.
Basic Usage
Constructing a Duck
DuckLink duck("LINK0001"); //Declare the duck type and pass in your Device ID name
MamaDuck duck("MAMA0002"); //By default, DuckLinks and MamaDucks use LoRa radio but do not have wifi
MamaDuck<DuckWifiNone, DuckLora> duck("MAMA0002"); //so these two MamaDuck constructors are equivalent
PapaDuck<DuckWifiNone> duck("PAPA0003"); //by default PapaDucks do have wifi enabled; when using local storage you may want to turn it off
void setup() {
duck.setupWithDefaults(); //start the duck with default serial output and parameters for it's radio type
. . .
}
void loop() {
. . .
duck.run(); //run duck loop iteration
}
Sending Messages
Once your duck has booted, it will begin searching for a CDP network to join. After joining or creating a network, your duck will be able to send messages into the mesh.
std::string msg("I am alive!");
duck.sendData(topics::health, msg); //send a health message relayed to all PapaDucks
uint8_t* data;
duck.sendData(topics::sensor, data, BROADCAST_DUID); //send raw byte sensor data, relayed to all ducks in the network
Duid destination("MAMADEST");
duck.sendData(topics::alert, "power level: LOW", destination); //send an alert message only relayed to and read by MAMADEST
For a full list of topics available for use, see the topics page in the wiki.
Expanding Duck Capabilities with QuackPacks
QuackPacks are sensor integrations and libraries maintained by OWL Integrations, allowing you to quickly build out common use cases in the mesh. You can find offically supported QuackPacks in the Project Owl GitHub complete with examples sketches and platformIO settings.
How to Contribute
Check the Issues tab and leave a comment to let us know you would like to work on it. Fork the CDP repo and commit your changes to a branch on your fork, then open a PR for us to review! If you find any bugs or want to submit a feature request, open a new Issue for discussion and to provide details or bug reproduction steps. Please read CONTRIBUTING.md for details on our Code of Conduct and the process for submitting ClusterDuck Protocol improvements.
Contributors
License
This project is licensed under the Apache 2 License - see the LICENSE file for details.
This project is governed by its Technical Charter
Explorer des projets similaires
Chargement…