This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTLS UI

您好,

        上面是我在用passive和master测AOA的UI演示,为什么我的passive没有AOA值?

  • AOA板子是不是接到master上了?AOA的获取需要BoostAOA板
  • passive和master都接AOA板子,passive的AOA有时候有,但也只是一会,然后就断开没了
  • 断开原因是什么?log信息麻烦提供一下【位于C:\ti\simplelink_cc13x2_26x2_sdk_4_30_00_54\tools\ble5stack\rtls_agent\rtls_ui\logs】
  • 12_07_2020_11_08_16_log.txt
    [2020-12-07 11:08:16,552]      root -     INFO - Setting nodes : 
    [2020-12-07 11:08:16,553]   asyncio -    DEBUG - Using selector: SelectSelector
    [2020-12-07 11:08:16,555]      root -     INFO - Message receiver started
    [2020-12-07 11:08:16,555]      root -     INFO - RTLS Manager started
    [2020-12-07 11:08:16,559]   asyncio -    DEBUG - Get address info localhost:5050, type=<SocketKind.SOCK_STREAM: 1>, flags=<AddressInfo.AI_PASSIVE: 1>
    [2020-12-07 11:08:16,561]   asyncio -    DEBUG - Getting address info localhost:5050, type=<SocketKind.SOCK_STREAM: 1>, flags=<AddressInfo.AI_PASSIVE: 1> took 16.000ms: [(<AddressFamily.AF_INET6: 23>, <SocketKind.SOCK_STREAM: 1>, 0, '', ('::1', 5050, 0, 0)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 0, '', ('127.0.0.1', 5050))]
    [2020-12-07 11:08:16,562]   asyncio -    DEBUG - poll took 16.000 ms: 1 events
    [2020-12-07 11:08:16,562]   asyncio -     INFO - <Server sockets=[<socket.socket fd=1760, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=0, laddr=('::1', 5050, 0, 0)>, <socket.socket fd=1756, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 5050)>]> is serving
    [2020-12-07 11:08:16,608] serialnode -    DEBUG - >>> UNPIMessage(originator=Ap type=SyncReq, subsystem=25, command=RTLS_CMD_IDENTIFY, data=)
    [2020-12-07 11:08:16,608] serialnode -    DEBUG - >>> UNPIMessage(originator=Ap type=SyncReq, subsystem=25, command=RTLS_CMD_IDENTIFY, data=)
    [2020-12-07 11:08:16,608] serialnode -    DEBUG - >>> FE:00:00:39:00:39
    [2020-12-07 11:08:16,608] serialnode -    DEBUG - >>> FE:00:00:39:00:39
    [2020-12-07 11:08:16,660] serialnode -    DEBUG - <<< FE:0C:00:79:00:84:00:02:00:05:A1:D1:31:B0:6F:80:08:E0
    [2020-12-07 11:08:16,660] serialnode -    DEBUG - <<< FE:0C:00:79:00:04:01:02:00:05:AE:CE:31:B0:6F:80:08:71
    [2020-12-07 11:08:16,660] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:16,660] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:16,660] serialnode -    DEBUG - <<< UNPIMessage(originator=Nwp type=SyncRsp, subsystem=RTLS, command=RTLS_CMD_IDENTIFY, data=84:00:02:00:05:A1:D1:31:B0:6F:80:08)
    [2020-12-07 11:08:16,661] serialnode -    DEBUG - <<< UNPIMessage(originator=Nwp type=SyncRsp, subsystem=RTLS, command=RTLS_CMD_IDENTIFY, data=04:01:02:00:05:AE:CE:31:B0:6F:80:08)
    [2020-12-07 11:08:16,661] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:16,661] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,556]      root -     INFO - Done setting node
    [2020-12-07 11:08:18,556]  rtlsnode -     INFO - PASSIVE : 80:6F:B0:31:CE:AE <-- {'type': 'Command', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': None}
    [2020-12-07 11:08:18,557]  rtlsnode -     INFO - MASTER  : 80:6F:B0:31:D1:A1 <-- {'type': 'Command', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': None}
    [2020-12-07 11:08:18,590] serialnode -    DEBUG - >>> UNPIMessage(originator=Ap type=SyncReq, subsystem=25, command=RTLS_CMD_RESET_DEVICE, data=)
    [2020-12-07 11:08:18,591] serialnode -    DEBUG - >>> UNPIMessage(originator=Ap type=SyncReq, subsystem=25, command=RTLS_CMD_RESET_DEVICE, data=)
    [2020-12-07 11:08:18,591] serialnode -    DEBUG - >>> FE:00:00:39:20:19
    [2020-12-07 11:08:18,591] serialnode -    DEBUG - >>> FE:00:00:39:20:19
    [2020-12-07 11:08:18,642] serialnode -    DEBUG - <<< 00:FE:00:00:59:20:79
    [2020-12-07 11:08:18,642]      root -  WARNING - ConstError('parsing expected 254 but parsed 0')
    [2020-12-07 11:08:18,642] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,642] serialnode -    DEBUG - <<< UNPIMessage(originator=Nwp type=AsyncReq, subsystem=RTLS, command=RTLS_CMD_RESET_DEVICE, data=)
    [2020-12-07 11:08:18,642] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,642]  rtlsnode -    DEBUG - Have 0 subscribers for UNPIMessage(originator=Nwp type=AsyncReq, subsystem=RTLS, command=RTLS_CMD_RESET_DEVICE, data=)
    [2020-12-07 11:08:18,643] serialnode -    DEBUG - <<< 00
    [2020-12-07 11:08:18,643]      root -  WARNING - ConstError('parsing expected 254 but parsed 0')
    [2020-12-07 11:08:18,643] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,643]      root -     INFO - PASSIVE : 80:6F:B0:31:CE:AE --> {'type': 'Event', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': {'raw_payload': ''}}
    [2020-12-07 11:08:18,694] serialnode -    DEBUG - <<< FE:00:00:59:20:79
    [2020-12-07 11:08:18,695] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,695] serialnode -    DEBUG - <<< UNPIMessage(originator=Nwp type=AsyncReq, subsystem=RTLS, command=RTLS_CMD_RESET_DEVICE, data=)
    [2020-12-07 11:08:18,695] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,697]  rtlsnode -    DEBUG - Have 0 subscribers for UNPIMessage(originator=Nwp type=AsyncReq, subsystem=RTLS, command=RTLS_CMD_RESET_DEVICE, data=)
    [2020-12-07 11:08:18,697]      root -     INFO - MASTER  : 80:6F:B0:31:D1:A1 --> {'type': 'Event', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': {'raw_payload': ''}}
    [2020-12-07 11:08:18,761]  werkzeug -     INFO - 127.0.0.1 - - [07/Dec/2020 11:08:18] "POST /rtls-ui/api/initialize HTTP/1.1" 200 -
    [2020-12-07 11:08:18,776]   asyncio -     INFO - poll took 2203.000 ms: 1 events
    [2020-12-07 11:08:18,776]   asyncio -    DEBUG - <Server sockets=[<socket.socket fd=1760, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=0, laddr=('::1', 5050, 0, 0)>, <socket.socket fd=1756, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 5050)>]> got a new connection from ('127.0.0.1', 51391): <socket.socket fd=1504, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 5050), raddr=('127.0.0.1', 51391)>
    [2020-12-07 11:08:18,778] websockets.protocol -    DEBUG - server - state = CONNECTING
    [2020-12-07 11:08:18,779] websockets.protocol -    DEBUG - server - event = connection_made(<_SelectorSocketTransport fd=1504 read=idle write=<idle, bufsize=0>>)
    [2020-12-07 11:08:18,781] websockets.protocol -    DEBUG - server - state = OPEN
    [2020-12-07 11:08:18,783]  rtlsnode -     INFO - PASSIVE : 80:6F:B0:31:CE:AE <-- {'type': 'Command', 'command': 'RTLS_CMD_IDENTIFY', 'payload': None}
    [2020-12-07 11:08:18,783]  rtlsnode -     INFO - MASTER  : 80:6F:B0:31:D1:A1 <-- {'type': 'Command', 'command': 'RTLS_CMD_IDENTIFY', 'payload': None}
    [2020-12-07 11:08:18,795] serialnode -    DEBUG - >>> UNPIMessage(originator=Ap type=SyncReq, subsystem=25, command=RTLS_CMD_IDENTIFY, data=)
    [2020-12-07 11:08:18,795] serialnode -    DEBUG - >>> FE:00:00:39:00:39
    [2020-12-07 11:08:18,799] serialnode -    DEBUG - >>> UNPIMessage(originator=Ap type=SyncReq, subsystem=25, command=RTLS_CMD_IDENTIFY, data=)
    [2020-12-07 11:08:18,799] serialnode -    DEBUG - >>> FE:00:00:39:00:39
    [2020-12-07 11:08:18,845] serialnode -    DEBUG - <<< FE:0C:00:79:00:04:01:02:00:05:AE:CE:31:B0:6F:80:08:71
    [2020-12-07 11:08:18,845] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,845] serialnode -    DEBUG - <<< UNPIMessage(originator=Nwp type=SyncRsp, subsystem=RTLS, command=RTLS_CMD_IDENTIFY, data=04:01:02:00:05:AE:CE:31:B0:6F:80:08)
    [2020-12-07 11:08:18,845] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,846]  rtlsnode -    DEBUG - Have 0 subscribers for UNPIMessage(originator=Nwp type=SyncRsp, subsystem=RTLS, command=RTLS_CMD_IDENTIFY, data=04:01:02:00:05:AE:CE:31:B0:6F:80:08)
    [2020-12-07 11:08:18,846]      root -     INFO - PASSIVE : 80:6F:B0:31:CE:AE --> {'type': 'Response', 'command': 'RTLS_CMD_IDENTIFY', 'payload': {'capabilities': {'CM': False, 'AOA_TX': False, 'AOA_RX': True, 'TOF_SLAVE': False, 'TOF_PASSIVE': False, 'TOF_MASTER': False, 'RTLS_SLAVE': False, 'RTLS_MASTER': False, 'RTLS_PASSIVE': True}, 'revNum': 2, 'devId': 'DeviceFamily_ID_CC26X2', 'identifier': '80:6F:B0:31:CE:AE'}}
    [2020-12-07 11:08:18,847]   asyncio -    DEBUG - poll 20000.000 ms took 62.000 ms: 1 events
    [2020-12-07 11:08:18,848] websockets.protocol -    DEBUG - server > Frame(fin=True, opcode=1, data=b'{"identifier": "80:6F:B0:31:CE:AE", "message": {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_IDENTIFY", "payload": {"capabilities": {"CM": false, "AOA_TX": false, "AOA_RX": true, "TOF_SLAVE": false, "TOF_PASSIVE": false, "TOF_MASTER": false, "RTLS_SLAVE": false, "RTLS_MASTER": false, "RTLS_PASSIVE": true}, "revNum": 2, "devId": "DeviceFamily_ID_CC26X2", "identifier": "80:6F:B0:31:CE:AE"}}}', rsv1=False, rsv2=False, rsv3=False)
    [2020-12-07 11:08:18,849] serialnode -    DEBUG - <<< FE:0C:00:79:00:84:00:02:00:05:A1:D1:31:B0:6F:80:08:E0
    [2020-12-07 11:08:18,849] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,849] serialnode -    DEBUG - <<< UNPIMessage(originator=Nwp type=SyncRsp, subsystem=RTLS, command=RTLS_CMD_IDENTIFY, data=84:00:02:00:05:A1:D1:31:B0:6F:80:08)
    [2020-12-07 11:08:18,849] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:18,850]  rtlsnode -    DEBUG - Have 0 subscribers for UNPIMessage(originator=Nwp type=SyncRsp, subsystem=RTLS, command=RTLS_CMD_IDENTIFY, data=84:00:02:00:05:A1:D1:31:B0:6F:80:08)
    [2020-12-07 11:08:18,850]      root -     INFO - MASTER  : 80:6F:B0:31:D1:A1 --> {'type': 'Response', 'command': 'RTLS_CMD_IDENTIFY', 'payload': {'capabilities': {'CM': False, 'AOA_TX': False, 'AOA_RX': True, 'TOF_SLAVE': False, 'TOF_PASSIVE': False, 'TOF_MASTER': False, 'RTLS_SLAVE': False, 'RTLS_MASTER': True, 'RTLS_PASSIVE': False}, 'revNum': 2, 'devId': 'DeviceFamily_ID_CC26X2', 'identifier': '80:6F:B0:31:D1:A1'}}
    [2020-12-07 11:08:18,850]   asyncio -    DEBUG - poll 19938.000 ms took 0.000 ms: 1 events
    [2020-12-07 11:08:18,851] websockets.protocol -    DEBUG - server > Frame(fin=True, opcode=1, data=b'{"identifier": "80:6F:B0:31:D1:A1", "message": {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_IDENTIFY", "payload": {"capabilities": {"CM": false, "AOA_TX": false, "AOA_RX": true, "TOF_SLAVE": false, "TOF_PASSIVE": false, "TOF_MASTER": false, "RTLS_SLAVE": false, "RTLS_MASTER": true, "RTLS_PASSIVE": false}, "revNum": 2, "devId": "DeviceFamily_ID_CC26X2", "identifier": "80:6F:B0:31:D1:A1"}}}', rsv1=False, rsv2=False, rsv3=False)
    [2020-12-07 11:08:18,884]  werkzeug -     INFO - 127.0.0.1 - - [07/Dec/2020 11:08:18] "GET /rtls-ui/api/initialize HTTP/1.1" 200 -
    [2020-12-07 11:08:20,513]      root -     INFO - AOA Stopped
    [2020-12-07 11:08:21,357]   asyncio -     INFO - poll 19938.000 ms took 2500.000 ms: 1 events
    [2020-12-07 11:08:21,365] websockets.protocol -    DEBUG - server ! failing WebSocket connection in the OPEN state: 1001 [no reason]
    [2020-12-07 11:08:21,366] websockets.protocol -    DEBUG - server - state = CLOSING
    [2020-12-07 11:08:21,366] websockets.protocol -    DEBUG - server > Frame(fin=True, opcode=8, data=b'\x03\xe9', rsv1=False, rsv2=False, rsv3=False)
    [2020-12-07 11:08:21,369] websockets.protocol -    DEBUG - server x half-closing TCP connection
    [2020-12-07 11:08:21,374]   asyncio -    DEBUG - <_SelectorSocketTransport fd=1504 read=polling write=<idle, bufsize=0>> received EOF
    [2020-12-07 11:08:21,375] websockets.protocol -    DEBUG - server - event = eof_received()
    [2020-12-07 11:08:21,375] websockets.protocol -    DEBUG - server - event = connection_lost(None)
    [2020-12-07 11:08:21,375] websockets.protocol -    DEBUG - server - state = CLOSED
    [2020-12-07 11:08:21,375] websockets.protocol -    DEBUG - server x code = 1006, reason = [no reason]
    [2020-12-07 11:08:21,381]   asyncio -    DEBUG - Close <_WindowsSelectorEventLoop running=False closed=False debug=True>
    
    12_07_2020_11_08_21_log.txt
    identify_devices_log.txt
    [2020-12-07 11:08:02,208]      root -     INFO - Setting nodes : 
    [2020-12-07 11:08:02,209]      root -     INFO - RTLS Manager started
    [2020-12-07 11:08:02,264] serialnode -    DEBUG - >>> UNPIMessage(originator=Ap type=SyncReq, subsystem=25, command=RTLS_CMD_IDENTIFY, data=)
    [2020-12-07 11:08:02,264] serialnode -    DEBUG - >>> UNPIMessage(originator=Ap type=SyncReq, subsystem=25, command=RTLS_CMD_IDENTIFY, data=)
    [2020-12-07 11:08:02,264] serialnode -    DEBUG - >>> FE:00:00:39:00:39
    [2020-12-07 11:08:02,264] serialnode -    DEBUG - >>> FE:00:00:39:00:39
    [2020-12-07 11:08:02,315] serialnode -    DEBUG - <<< FE:0C:00:79:00:04:01:02:00:05:AE:CE:31:B0:6F:80:08:71
    [2020-12-07 11:08:02,315] serialnode -    DEBUG - <<< FE:0C:00:79:00:84:00:02:00:05:A1:D1:31:B0:6F:80:08:E0
    [2020-12-07 11:08:02,323] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:02,324] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:02,324] serialnode -    DEBUG - <<< UNPIMessage(originator=Nwp type=SyncRsp, subsystem=RTLS, command=RTLS_CMD_IDENTIFY, data=04:01:02:00:05:AE:CE:31:B0:6F:80:08)
    [2020-12-07 11:08:02,324] serialnode -    DEBUG - <<< UNPIMessage(originator=Nwp type=SyncRsp, subsystem=RTLS, command=RTLS_CMD_IDENTIFY, data=84:00:02:00:05:A1:D1:31:B0:6F:80:08)
    [2020-12-07 11:08:02,325] serialnode -    DEBUG - <<< 
    [2020-12-07 11:08:02,325] serialnode -    DEBUG - <<< 
    

  • 请看一下这边的类似问题,我实测下来passive跟master都可以稳定测试AOA数据:e2echina.ti.com/.../196767
  • 我看了链接的内容,是不是只有在外部干扰很小的环境下才能保证passive不会断开
  • 是的,测试环境很重要。TI的实验及数据是在消音室得出的
  • 那这个板子是没法在实际的环境中应用吗?因为我想通过这个板子测得实际环境中的位置信息
  • 实际环境也可以用,我就是在办公室测的,就是可能不太稳定,需要多测几次。另外,此板子实现的AOA只是功能展示,实际项目中肯定需要改进和完善的,请看详细声明:

    AOA测试数值跟环境相关,很容易受到多路径反射的影响而影响测试结果。
    使用TI demo的最佳方法是
    1)在良好的环境(eg.消音室)中进行测试,并分析I / Q数据。
    2)设计自己的滤波器(当前的例程中只是对结果取平均)。 可以基于标准偏差或者RSSI值进行过滤。
    3)如果自行设计了 过滤器,则可将其带到户外测试,以此检查过滤器的性能。
    TI的例程只是提供了在BLE上使用AOA定位的方法,最终产品时需要做修改和加强。
  • 好的,谢谢您的解答
  • this is a development server do not use it in a production deployment use a production wsgi server insterd开启时有个warning