USP/TR-181 里的网卡怎么建模:prplOS 与 RDK-B 的实现
USP 是控制协议,TR-181 是数据模型。网卡在 TR-181 里拆成 Ethernet/IP/WiFi/Bridge/PPP/Cellular/Routing 对象;prplOS 用 obuspa + mod-amxb-usp + NetModel,RDK-B 用 OB-USP-Agent + CCSP + PSM。
49 posts
USP 是控制协议,TR-181 是数据模型。网卡在 TR-181 里拆成 Ethernet/IP/WiFi/Bridge/PPP/Cellular/Routing 对象;prplOS 用 obuspa + mod-amxb-usp + NetModel,RDK-B 用 OB-USP-Agent + CCSP + PSM。
目标拓扑:宽带主用、4G 备份、4 个 LAN 口和 WiFi 在一个桥里。对比 Linux ip、PC NetworkManager、OpenWrt mwan3、prplOS 和 RDK-B 的配置方式。
OpenWrt:UCI → netifd;prplOS:AMX/TR-181 → NetModel/netdev;RDK-B:Yocto + CCSP/TR-181 → PSM/Sysevent/WAN Manager。三张图对比配置源、事件、设备层和迁移映射。
A complete, runnable mapping from an AMX data model to UCI: ODL, event callback, libuci writes, and a GitHub demo repository.
Using tr181-routing and mod-routing-uci as an example, follow a static route from the AMX data model to UCI and then netifd.
Three levels of UCI integration: the shell uci command, libuci in C, and an AMX UCI backend module. Includes code skeletons and the uloop blocking pitfall.
Subscribe via RSS to get new posts automatically.
Technical questions, feedback and leads: use the guestbook.