Hello,
Our team is on a time crunch (two weeks) and our goal is to send data collected from a gyroscope and accelerometer on a PCB to a computer for post-processing. Our scheme is as follows: the accelerometer and gyroscope communicate via I2C with the CC430, which sends the data over radio frequency to a transceiver that is plugged in via USB to our laptop. I believe the transceiver is called the CC1111, it is the one that comes with the EZ-430 Chronos Watch Development Kit.
I have a feeling that the solution should actually be quite short and simple, but due to an extremely limited background we just need some guidance with respect to the following:
I am looking at the sample code that comes with SimpliciTI-IAR (we are using IAR) called Simple Peer-to-Peer in the CC430F5137-LinkListen folder; it seems similar to the task on our hands. This program involves the periodic sending of a 2-byte message from a designated "talker" device to a "listener device." In the C code file main_LinkTo.c it seems like this is where most of the data transmission takes place. I want to know if I can simply modify this code to accommodate our needs. Specifically, how does the function linkto() find the device to link to? Does it have a pre-determined address or does it search within the range of the antenna for a receiver? Why is createRandomAddress() used? I believe that we will also be able to use SMPL_Send(sLinkID1, msg, sizeof(msg));, as this is the function used to send the message, but how is sLinkID1 established to begin with? What will we need to change for our application?
I also noticed a library of radio functions (eg open_radio() close_radio() reset_radio) in the code for the EZ-430. Will CC430 connect automatically to the antenna, or will we need to write separate code (or just a line or so) for this?
I have read through the SimpliciTI API pdf file but due to my limited background in RF transmission, I still only have a very rudimentary understanding of the fundamentals.
thank you in advance for your time!