• 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 » Stack 2.5.0 ZNP proyect error
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Stack 2.5.0 ZNP proyect error

Stack 2.5.0 ZNP proyect error

This question is not answered
Xabier Aizpurua
Posted by Xabier Aizpurua
on May 03 2012 12:27 PM
Intellectual775 points

Hello,

I have detected a error in ZNP Proyect. I am going to explain the step that i have done to understand well.

I have opened a original  ZNP proyect ( stack 2.5.0 ) and I have done some changes:
1- Secure = 1
2- zgPreconfig = TRUE
3- Change default password
4- Add "f8wCoord.cfg" file in Tool folder ( to create a Coordinator )

After, I have compiled the proyect in Debug mode and I have burned the code in one USB dongle.
After this step I have registered this USB's endpoint. I have used AF_REGISTER command to do it:

<TX>07:16:11.61 COM17 AF_REGISTER (0x2400)
    EndPoint: 0x0A
    AppProfID: 0x0104
    AppDeviceId: 0x0402
    AppDevVer: 0x00
    LatencyReq: NO_LATENCY_REQS (0x0)
    AppNumInClusters: 0x06
    AppInClusterList: 0x0000, 0x0003, 0x0004, 0x0006, 0x0703, 0xFC01
    AppNumOutClusters: 0x06
    AppOutClusterList: 0x0000, 0x0003, 0x0004, 0x0006, 0x0703, 0xFC01


In next step I have added a Router and a End device in the net.
when I have a net with this two devices:

I have ask to the net about the address of the End Device. Here you have the questions, and I have not received any asnwer!!

<TX>07:04:12.03 COM17 ZDO_NWK_ADDR_REQ (0x2500)
    IEEEAddress: 0x00124B0001647897
    ReqType: EXTENDED (0x1)
    StartIndex: 0x00

<RX>07:04:12.05 COM17 ZDO_NWK_ADDR_REQ_SRSP (0x6500)
    Status: afStatus_SUCCESS (0x0)

<TX>07:04:30.09 COM17 ZDO_NWK_ADDR_REQ (0x2500)
    IEEEAddress: 0x00124B0001647897
    ReqType: SINGLE_DEVICE_RESPONSE (0x0)
    StartIndex: 0x00

<RX>07:04:30.11 COM17 ZDO_NWK_ADDR_REQ_SRSP (0x6500)
    Status: afStatus_SUCCESS (0x0)


can somebody tell me what is wrong?

Regards,

