User Tools

Site Tools


doc:lps:toda3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:lps:toda3 [2018-10-31 18:21]
kristoffer
doc:lps:toda3 [2020-05-12 14:08] (current)
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to [[https://www.bitcraze.io/documentation/system/]]
 +</WRAP>
 +
 +
 ====== TDoA 3 set up ====== ====== TDoA 3 set up ======
  
Line 16: Line 21:
 You might have to move the Crazyflie close to all anchors to transfer the positions from the Crazyflie.  You might have to move the Crazyflie close to all anchors to transfer the positions from the Crazyflie. 
  
-===== Sniffing ===== +All the anchors work in the same coordinate system, so you need to choose a common origin for your systemTry to expand your system step by steptesting it at each step to catch problem when they start to happen.
- +
-If an anchor is configured to act as a sniffer, it can be used to listen to the UWB messages in the system. To set an anchor to sniffer modeconnect via USB and configure it to sniffer mode. +
- +
-==== Basic sniffing ==== +
- +
-Connect the sniffer via USB and check in /dev which port that it uses. Use this as the first argument +
-The second argument is the output formatuse yaml +
-example: ''python3 tools/sniffer/sniffer_binary.py /dev/tty.usbmodem1421 yaml'' +
- +
-==== TDoA 3 parsing ==== +
- +
-Pipe the yaml into the TDoA 3 decoder to see TDoA 3 data unpacked +
- +
-example: ''python3 tools/sniffer/sniffer_binary.py /dev/tty.usbmodem1421 yaml | python3 tools/sniffer/tdoa3_decoder.py'' +
- +
-This will show all data that the sniffer receives. To limit the output it is possible to filter which anchors to show. Add one or more ids at the end to only show data from only these anchors. +
- +
-example: ''python3 tools/sniffer/sniffer_binary.py /dev/tty.usbmodem1421 yaml | python3 tools/sniffer/tdoa3_decoder.py 2 3'' +
- +
-==== Time of flight and anchor to anchor distance ==== +
- +
-By piping the TDoA 3 data into the TOF tool, the measured anchor to anchor distances will be displayed. By adding the 'm' argument the output will be in meters instead of UWB clock ticks. +
- +
-example: ''python3 tools/sniffer/sniffer_binary.py /dev/tty.usbmodem1421 yaml | python3 tools/sniffer/tdoa3_decoder.py | python3 tools/sniffer/tdoa3_tof.py m'' +
  
 ===== 2D positioning ===== ===== 2D positioning =====
Line 80: Line 60:
  
   * There is a configuration setting for the preamble length   * There is a configuration setting for the preamble length
 +
 +===== Sniffing =====
 +
 +Sniffing the system is useful when you want to start digging into the radio messages exchanged between the anchor. It is a debug functionality.
 +
 +If an anchor is configured to act as a sniffer, it can be used to listen to the UWB messages in the system. To set an anchor to sniffer mode, connect via USB and configure it to sniffer mode.
 +
 +==== Basic sniffing ====
 +
 +Connect the sniffer via USB and check in /dev which port that it uses. Use this as the first argument
 +The second argument is the output format, use yaml
 +example: ''python3 tools/sniffer/sniffer_binary.py /dev/tty.usbmodem1421 yaml''
 +
 +==== TDoA 3 parsing ====
 +
 +Pipe the yaml into the TDoA 3 decoder to see TDoA 3 data unpacked
 +
 +example: ''python3 tools/sniffer/sniffer_binary.py /dev/tty.usbmodem1421 yaml | python3 tools/sniffer/tdoa3_decoder.py''
 +
 +This will show all data that the sniffer receives. To limit the output it is possible to filter which anchors to show. Add one or more ids at the end to only show data from only these anchors.
 +
 +example: ''python3 tools/sniffer/sniffer_binary.py /dev/tty.usbmodem1421 yaml | python3 tools/sniffer/tdoa3_decoder.py 2 3''
 +
 +==== Time of flight and anchor to anchor distance ====
 +
 +By piping the TDoA 3 data into the TOF tool, the measured anchor to anchor distances will be displayed. By adding the 'm' argument the output will be in meters instead of UWB clock ticks.
 +
 +example: ''python3 tools/sniffer/sniffer_binary.py /dev/tty.usbmodem1421 yaml | python3 tools/sniffer/tdoa3_decoder.py | python3 tools/sniffer/tdoa3_tof.py m''
 +
  
doc/lps/toda3.1541006477.txt.gz · Last modified: 2018-10-31 18:21 by kristoffer