DWM1001 listener mode error

Hi,

I have set the DWM1001 in listener mode and ran “lec” to receive position data from UART. Randomly, I receive the following error:

==========================
assertion “0 != p_ble_evt” failed: file “/virtual/projects/leaps/git/910-argo/src/lib/ble/ble-server.c”, line 2212, function: ble_server_on_ble_evt
app_error_print():

Fault identifier: 0x4001

Program counter: 0x0

Fault information: 0x2000AE6C

Line Number: 38

File Name: /virtual/projects/leaps/git/910-argo/src/ecos/lib/ble/process-ble.c

Error Code: 0x1

======================
A few seconds before this error I receive the following message:

[003338.280 INF] uwb: tdma (not synced)
[003338.280 INF] uwb: reinit
[003358.030 INF] uwb: tdma (synced)

Any idea why it happens and how to solve it?

Thanks

Arash

Hi Arash,

Can you please run “si” on the node and send on the output ?

Thanks
Regards
Yves

Hi Yves,

Thanks for the reply. Here is the result of “si” command. This is just after turning on the device. If you need the result after the issue I have to keep it running till it happens.

Best regards,
Arash

==========================

dwm> si
[000023.890 INF] cfg:
[000023.890 INF] >fw2=x00044000
[000023.890 INF] board=DWM1001_A2
[000023.890 INF] cfg_ver=x00010700
[000023.900 INF] fw_ver=x01010501
[000023.900 INF] hw_ver=xDECA002A
[000023.900 INF] opt=x13C1A340
[000023.910 INF] fw_size[0]=x0001F000
[000023.910 INF] fw_size[1]=x00022000
[000023.910 INF] fw_size[2]=x0003C000
[000023.920 INF] fw_csum[0]=x9445F89E
[000023.920 INF] fw_csum[1]=x36D9BFF1
[000023.930 INF] fw_csum[2]=x222552AD
[000023.930 INF] opt: ACC LEDS PASV TWR LE BPC UWB0 BLE I2C SPI UART
[000023.940 INF] mcu: temp=22.5 hfclk=xtal:on lfclk=rc:on
[000023.940 INF] uptime: 00:00:23.940 0 days (23940 ms)
[000023.950 INF] mem: free=3424 alloc=11680 tot=15104
[000023.950 INF] uwb: ch5 prf64 plen128 pac8 txcode9 rxcode9 sfd0 baud6800 phrex t sfdto129 smart1
[000023.960 INF] uwb: tx_pwr=xC5/x2B4B6B8B 125:250:500:norm[ms]=20:17:14:11[dB] pgcnt=713 temp=13
[000023.970 INF] uwb0: lna=0 xtaltrim=27 tx_delay=16472 rx_delay=16472
[000023.980 INF] uwb0: ID dev=xDECA0130 part=xC4B49C21 lot=x013A6102
[000023.990 INF] uwb0: panid=xB5A6 addr=xDECA8734B5449C21
[000023.990 INF] mode: tn (pasv,twr,np,le)
[000024.000 INF] uwbmac: disconnected
[000024.000 INF] ble: addr=D1:F5:C2:1A:55:CA
dwm>

====================================

UPDATE:
After about 1.5 hours I received the error. Here is the “lec” output when error occurs and the result of “si” after that:

[005199.680 INF] uwb: tdma (not synced)
[005199.680 INF] uwb: reinit
[005219.340 INF] uwb: tdma (synced)
POS,0,1698,27.54,4.24,0.90,50,xDC
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
POS,0,0000,0.00,0.00,0.00,0,x00
assertion “0 != p_ble_evt” failed: file “/virtual/projects/leaps/git/910-argo/src/lib/ble/ble-server.c”, line 2212, function: ble_server_on_ble_evt
app_error_print():
Fault identifier: 0x4001
Program counter: 0x0
Fault information: 0x2000AE6C
Line Number: 38
File Name: /virtual/projects/leaps/git/910-argo/src/ecos/lib/ble/process-ble.c
Error Code: 0x1

DWM1001 TWR Real Time Location System

Copyright : 2016-2017 LEAPS and Decawave
License : Please visit https://decawave.com/dwm1001_license
Compiled : Nov 20 2017 12:51:26

Help : ? or help

