Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jul 22, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

您好,
  感谢西北工业大学无线传感网的相关工作人员,同时也感谢您们的开源精神!
  请问如下几个在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 [email protected] on 8 Dec 2013 at 7:27

@GoogleCodeExporter
Copy link
Author

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

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

Original comment by [email protected] on 9 Dec 2013 at 3:18

@GoogleCodeExporter
Copy link
Author

CC2530ActiveMessageC的RadioChannel、PacketRSSI 
的interface可以用了,感谢!

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

Original comment by [email protected] on 9 Dec 2013 at 10:32

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 10 Dec 2013 at 2:03

@GoogleCodeExporter
Copy link
Author

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

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

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

Original comment by [email protected] on 14 Dec 2013 at 11:11

Attachments:

@GoogleCodeExporter
Copy link
Author

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

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

Original comment by [email protected] on 15 Dec 2013 at 4:57

@GoogleCodeExporter
Copy link
Author

可以的

Original comment by [email protected] on 12 Jan 2014 at 5:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant