Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 2.16 KB

wifi.md

File metadata and controls

64 lines (45 loc) · 2.16 KB

Switching between station mode and wifi mode

Background

The drone operates in two modes: station mode and wifi mode. Station mode means that the drone connects to an existing wifi router. Wifi mode means that the drone creates a wifi and you may connect to it.

Neither of the two modes are perfect: Camera-related stuff usually doesn't work in station mode. Emergency shutdown button doesn't work in wifi mode.

Which mode is it in right now?

  1. Turn your drone on.
  2. Use your mobile phone to scan existing wifi.
    • If you see a wifi named TELLO-<droneId>, then that must be in wifi mode.
    • If you can't see, then it is in station mode.

Does the mode reset after removing the battery of the drone?

No. Mode won't change unless you purposefully do so.

Switch from station mode to wifi mode

  1. Turn your drone on if you haven't done so.
  2. Press the power button on your drone for about 5 seconds and then release.
  3. Your drone is now in wifi mode. Connect your laptop to TELLO-<droneId> to operate your drone.
  4. Be mindful about the fact that you no longer have emergency shutdown button.

Switch from wifi mode to station mode

  1. Update the ELE115 project template to the newest version (v1.4 or higher). (How?)

  2. Create a project. We suggest you name it as wifi-to-station.

    Note: You don't have to setup Git for this.

  3. Code Main.java as follow:

    package com.github.ele115.<your_netid>.wifi_to_station;
    
    import com.github.ele115.tello_wrapper.Tello;
    
    public class Main
    {
        public static void main(String[] args)
        {
            var drone = Tello.Connect("<droneId>");
            drone.setStationMode("ELE115-TELLO", "<password>");
        }
    }

    Note: Don't include <,> into your code.

  4. Turn your drone on if you haven't done so.

  5. Wait for about 3 seconds.

  6. Connect your laptop to the wifi named TELLO-<droneId>.

  7. Run the code.

  8. Wait for about 30 seconds.

  9. Your drone is now in station mode. Connect your laptop to ELE115-Tello to operate your drone.