Hi all,
I am using the Wireless Development Tool EZ430-RF2500 with CC2500.
Here is my problem, hopefully somone could help me:
I am just using the simple Peer-to-Peer sample project. In my project the talker gets a acceleration data and sends it immediately to the listener. For this I am getting every 0.5 ms a new acceleration value. I need it so fast because of the sample rate for the detecting signal to avoid aliasing effect. Before I implemented it I measured the time wich the function SMPL_Send needs for sending the message. If I am using 1 MHz and send a message size of 5 bytes it takes 5.78 ms, for 8 MHz 2.3 ms. But it is still too long, because in the meantime I will get already a few new acceleration datas. So there is a time running conflict.
How can I decrease the sending time? Maybe without using SimplicTI, just using the MRFI_Transmit and MRFI_Send functions (How could I implement such a thing?)? Or can I minimize the calibration time of the oscillator of CC2500 without problems, now it is about 600 µs. But it would be not enough.
Maybe somone is able to help me.Many thanks.Bests
Robert
Hi robert,
do you activated the "APP_AUTO_ACK" compile option? If yes, the SMPL_Send() function will basically wait for a reply. Please refer here:
http://processors.wiki.ti.com/index.php/SimpliciTI_FAQ#Does_SimpliciTI_support_message_acknowledgement.3F
check your smpl_nwk_config.dat to see whether the APP_AUTO_ACK is activated.
Hope this helps.
Regards,
Leo Hendrawan
Hi Leo,
it is disabled. Now I will try to collect at least 14 databytes and send them. Because I will get the datas due to interrupt, it will hopefully work.That means if I give SMPL_Send() the message the program will build "parallel" a new message variable. From SMPL_Send() the programm should be able to serve interrupts and exit the function because interrupts that use SPI (I use the acceleration sensor with spi) will only be disabled in some functions of mrfi_spi. Maybe one or two data points could be lost.
Thanks for your fast help.