I'm trying to deliver some reports on SupplyStatus and MeterStatus from my application based on the LightSensor sample. I've tried setting it up something like this:
report->sAttributeReportingConfigurationRecord.eAttributeDataType = E_ZCL_BMAP8;
report->sAttributeReportingConfigurationRecord.u16AttributeEnum = E_CLD_SM_ATTR_ID_SUPPLY_STATUS;
but don't get any reports. It reports the instantaneous power and energy summation attributes just right, and I can't see any difference in my setup for those attributes.
Did you added the new attribute configuration in function vLoadDefaultConfigForReportable?
If not, please consider that the reportable flag is set in function vMakeSupportedAttributesReportable, where the eZCL_CreateLocalReport is called.
I did a similar setup and in my case the reports works as expected.
You should note that the SupplyStatus is an optional attribute. To be enabled, the following define should be in zcl_options.h:
Other observation is the attribute data type: that is E_ZCL_ENUM8 and not E_ZCL_BMAP8 as I can see in your report configuration.
You can also validate the attribute report configuration by using ReadReportingConfiguration command as below:
- ZGWUI interface:
- over the air log:
Let me know if you need more details,
Thanks! Actually, it turned out that once I managed to set up the sniffer, the reports are there, it's just the gateway that for some reason doesn't show them. It looks like you're using wireshark to sniff, is there some docs how for to set the up with the jennic sniffer running on a serial port on a jn516x?
I'm not aware about an official version for JN516x.
In my case, I'm using Kinetis Protocol analyzer, that works with KW2x, Kw4x MCUs.
(for more details, please see below some links: