Bitcraze Virtual Machine doesn't recognize the positioning node

All discussions related to the Loco Positioning system
Post Reply
Eranga
Beginner
Posts: 4
Joined: Wed Jul 10, 2019 3:16 am

Bitcraze Virtual Machine doesn't recognize the positioning node

Post by Eranga » Thu Jul 11, 2019 6:45 am

Hi,
the Bitcraze positioning node was not recognised by the Bitcraze VM, even though the LPS configuration tool recognised it successfully.

Also, installed the extension pack also like in this video(https://www.youtube.com/watch?v=xM4nxSCWEac) and enabled the USB 2.0 in the Oracle preferences.

This is the code that I typed in the VM:

Code: Select all

bitcraze@ubuntu:~/projects/lps-node-firmware$ make
python2 tools/make/check-for-submodules.py
bitcraze@ubuntu:~/projects/lps-node-firmware$ make dfu
dfu-util -d 0483:df11 -a 0 -D bin/lps-node-firmware.dfu -s :leave
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: No DFU capable USB device available
Makefile:100: recipe for target 'dfu' failed
make: *** [dfu] Error 74
bitcraze@ubuntu:~/projects/lps-node-firmware$
Can anyone please help me to make the LPS node visible in the Bitcraze VM?

Thank you...

kimberly
Member
Posts: 47
Joined: Fri Jul 06, 2018 11:13 am

Re: Bitcraze Virtual Machine doesn't recognize the positioning node

Post by kimberly » Thu Jul 11, 2019 7:33 am

Hi!

Was the LPS node actually in DFU mode? Is only the blue LED at "power" lit up and nothing else?

Also, since I see that you using the source for the lps node firmware directly, did you follow the steps first in this tutorial: https://www.bitcraze.io/getting-started ... ng-system/ ?

Eranga
Beginner
Posts: 4
Joined: Wed Jul 10, 2019 3:16 am

Re: Bitcraze Virtual Machine doesn't recognize the positioning node

Post by Eranga » Fri Jul 12, 2019 1:30 am

Hi Kimberly,

The LPS node was in the DFU node since I correctly followed the steps on activating the DFU mode in the tutorial that you mentioned.

Only the pwr blue LED was lit continuously. I did the USB 2.0 enabling also. But the following error comes from the VM terminal when I type "make dfu". :roll:

Code: Select all

dfu-util: No DFU capable USB device available
Makefile:100: recipe for target 'dfu' failed
make: *** [dfu] Error 74
Please help...............

kimberly
Member
Posts: 47
Joined: Fri Jul 06, 2018 11:13 am

Re: Bitcraze Virtual Machine doesn't recognize the positioning node

Post by kimberly » Fri Jul 12, 2019 12:33 pm

The tutorial did explain to use LPS-tools instead of the terminal line, but that will fail as well if it can't find the DFU enabled usb device (the lps node). It could be a problem from the VM itself.

Are you using virtual box? It probably will be necessary to also install the "VirtualBox Extension Pack" to support your usb device. https://www.wikihow.tech/Connect-a-USB-to-Virtualbox

Let us know if this works for you

Eranga
Beginner
Posts: 4
Joined: Wed Jul 10, 2019 3:16 am

Re: Bitcraze Virtual Machine doesn't recognize the positioning node

Post by Eranga » Tue Jul 16, 2019 5:53 am

Hi Kimberly,

I re-installed and checked. But the device was not detected when I run the command "make dfu".

The same error came.

Even the file systems folder does not recognise a USB drive.

Please help I am struck on this...............

kimberly
Member
Posts: 47
Joined: Fri Jul 06, 2018 11:13 am

Re: Bitcraze Virtual Machine doesn't recognize the positioning node

Post by kimberly » Tue Jul 16, 2019 12:58 pm

Ah... USB problems with VM's are really difficult to solve. So you are not seeing the 'STMicroelectronisc STM32 BOOTLOADER' like in this image?
dfu_vm.png
Are you running the VM in Ubuntu, IOS or Windows?

kimberly
Member
Posts: 47
Joined: Fri Jul 06, 2018 11:13 am

Re: Bitcraze Virtual Machine doesn't recognize the positioning node

Post by kimberly » Tue Jul 16, 2019 1:05 pm

Just a small update, you have to make sure 'STMicroelectronisc STM32 BOOTLOADER' is selected: like this:
dfu_vm2.png
After selecting I got the following in my console:

Code: Select all

bitcraze@ubuntu:~/projects/lps-node-firmware$ make dfu 
dfu-util -d 0483:df11 -a 0 -D bin/lps-node-firmware.dfu -s :leave
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash  "
file contains 1 DFU images
parsing DFU image 1
image for alternate setting 0, (1 elements, total size = 89208)
parsing element 1, address = 0x08000000, size = 89200
Download	[=========================] 100%        89200 bytes
Download done.
done parsing DfuSe file
Transitioning to dfuMANIFEST state

Post Reply