mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
77 lines
3.9 KiB
Markdown
77 lines
3.9 KiB
Markdown
# BroadBand Forum Data Models (BBFDM)
|
|
|
|
`bbfdm` is a data model library implementation which includes a list of objects, parameters and operates used for CPE management through remote control protocols such as [TR-069/CWMP](https://cwmp-data-models.broadband-forum.org/) or [TR-369/USP](https://usp.technology/).
|
|
This package comprises of the below libraries:
|
|
|
|
| Library | Description |
|
|
| ------- | ------------------------------------------------- |
|
|
| libbbfdm | This provides the mechanism to add new parameters or extend the existing DM tree using json plugin or shared library plugin. |
|
|
| libbbfdm-api | This provides the APIs for UCI, Ubus, JSON, CLI and memory management. |
|
|
|
|
## Design of bbfdm
|
|
|
|
`bbfdm` library is structred as follow :
|
|
|
|
|
|
```bash
|
|
├── dm...(.c and .h)
|
|
├── dmtree
|
|
│ ├── json
|
|
│ ├── tr104
|
|
│ ├── tr143
|
|
│ ├── tr181
|
|
│ └── vendor
|
|
│ ├── iopsys
|
|
│ └── vendor.h
|
|
├── libbbfdm-api
|
|
├── scripts
|
|
└── tools
|
|
```
|
|
|
|
- `dmtree` folder which includes all supported Data Models. It contains 5 folders:
|
|
|
|
- `tr181` folder : TR-181 Data Model files
|
|
|
|
- `tr104` folder : Voice Services Data Model files
|
|
|
|
- `tr143` folder : Diagnostics Data Model files
|
|
|
|
- `vendor` folder : Vendor Data Model files
|
|
|
|
- `json` folder : TR-181 and TR-104 JSON files
|
|
|
|
- `libbbfdm-api` folder which contains the source code of all API functions (UCI, Ubus, JSON, CLI and memory management). These API are used for GET/SET/ADD/Delete/Operate calls which can be called in internal or external packages.
|
|
All APIs exposed by libbbfdm-api are presented in this header file [libbbfdm-api.h](https://dev.iopsys.eu/iopsys/bbf/-/tree/devel/libbbfdm-api/include/libbbfdm-api.h).
|
|
|
|
- `scripts` folder which contains the Diagnostics scripts
|
|
|
|
- `tools` folder which contains some tools to generate Data Model in C, JSON, XML and Excel format
|
|
|
|
- `dm...(.c and .h)` files which contains the `bbfdm` engine (operate, diagnostics) functions
|
|
|
|
|
|
## Important Topics
|
|
* [Design for firmware activation](./docs/guide/activate_firmware.md)
|
|
* [TR181 Firewall datamodel mappings](./docs/guide/firewall.md)
|
|
* [Datamodel extension using JSON plugin](./docs/guide/json_plugin_v1.md)
|
|
* [Add support of a new Object/Parameter](./docs/guide/obj_param_extension.md)
|
|
* [How to add new vendor](./docs/guide/vendor.md)
|
|
* [Dynamic Object/Parameter/Operate/Event](./docs/guide/dynamic_dm.md)
|
|
* [BBFDM Tools](./docs/guide/tools.md)
|
|
* [Expose datamodel over UBUS using libbbf APIs](./docs/guide/dm_expose_over_ubus.md)
|
|
|
|
|
|
## External dependencies for datamodel objects
|
|
|
|
| Datamodel | Package | Link |
|
|
| ---------------------------------------- | -------------- | -------------------------------------------- |
|
|
| Device.BulkData. | bulkdata | https://dev.iopsys.eu/bbf/bulkdata.git |
|
|
| Device.CWMPManagementServer. | icwmp | https://dev.iopsys.eu/bbf/icwmp.git |
|
|
| Device.IP.Diagnostics.UDPEchoConfig. | udpecho-server | https://dev.iopsys.eu/bbf/udpecho.git |
|
|
| Device.IP.Diagnostics.UDPEchoDiagnostics.| udpecho-client | https://dev.iopsys.eu/bbf/udpecho.git |
|
|
| Device.IP.Interface.{i}.TWAMPReflector. | twamp | https://dev.iopsys.eu/bbf/twamp-light.git |
|
|
| Device.XMPP. | xmppc | https://dev.iopsys.eu/bbf/xmppc.git |
|
|
| Device.USPAgent. | obuspa | https://dev.iopsys.eu/bbf/obuspa.git |
|
|
| STUN parameters | stunc | https://dev.iopsys.eu/bbf/stunc.git |
|
|
| Device.XPON. | ponmngr | https://dev.iopsys.eu/hal/ponmngr.git |
|
|
| Device.UPNP. | ssdpd | https://github.com/miniupnp/miniupnp.git |
|