|
From: | Gautier Hattenberger |
Subject: | Re: [Paparazzi-devel] Connect AR Drone 2.0 through router, then multiple drones |
Date: | Thu, 16 Mar 2017 11:05:28 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
Hi,The 2013 document is probably completely outdated now, so don't rely to much on it.
Here is my situation to connect several ARDrones:- First, you can run the configuration script independently of anything. The script is located in the sw/tools/parrot folder on the ground station, and it is in fact doing a mix of telnet/ftp commands to produce the required changes (getting/settings parameters, executing commands, uploading/downloading files).
let's say your router has IP 192.168.2.254 with SSID 'wifiNetworkName' and your drone has 192.168.2.10. You can choose the AC_ID (from the paparazzi center, top left part) to be 10, it can help later but it is not mandatory. The script command would be:
./ardrone.py configure_network wifiNetworkName 192.168.2.10 managedsay 'yes' if it asks to update the wifi script if not done before and restart the drone with the router running. After boot, it should connect to the router, check with 'ping 192.168.2.10'. If it fails (wrong SSID usually), you'll need to connect to the drone using the direct serial console (http://wiki.paparazziuav.org/wiki/AR_Drone_2#Console_Fixing) which is really annoying (that's why there is a warning).
- Then you need to configure the airframe to define the drone IP (HOST parameter):
<configure name="HOST" name="192.168.2.$(AC_ID)"/>if AC_ID is equal to the last number of the address (with this you can also reuse the same airframe file for several drones if their IP is following the same principle), or:
<configure name="HOST" name="192.168.2.10"/> to fix the value.Now the GCS should know where to send the autopilot code (based on HOST param). In the other direction, the drone is broadcasting an UDP stream, so it is not needed to know the GCS IP.
I hope this clarify a bit. Don't hesitate to improve the documentation on the wiki.
Gautier Le 16/03/2017 à 08:38, cTrippen a écrit :
Hi there Gautier, Thank you for the reply. I would like to confirm a few things, if I may. At what point do you use the configure script? In the IMAV2013 document, it telnets the whole command to the drone once paparazzi is loaded to it. Is this the same point where I use the configure script? or can I set these things before build/upload? I have telnet'd to the drone post upload but couldn't find the file. My proposed command will be - ardrone.py configure_network --channel auto wifiNetworkName desiredDroneIP(192.168.2.10) managed Regarding the airframe file, ard2_basic.xml, my router IP is 192.168.2.254, so the entry in the file will be - line 7 <configure name="HOST" value="192.168.2.$(AC_ID)"/> Is the allocation of IP to the drone dynamic? and therefore successive drones will be numbered in sequence? or does the $(AC_ID) retain its current number? In which case, I will have to configure their default IP.Also, do I need to select this airframe file in the GCS? I am currentlyusing the ardrone2.xml from the examples folder. Regarding your warning, 'trouble to connect after restart', is that only if choosing the 'autostart' option? Thanks again Carl -- View this message in context: http://lists.paparazziuav.org/Connect-AR-Drone-2-0-through-router-then-multiple-drones-tp18279p18284.html Sent from the paparazzi-devel mailing list archive at Nabble.com. _______________________________________________ Paparazzi-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |