I have a DJI M600 Pro connected to a software based serial port on an Arduino Uno and I am not receiving a clean signal.
The baud rate in DJ Assistant was set to 115200 and the same goes for the Arduino Serial Monitor. In DJI Assistant enabled the API and disabled all outputs except for the GPS data and set it to 1HZ to make it easier to read for testing.
I can see data flying in with 1HZ but the serial output Is mostly question marks and some letters in-between.
Is the serial data encrypted? If so, how can I decrypt it?
Here's the code:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(234000);
while (!Serial) {
; // wait for serial port to connect. Needed for Native USB only
}
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(234000);
mySerial.println("Hello, world?");
}
void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}