Skip to content

Configuring the WiFi on Bebops

Configure the network and IP on Bebop 2 drones and make changes persistent by adding them to the boot sequence.


Step 1: Clone GitHub Repository and Edit shortpress_3.sh


1. Clone the repository:

git clone https://github.com/tnaegeli/multiple_bebops.git

2. Navigate to the cloned directory:

cd multiple_bebops

3. Edit shortpress_3.sh to set SSID, password, and static IP:

  • Open shortpress_3.sh in a text editor.
  • Modify the following variables (Fill the NCR wifi password in. It is on the router!):
SSID: 'NCRLab'
PW: '$NCR_WIFI_PW'
IP: 192.168.1.1XX
  • The IP must be in the correct range—refer to the Autonomy Park NCR Lab IP Reservations document on Google Drive.
  • After configuring, add the new IP to the reservations list.

Step 2: Connect to the Bebop Using Android Debug Bridge (ADB)


1. Install adb (if not installed):

sudo apt-get install android-tools-adb

2. Connect adb to the Bebop:

  • Connect the Bebop to your computer via USB.
  • Power on the Bebop and wait for the LED to remain solid.
  • Press the power button four times until you hear the beeping sound.
  • Then run:
adb connect 192.168.43.1:9050
  • A successful message should read:
    connected to 192.168.43.1:9050

Step 3: Run Script and Add to Boot


1. Run the file copy script:

./copy_files.sh

2. Open a shell on the Bebop:

adb shell

3. Edit the boot file:

nano /etc/init.d/rcS

4. Add this line to the end of the rcS file just above the exit 0 line:

./bin/onoffbutton/shortpress_3.sh

5. Run ifconfig

Run the following code in the shell

ifconfig eth0 192.168.1.XXX netmask 255.255.255.0 up
where XXX is your desired IP.

5. Disconnect and reboot the Bebop:

adb disconnect

Unplug the USB and restart the drone.


6. Assign static IP to Bebop

Now,the Bebop will show up on the TP-Link portal. Once the Bebop connects, log into the router and assign the IP reservation for the desired address under Advanced -> DHCP Server. Don't forget to add the IP to the Google Sheet! (IP Reservations - NCR Lab)


Notes

  • Ensure all Bebop IPs are unique and in the reserved range.
  • If adb isn't working, confirm the drone is powered on and connected via USB.
  • If you encounter file system permission issues, remount the filesystem as writable:
adb shell mount -o remount,rw /