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.