Method and system for synchronizing robot with server
First Claim
1. A method for synchronizing a robot with a server, comprising:
- sending by the server a time service command to the robot, the time service command comprising a current time of the server;
receiving by the robot the time service command sent from the server;
sending by the robot a response message to the server based on the time service command;
receiving by the server the response message sent from the robot, and determining whether a time service for the robot is successful based on the response message;
sending by the server a time service success message to the robot, if the time service for the robot is successful;
synchronizing the robot with the server in terms of time, after the robot receives the time service success message sent from the server; and
resending by the server the time service command to the robot if the time service for the robot is unsuccessful.
2 Assignments
0 Petitions
Accused Products
Abstract
Provided are a method and system for synchronizing a robot with a server. The service sends a time service command including a current time of the server to the robot, and the robot receives the time service command, so as to enable time synchronization of the robot with the server. A control device receives first command data carrying a first timestamp sent from the server, and then determines whether the first timestamp in the first command data has expired. If the first timestamp has expired, the control device receives command data resent from the server until second command data carrying an unexpired second timestamp is received. Finally, the control device controls the robot to execute a corresponding action at a time corresponding to the second timestamp based on the second command data, so as to realize the synchronization of the robot with the command data sent from the server.
19 Citations
19 Claims
-
1. A method for synchronizing a robot with a server, comprising:
-
sending by the server a time service command to the robot, the time service command comprising a current time of the server; receiving by the robot the time service command sent from the server; sending by the robot a response message to the server based on the time service command; receiving by the server the response message sent from the robot, and determining whether a time service for the robot is successful based on the response message; sending by the server a time service success message to the robot, if the time service for the robot is successful; synchronizing the robot with the server in terms of time, after the robot receives the time service success message sent from the server; and resending by the server the time service command to the robot if the time service for the robot is unsuccessful. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system for synchronizing a robot with a server, comprising:
-
the robot configured to;
receive a time service command sent from the server;
send a response message to the server based on the time service command; and
further configured to be synchronized with the server in terms of time after receiving a time service success message sent from the server; andthe server configured to;
send to the robot the time service command comprising a current time of the server; and
further configured to receive the response message sent from the robot, and determine whether the time service for the robot is successful based on the response message; and
further configured to send the time service success message to the robot if the time service for the robot is successful, or resend the time service command to the robot if the time service for the robot is unsuccessful;wherein the robot comprises a control device in communication connection with the server, and the control device is configured to;
receive first command data carrying a first timestamp sent from the server, the first command data being configured to control the robot to execute a corresponding action at a time corresponding to the first timestamp;
determine whether the first timestamp in the first command data has expired, wherein if it is determined that the first timestamp has expired, command data resent from the server is received until second command data carrying an unexpired second timestamp is received, the second command data being configured to control the robot to execute a corresponding action at a time corresponding to the second timestamp; and
control the robot to execute the corresponding action at the time corresponding to the second timestamp based on the second command data, so as to achieve synchronization of the robot with the command data sent from the server; andthe server is further configured to;
send the first command data carrying the first timestamp to the control device; and
resend, if the first timestamp has expired, the second command data until the second timestamp carried by the sent second command data has not expired. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
Specification