rokid / community

Community repository for issue tracking, question, feedback and any related proposal.
MIT License
0 stars 2 forks source link

上传了数据 喊控制找不到设备 #6

Open Agurning opened 4 years ago

Agurning commented 4 years ago

{"header":{"authorization":{"token":"e937452656d94fd293fe7888d6a3d0d6","type":"BearerToken"},"messageId":"7c4d0b926b7848beac4d9175731b161d","name":"DiscoveryResponse","namespace":"Rokid","payloadVersion":"v1"},"payload":{"endpoints":[{"additionalInfo":{},"capabilities":[{"interface":"Switch","proactivelyReported":true,"retrievable":false,"supportedOperations":["On","Off"]},{"interface":"Color","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set"]},{"interface":"ColorTemperature","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]},{"interface":"Brightness","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]}],"displayName":"灯","displayType":"light","endpointId":"room_100","offline":false,"recommendHomeName":"宁波的家","recommendRoomName":"1号房间","states":[]},{"additionalInfo":{},"capabilities":[{"interface":"Switch","proactivelyReported":true,"retrievable":false,"supportedOperations":["On","Off"]},{"interface":"Color","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set"]},{"interface":"ColorTemperature","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]},{"interface":"Brightness","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]}],"displayName":"灯","displayType":"light","endpointId":"room_103","offline":false,"recommendHomeName":"宁波的家","recommendRoomName":"卧室","states":[]},{"additionalInfo":{},"capabilities":[{"interface":"Switch","proactivelyReported":true,"retrievable":false,"supportedOperations":["On","Off"]},{"interface":"Color","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set"]},{"interface":"ColorTemperature","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]},{"interface":"Brightness","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]}],"displayName":"灯","displayType":"light","endpointId":"room_104","offline":false,"recommendHomeName":"宁波的家","recommendRoomName":"厨房","states":[]},{"additionalInfo":{},"capabilities":[{"interface":"Switch","proactivelyReported":true,"retrievable":false,"supportedOperations":["On","Off"]},{"interface":"Color","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set"]},{"interface":"ColorTemperature","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]},{"interface":"Brightness","proactivelyReported":true,"retrievable":false,"supportedOperations":["Set","SetMax","SetMin","Adjust"]}],"displayName":"灯","displayType":"light","endpointId":"room_105","offline":false,"recommendHomeName":"宁波的家","recommendRoomName":"洗手间","states":[]}]}}

yorkie commented 4 years ago

请按照我们的 Bug 模板补充下信息,比如复现步骤,以及调用了什么接口等,多谢

yorkie commented 4 years ago

另外,请 @maxbbn 帮忙看看问题。

Agurning commented 4 years ago

问题:授权同步完数据 区域为宁波的家 4个子房间 喊出单个房间的灯进行控制,若祺回复没有发现设备,请在APP查看

yorkie commented 4 years ago

好的,可能还需要提供一下若琪的 SN 号以及发出控制指令的时间,这样我们方便后台查询日志。

maxbbn commented 4 years ago

确定下, 若琪只能控制当前家庭的设备, 若琪和设备是否不在一个家庭

Agurning commented 4 years ago

我在手机把区域切换了宁波的家 下面有显示4个子房间 S/N0302041928000850 指令控制时间下午有很多条随便抽一条即可

Agurning commented 4 years ago

而且我有把区域房间改名,但是之前的名称都变成缓存遗留这个太有问题了

maxbbn commented 4 years ago

后台看过了, 确定是这个问题, 回到我的家, 找到若琪, 设置到 宁波的家里, 就好了

Agurning commented 4 years ago

一直控制失败 2019.12,5 19:50左右 喊的命令是把卧室的灯亮度变成50

接受的数据是{\"endpoint\":{\"endpointId\":\"room_103\",\"additionalInfo\":{},\"states\":[]},\"payload\":{\"value\":50},\"header\":{\"messageId\":\"391685e32d59f364a1ff391ab8f9f9e\",\"namespace\":\"Rokid.Control\",\"name\":\"Brightness.Set\",\"authorization\":{\"type\":\"BearerToken\",\"token\":\"e937452656d94fd293fe7888d6a3d0d6\"},\"payloadVersion\":\"v1\"}} 我这边返回的是 {\"endpoints\":{\"additionalInfo\":{},\"endpointId\":\"room_103\",\"offline\":false,\"states\":[{\"interface\":\"Brightness\",\"timeOfSample\":1575546583746,\"value\":\"Set\"}]},\"header\":{\"authorization\":{\"token\":\"e937452656d94fd293fe7888d6a3d0d6\",\"type\":\"BearerToken\"},\"messageId\":\"391685e32d59f364a1ff391ab8f9f9e\",\"name\":\"Brightness.Set\",\"namespace\":\"Rokid\",\"payloadVersion\":\"v1\"},\"payload\":{\"value\":50}}

帮忙看下哪块的协议和文档不一样

maxbbn commented 4 years ago

建议用 RHome 工具先验证下格式

maxbbn commented 4 years ago

一直控制失败 2019.12,5 19:50左右 喊的命令是把卧室的灯亮度变成50

接受的数据是{"endpoint":{"endpointId":"room_103","additionalInfo":{},"states":[]},"payload":{"value":50},"header":{"messageId":"391685e32d59f364a1ff391ab8f9f9e","namespace":"Rokid.Control","name":"Brightness.Set","authorization":{"type":"BearerToken","token":"e937452656d94fd293fe7888d6a3d0d6"},"payloadVersion":"v1"}} 我这边返回的是 {"endpoints":{"additionalInfo":{},"endpointId":"room_103","offline":false,"states":[{"interface":"Brightness","timeOfSample":1575546583746,"value":"Set"}]},"header":{"authorization":{"token":"e937452656d94fd293fe7888d6a3d0d6","type":"BearerToken"},"messageId":"391685e32d59f364a1ff391ab8f9f9e","name":"Brightness.Set","namespace":"Rokid","payloadVersion":"v1"},"payload":{"value":50}}

帮忙看下哪块的协议和文档不一样

截屏2019-12-06下午4 15 58

header 里面字段格式不符合要求

maxbbn commented 4 years ago

@yorkie 这个issue 应该解决了, 你那边可以关闭吗

yorkie commented 4 years ago

由作者关闭吧,原则上我们不应该主动关闭,另外问题原因是什么呢?文档问题吗?

maxbbn commented 4 years ago

文档没有问题, 返回格式不符合协议约定

yorkie commented 4 years ago

我们是否可以提供 SDK 的形式,这样可以避免一些协议的问题?