• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF Proprietary Software & SimpliciTI Forum » Peers do not connect
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Peers do not connect

Peers do not connect

This question is answered
Amer Y Abufadel
Posted by Amer Y Abufadel
on Apr 13 2012 22:31 PM
Intellectual280 points

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?

CC1100 SimplciTI
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Firefighter
    Posted by Firefighter
    on Apr 16 2012 00:08 AM
    Expert5430 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Amer Y Abufadel
    Posted by Amer Y Abufadel
    on Apr 16 2012 00:34 AM
    Intellectual280 points

    Firefighter:

    Yes, I did change the device address as I mentioned in the original post.

    Thank you

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Firefighter
    Posted by Firefighter
    on Apr 16 2012 01:06 AM
    Verified Answer
    Verified by Amer Y Abufadel
    Expert5430 points

    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?

    -J

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Amer Y Abufadel
    Posted by Amer Y Abufadel
    on Apr 23 2012 09:40 AM
    Intellectual280 points

    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! :)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • houda ben othmen
    Posted by houda ben othmen
    on Aug 15 2012 07:41 AM
    Intellectual395 points

    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 !!!!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Amer Y Abufadel
    Posted by Amer Y Abufadel
    on Aug 15 2012 08:04 AM
    Intellectual280 points

    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.

    Amer

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • houda ben othmen
    Posted by houda ben othmen
    on Aug 15 2012 08:21 AM
    Intellectual395 points

    Hi Amer !

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Amer Y Abufadel
    Posted by Amer Y Abufadel
    on Aug 15 2012 08:32 AM
    Intellectual280 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • houda ben othmen
    Posted by houda ben othmen
    on Aug 15 2012 08:46 AM
    Intellectual395 points

    Hi Amer !

    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 ;

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Amer Y Abufadel
    Posted by Amer Y Abufadel
    on Aug 15 2012 08:56 AM
    Intellectual280 points

    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.  

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • houda ben othmen
    Posted by houda ben othmen
    on Aug 15 2012 09:11 AM
    Intellectual395 points

    Hi Amer !

    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 :)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Amer Y Abufadel
    Posted by Amer Y Abufadel
    on Aug 15 2012 09:21 AM
    Intellectual280 points

    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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use