Differences between lec and lep

Hi,

Reading DW1001 Firmware API Guide

5.18 les
Show distances to ranging anchors and the position if location engine is enabled. Sending this command multiple times will turn on/off this functionality.
Example: dwm> les
1151[5.00,8.00,2.25]=6.48 0CA8[0.00,8.00,2.25]=6.51 111C[5.00,0.00,2.25]=3.18 1150[0.00,0.00,2.25]=3.16 le_us=2576 est[2.57,1.98,1.68,100]

5.19 lec
Show distances to ranging anchors and the position if location engine is enabled in CSV format. Sending this command multiple times will turn on/off this functionality.
Example: dwm> lec
DIST,4,AN0,1151,5.00,8.00,2.25,6.44,AN1,0CA8,0.00,8.00,2.25,6.50,AN2,111C,5.00,0.00,2.25,3.24,A N3,1150,0.00,0.00,2.25,3.19,POS,2.55,2.01,1.71,98

5.20 lep
Show position in CSV format. Sending this command multiple times will turn on/off this functionality.
Example: dwm> lep POS,2.57,2.00,1.67,97

But when execute the commands

dwm> les
dwm> [002839.360 INF] loc_data: 2
0) 82B8[-2.53,2.48,1.71,50,x85]
[i] 1) 9C85[-0.97,-0.59,0.34,50,x44]

dwm> lec[/i]
dwm> POS,0,9C85,-0.99,-0.55,0.26,50,xE5
[i]POS,1,82B8,-2.54,2.50,1.66,50,x26

[/i]dwm> lep
dwm> POS,0,82B8,-2.56,2.48,1.65,50,xC8
POS,1,9C85,-0.98,-0.54,0.30,50,x87

It seems that lec and lep responds the same

Best Regards,

Sergio

Hi Sergio,

Are you running LEC from an active tag or passive tag ?

You should get the distance to anchors when using LEC on an active tag.

Thank you,
Regards
Yves

Thank very much,

I was using a Listener (passive tag), if i use an active tag the response is:

dwm> les
[i]dwm> 05B7[0.00,0.00,0.00]=0.46 82B8[-3.00,3.00,0.00]=4.26 0F90[0.00,3.00,0.00]=3.35 C93B[-3.00,0.00,0.00]=3.15 le_us=2349 est[0.12,-0.16,0.23,100]

dwm> lec
[/i]
dwm> DIST,4,AN0,05B7,0.00,0.00,0.00,0.46,AN1,82B8,-3.00,3.00,0.00,4.05,AN2,0F90,0.00,3.00,0.00,3.34,AN3,C93B,-3.00,0.00,0.00,3.15,POS,-0.07,-0.04,0.350,100

dwm> lep
dwm> POS,-0.10,-0.23,0.36,100

Best Regards,

Sergio

Is there any command equivalent to les or lec or lep in SPI or UART Generic mode?

Hi Sergio,

Please take a look at the command dwm_loc_get. I would expect a similar behavior to les/lep if run on an active tag.

Thanks
Regards
Yves

Hi Sergio,

Please take a look at the command dwm_loc_get. I would expect a similar behavior to les/lep if run on an active tag.

Thanks
Regards
Yves

Thanks,

[color=#212121][size=medium][font=arial, sans-serif]Then to extract the positions of the tags through a passive node (listener) is not possible using SPI or Generic UART, only through the UART [/font][/size][/color][color=#212121][size=medium][font=arial, sans-serif]shell mode, right?[/font][/size][/color]

[color=#212121][size=medium][font=arial, sans-serif]Best Regards,[/font][/size][/color]

[color=#212121][size=medium][font=arial, sans-serif] Sergio[/font][/size][/color]