B4J Library [B4X] Ryze/DJI Tello drone SDK -app

Discussion in 'B4J Libraries & Classes' started by inakigarm, May 10, 2018.

  1. inakigarm

    inakigarm Well-Known Member Licensed User

    Ryze/DJI Tello drone is a cheap drone (99$) - more info on https://www.ryzerobotics.com/tello

    Some of the interesting features are altitude stabilization, WIFI control - mobile app, camera image stabilization, etc and, of course, control the drone thanks to the IOS/Android app, Droneblocks and public SDK that Ryze have provided (https://dl-cdn.ryzerobotics.com/downloads/tello/0228/Tello+SDK+Readme.pdf).

    tello drone.png

    The community is providing access to control Tello drones via Phyton, Javascript (Tello.js), C++, Gobot, etc..(look at https://tellopilots.com ) Although the SDK covers many actions/commands on Tello drone, there're also some libraries to access actions/parameters/commands that public SDK don't provide (like video stream, etc.. as people have decompiled the Android APK and sniffed the UDP message traffic between mobile and the drone) - https://bitbucket.org/PingguSoft/pytello/src

    I've adapted the SDK access to B4X, simply by accessing the Tello drone (via WIFI connection) via UDP to the drone IP ( , port 8889 and sending the commands included at SDK doc.Actually is out of my scope to adapt the full access phyton code to B4X and have the chance to get the video stream into a view, even adapt some OpenCV code to provide other facilities like follow me mode, hacking the altitude limit - hacked already-, etc.... So if someone gets this drone, this post can serve as info repository.

    I hope you'd enjoy this drone as much I'm enjoying this little beast.

    EDIT: 13/05/2018 ---> Attached the B4J program with the Tello Class inside (valid to B4J/B4A/B4i) and a video demo.


    Attached Files:

    Last edited: May 13, 2018
    amaxco, JordiCP, Jorge M A and 5 others like this.
  2. TnP

    TnP Member Licensed User

    Ooh nice to see this here! I've been following the various threads on TelloPilots and hoping to get time to port some of the Python code to B4A but I've nothing to contribute yet sadly.
    It's a great little drone for the price and I think the Open Source community will make it even better!
    inakigarm likes this.
  3. demasi

    demasi Active Member Licensed User

    Gread Job! I tried with my Tello, worked very well, and open a new world of possibilities.
    Thank you for your work.
    inakigarm likes this.
  4. Star-Dust

    Star-Dust Expert Licensed User

    Yesterday I bought the DJI Tello and I'm studying the material that you posted and all the documentation provided by DJI.

    I must say that it is more interesting than I thought, it has many more functions and commands than I expected to see it.

    I'm trying to produce an application that fully exploits it. But it seems that a tablet would be better, because it would allow you to enter more commands than you can afford to put in a Smartphone screen
    Last edited: Nov 19, 2018
    inakigarm likes this.
  5. Star-Dust

    Star-Dust Expert Licensed User

    @inakigarm have you tried to do something with the low-level command?

    I have extended your class slightly. Just completed if you want the post here
  6. inakigarm

    inakigarm Well-Known Member Licensed User

    No (about 4 months without flying my Tello ;-( ).
    For info about low level commands you'll have to dig into https://tellopilots.com
    Good luck !
  7. Star-Dust

    Star-Dust Expert Licensed User

    I had already seen the commands, you told me the link.
    There are some bytes of the comand that contain CRC8 verification codes and others with CRC16 that I would like to understand how to develop.

    PS if I do not use the Tello better give it. I am available to receive it :D
    inakigarm likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice