Decawave listener mode

Hello

I’m trying to put a tag in listener mode but I do not know how to execute the les and lec commands.

Some help?

Please read the MDEK1001 Kit User Manual, the listener should be connected to a PC and then on a terminal window e.g. teraterm type the command. To enable shell mode on a unit you need to press “enter” couple of time consecutively. - see DWM1001 Firmware UG

Hello Jackdan,

I had the same problem, and just solved it.

To get position data you need to enter shell mode, to do this connect through serial port or usb at 115200 bauds and press enter a couple of times (I send 0x0D - carriage return two times and it enters shell mode showing “dwm>” as prompt.

I use this basic Python code to read data using a raspberry:

[code]import serial
import time

ser = serial.Serial(
port=‘/dev/serial0’,
baudrate=115200,
timeout=0.1
)

ser.write(b’\r\r’)

res=ser.read(10)
time.sleep(0.5)
ser.write(b’lep\r’)

print res

while True:
res=ser.read(100)
if len(res)>0:
print res[/code]

Cheers