• 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 ZigBee® Software & IEEE 802.15.4 Forum » several Issues regarding MT task change
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

several Issues regarding MT task change

This question is answered
Rui Zhang69778
Posted by Rui Zhang69778
on May 29 2012 10:46 AM
Genius4515 points

I am porting our base station SW which uses MT task to communicate with CC2530(mostly through UART). We use Z stack 1.4.3 before and we currently use Z stack 2.5.0. here are my several questions

1. there are bunch of serial commands have been removed? (for instance, SPI_CMD_SYS_CALLBACK_SUB_CMD). Is there any commands in new Z stack 2.5.0 to execute those functions?

2. There is one added mask MT_RPC_SUBSYSTEM_MASK used to parse command to different function array. So we need to add this bit into every our base station SW as long as it will communicate with CC2530?

3. In old 1.4.3 stack, the SYS_EVENT_MSG has a while loop to process msg. but this while loop is removed(in OAD MT_TASK it is kept.) I would like to know the reason for this change(it seems to me if we have stream data, the while loop style is better for efficiency. but probably not so good for fairness scheduling?)

In general, if we made our base station SW based on old z stack MT code(through UART), is there any suggestion we can make minimum change to new Z stack

thanks

Rui

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Dirty Harry
    Posted by Dirty Harry
    on May 29 2012 11:51 AM
    Verified Answer
    Verified by Rui Zhang69778
    Mastermind19350 points

    1. I remember that command vaguely - something like saving busy traffic on the transport bus, MT host could choose to subscribe to the SYS sub-system callback or not (ditto for all of the other sub-systems), where a sub-system "callback" was just any AREQ from the MT to the host. Now, if the MT_SYS sub-system is built into the Z-Stack image (the ZNP, say) with  MT_SYS_FUNC, then the all asynchronous stuff is automatically live. The tricky thing is with the ZDO callback functions - the MT host still has to ask for those specifically. A good example is just to skim the ZAP body of code, and what ZDO callback functions it registers for, etc. For example, look at void zapZdoSync(void).

    2. The designation of the correct subsystem in the construction of the CMD0 byte of any message is absolutely necessary.

    3. Yes - better "cooperative" behavior. But note in the ZNP project how the ZNP task is "elevated" to be a 50/50 equal as the highest priority task.

    In general, it depends how the old code was architected. If every command was built it place, then you have to go to every place a command is constructed and update the code. But hopefully, a pointer to a buffer and a length and a sub-system are being passed as arguments to a generic packet builder. Again, the ZAP show a good example of architecting the MT host code.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rui Zhang69778
    Posted by Rui Zhang69778
    on May 29 2012 13:04 PM
    Genius4515 points

    Thanks, Dirty Hary

    One question, the ZAP is only for MSP430? not for CC2530 pltaform?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dirty Harry
    Posted by Dirty Harry
    on May 29 2012 13:08 PM
    Suggested Answer
    Mastermind19350 points

    ZAP = ZNP Application Processor, or ZNP host processor, or MT Master (where the ZNP is the MT slave)

    So ZAP is for any processor, although due to the Copyright and click-through licensing, it cannot legally be ported to competitor's mcu's, it has been ported to the PC and to Linux. So, you could also port it to the CC2530 if you want to run one CC2530 as the ZNP host, and the other CC2530 as the ZNP.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rui Zhang69778
    Posted by Rui Zhang69778
    on May 29 2012 13:27 PM
    Genius4515 points

    Is there any possible that TI will change the structure of MT part substantially in the near future? I understand the reason to restructure this code into a more clear way, however, our base station won't use all commands(only a very small part), so we don't use pointer to parse command. instead, a lookup table for every command and its associated function is used. so I have to modify them in place one by one. So I would like to know whether this MT part framework is finalized?

    Also is there MT for Z stack 1.4.3 introduction?

    thanks

    Rui

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dirty Harry
    Posted by Dirty Harry
    on May 29 2012 14:17 PM
    Mastermind19350 points
    Serial Port Interface_F8W-2003-0001_.pdf

    I can't answer that first question and doubt that anyone on the E2E can.

    I found the attached document here:

    C:\Texas Instruments\ZStack-1.4.3-1.2.1\Documents\Serial Port Interface_F8W-2003-0001_.pdf

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rui Zhang69778
    Posted by Rui Zhang69778
    on May 30 2012 13:58 PM
    Genius4515 points

    Thanks

    I noticed almost every MT related command name has been changed from 1.4.3 to 2.1.0, is there any detailed command mapping/change notes for them?

    Rui

    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