Method for transmitting and processing command and data
First Claim
Patent Images
1. A method for transmitting a command packet from a mobile terminal comprising:
- determining that a command packet is to be transmitted to a terminal;
generating a command packet comprising a command frame, a length frame, an error check frame, and a command data frameencoding the command packet;
generating an end character frame at the end of the encoded command packet, wherein the error check frame is used to check whether an error is generated in the command packet and the end character frame is the final frame in the generated command packet for indicating an end of the command packet;
transmitting the encoded command packet with the end character frame to the terminal;
receiving an encoded data packet from the terminal in response to the command packet; and
performing a function in response to receiving the encoded data packet from the terminal.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed is a method in which a computer and a personal digital assistant easily and stably transmit commands and data through a serial interface and process them. To this end, the method for transmitting a command comprises: generating a command packet including a command frame, a length frame, a command data frame, an error check fame and an end character frame; and transmitting the command packet.
5 Citations
9 Claims
-
1. A method for transmitting a command packet from a mobile terminal comprising:
-
determining that a command packet is to be transmitted to a terminal; generating a command packet comprising a command frame, a length frame, an error check frame, and a command data frame encoding the command packet; generating an end character frame at the end of the encoded command packet, wherein the error check frame is used to check whether an error is generated in the command packet and the end character frame is the final frame in the generated command packet for indicating an end of the command packet; transmitting the encoded command packet with the end character frame to the terminal; receiving an encoded data packet from the terminal in response to the command packet; and performing a function in response to receiving the encoded data packet from the terminal. - View Dependent Claims (2, 3)
-
-
4. A method for processing a command comprising:
-
receiving via a serial interface a command packet comprising a command frame, a length frame, a common data frame, an error check frame, and an end character frame; erasing the end character frame of the received command packet; decoding the command packet where the end character frame has been erased; and erasing the error check frame of the decoded command packet, wherein the error check frame of the decoded command packet is processed to determine whether an error is generated at the decoded command packet, and erasing the error check frame if an error is not generated in the decoded command packet; transmitting a data packet in response to the command packet if an error was not generated in the decoded command packet, wherein the data packet may backup or upgrade information stored in memory of the mobile terminal. - View Dependent Claims (5, 6, 7, 8)
-
-
9. A method for processing a command, in which a command packet received via a serial interface is processed, the method comprising:
-
receiving via the serial interface a command packet including a command frame, a length frame, a command data frame, a CRC (Cyclic-Redundancy Check) frame and an end character frame; erasing the end character frame if the last byte of the command packet received through the serial interface is the end character frame; requesting retransmission of the command packet if the last byte of the command packet is not the end character frame; decoding the command packet where the end character frame has been erased; erasing the CRC frame if an error is not generated in the decoded command packet after checking the CRC frame of the decoded command packet; and requesting retransmission of the command packet if an error is generated in the decoded command packet after checking the CRC frame of the decoded command packet; transmitting a data packet in response to the command packet if an error was not generated in the decoded command packet, wherein the data packet may backup or upgrade information stored in flash memory of the mobile terminal.
-
Specification