Part Number:CC2630Other Parts Discussed in Thread: CC1310
有个需求是这样:
CC2630 device采集温湿度,另一个CC2630 无线接收,通过UART发送给PC,他们之前不需要组网,绑定之类的,但是device 端数据采集上报后需要进入低功耗,请问这样的功能可以实现吗,参考范例有吗
YiKai Chen:
可以一個跑 https://dev.ti.com/tirex/explore/node?node=AN7pLr2MQU4dKApHE9aAWA__Drd3Vmn__LATEST 的 RF EasyLink TX 發送采集的温湿度 另一個跑 RF EasyLink RX 接收在通过UART发送给PC
,
Kevin Qiu1:
可以使用YiKai说的easylink例程,可从此处下载:http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/index.html?_ticdt=MTYyNzk1NjA5M3wwMTc5OWQzYmQxMjYwMDE1ZjVjYmYwNTY2OTM4MDMwNzMwMDQyMDZiMDA4NmV8R0ExLjMuMTI2NDUzODk3Ny4xNjIxODQ2MTg3
也可以根据数据量和传输距离看看sub1g频段的CC1310,它有一些rfWakeOnRadio例程可以自动唤醒降低功耗
,
chengming tian:
这个例子我有试了,但是程序会卡在RF_postCmd
然后我又试了另一个例子rfPacketTx ,发现也是会卡在
RF_postCmd(rfHandle, (RF_Op*)&RF_cmdFs, RF_PriorityNormal, NULL, 0);
将rf_mode 修改成RF_MODE_IEEE_15_4,程序又会卡在
/* Send packet */RF_EventMask result = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropTx, RF_PriorityNormal, NULL, 0);
我从问答里找到和我类似的例子:https://e2echina.ti.com/support/wireless-connectivity/zigbee-and-thread/f/zigbee-thread-forum/177251/cc2650-cc2630?tisearch=e2e-sitesearch&keymatch=RF_runCmd%202650#
但他似乎没有解决,
我也按着步骤使用SmartRF Studio 7 导出smartrf_settings.c和smartrf_settings.h进行替换
添加了<driverlib/rf_ieee_cmd.h>和<rf_patches/rf_patch_cpe_ieee.h>这两个缺失的文件
修改rfPacketTx.c->txTaskFunction
可以编译通过,但是还是会卡在:
/* Send packet */ RF_EventMask result = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdIeeeTx, RF_PriorityNormal, NULL, 0);
请帮忙看下怎么回事
,
Kevin Qiu1:
可以参考这里添加相应文件再试一下https://e2e.ti.com/support/wireless-connectivity/other-wireless-group/other-wireless/f/other-wireless-technologies-forum/801640/cc2650-ieee-mode-api-headers-and-sources/2973821#2973821
如果还是不行,建议你更换其他型号芯片进行开发,CC2630不推荐用于新设计当中