CPC H04W 84/20 (2013.01) [H04W 4/80 (2018.02); H04W 52/0225 (2013.01); H04W 76/14 (2018.02); H04R 1/10 (2013.01)] | 8 Claims |
1. A method for switching master and slave roles of devices for use in wireless communications, comprising the following steps:
S100, establishing a monitoring link for communications between a master device and a host device;
S200, initiating a role exchange request, in which a time point for role exchange is appointed, by either of the master device and a slave device via the monitoring link when role switching between the master device and the slave device is triggered, and replying with a request receipt acknowledgment packet for the receipt of the role exchange request by the other device via the monitoring link; and
wherein the new master device restores to an initial slave role when the new master device fails to receive the acknowledgment packet from the new slave device or the data packet within a preset number of times; and the new slave device restores to an initial master role when the new slave device fails to receive the switching completion acknowledgment packet within a preset number of times.
|