zigbee改变pandid和channel
来源:互联网 发布:淘宝药店 编辑:程序博客网 时间:2024/05/22 23:26
void ChannelPanidInit (void) { uint8 channel; //定义信道 uint8 buf[2]; //定义PanID channel = zb_Readchannel(); //读取信道号 if(channel != 11) { zb_Readpandid(buf); if((buf[0] != 0x03)&(buf[1] != 0x80)) { buf[0] = 0x03; buf[1] = 0x80; channel = 11; zb_Writepandid(buf); //修改Pandid zb_Writechannel(channel); //修改信道号 zb_SystemReset(); //系统重启 } else { channel = 11; zb_Writechannel(channel); zb_SystemReset(); } } else { zb_Readpandid(buf); if((buf[0] != 0x03)&(buf[1] != 0x80)) { buf[0] = 0x03; buf[1] = 0x80; zb_Writepandid(buf); zb_SystemReset(); } }}
操作步骤:
- 读取信道号 zb_Readchannel();
- 判断信道号
- 读取pandid zb_Readpandid(buf);
- 修改信道号 zb_Writepandid(buf);
- 修改pandid zb_Writepandid(buf);
6.执行 zb_SystemReset();最后只有执行该函数才会有效
阅读全文
0 0
- zigbee改变pandid和channel
- zigbee 串口修改PAN ID和CHANNEL,广播发送后重启
- Zigbee中的PANID,CHANNEL,DEVICEID功能
- zigbee学习笔记---Channel、PANID、发射功率及其它参数
- zigbee学习笔记---Channel、PANID、发射功率及其它参数
- zigbee学习笔记---Channel、PANID、发射功率及其它参数
- 缓冲channel和无缓冲channel
- 1.Gorontine和Channel
- ZigBee server和 client
- Zigbee技术和CC2530
- ZigBee缩略语和简称
- Channel
- channel
- channel
- Channel
- channel
- Channel
- Channel
- EventBus事件总线
- Windows下的Eclipse启动出现:a java runtime environment(JRE) or java development kit(JDK) must be....
- Centos 6.4 安装Python 2.7 python-pip
- rippleDrawable 触摸反馈
- 如何保证access_token长期有效--微信公众平台开发(一)
- zigbee改变pandid和channel
- 生成带参二维码--微信公众平台开发(二)
- unp-----signal函数与系统中断
- ubuntu不能连接网络的一种情况
- Oracle 中用 imp 和 exp 命令导入导出数据库(附问题及解决办法)
- Django之概览
- The method getSupportFragmentManager() is undefined 解决办法
- mongoDB3.0x版本spring集成配置文件
- Ubuntu更新完NVIDIA驱动后,重启电脑进入不了系统,一直处于登录界面