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

rokkoo

New member
Joined
Feb 18, 2019
Messages
3
Reaction score
1
The solution was to upgrade the firmware in the Tello app.
 

Pado

New member
Joined
Oct 13, 2019
Messages
1
Reaction score
0
Hi, I am trying to make this in Python language, could you please share your whole code?
 

f41ardu

Active member
Joined
Jan 3, 2019
Messages
40
Reaction score
10
Location
Back in Stuttgart ;->
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 Threads

Members online

Forum statistics

Threads
3,637
Messages
27,694
Members
9,491
Latest member
stephanriederer