Patent ID: 8438380

Claim:
A method for controlling a remote wireless device with a user device, the method comprising: a pairwise master key(PMK); (a) creating and sending a request message packet to the remote wireless device by the user device, and verifying the request message packet by the remote wireless device, wherein the remote wireless device and the user device have the same pairwise master key (PMK), the request message packet comprising a random nonce of the user device; and wherein constructing a request message by the user device, and calculating a message integrity code (MIC) of the request message using a HMAC-MD5 algorithm according to parameters of the PMK of the user device and the request message; (b) constructing a reply message packet by the remote wireless device if the request message packet is verified to be correct, sending the reply message packet to the user device, and verifying the reply message packet by the user device, the reply message packet comprising a random nonce of the remote wireless device; (c) constructing and encrypting a control message packet by the user device if the reply message packet is verified to be correct, sending the control message packet to the remote wireless device, the control message packet comprising the random nonce of the user device, and verifying the control message packet by the remote wireless device when the random nonce of the user device in the control message packet is verified to be correct, the random nonce of the user device in the control message packet is verified to be correct upon the condition that the random nonce of the user device in the control message packet is equal to the random nonce of the user device in the request message packet; (d) decrypting and processing the control message packet by the remote wireless device if the control message packet is verified to be correct, sending an acknowledgment message packet to the user device, the ACK message packet comprising the random nonce of the remote wireless device, verifying the acknowledgment message packet by the user device when the random nonce of the remote wireless device in the ACK message packet is verified to be correct, and waiting to send a next control message packet to the remote wireless device, the random nonce of the remote wireless device in the ACK message packet is verified to be correct upon the condition that the random nonce of the remote wireless device in the ACK message packet is equal to the random nonce of the remote wireless device in the reply message packet.