Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

Can`t receive Tello state

rokkoo

New member
Joined
Feb 18, 2019
Messages
3
Reaction score
1
Hi mates, I need some help, please.

When I try to receive Tello Ryze state I can`t, I do who SDK documentation says, I start SKD mode sending "command" to drone and I receive "Ok" in UDP port 8889 but in UDP port 8890 I do receive nothing. I can send any command to drone and it receives correctly and run it but I don't know how to start listening state.

I know Tello works because I can use Tello app in android and it works well so is not a hardware problem.

This is my Node code I simplified it to understand better.
Thanks!

1551263801836.png
 
  • Like
Reactions: Mike Shock
Hi, I am trying to make this in Python language, could you please share your whole code?
 
Hi mates, I need some help, please.

When I try to receive Tello Ryze state I can`t, I do who SDK documentation says, I start SKD mode sending "command" to drone and I receive "Ok" in UDP port 8889 but in UDP port 8890 I do receive nothing. I can send any command to drone and it receives correctly and run it but I don't know how to start listening state.

I know Tello works because I can use Tello app in android and it works well so is not a hardware problem.

This is my Node code I simplified it to understand better.
Thanks!

View attachment 3345
Try this:


JavaScript:
const dgram = require('dgram');
const readline = require('readline');

const PORT = 8889;
const HOST = '192.168.10.1';

const client = dgram.createSocket('udp4');
client.bind(PORT);

const rl = readline.createInterface({
      input: process.stdin,
      output: process.stdout,
});


function sendMessage(command) {
      client.send(command, 0, command.length, PORT, HOST, (err, bytes) => {
              if (err) throw err;
              console.log(`UDP message sent to ${HOST}:${PORT}`);
            });
}

client.on('message', function (message, remote) {
      console.log(`${remote.address}:${remote.port} - ${message}`);
});


(function userInput() {
      rl.question('Enter command:  ', (command) => {
              if (command === 'exit') {
                        rl.close();
                      } else {
                            sendMessage(command);
                            userInput();
                          }
            });
}());
 

New Posts

Members online

No members online now.

Forum statistics

Threads
5,690
Messages
39,934
Members
17,023
Latest member
Repiv

New Posts