设备固件是根据 1.7.2 ios 应用程序使用 1.28.1 cocoapod for Movesense 定制的。

应用程序可以看到设备连接到它,并查询电池状态。一切正常,但是很多时候,查询电池状态后,设备会自动断开连接(如对 MDS/ConnectedDevices 的响应所示),并通过调试日志在设备本身上断开连接:Subscribed and listening for notifications. Press ESC to stop: TODO not thoroughly tested @6708 { { "Timestamp": 5124990, "Level": [ 4, "Verbose" ], "Tag": "", "Message": "BatteryChargeProvider::stoponGetRequest timeDiff: 51713" } } @6898 { { "Timestamp": 5125142, "Level": [ 4, "Verbose" ], "Tag": "", "Message": "Disconnect(const Address& rAddress) called" } } /Users/builduser/buildAgent/work/a29f59699a429e89/src/whiteboard /comm/internal/serial/SerialAdapter.cpp(246): ASSERT FAILED! [bufferData == TotalHeaderSize] [1] 73425 abort wbcmd --port /dev/cu.usbserial-AI04RYMP SUBSCRIBESystem/Debug/4

并通过应用程序调试:

Disconnected device: <MDSEvent at 0x282903300: header: {
"Content-Length" = 122;
"Content-Type" = "application/json";
Uri = "MDS/EventListener/23";
}
bodyDictionary: {
Body =     {
    Serial = 175030000645;
};
Method = DEL;
Response =     {
    Status = 200;
};
Uri = "suunto://MDS/ConnectedDevices";
}
0x282903300>

还有其他人看到吗?它随机但频繁地发生,无论我是连接到一个还是多个设备,都没有区别。当使用多个设备时,它随机发生在一个设备上。它将连续发生多次:连接,获取电池,断开连接,查找设备,连接,获取电池,断开连接。

任何帮助将不胜感激。