Connecting to WiFi
At a glance
For reference only: working Bebops are already on the Indoor Lab LAN. This tutorial sets a Bebop's Wi-Fi network and static IP address.
Everything on this page runs on a Linux computer.
For Reference Only
All working Bebops should already be connected to the Indoor Lab LAN. This tutorial is provided only for reference. Do not follow it unless a Bebop has lost its network settings.
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
Clone the Repository
git clone https://github.com/tnaegeli/multiple_bebops.git
Navigate to the Cloned Directory
cd multiple_bebops
Edit shortpress_3.sh to Set SSID, Password, and Static IP
- Open
shortpress_3.shin a text editor. - Modify the following variables. The Indoor Lab Wi-Fi name (SSID) is
NCRLab(the 5 GHz network isNCRLab_5GHz). For the password, see Contacts.
SSID: 'NCRLab'
PW: 'Unknown'
IP: 192.168.1.1XX
- The IP must be in the correct range—refer to IP Reservations.
- After configuring, add the new IP to the reservations list.
Step 2: Connect to the Bebop Using Android Debug Bridge (ADB)
Install adb (If Not Installed)
sudo apt-get install android-tools-adb
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
Run the File Copy Script
./copy_files.sh
Open a Shell on the Bebop
adb shell
Edit the Boot File Using vim
vi /etc/init.d/rcS
To write to file, using vim type I to enter insert mode. To save and exit vim press escape to exit insert mode, then :wq to write to file and exit.
Add This Line to the End of the rcS File Just Above the exit 0 Line.
./bin/onoffbutton/shortpress_3.sh
Run ifconfig
Run the following code in the shell
ifconfig eth0 192.168.1.1XX netmask 255.255.255.0 up
1XX is your desired IP.
Exit the adb Shell
You're in a shell within a shell. Type
exit
Disconnect and Reboot the Bebop
adb disconnect
Unplug the USB and restart the drone.
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! (see IP Reservations)
Notes
- Ensure all Bebop IPs are unique and in the reserved range.
- If
adbisn'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 /
adb disconnect. You can force a disconnect using: adb kill-server.