element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Attack of the Drones
  • Challenges & Projects
  • Project14
  • Attack of the Drones
  • More
  • Cancel
Attack of the Drones
Blog Telegram Controlled Drone #4 : Integration and Testing
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Attack of the Drones to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jissdeodates
  • Date Created: 25 May 2021 4:11 PM Date Created
  • Views 2377 views
  • Likes 4 likes
  • Comments 8 comments
  • m5stack
  • telegram
  • drone
  • telegram control
  • attackofdronesch
  • dji tello
  • attackofthedronesch
Related
Recommended

Telegram Controlled Drone #4 : Integration and Testing

jissdeodates
jissdeodates
25 May 2021

Integration

 

A middleware is required to interact between the telegram API and the drone.

If the M5Stack module is connected to the drone via WiFi, it won't be able to access the Telegram API calls due to the absence of internet connectivity.

To overcome this we use a laptop as middleware for accessing the telegram API calls and sending the commands to the M5Stack module via a serial connection.

 

Telegram Controlled Drone
                                                                              Telegram Controlled Drone

 

Testing

 

Let's see the telegram @DroneTellobothttps://telegram.me/DroneTellobotin action.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Telegram API calls in progress
                                                                      Telegram API calls in progress
Blog Series:
Telegram Controlled Drone #1 : Introduction
Telegram Controlled Drone #2 : Preparation - Drone and M5Stack module
Telegram Controlled Drone #3 : Preparation - Telegram Bot
Telegram Controlled Drone #4 : Integration and Testing
Telegram Controlled Drone #5 : Conclusion and Future Scope
  • Sign in to reply

Top Comments

  • jissdeodates
    jissdeodates over 4 years ago in reply to shabaz +3
    Hi shabaz , a very interesting question. Let me explain For testing, we are using the DJI Tello drone which is the only drone available to us. It can only be controlled by connecting to the soft AP provided…
  • shabaz
    shabaz over 4 years ago +2
    Hi, Impressed this works given the risk/chance of delay via the app and protocol, but was curious, what is the M5module doing? Couldn't it be removed, and send UDP directly from the laptop? Or some other…
  • jissdeodates
    jissdeodates over 4 years ago in reply to neilk +2
    Hi neilk , answered in shabaz's comment
Parents
  • shabaz
    shabaz over 4 years ago

    Hi,

     

    Impressed this works given the risk/chance of delay via the app and protocol, but was curious, what is the M5module doing? Couldn't it be removed, and send UDP directly from the laptop? Or some other reason it was used?

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jissdeodates
    jissdeodates over 4 years ago in reply to shabaz

    Hi shabaz, a very interesting question.

    Let me explain image

     

    For testing, we are using the DJI Tello drone which is the only drone available to us.

    It can only be controlled by connecting to the soft AP provided by the drone itself and it uses this connection to accept commands via UDP port 8889.

    As quoted in the integration section of the above blog post, if the laptop/m5module is directly connected to this AP, we will lose internet access and thus the ability to access the Telegram API calls.

    So as a workaround, we use the laptop to access the Telegram API and forward the commands to m5module (via serial) which then connects to the Tello drone WiFi to control it.

     

    Either the laptop or m5module could have been completely removed if the Tello allowed connection to a custom AP such as our home WiFi.

    We had researched this possibility a lot before pinning it down to use the laptop-m5module setup.

    https://tellopilots.com/threads/is-it-posible-to-change-wifi-network-somehow.220/

    There are indeed some suggestions in the above forum to use a 'WiFi router with 2 bridged wifi virtual interfaces' which is confusing. Anyways, no one seems to have had a positive result so far using any techniques.

     

    Please let us know if you have a workaround in your thoughts image

     

    Jiss

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • jissdeodates
    jissdeodates over 4 years ago in reply to shabaz

    Hi shabaz, a very interesting question.

    Let me explain image

     

    For testing, we are using the DJI Tello drone which is the only drone available to us.

    It can only be controlled by connecting to the soft AP provided by the drone itself and it uses this connection to accept commands via UDP port 8889.

    As quoted in the integration section of the above blog post, if the laptop/m5module is directly connected to this AP, we will lose internet access and thus the ability to access the Telegram API calls.

    So as a workaround, we use the laptop to access the Telegram API and forward the commands to m5module (via serial) which then connects to the Tello drone WiFi to control it.

     

    Either the laptop or m5module could have been completely removed if the Tello allowed connection to a custom AP such as our home WiFi.

    We had researched this possibility a lot before pinning it down to use the laptop-m5module setup.

    https://tellopilots.com/threads/is-it-posible-to-change-wifi-network-somehow.220/

    There are indeed some suggestions in the above forum to use a 'WiFi router with 2 bridged wifi virtual interfaces' which is confusing. Anyways, no one seems to have had a positive result so far using any techniques.

     

    Please let us know if you have a workaround in your thoughts image

     

    Jiss

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • jissdeodates
    jissdeodates over 4 years ago in reply to jissdeodates

    Adding to this, in the 5th blog Telegram Controlled Drone #5 : Conclusion and Future Scope, we have already discussed our future plans to make the middleware redundant and thereby removing it completely. image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jissdeodates
    jissdeodates over 4 years ago in reply to jissdeodates

    Also if we use a different drone such as the DIY/hobby ones which gives us more flexibility in the communication methods, this middleware(s) could be removed pretty easily.

    This is a sure try for a future case though, once we get our hands-on with such a drone.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube