We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
版本:V2.3.0 make.config配置:
` FEATURE_SRCPATH="."
FEATURE_MQTT_COMM_ENABLED=y
FEATURE_MQTT_DIRECT=y
FEATURE_DEVICE_MODEL_ENABLED=y
FEATURE_DEVICE_MODEL_GATEWAY=y
FEATURE_ALCS_ENABLED=y
FEATURE_ALCS_CLIENT_ENABLED=y
FEATURE_ALCS_SERVER_ENABLED=y
FEATURE_DEPRECATED_LINKKIT=y
FEATURE_DEV_BIND_ENABLED=y
FEATURE_OTA_ENABLED=y
FEATURE_SUPPORT_TLS=y
FEATURE_SAL_ENABLED=y
FEATURE_SAL_PACKET_SEND_MODE_ASYNC=y
FEATURE_SAL_UDP_CLIENT_ENABLED=y
FEATURE_WIFI_PROVISION_ENABLED=y
FEATURE_AWSS_SUPPORT_SMARTCONFIG=y
FEATURE_AWSS_SUPPORT_PHONEASAP=y
FEATURE_AWSS_SUPPORT_ROUTER=y
FEATURE_AWSS_SUPPORT_ZEROCONFIG=y
`
问题: 为了兼容V2.2.1,在V2.3.0版本上使用老版本接口实现网关功能,在网关里面注册了一个Zigbee开关设备,通过后端开关设备的调试界面给网关发送set命令控制开关状态,数据发送到网关后,并没有调用到子设备注册的linkkit_cbs里面的set_property回调函数
`[dbg] CoAPRequestMessage_handle(730): Request path is /dev/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/core/service/auth [dbg] iotx_mc_cycle(1821): PUBLISH [inf] iotx_mc_handle_recv_PUBLISH(1574): Downstream Topic: '/sys/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/thing/service/property/set' [inf] iotx_mc_handle_recv_PUBLISH(1575): Downstream Payload:
< { < "method": "thing.service.property.set", < "id": "280608376", < "params": { < "PowerSwitch_1": 0 < }, < "version": "1.0.0" < }
[dbg] iotx_mc_handle_recv_PUBLISH(1580): Packet Ident : 00000000 [dbg] iotx_mc_handle_recv_PUBLISH(1581): Topic Length : 64 [dbg] iotx_mc_handle_recv_PUBLISH(1585): Topic Name : /sys/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/thing/service/property/set [dbg] iotx_mc_handle_recv_PUBLISH(1588): Payload Len/Room : 103 / 111 [dbg] iotx_mc_handle_recv_PUBLISH(1589): Receive Buflen : 180 [dbg] iotx_mc_handle_recv_PUBLISH(1600): delivering msg ... [dbg] iotx_mc_deliver_message(1307): topic be matched [inf] dm_msg_proc_thing_service_property_set(134): thing/service/property/set [dbg] dm_msg_request_parse(130): Current Request Message ID: 280608376 [dbg] dm_msg_request_parse(131): Current Request Message Version: 1.0.0 [dbg] dm_msg_request_parse(132): Current Request Message Method: thing.service.property.set [dbg] dm_msg_request_parse(133): Current Request Message Params: {"PowerSwitch_1":0} [inf] dm_msg_property_set(2194): Property Set, Size: 1 [dbg] _dm_msg_set_object(2074): Current Key: PowerSwitch_1, Value: 0 [dbg] _dm_msg_set_object(2077): new_key_len: 14 [dbg] _dm_msg_set_object(2088): New Key: PowerSwitch_1 [inf] dm_msg_property_set(2201): _dm_msg_set_object failed [inf] dm_msg_response(262): Send URI: /sys/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/thing/service/property/set_reply, Payload: {"id":"280608376","code":400,"data":{}} [inf] MQTTPublish(514): Upstream Topic: '/sys/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/thing/service/property/set_reply' [inf] MQTTPublish(515): Upstream Payload:
{ "id": "280608376", "code": 400, "data": { } }
[inf] dm_client_publish(121): Publish Result: 0 [zbSocUartProcessHandler:267]:ByteToRead = 16 ` 调试后发现是dm_manager.c中的dm_shw_get_property_data函数里面shadow参数为NULL,导致参数验证错误,在代码中也没有发现这个参数在哪里初始化,分配的空间。
The text was updated successfully, but these errors were encountered:
tsl是本地还是云端获取的?
Sorry, something went wrong.
云端获取
@Torchwoods 建议改为本地设置
你好以上问题已在
0a01833
修复, 请更新代码, 感谢反馈!
No branches or pull requests
版本:V2.3.0
make.config配置:
`
FEATURE_SRCPATH="."
FEATURE_MQTT_COMM_ENABLED=y
FEATURE_MQTT_DIRECT=y
FEATURE_DEVICE_MODEL_ENABLED=y
FEATURE_DEVICE_MODEL_GATEWAY=y
FEATURE_ALCS_ENABLED=y
FEATURE_ALCS_CLIENT_ENABLED=y
FEATURE_ALCS_SERVER_ENABLED=y
FEATURE_DEPRECATED_LINKKIT=y
FEATURE_DEV_BIND_ENABLED=y
FEATURE_OTA_ENABLED=y
FEATURE_SUPPORT_TLS=y
FEATURE_SAL_ENABLED=y
FEATURE_SAL_PACKET_SEND_MODE_ASYNC=y
FEATURE_SAL_UDP_CLIENT_ENABLED=y
FEATURE_WIFI_PROVISION_ENABLED=y
FEATURE_AWSS_SUPPORT_SMARTCONFIG=y
FEATURE_AWSS_SUPPORT_PHONEASAP=y
FEATURE_AWSS_SUPPORT_ROUTER=y
FEATURE_AWSS_SUPPORT_ZEROCONFIG=y
`
问题:
为了兼容V2.2.1,在V2.3.0版本上使用老版本接口实现网关功能,在网关里面注册了一个Zigbee开关设备,通过后端开关设备的调试界面给网关发送set命令控制开关状态,数据发送到网关后,并没有调用到子设备注册的linkkit_cbs里面的set_property回调函数
`[dbg] CoAPRequestMessage_handle(730): Request path is /dev/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/core/service/auth
[dbg] iotx_mc_cycle(1821): PUBLISH
[inf] iotx_mc_handle_recv_PUBLISH(1574): Downstream Topic: '/sys/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/thing/service/property/set'
[inf] iotx_mc_handle_recv_PUBLISH(1575): Downstream Payload:
< {
< "method": "thing.service.property.set",
< "id": "280608376",
< "params": {
< "PowerSwitch_1": 0
< },
< "version": "1.0.0"
< }
[dbg] iotx_mc_handle_recv_PUBLISH(1580): Packet Ident : 00000000
[dbg] iotx_mc_handle_recv_PUBLISH(1581): Topic Length : 64
[dbg] iotx_mc_handle_recv_PUBLISH(1585): Topic Name : /sys/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/thing/service/property/set
[dbg] iotx_mc_handle_recv_PUBLISH(1588): Payload Len/Room : 103 / 111
[dbg] iotx_mc_handle_recv_PUBLISH(1589): Receive Buflen : 180
[dbg] iotx_mc_handle_recv_PUBLISH(1600): delivering msg ...
[dbg] iotx_mc_deliver_message(1307): topic be matched
[inf] dm_msg_proc_thing_service_property_set(134): thing/service/property/set
[dbg] dm_msg_request_parse(130): Current Request Message ID: 280608376
[dbg] dm_msg_request_parse(131): Current Request Message Version: 1.0.0
[dbg] dm_msg_request_parse(132): Current Request Message Method: thing.service.property.set
[dbg] dm_msg_request_parse(133): Current Request Message Params: {"PowerSwitch_1":0}
[inf] dm_msg_property_set(2194): Property Set, Size: 1
[dbg] _dm_msg_set_object(2074): Current Key: PowerSwitch_1, Value: 0
[dbg] _dm_msg_set_object(2077): new_key_len: 14
[dbg] _dm_msg_set_object(2088): New Key: PowerSwitch_1
[inf] dm_msg_property_set(2201): _dm_msg_set_object failed
[inf] dm_msg_response(262): Send URI: /sys/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/thing/service/property/set_reply, Payload: {"id":"280608376","code":400,"data":{}}
[inf] MQTTPublish(514): Upstream Topic: '/sys/a1j22B9pjJ0/sIfgUD2omYCseZGD4ilp/thing/service/property/set_reply'
[inf] MQTTPublish(515): Upstream Payload:
[inf] dm_client_publish(121): Publish Result: 0
[zbSocUartProcessHandler:267]:ByteToRead = 16 `
调试后发现是dm_manager.c中的dm_shw_get_property_data函数里面shadow参数为NULL,导致参数验证错误,在代码中也没有发现这个参数在哪里初始化,分配的空间。
The text was updated successfully, but these errors were encountered: