I am trying to run the example program provided for RPi generic APIs . However I am getting some issues .
As per the output , it looks like UART initialization is done , however Configuration failed , hence no location or anchor data is received.
Can anyone help to resolve this issue . Do I need to do a dwm_reset before starting ?
Program I am trying to run -" dwm1001_host_api/examples/ex1_TWR_2Hosts/tag/tag_cfg " after changing the Makefile to “INTERFACE_NUMBER = 0”
root@raspberrypi:/home/pi/decawave/dwm1001_host_api/examples/ex1_TWR_2Hosts/tag# ./tag_cfg
dwm_init(): dev0
Opening log file log.txt
LMH_UARTRX_Init()…
UART: Init start.
UART: Init done.
Setting to tag: dev0.
dwm_cfg_tag_set(&cfg_tag): dev0.
TIMED OUT <<<<<< UART: Received 0 bytes, expected 3 bytes, timed out in 1000 ms
UART: Received length=0
Wait 2s for node to reset.
TIMED OUT <<<<<< UART: Received 0 bytes, expected 7 bytes, timed out in 1000 ms
UART: Received length=0
Comparing set vs. get: dev0.
low_power_en cfg_tag=0 : cfg_node=166
meas_mode cfg_tag=0 : cfg_node=1
loc_engine_en cfg_tag=1 : cfg_node=36
common.led_en cfg_tag=1 : cfg_node=214
common.ble_en cfg_tag=1 : cfg_node=182
common.uwb_mode cfg_tag=2 : cfg_node=2109
common.fw_update_en cfg_tag=0 : cfg_node=92
Didnt work for me , can you please share the complete setting .
Just checked with UART Shell mode , lep and les are not giving any output .
Think some setting I need to tweak to make it work .
Is there anything else I need to do by initializing COM PORT or something , All i did was take source code from example , added bcm2835 library and compiled and ran .
[code]root@raspberrypi:/home/pi/decawave/dwm1001_host_api/examples/ex1_TWR_2Hosts/tag# ./tag_cfg
dwm_init(): dev0
Opening log file log.txt
LMH_UARTRX_Init()…
UART: Init start.
UART: Init done.
Wait 2s for node to reset.
Setting to tag: dev0.
dwm_cfg_tag_set(&cfg_tag): dev0.
TIMED OUT <<<<<< UART: Received 0 bytes, expected 3 bytes, timed out in 1000 ms
UART: Received length=0
Wait 2s for node to reset.
TIMED OUT <<<<<< UART: Received 0 bytes, expected 7 bytes, timed out in 1000 ms
UART: Received length=0
Comparing set vs. get: dev0.
low_power_en cfg_tag=0 : cfg_node=246
meas_mode cfg_tag=0 : cfg_node=1
loc_engine_en cfg_tag=1 : cfg_node=36
common.led_en cfg_tag=1 : cfg_node=237
common.ble_en cfg_tag=1 : cfg_node=38
common.uwb_mode cfg_tag=2 : cfg_node=2109
common.fw_update_en cfg_tag=0 : cfg_node=92
Followed the user manual document to check UART shell mode in windows and commands are working .
However with raspberry pi , ( les,lep,lec) commands are not working but the ut, apg commands are working .
I have connected a tag to PI and there are couple of anchors which are in direct LOS for the tag .