qy / tinyv6

Automatically exported from code.google.com/p/tinyv6
0 stars 0 forks source link

How to find corresponding components, used for CC2420 in the files of CC2530 #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
您好,
  感谢西北工业大学无线传感网的相关工作人员,同时也感谢您们的开源精神!
  请问如下几个在CC2420下使用的components,在移植后CC2530文件中那些函数与之相对应?
components CC2420PacketC  
  command uint8_t getLqi(message_t *p_msg)   
  command uint8_t getPower(message_t *p_msg)  
  command int8_t getRssi(message_t *p_msg) 
components CC2420ControlC;  //change communication channel
  command uint8_t getChannel()   
  command void setChannel(uint8_t channel)   
  call CC2420Config.setChannel()  
  call CC2420Config.sync();
components UserButtonC
components SerialStartC;

非常感谢!!

Original issue reported on code.google.com by manyi.wa...@gmail.com on 8 Dec 2013 at 7:27

GoogleCodeExporter commented 9 years ago
目前这儿的CC2530射频协议栈没有用tos/chips/cc2420,而是用的tos/
lib/rfxlink,所以没有与CC2420PacketC对应的组件。

改变信道、获取RSSI可以用CC2530ActiveMessageC的RadioChannel、PacketRS
SI等接口

Original comment by qy.n...@gmail.com on 9 Dec 2013 at 3:18

GoogleCodeExporter commented 9 years ago
CC2530ActiveMessageC的RadioChannel、PacketRSSI 
的interface可以用了,感谢!

另外:请指示如何使用,Button及LED的component及相应Interface??

Original comment by manyi.wa...@gmail.com on 9 Dec 2013 at 10:32

GoogleCodeExporter commented 9 years ago
Button和LED一般与具体硬平台有关,参见PlatformLedsC.nc,HplCC2530G
eneralIOC.nc,涉及中断的目前还需自己编写

Original comment by qy.n...@gmail.com on 10 Dec 2013 at 2:03

GoogleCodeExporter commented 9 years ago
您好,非常感谢您的及时回复,这几天也一直在调试Button,��
�照着Telosb下Button相关文件修改的,主要修改了HplCC2530InterruptC
.nc and 
HplCC2530InterruptP.nc,其余文件继承Telosb平台的Button文件。因我�
��使用P1_2检测下降沿中断,文件中只定义了P1口,其余口都没
定义。

程序及其debug问题放在附件中!

敬请帮忙解决问题,另外如果您能有更简洁的思路,能否提��
�个CC2530下Button程序框架(P1_2检测下降沿中断即可)。

Original comment by manyi.wa...@gmail.com on 14 Dec 2013 at 11:11

Attachments:

GoogleCodeExporter commented 9 years ago
按键中出现的问题解决了,谢谢!
components ActiveMessageC;
components new AMSenderC(6);
components new AMReceiverC(6);

请问上述三个components是否可以在应用程序中直接使用??

Original comment by manyi.wa...@gmail.com on 15 Dec 2013 at 4:57

GoogleCodeExporter commented 9 years ago
可以的

Original comment by qy.n...@gmail.com on 12 Jan 2014 at 5:28