elfoxxy
lvl.1
Germany
Offline
|
Hi together,
For my masters thesis I try to run a dji robomaster through an arduino to have a mobile CH4 detection device.
While working on it everything worked fine and throug the UART connection the RM was controlled through plaintext SDK commands. after having a break for two weeks everything stopped working.
so where are we at:
I tried to run my Arduino script, it initializes the serial connecction and tries to send the 'command;', and then waits for the 'ok' reply.--> theres no Reply
at one weird moment the RM replied 'already in SDK mode' so i though: Maybe i have to quit SDK mode to get everything back to zero --> I added a 'quit;' to my script as a first command to the RM --> no reply from the RM
Then i tried to connect the RM to my ipad and just run it, but all of a sudden it had weird connectivity issues --> after that i though: ill update the firmware, also that might reset and settings the RM is stuck in--> still had some issues but after reconnecting all cables and recalibrating armors and wheels now it runs fine, through the ipad and app!
Then i tried Wifi-router connection and python scripts in Robomaster sdk--> everything worked
Retried using the Arduino: Used two different arduinos, different Serial and/or SoftSerial ports, different cables and so on--> no Reply from the RM at all.
So i thought there might be some Issues with the UART connection on the RM side, just because i tried everything in different Versions.
After being frustrated for 2 Days i came up with another idea:
Direct Wifi connection and then run the sample code from the RM developer Guide.
So I connected the RM, started the script and typed 'command;' and actually got a reply: 'ok'. but after that everything stopped working again. i have two screenshots of what kind of replies I get. In general the RM itself does nothing though. No movements, no change of the LEDs and so on.
Sadly theres no way to just do a software reset of the RM?!
If anyone has any ideas it would be awesome, i literally spent 3 days without any progress
Thank you in advance!
|
|