FAQs about TCP ASCII Communication
Questions about Trigger Command
Why did Mech-MSR only return “0” but not the measurement data after a trigger command was sent?
The trigger
command can only be used to trigger the project to run. Returning 0
indicates that the project has been triggered to run successfully, and the command is executed successfully.
Why did Mech-MSR return the status code “-1” after a trigger command was sent?
The returned -1
is an error code indicating that the specified project ID does not exist. For possible causes and solutions for the error, see Error Codes for details.
Questions about Return Command
When to send the return command?
-
Typically, after sending the
trigger
command and receiving the status code0
, the TCP client can send thereturn
command to obtain the measurement result and judgment result. -
If the project needs more than 10 seconds to run in normal cases, sending the
return
command directly after thetrigger
command may result in a timeout error. In this case, you can wait for a while after sending thetrigger
command and then send thereturn
command.
Why did Mech-MSR return the status code “-2” after a return command was sent?
The returned -2
is an error code indicating no result.
Possible causes:
-
The
return
command was sent before the project was triggered to run by thetrigger
command. -
Mech-MSR was running abnormally.
For more information, refer to the Description of returned results for return command.