bug ZNP Stack 2.5.0 USBDongle
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Igor Sherer
    Posted by Igor Sherer
    on May 14 2012 11:22 AM
    Guru21965 points

    Hi,

    I'm not familiar with the ZNP protocol, so I can provide a little help (if any), however I do have one question: 

    It's not obvious from your post, but what about the security on the router and end device side? Is it enabled?

    Br,

    Igor

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Xabier Aizpurua
    Posted by Xabier Aizpurua
    on May 14 2012 11:46 AM
    Intellectual775 points

    Hi,

    Yes the secure is enabled on the router and end device!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Igor Sherer
    Posted by Igor Sherer
    on May 14 2012 11:52 AM
    Guru21965 points

    Ok, what happens if you disabling security, does it works?

    Br,

    Igor

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Derek9531
    Posted by Derek9531
    on May 15 2012 11:45 AM
    Genius5460 points

    Hello,

       I'd recommend going back to the original ZNP build and verify that the error. Otherwise you're asking all of us a multi-variable problem.

    On the application configuration, it looks like you're listing some binding clusters, BTW. I don't use binding.

    Keep in mind that the network find commands (Find IEEE address, find NWK address) don't work for end devices.

    --Derek

    fixituntilitsbroken.blogspot.com

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Xabier Aizpurua
    Posted by Xabier Aizpurua
    on May 15 2012 11:56 AM
    Intellectual775 points

    Hello,

    Why do you say , that "the network find commands (Find IEEE address, find NWK address) don't work for end devices."

    If you ask about a IEEE of the end device, you usually have answer!

    I am going to test with the ZNP's original proyect. After the test I will write the test results.

    Regards,

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Xabier Aizpurua
    Posted by Xabier Aizpurua
    on May 16 2012 06:28 AM
    Intellectual775 points

    Hello Everybody,

    I have started with original 2.5.0 stack.

    In original 2.5.0 project, I have changed the DEFAULT_CHANLIST to my channel and I have added f8wRouter.cfg file in Tools folder.

    I have build and download in the cc2531 USB.

    I have started the USB with Ztool's ZB_START_REQUEST and my surprise, The usb is started as a Coordinator!!

    What is wrong? I have added the Router File!!

    Can anybody tell me something?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • YYAO
    Posted by YYAO
    on May 16 2012 19:06 PM
    Prodigy290 points

    Hi Xabier,

    ZNP stands for ZigBee Network Processor.  You don't need to specify device type (coordinator, router, enddevice) when you build the ZNP as your application running on the host processor should configure device type at run time. 

    The host processor shall use the ZB_WRITE_CONFIGURATION command to configure ZCD_NV_LOGICAL_TYPE to set device type (same for PanID and channel configuration). You can find out more information about the ZNP startup sequence in the ZNP interface specification.

    Best regards,

    Yaoyao

    Yaoyao

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Xabier Aizpurua
    Posted by Xabier Aizpurua
    on May 18 2012 08:29 AM
    Intellectual775 points

    Hi Yaoyao,

    Thank you for your answer.

    I had read that the user you can configure the device using ZB_WRITE_CONFIGURATION. I want to define the configuration of the device in the begining and in the code, without any other external communication. For this reason, I had added f8wRouter.cfg file in Tools folder, thinking that adding this file, the device will be a router.

    Do you think that if i write with zb_WriteConfiguration the init features of the device, this would work?

    Where do you think that I need to add all the configuration functions?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • YYAO
    Posted by YYAO
    on May 18 2012 15:06 PM
    Prodigy290 points

    Hi Xabier,

    If you do not want to have any external communication, you should not use ZNP.  You should run both application and core stack on the same device.

    Try start with sample application -  GenericApp, or HA Sample App or SE Sample App.  

    Good Luck!

    Regards,

    Yaoyao

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Xabier Aizpurua
    Posted by Xabier Aizpurua
    on May 21 2012 03:09 AM
    Intellectual775 points

    Hello Yaoyao,

    I do not express well the last time. What I want is not having to configure the device with messages! I just want to configure it from the code and then use the external communication to obtain information from network devices.

    For this reason I set it all in code.

    Do you understand me now?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Xabier Aizpurua
    Posted by Xabier Aizpurua
    on Jun 04 2012 02:57 AM
    Intellectual775 points

    Hello Yaoyao,

    I have started to use the ZNp proyect as you said me.

    I have obtained a lot of information about internal NV parameter which is very interesting. But I have a problem routing messages to the EndDevices, and surely you can help me.

    I have configured a USB device with ZNP like a coordinator and I want to add a router first and a Enddevice to the network.

    When I add a device apart of the usual Zigbee questions, the new device asks one question to the coordinator, and if the device has a response, the new device starts working!

    Well, the router is joined well, but the enddevice no! My question is about Enddevice's communication parameters.

    Do you know if I need to change any ZNP's feature, to send correctly the messages to the END devices?

    Thanks

    ZNP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Xabier Aizpurua
    Posted by Xabier Aizpurua
    on Jun 04 2012 09:58 AM
    Intellectual775 points

    Hello Again,

    I have solved the one part of the problem, changing device's ROUTE_EXPIRY_TIME. Now I can send and receive some messages!

    I have registered one endpoint, and when I am sending and receiving messages with clusters that is registered in the EndPoint, I have not problems.

    I have problems when I use ZDO messages.

    When I use ZDO_NWK_ADDR_REQ message, to know the Address of the one End device, this message is not routed correctly. The device send a broadcast message but it not route the message to the End device!

    With ZDO_NODE_DESC_REQ, ZDO_POWER_DESC_REQ, ZDO_SIMPLE_DESC_REQ,ZDO_ACTIVE_EP_REQ messages, I have other problem. The messages goes out of the USB and the node responses the messages, but the USB don't send the information to ZTOOL.

    I registered this ENDPOINT:

    EndPoint = 0x0a;
    AppProfID = 0x0104;
    AppDeviceId = 0x0007;
    AppDevVer = 0x00;
    LatencyReq = 0x00;
    AppNumInClusters = 0x04;
    AppInClusterList = [0x0000,0x0003,0x0004,0x0006];
    AppNumOutClusters = 0x04;
    AppOutClusterList = [0x0000,0x0003,0x0004,0x0006];

    Can anybody tell me any solution?

    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