Greetings,
I am trying to run the peer to peer example that come with SimpliciTi version 1.2.
I have two experimenter's boards each with CC1100 EM 2.1 so I am using the CC1100 workspaces.
I compile (LinkTo) on one device and (LinkListen) on the other changing the device address accordingly.
However, when I run the code, it gets stuck in the link loop and nothing happens.
Any ideas how to move forward from here?
Thank you,
Amer
UPDATE: I just figured out that the SMPL_Link function is timing out. Does anyone know why something like this would happen when I am using an unmodified version of the examples provided with the software?
Hi,
You'll need to change the DTHIS_DEVICE_ADDRESS in the smpl_config.dat file so that you devices has different addresses. E.g:
-DTHIS_DEVICE_ADDRESS="{0x78, 0x56, 0x34, 0x12}"
and
-DTHIS_DEVICE_ADDRESS="{0x79, 0x56, 0x34, 0x12}"
-J
Firefighter:
Yes, I did change the device address as I mentioned in the original post.
Thank you
ahh, sorry for reading the post too quickly.
Do you have a packet sniffer? If so can you verify that the frames are actually sent from the devices?
Yes, a packet sniffer actually helps but unfortunately I do not have one at the moment.
What was happening is that I think I have a bad CC1100 board. The program was getting stuck (sometimes) on SMPL_Init(). When I remove it and plug it back into the exp board, it sometimes works. Now it's working so I am not touching it! :)
Hi Amer !
It seems that you faced the same problem that I'm trying to solve :
I have cc2511 dongles and I'm trying to test Peer to Peer example of SimpliciTI 1.2 . I generated 2 .Hex files linkTo and LinkListen . I changed the address of the Listner. I programmed the dongles with Flash programmer. The problem is that when I press the buttton on the Listener to start listening the Led it turns of and when I press the button on the Talker it blinks : So the linking failed .
I programmed an other dongle with the firmware of packet sniffer to capture packets , but I am not able to see any frame.
PLEASE Help me as soon as possible , because it is the last week in my training course :(
Any ideas how to move forward from here ?
Thanks !!!!
I should have posted my findings earlier.
In my case, the problem was with one of the smd connectors on the cc2500 board that plug into the exp430. Visually it looked ok, but I think that the soldering had a crack in it. When I apply pressure to it and restart the program, everything worked fine.
It took me time to suspect that a board from TI would have a defect. That was my main delay. So don't trust anything before you test it yourself.
You may have a similar problem as well.
What I would do is to try to put pressure on both modules as I run the program.
I hope this helps.
Thank you for your answer.
I'm wandering if you can help me: Do you find that the steps that I have followed and I have posted in my last question correct ? because I'm not able to find a solution for my problem.
Any suggestion will be greatly appreciated :)))
Thank you so much !!!
houda
You have to break it into parts so you can rule out multiple variable.
The linkListen code should be trying to connect and timing out then trying again and again. Make sure that the code is going through the loop. If it is not, use another module and try again. There could be some disconnected between the CC chip and the msp430.
On the linkTo side (without the linkListen), run the code and run the sniffer. If you do not get anything on the sniffer, again use another module if you can on either or both (linkto and sniffer). You should get something on the sniffer at some point. You can also place break points in the code and look at the error messages that are returned from linkto and linklisten. That may also give you an idea of the type of problem you have.
A
Thanks again !!
When I debug and download the code with IAR there is no error : (in both the listener and the talker : two cc2511.
I have a question Please: When you tested your connection did you download the .Hex file in the boards with flash Programmer ?
Thanks
houda ;
Did you mean when you compile and download the file??
You will not have any compilation or download errors if you use the peer to peer example. You have to try to debug (breakpoints..etc) to see if you have any runtime errors not compilation errors.
In IAR, you click on the green > button on the upper right or you can hit ctrl-D.
Do you mean that I have to click download and debug and then choose one of the steps (step over , into ....) ? : Can you explain me more PLEASE !!!
After doing this step will the board be programmed ? and I have simply to detach it from the cc debugger and to power it to make it start working ?
Thanks !!!
houda :)
Yes, you need to download the file to the msp430 then you can do the rest..
I suggest you start with something much simpler so can learn how to you the tools well before you go into doing simplciti work.
Start with the simple example, blinking an led. Try to change the blink rate. Place breakpoints and look at variables.... all this should be well known before you delve into something more involved.