dwm> si
[000285.130 INF] cfg:
[000285.130 INF] >fw2=x00044000
[000285.130 INF] board=DWM1001_A2
[000285.140 INF] cfg_ver=x00010700
[000285.140 INF] fw_ver=x01010501
[000285.140 INF] hw_ver=xDECA002A
[000285.150 INF] opt=x13C1A340
[000285.150 INF] fw_size[0]=x0001F000
[000285.150 INF] fw_size[1]=x00022000
[000285.160 INF] fw_size[2]=x0003C000
[000285.160 INF] fw_csum[0]=x9445F89E
[000285.160 INF] fw_csum[1]=x36D9BFF1
[000285.170 INF] fw_csum[2]=x222552AD
[000285.170 INF] opt: ACC LEDS PASV TWR LE BPC UWB0 BLE I2C SPI UART
[000285.180 INF] mcu: temp=26.5 hfclk=xtal:on lfclk=rc:on
[000285.180 INF] uptime: 00:04:45.180 0 days (285180 ms)
[000285.190 INF] mem: free=3424 alloc=11680 tot=15104
[000285.190 INF] uwb: ch5 prf64 plen128 pac8 txcode9 rxcode9 sfd0 baud6800 phrext sfdto129 smart1
[000285.200 INF] uwb: tx_pwr=xC4/x2B4B6B8B 125:250:500:norm[ms]=20:17:14:11[dB] pgcnt=713 temp=13
[000285.210 INF] uwb0: lna=0 xtaltrim=27 tx_delay=16472 rx_delay=16472
[000285.220 INF] uwb0: ID dev=xDECA0130 part=xC4B49C21 lot=x013A6102
[000285.230 INF] uwb0: panid=xB5A6 addr=xDECA8734B5449C21
[000285.230 INF] mode: tn (pasv,twr,np,le)
[000285.240 INF] uwbmac: disconnected
[000285.240 INF] ble: addr=D1:F5:C2:1A:55:CA
dwm>

1 Like

Hi @Arash were you able to figure out how to prevent this and debug the error and what does “uwbmac:disconnected” signifies

Hi Makcst,

The “uwbmac:disconnected” signifies the device is not synchronized with the network anymore. It usually happens when the node is not in LOS with a device which has joined the network (as a consequence the node cannot join itself)

Regarding the initial issue, Arash, are you using a default image or a custom made one (with user app?)

Thanks
Yves

Hi Yves,

I am using the default image. I haven’t customized it.

Regards,
Arash

Hi Arash,

Then can you please download the following files and flash the image from the Factory Firmware Image directory ?

https://www.decawave.com/dwm1001-dw10001-dev-and-mdek1001-documents-source-code-android-application-firmware-image

I’m not sure why but it looks like the image you currently have is not the last one (Compiled : Nov 20 2017 12:51:26) while I would expect ( Compiled : Nov 29 2017 13:35:02).

Thanks
Yves

Hi Yves,

Thank you for the update. I will use the Factory Firmware you gave and let it run. I hope the problem will be fixed.

Kind regards,

Arash

Hi Arash,

Yes please let me know if it happens again.

We’re going to release a new verison in the coming weeks, that should be anyway much more robust against those kind of bugs.

Regards
Yves

Hello Yves,

We have the same problem with the listener. Sometimes, I don’t know why, the listener throws the next error:

assertion “0 != p_ble_evt” failed: file “/data/git/d7.4-rc19_pwm_test/910-argo/src/lib/ble/ble-server.c”, line 2212, function: ble_server_on_ble_evt
app_error_print():
Fault identifier: 0x4001
Program counter: 0x0
Fault information: 0x2000AE7C
Line Number: 38
File Name: /data/git/d7.4-rc19_pwm_test/910-argo/src/ecos/lib/ble/process-ble.c
Error Code: 0x1

The listener’s version:

DWM1001 TWR Real Time Location System
Copyright : 2016-2017 LEAPS and Decawave
License : Please visit https://decawave.com/dwm1001_license
Compiled : Nov 29 2017 13:35:02
Help : ? or help

King regards,

Inaki

Hi Inaki,

Can you please provide more information regarding the number of tags active in the system when the bug happens and what is their update rate. Similarly do you have info regarding the number of anchors, and the overall network topology ? (So distance between anchors, etc …)

Thank you,
Regards
Yves

Hi Yves,
First of all, thank you for your fast reply.
We have mounted one demo sytem for development purpouses in our office.
The place has 25 x12 meters. We have installed 4 anchors and 3 tags.
The anchors are mounted like a square with 10 meters for each side.
The refresh rate for the tags are, 2Hz, 5Hz,and the last 0,017Hz
The listener is installed in a raspberry pi 3b and we are parsing data from serial port and lep command
The listener is in the middle of the place.
The system is working fine, but sometimes throws this error and the listener stops sending positions through serial

Thank you,

Regards

Inaki

Hi Inaki,

Well at the moment we’re not quite sure what is the root cause.

We’re going to release a new version in the coming weeks for which the issue should be fixed.

Maybe keep an eye on the forum until it is released.

Thanks
Yves

Hi Yves,

I’m looking foorward to releasing the next version.

Thank you,
Regards
Iñaki