Hi TDK,
Thank you for your response. Here are the answers to your questions.
Thanks,
Ben.
Which Raspberry hardware revision are you using? If possible please send a picture of the Raspberry with the DWM1001.
Raspberry Pi 3 Model B V1.2
Is the DWM1001 reflashed with the R2 binary?
yes, as you can see from the “si” command
[000542.280 INF] sys: fw2 fw_ver=x01030001 cfg_ver=x00010700
[000542.280 INF] uwb0: panid=xA4BD addr=xDECA55C8F000419F
[000542.290 INF] mode: bn (act,-)
[000542.290 INF] uwbmac: disconnected
[000542.290 INF] enc: off
[000542.300 INF] ble: addr=CC:89:A0:B9:90:A8
Which Raspberry Image are you using? The official one from the Release 2?
Yes, DRTLS_raspbian_R2.0.img
How do you start the DWM Daemon? Manually or just restarted the Raspberry?
The daemon seems to start automatically when the Pi boots. However, it then stops after a few seconds with the error below.
Issuing a “sudo service dwm1001 restart” restarts the daemon but it stops again with the same error in the log.
From dwm-daemon.log:
Fri Apr 12 09:17:06 UTC 2019
Starting daemon dwm-daemon with command ‘/usr/local/bin/dwm-daemon’ and options ‘-c /etc/dwm1001/dwm1001.config -l /var/log/dwm-daemon.log’…
2019-04-12 09:17:06.989 INFO [519] [leaps::core::run@60] starting…
2019-04-12 09:17:07.012 ERROR [519] [leaps::core::write@388] write failed! error -1
2019-04-12 09:17:12.014 INFO [519] [leaps::core::run@134] stopping…
Fri Apr 12 09:23:17 UTC 2019
Stopping daemon dwm-daemon…
Fri Apr 12 09:23:17 UTC 2019
Starting daemon dwm-daemon with command ‘/usr/local/bin/dwm-daemon’ and options ‘-c /etc/dwm1001/dwm1001.config -l /var/log/dwm-daemon.log’…
2019-04-12 09:23:18.002 INFO [913] [leaps::core::run@60] starting…
2019-04-12 09:23:18.005 ERROR [913] [leaps::core::write@388] write failed! error -1
2019-04-12 09:23:23.007 INFO [913] [leaps::core::run@134] stopping…
Can you get the system working or it keeps failing like this?
It has always failed like this since I set it up. Gateway shows in web application but no tags or anchors.
Can you enter the module shell using: minicom -D /dev/serial0 (and double enter)?
Yes, see some outputs here:
Welcome to minicom 2.7
OPTIONS: I18n
Compiled on Apr 22 2017, 09:14:19.
Port /dev/serial0, 09:18:47
Press CTRL-A Z for help on special keys
[000542.280 INF] sys: fw2 fw_ver=x01030001 cfg_ver=x00010700
[000542.280 INF] uwb0: panid=xA4BD addr=xDECA55C8F000419F
[000542.290 INF] mode: bn (act,-)
[000542.290 INF] uwbmac: disconnected
[000542.290 INF] enc: off
[000542.300 INF] ble: addr=CC:89:A0:B9:90:A8
dwm>
dwm> la
[001101.680 INF] AN: cnt=6 seq=x08
[001101.680 INF] 0) id=DECA149CA6315412 seat=0 seens=203 rssi=-78
[001101.690 INF] 1) id=DECABDC348205013 seat=1 seens=195 rssi=-78
[001101.690 INF] 2) id=DECA2A90BC9082AC seat=2 seens=6 rssi=-79
[001101.700 INF] 3) id=DECAC8AB2AE28330 seat=3 seens=21 rssi=-79
[001101.710 INF] 4) id=DECAA63581B0599C seat=4 seens=117 rssi=-79
[001101.710 INF] 5) id=DECAD22BA6628F16 seat=5 seens=129 rssi=-79
[001101.720 INF]
dwm> lb
[001108.010 INF] BN: cnt=1 seq=x76
[001108.010 INF] 0) id=DECA55C8F000419F seat=1 seens=0 rssi=-127
[001108.020 INF]
dwm>
Please send outputs of the commands on the failing system:
lsmod
ls -la /dev/dwm0
ps ax | grep dwm
pi@raspberrypi:/var/log $ lsmod
Module Size Used by
fuse 110592 3
rfcomm 49152 4
bnep 20480 2
hci_uart 36864 1
btbcm 16384 1 hci_uart
serdev 20480 1 hci_uart
bluetooth 368640 29 hci_uart,bnep,btbcm,rfcomm
ecdh_generic 28672 1 bluetooth
evdev 24576 2
joydev 20480 0
hid_logitech_hidpp 36864 0
spidev 16384 0
binfmt_misc 20480 1
sg 28672 0
uas 24576 0
hid_logitech_dj 20480 0
brcmfmac 307200 0
brcmutil 16384 1 brcmfmac
cfg80211 573440 1 brcmfmac
rfkill 28672 6 bluetooth,cfg80211
snd_bcm2835 32768 1
snd_pcm 98304 1 snd_bcm2835
snd_timer 32768 1 snd_pcm
snd 69632 5 snd_timer,snd_bcm2835,snd_pcm
spi_bcm2835 16384 0
uio_pdrv_genirq 16384 0
uio 20480 1 uio_pdrv_genirq
fixed 16384 0
i2c_dev 16384 0
ip_tables 24576 0
x_tables 32768 1 ip_tables
ipv6 425984 53
pi@raspberrypi:/var/log $ ls -la /dev/dwm0
ls: cannot access ‘/dev/dwm0’: No such file or directory
pi@raspberrypi:/var/log $ ps ax | grep dwm
520 ? Sl 0:02 /usr/local/bin/dwm-proxy -c /etc/dwm1001/dwm1001-proxy.config
875 ? Sl 0:01 leafpad /home/pi/Desktop/dwm.txt
1376 pts/0 S+ 0:00 grep --color=auto dwm