This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

sensordemo & mt tools issue

Other Parts Discussed in Thread: Z-STACK, CC2530EM, CC2530

Hi,

I'm having trouble when I try to use mt-tools with the sensordemo app. When I start  mt tools (connected to the gateway/coordinator), a warning message says that the stack version is not the expected (v 2.30). I'am using v 2.30 1.40, the demo works, compile fine but I can't use the MT tools. Is there any problem in using mt tool with sensordemo? 

thanks

Guillermo

 

  • Hi,

    I have the exact same problem with Z-Stack 2.3.1-1.4.0

    I use a CC2530EM with SmartRF05 Rev 1.8.1

    I'm building (succesfully) SensorDemo - CollectorEB-PRO with the following compile options:

    ZIGBEEPRO
    HOLD_AUTO_START
    BUILD_ALL_DEVICES
    REFLECTOR
    NV_INIT
    NV_RESTORE
    ZTOOL_P1
    MT_TASK
    DEVICE_LOGICAL_TYPE=ZG_DEVICETYPE_ROUTER
    LCD_SUPPORTED
    MT_SYS_FUNC
    MT_ZDO_FUNC

    When I start ZTool.exe (2.0) I get the following message:

    *** WARNING *** Expected Z-Stack version (2.3.1) does not match with actual Z-Stack version. Z-Tool may not work properly.

    When I send a "SYS_PING"   <TX>04:29:20.51 COM1 SYS_PING (0x2101)

    I get this answer:  <RX>04:29:20.51 COM1 SYS_PING_RESPONSE (0x6101)    Capabilities: MT_CAP_SYS, MT_CAP_UTIL (0x41)

    I tried with different compile options (MT_UTIL_FUNC), the Capability list is always the same "MT_CAP_SYS, MT_CAP_UTIL (0x41)"

    Only "SYS_PING" works and none of the "MT_UTILS" commands are working.

    Thanks

    Frank

  • Hi, Frank

    The ping works because the answer is handled at the app. level. It seems that there is a compatibility problem with the uart (two apps trying to access it)  but I can't see where it is.  (it would be logical  in Linux, but I don't think that OSAL handle task and resources)

    Guillermo

     

  • I have exactly the same problem.

    Any one find a solution??

  • Sensor Demo is using MT interface connecting to Sensor Monitor Application.

    LPRF Rocks the World

  •  

    LPRF Rocks the World said:

    Sensor Demo is using MT interface connecting to Sensor Monitor Application.

    LPRF Rocks the World

    So, what can we do? how can we use callback functions;?

  • Hi,

    We use the following defines to enable MT functions that we need in our project.

    ZTOOL_P1
    MT_TASK
    MT_AF_FUNC
    MT_AF_CB_FUNC
    MT_APP_FUNC
    MT_DEBUG_FUNC
    MT_NWK_FUNC
    MT_NWK_CB_FUNC
    MT_SYS_FUNC
    MT_SYS_OSAL_NV_READ_CERTIFICATE_DATA
    MT_UTIL_FUNC
    MT_ZDO_CB_FUNC
    MT_ZDO_FUNC
    MT_ZDO_MGMT

    You can add these to your project and see if it works to your project.

    Regards!

    YK Chen

  • i add all defines at SensorDemo application by Coordinator Compiler Options. But nothing changed. i add all at Home Automation application Coordinator compiler Options. I never run Ztool with this and the coordinator don't response my sys_ping Command(0xFE,00,21,01,20). 

    am i doing Wrong. i spent for three weeks to build a general gataway with home Automation profile which can be controlled from serial port. But i have no success. 

    can anybody help me. I am just using zstack Examples. I didn't change anything  on the code except compiler options to add YH Chen's Defines. What is wrong:(  

    zstack 2.5.1

    Ztool 2.0

    cc2530 ZDK

  • Hi HANCI,

    Do you enable your RS232 on your EVB? I use SMART RF05 EVB and its switch is P14.

    Regards!

    YK Chen

  • i am using P18 pin header.

    9-RX

    11-TX 

    20-GND

    Also P14Enable but it makes no sense on P18, i believe.

  • Hi HANCI,

    If it is possible, I suggest you use P14 to use default RS232 connector on Smart05EB.

    4604.Smart05EB.pdf

    Regards!

    YK Chen.

  • oh yeah, That's it.

    it is working and i will find the real problem at the backside :).

    Now i activate  AF, SYS., ZDO...  functions. .

    But still there is some problem. when i activate UTIL functions, an "Key_established  . .. relay.. " in r51 file of UTIL file.

    I want to activate all funcitons. How can get ride of the compiler errors.

  • Hi HANCI,

    Great to hear that it works on your side. Would you please describe more specific about the compiling errors that make you suffer? Which define will cause compiling error?

    Regards!

    YK Chen

  • Hi,

    I can enable the Layer function folder on Ztool such as AF,ZDO,NWK etc. 

    But most of them don't response correctly. in Ztool, I used Load Parameter buton for network information.

    But only IEEE adress can be read. Others are all N/A. 

    I am using SimpleLight Example for Home Automation Profile.

    Shortly, I can ping, read IEEE adress but i can't search networks  with "MAC_SCAN_REQ" . But MAC function folder (NWK) seems inZtool.

    What should i do?

  • Hi,

    Do you check your checksum byte? Is it correct when you send MT command?

  • I am using last version Ztool and SYS folder functions are working.

    I could't run ZDO functions. some functions in Ztool and answers are in below. ZDO functions are not responded

    <TX>01:35:00.74 COM6 SYS_PING (0x2101)

    <RX>01:35:00.75 COM6 SYS_PING_RESPONSE (0x6101)
    Capabilities: MT_CAP_SYS, MT_CAP_AF, MT_CAP_ZDO, MT_CAP_APP (0x119)

    <TX>01:35:06.97 COM6 SYS_OSAL_NV_READ (0x2108)
    Id: 0x0001
    Offset: 0x01

    <RX>01:35:06.98 COM6 SYS_OSAL_NV_READ_SRSP (0x6108)
    Status: SUCCESS (0x0)
    Len: 0x07
    Value: hZ..K.. (0x68, 0x5A, 0x01, 0x00, 0x4B, 0x12, 0x00)

    <TX>01:35:47.73 COM6 ZDO_NWK_DISCOVERY_REQ (0x2526)
    ScanChannels: CHNL_0x00000800 (0x800)
    ScanDuration: 0x0A

    <TX>01:35:59.22 COM6 ZDO_MGMT_LEAVE_REQ (0x2534)
    DstAddr: 0x0000
    DeviceAddress: 0x0000000000000000
    RemoveChildren_Rejoin: 0x00

    <TX>01:36:05.66 COM6 ZDO_GET_LINK_KEY (0x2525)
    IEEEAddr: 0x0000000000000000

  • You need to define MT_ZDO_FUNC to support ZDO_NWK_DISCOVERY_REQ and  define MT_ZDO_MGMT to support ZDO_MGMT_LEAVE_REQ in ZDconfig.h. Besides, you need to define MT_SYS_KEY_MANAGEMENT to support ZDO_GET_LINK_KEY.

    Regards!

    YK Chen