Hello,
We are trying to control JN5179 (with "ZigbeeNodeControlBridge_JN5179_COORDINATOR_115200.bin"), using (ZGWUI ZCB intf. host GUI, to toggle a light, as below log. If we use "On/Off Cluster", it works. But not work in "Braoadcast mode" of "Raw Data". Why?
I have check the code, but if goes to "APP_eApsProfileDataRequest()" function, and cannot be checked further as the Broadcast parameter is within the buffer. Please help!
Benjamin
On/Off Cluster –[Short], Toggle ok
On/Off Cluster – [Broadcast], Toggle ok
Raw Data- [Short] Toggle ok , [Broadcast] Toggle error
Hi Mario,
We hope to make a broadcast as 2.3 or 2.4 does, but why they all failed? There is no activity on the sniffer in the case.
It seems work in 1.3 & 1.4.
//////
2.3 With RawData command + Broadcast Address mode + Target e0a1
It does not work, and with message,
2.4 With RawData command + Broadcast Address mode + Target ffff
It does not work, and with message,
//////
Regards,
Benjamin
Hi Benjamin,
The raw data command in JN-AN-1216-IOT-Control-Bridge application uses ZPS_eAplAfApsdeDataReq() function to send the raw command over the air. If you go through the parameter ZPS_tsAfProfileDataReq passed to above function (which contains addressing related information) in user guide JN-UG-3113 (http://www.nxp.com/documents/user_manual/JN-UG-3113.pdf) , it does not accept broadcast addressing mode and thus the issue.
eDstAddrMode is the type of destination address:
ZPS_E_ADDR_MODE_BOUND (no address needed for bound nodes)
ZPS_E_ADDR_MODE_GROUP (16-bit group address)
ZPS_E_ADDR_MODE_SHORT (16-bit network address)
ZPS_E_ADDR_MODE_IEEE (64-bit IEEE/MAC address)
Best Regards,
Mario
Mario,
Thanks!
Benjamin
Hi Benjamin,
Could you please try with the next Address (16-bit hex) FFFF?
If you capture the frame with a sniffer, you will see the frame like that.
Hope It helps.
Best Regards,
Mario
Hi Mario,
Thanks for your feedback.
We can use OnOff command directly. But what we have been requested to, is to use "Raw Data" command (in General) to simulate the same command. Besides direct targeting, we also need broadcasting. Below is the whole 8 tests for unicast and broadcast. It summarized as to take "2.2 With RawData command + Short Address mode + Target ffff". Seems we just have to be used to them.
1.1 With OnOff command + Short Address mode + Target e0a1
It works, and with message,
1.2 With OnOff command + Short Address mode + Target ffff
It does not work, and with message,
1.3 With OnOff command + Broadcast Address mode + Target e0a1
It works, and with message,
1.4 With OnOff command + Broadcast Address mode + Target ffff
It works, and with message,
2.1 With RawData command + Short Address mode + Target e0a1
It works, and with message,
2.2 With RawData command + Short Address mode + Target ffff
It works, and with message,
2.3 With RawData command + Broadcast Address mode + Target e0a1
It does not work, and with message,
2.4 With RawData command + Broadcast Address mode + Target ffff
It does not work, and with message,
// eof
Regards,
Benjamin
Hi Benjamin,
Just to confirm, are you asking why the 2.2 case works? Could you please explain the last question again?.
Best Regards,
Mario