This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
projects:lps:node [2018-09-17 13:56] macke |
projects:lps:node [2019-03-22 13:08] kristoffer |
||
---|---|---|---|
Line 31: | Line 31: | ||
===== Firmware ===== | ===== Firmware ===== | ||
- | ==== Configuring the node ==== | + | [[doc: |
- | The node can be used as: | ||
- | * An anchor: receives and answer ranging requests | ||
- | * A tag: Ranges with anchors and prints the distance | ||
- | * An UWB sniffer: Prints all messages received from the radio | ||
- | |||
- | To configure the node connect it to a computer (I will assume a computer running linux but it should work on mac and windows as well). The node will be recognised as a serial port. The name of the serial port can be found with // | ||
- | $ dmesg | ||
- | [ .... ] | ||
- | [22942.980255] usb 3-2: new full-speed USB device number 13 using xhci_hcd | ||
- | [22943.109845] usb 3-2: New USB device found, idVendor=0483, | ||
- | [22943.109852] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | ||
- | [22943.109855] usb 3-2: Product: Loco Positioning Node | ||
- | [22943.109858] usb 3-2: Manufacturer: | ||
- | [22943.109861] usb 3-2: SerialNumber: | ||
- | [22943.110697] cdc_acm 3-2:1.0: ttyACM3: USB ACM device | ||
- | $ | ||
- | </ | ||
- | |||
- | The serial port can be open with your favorite serial console, picocom: <code bash>$ picocom / | ||
- | |||
- | The node will print startup messages: | ||
- | < | ||
- | ==================== | ||
- | SYSTEM : CPU-ID: 1c0030000f51485336373420 | ||
- | TEST : Initializing pressure sensor ... [OK] | ||
- | TEST : Pressure sensor self-test ... [OK] | ||
- | TEST : EEPROM self-test ... [OK] | ||
- | TEST : Initialize DWM1000 ... [OK] | ||
- | CONFIG : EEPROM configuration read and verified | ||
- | CONFIG : Address is 0x1 | ||
- | CONFIG : Mode is Anchor | ||
- | CONFIG : Tag mode anchor list (6): 0x01 0x02 0x03 0x04 0x05 0x06 | ||
- | SYSTEM : Node started ... | ||
- | SYSTEM : Press ' | ||
- | </ | ||
- | |||
- | You can type h for help: | ||
- | < | ||
- | Help | ||
- | ------------------- | ||
- | 0-9 - set address | ||
- | a - anchor mode | ||
- | t - tag mode | ||
- | s - sniffer mode | ||
- | d - reset configuration | ||
- | h - This help | ||
- | </ | ||
- | |||
- | All settings will take effect after reset. they are saved in an I2C EEPROM onboard. ' | ||
==== Building and flashing ==== | ==== Building and flashing ==== | ||
Building and flashing is described in the [[https:// | Building and flashing is described in the [[https:// |