dwm1001_apiCommands.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """ For more info on the documentation go to https://www.decawave.com/sites/default/files/dwm1001-api-guide.pdf
3 """
4 
5 from dwm1001_systemDefinitions import SYS_DEFS
6 
7 
8 __author__ = SYS_DEFS.AUTHOR
9 __version__ = SYS_DEFS.VERSION
10 __maintainer__ = SYS_DEFS.MAINTAINER
11 __email__ = SYS_DEFS.EMAIL
12 __status__ = SYS_DEFS.STATUS
13 
14 
16  DOUBLE_ENTER = b'\r\r' # ASCII char for double Enter
17  SINGLE_ENTER = b'\r' # ASCII char for single Enter
18  HELP = b'?' # Display help
19  QUIT = b'quit' # Quit API shell mode
20  GC = b'gc' # Clears GPIO pin
21  GG = b'gg' # Reads GPIO pin level
22  GS = b'gs' # Sets GPIO as output and sets its value
23  GT = b'gt' # Toggle GPIO(must be an output)
24  F = b'f' # Show free memory on the heap
25  PS = b'ps' # Show info about running threads
26  PMS = b'pms' # Show power managements tasks. IDL means that task is idle. USE means that task is allocated in the power management
27  RESET = b'reset' # reset the dev board
28  UT = b'ut' # Show device uptime
29  FRST = b'frst' # Factory reset
30  TWI = b'twi' # General purpose I2C/TWI read
31  AID = b'aid' # Read ACC device ID
32  AV = b'av' # Rad ACC values
33  LES = b'les' # Show distances to ranging anchors and the position if location engine is enabled
34  LEC = b'lec' # Show measurement and position in CSV format
35  LEP = b'lep' # Show position in CSV format.Sending this command multiple times will turn on/off this functionality.
36  SI = b'si' # System Info
37  NMG = b'nmg' # Get node mode info
38  NMO = b'nmo' # Enable passive offline option and resets the node
39  NMP = b'nmp' # Enable active offline option and resets the node.
40  NMA = b'nma' # Configures node to as anchor, active and reset the node.
41  NMI = b'nmi' # Configures node to as anchor initiator, active and reset the node.
42  NMT = b'nmt' # Configures node to as tag, active and reset the node
43  NMTL = b'nmtl' # Configures node to as tag, active, low power and resets the node.
44  BPC = b'bpc' # Toggle UWB bandwidth / tx power compensation.
45  LA = b'la' # Show anchor list
46  STG = b'stg' # Display statistics
47  STC = b'stc' # Clears statistics
48  TLV = b'tlv' # Parses given tlv frame, see section 4 for valid TLV commands
49  AURS = b'aurs' # Set position update rate. See section 4.3.3 for more detail.
50  AURG = b'aurg' # Get position update rate. See section 4.3.4 for more details
51  APG = b'apg' # Get position of the node.See section 3.4.2 for more detail
52  APS = b'aps' # Set position of the node.See section 3.4.2for more detail
53  ACAS = b'acas' # Configures node as anchor with given options
54  ACTS = b'acts' # Configures node as tag with given options


dwm1001_ros
Author(s):
autogenerated on Mon Jun 10 2019 13:05:20