A method binds devices connected by a wireless network by setting a first
timeout in a master device. A key exchange is performed between the
master and a slave device. The key exchange is terminated if the first
timeout expires and the key exchange is incomplete. Then, a second
timeout is set in the master device and a third timeout is set in the
slave device if the key exchange is complete. A binding to the slave
device is established in the master device if the master device receives
a response from the slave device after the second time expires. Otherwise
the slave device is disabled. A binding to the master device is
established in the slave device if the third timeout expires and there is
only one key exchange detected by the slave device.