Page 1 of 1

LPS Node Config/Crazyflie Config

Posted: Mon Apr 30, 2018 9:57 am
by Lain
Hi
Im new to the board. Was configuring my crazyflie to use the LPS. I placed the nodes and the client software saw them ok. I was trying to figure it out and clicked the button Switch Mode to TDOA. Before I clicked that the nodes were all green. After that, the nodes were red. Now I cant get them to go green again. Even if I switch mode back. After resetting everything, in Auto mode, it just switches between modes over and over.
Each node has 1 blue light for power (nothing on mode) the send and receive flick back and forth when the crazyflie is near.
The crazyflie Deck TX and RX just flick back and forth.
I flashed the crazyflie thinking maybe I had messed it up somehow.
i thought to try and flash the LPS Nodes, but when I try I cant get DFU to work (Just blue light comes on. and Upgrade is greyed out.) If I hit reset and try to set the Anchor number the Apply is grey.
I tried both in Sudo and regular mode (Running OS X)
Any ideas? Anway to reset everything? Debug it so I can see if everything is setup right? I am still new to Crazyflie so its possibly im not doing something correct.
Thank you!

Re: LPS Node Config/Crazyflie Config

Posted: Mon Apr 30, 2018 10:43 am
by arnaud
What is the state of the anchors when you power them up, what LED are lit-up or blinking?

You should always be able to flash the firmware to the nodes and configure them with USB. To start the anchors in DFU (programming) mode you should press the DFU button while inserting the USB port. Have you ever been able to flash the nodes?

Re: LPS Node Config/Crazyflie Config

Posted: Tue May 01, 2018 1:57 am
by Lain
When I power the nodes up, The Power light is Blue, and the RX is flickering Green.
When the Crazyflie is near it it the RX still flickers green but the SFD flickers orange and RXOK flickers red.
on the crazyflie the Tx flickers red sometimes RX flickers green and SFD goes orange a few times.

I was able to flash the Anchors Once when I first got them. but now when I plug in USB with the DFU button held down all I get is Power light staying on as Blue no other lights.

Thank you!

Re: LPS Node Config/Crazyflie Config

Posted: Wed May 02, 2018 8:23 am
by arnaud
It looks like your anchor are in TDoA mode (mode LED OFF, RX enable), but there is no anchor with Id 0 powered. TDoA requires at least the anchor with ID 0 to be powered in order to synchronized the anchor system.

When you plug the anchor while pressing the DFU button, can you see the anchors appear as an STM32 dfu bootloader in the system report? (it should look similar as on these screenshot but with stm dfu: https://wiki.bitcraze.io/projects:crazy ... l#mac_os_x)

Re: LPS Node Config/Crazyflie Config

Posted: Thu May 03, 2018 12:45 am
by Lain
Ah that makes sense, the Node that I assigned to 0 broke (The USB power cable attachment came off of 2 of my nodes and one of them happened to be 0.) Can I use a soldering iron to put the USB power component back?
As for USB Its not listed in the system report. (USB 3.0 just shows Bluetooth controller, Apple Internal KB and Gaming Mouse.)
unnamed.jpg
MacBook_Pro.png

Re: LPS Node Config/Crazyflie Config

Posted: Fri May 04, 2018 8:01 am
by tobias
It should be possible to put the USB connector back if the solder pads didn't get ripped from the PCB. Easiest would be using hot air but it will work using a soldering iron as well. Clean up the old solder with a solder wick first and it shouldn't be too hard. Let us know how it goes!

Re: LPS Node Config/Crazyflie Config

Posted: Tue May 08, 2018 11:33 am
by Lain
Thanks, I dont have a soldering iron right now (Need to get one)
What is the hot air technique you are talking about?
is it possible to reset the other nodes so I can set one of them to 0? I still cant see them on my OSX device.

Re: LPS Node Config/Crazyflie Config

Posted: Wed May 09, 2018 7:58 am
by kristoffer
It is possible to use a small hot air gun to heat the solder instead of a soldering iron. In some situations it is a better tool than a soldering iron but does not replace it.

Yes, it is possible to reconfigure one of the other nodes to id 0.
You can either use the LPS configuration tool as described in https://www.bitcraze.io/getting-started ... infostep75 or do it from the terminal.

It seems as you had some problems earlier, did you manage to flash and configure the anchors? I'm on OSX as well so it can be done :-)

The configuration tool is pretty well covered in the getting started guide, if you want to try the terminal way, this is what you have to do:

Connect the anchor to USB.
Type

Code: Select all

ls -l /dev 
to get a list of all devices. The anchor will get a name starting with 'tty.usbmodem', something like 'tty.usbmodem142521'

When you have found the name, open it using screen

Code: Select all

screen /dev/tty.usbmodem142521
This should give you the anchor menu where you can configure it.

Code: Select all

SYSTEM  : CPU-ID: 350018000351485732303920
TEST    : Initializing pressure sensor ... [OK]
TEST    : Pressure sensor self-test ... [OK]
TEST    : EEPROM self-test ... [OK]
CONFIG  : EEPROM configuration read and verified
TEST    : Initialize UWB  ... [OK]
CONFIG  : Address is 0x6
CONFIG  : Mode is TDoA Anchor V2
CONFIG  : Tag mode anchor list (6): 0x01 0x02 0x03 0x04 0x05 0x06 
CONFIG  : Anchor position enabled: true
CONFIG  : Anchor position: 1.820000 1.800000 0.150000
CONFIG  : SmartPower enabled: True
CONFIG  : Force TX power: False
SYSTEM  : Node started ...
SYSTEM  : Press 'h' for help.
Note: screen messes up the terminal so when you exit it you might want to restore settings by typing

Code: Select all

reset

Re: LPS Node Config/Crazyflie Config

Posted: Sun Jan 06, 2019 7:43 pm
by HuzayfaaN
Hi,

I would like to ask if you managed to solder the component back on and if whether it then functioned as would be expected? I have had the same issue and was wondering if this would be a suitable solution/fix.

Many thanks for your help. I look forward to hearing back from you. :)

Cheers,
Huzayfaa