Please select Into the mobile phone version | Continue to access the computer ver.
Artificial Intelligence Plaintext SDK
Uploading and Loding Picture ...(0/1)
o(^-^)o
PLT
lvl.1

Czechia
Offline

Hi,
I am currently using plaintext for controlling robomaster S1. I try to use intelligent recognition for recognizing another robot with plaintext SDK protocol. As explained on the Plaintext SDK description, I set the "AI push robot on" but I do not know how to get the AI push robot output with information calculated by the robot (number, position...) : nothing happens when I switch on even if there is another robot facing.
Does somebody know enough plaintext SDK protocol to help me?
Thank you.

output SDK protocol

output SDK protocol
2021-10-19
Use props
DAFlys
Captain
Flight distance : 312090263 ft
  • >>>
United Kingdom
Offline

Hi! You might be better off posting your question in the 'Developer' section of this forum.  That is way more active.    -   From https://developer.dji.com you can click Forum to access it or a direct link to it is - https://forum.dji.com/forum-139-1.html?from=developer
2021-10-20
Use props
BGA
lvl.4
United States
Offline

In case you really mean the text mode SDK, i would not use it at all as it is incomplete and probably broken in several creative ways. It was replaced by the "binary protocol" (for lack of a better name).
Here is an example of using the robot detection with it:

https://github.com/dji-sdk/RoboM ... _vision/04_robot.pyhttps://github.com/dji-sdk/RoboM ... _vision/04_robot.py

2021-10-20
Use props
BGA
lvl.4
United States
Offline

For completeness sake and assuming it might work, what you need to do to get to the events is connecting to one of these 2 ports (I do not remember which one):

News push        40924        UDP        You need to execute the message push command to enable data output
Incident report        40925        TCP        Need to execute the open event report command to have data output

I *THINK* it is the first one. Then you need to parse the data that comes from it to get the information you want.

But, again, do not do that. Use the binary protocol. It is faster, more complete and possibly with less bugs.
2021-10-20
Use props
PLT
lvl.1

Czechia
Offline

BGA Posted at 10-20 15:17
For completeness sake and assuming it might work, what you need to do to get to the events is connecting to one of these 2 ports (I do not remember which one):

News push        40924        UDP        You need to execute the message push command to enable data output

Firstly, thank you for answering. I have always 2 questions. How to change the port in my program to get the output?
And I have searched about binary protocol and found nothing could you tell me where it is please?
thank you in advance
Capture2.PNG
2021-10-21
Use props
BGA
lvl.4
United States
Offline

I am not sure what exactly you want. You do not change anything that is already in your program. You create a new connection with the desired protocol to one of those 2 ports.

https://robomaster-dev.readthedocs.io/en/latest/
2021-10-22
Use props
PLT
lvl.1

Czechia
Offline

BGA Posted at 10-22 11:57
I am not sure what exactly you want. You do not change anything that is already in your program. You create a new connection with the desired protocol to one of those 2 ports.

https://robomaster-dev.readthedocs.io/en/latest/

Hi, thank you for helping me.
I tried to connect to the 40924 port and it did not work but the 40925 was ok.well my question is where can I find instructions to get output back? The website does not show any code for doing this with the plaintext protocol. I tried with the following code in which I connect to the 40925 port but that does not send any output back.

Capture6.PNG
2021-10-25
Use props
BGA
lvl.4
United States
Offline

PLT Posted at 10-25 00:58
Hi, thank you for helping me.
I tried to connect to the 40924 port and it did not work but the 40925 was ok.well my question is where can I find instructions to get output back? The website does not show any code for doing this with the plaintext protocol. I tried with the following code in which I connect to the 40925 port but that does not send any output back.

40924 is UDP. You do not connect to UDP ports per se and, instead, you create a listener for that UDP port in your local computer.
2021-10-25
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules