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
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:
ZIGBEEPROHOLD_AUTO_STARTBUILD_ALL_DEVICESREFLECTORNV_INITNV_RESTOREZTOOL_P1MT_TASKDEVICE_LOGICAL_TYPE=ZG_DEVICETYPE_ROUTERLCD_SUPPORTEDMT_SYS_FUNCMT_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
*** 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
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)
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
"Customer Centricity, Enthusiasm, Mass collaboration and Great minds are the best path towards great products"
“Victory awaits him who has everything in order – luck people call it. Defeat is certain for him who has neglected to take the necessary precautions in time; this is called bad luck.” Roald Amundsen, The South Pole
LPRF Rocks the World 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;?
We use the following defines to enable MT functions that we need in our project.
ZTOOL_P1MT_TASKMT_AF_FUNCMT_AF_CB_FUNCMT_APP_FUNCMT_DEBUG_FUNCMT_NWK_FUNCMT_NWK_CB_FUNCMT_SYS_FUNCMT_SYS_OSAL_NV_READ_CERTIFICATE_DATAMT_UTIL_FUNCMT_ZDO_CB_FUNCMT_ZDO_FUNCMT_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.
i am using P18 pin header.
9-RX
11-TX
20-GND
Also P14Enable but it makes no sense on P18, i believe.
If it is possible, I suggest you use P14 to use default RS232 connector on Smart05EB.
4604.Smart05EB.pdf
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.
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?
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?
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