TECHNICAL FIELD
[0001] The present invention relates to the field of communications technologies, and in
particular, to a communications method of a wearable device, a communications system,
and a related device.
BACKGROUND
[0002] Currently, a wearable device such as a smart watch or a band usually communicates
with a terminal device such as a mobile phone in a Bluetooth communication manner,
so as to implement functions such as event notification or information synchronization.
For example, when the mobile phone has an incoming call, the smart watch may be notified
in the Bluetooth communication manner, and then the smart watch has incoming call
notification. The wearable device brings convenience to a user, and therefore is drawing
attention from more equipment vendors.
[0003] At home, the wearable device and the terminal device may be placed at different locations.
For example, the mobile phone is in a bedroom while the band is worn by a user in
a living room; in this case, the mobile phone is far away from the band; because a
communication coverage area of the Bluetooth is relatively small, the mobile phone
cannot communicate with the band by using the Bluetooth, so that communication between
the mobile phone and the wearable device cannot be maintained.
SUMMARY
[0004] Embodiments of the present invention provide a communications method of a wearable
device, a communications system, and a related device, so that the terminal device
may communicate with the wearable device by using a gateway when communication between
a terminal device and a wearable device is disconnected.
[0005] A first aspect of the embodiments of the present invention provides a communications
method of a wearable device, including:
determining, by a network connection device in a network to which user equipment belongs,
that a second Bluetooth connection between the user equipment and the wearable device
is disconnected, and establishing a first Bluetooth connection between the network
connection device and the wearable device;
receiving, by the network connection device, first information that is sent by the
user equipment through a third communication connection to the network connection
device; and
sending, by the network connection device, the first information to the wearable device
through the first Bluetooth connection.
[0006] In a first possible implementation manner of the first aspect of the embodiments
of the present invention, before the receiving, by the network connection device,
first information that is sent by the user equipment through a third communication
connection to the network connection device, the method further includes:
receiving, by the network connection device, first configuration information sent
by the user equipment, where the first configuration information includes a Bluetooth
address of the wearable device and a key; and storing, by the network connection device,
the first configuration information, where the first configuration information is
used by the network connection device to send the first information to the wearable
device through the first Bluetooth connection;
or,
receiving, by the network connection device, a procedure request message sent by the
user equipment, where the procedure request message is used to request the network
connection device to enable a Bluetooth pairing procedure with the wearable device;
and enabling the Bluetooth pairing procedure with the wearable device according to
the procedure request message; or,
receiving, by the network connection device, a mode request message sent by the user
equipment, where the mode request message is used to request the network connection
device to enable a Bluetooth pairing mode; and enabling the Bluetooth pairing mode
according to the mode request message, so as to accept Bluetooth pairing with the
wearable device.
[0007] With reference to the first aspect of the embodiments of the present invention, or
the first possible implementation manner of the first aspect, in a second possible
implementation manner of the first aspect of the embodiments of the present invention,
before the receiving, by the network connection device, first information that is
sent by the user equipment through a third communication connection to the network
connection device, the method further includes:
receiving, by the network connection device, second configuration information sent
by the user equipment, where the second configuration information includes Bluetooth
service information supported by the wearable device; and establishing a mapping relationship
between the Bluetooth service information and service information supported by the
third communication connection, and storing the mapping relationship; where
the sending, by the network connection device, the first information to the wearable
device through the established first Bluetooth connection includes: converting, according
to the mapping relationship, first information sent by the user equipment through
the third communication connection to first information sent through the first Bluetooth
connection, and sending the first information to the wearable device through the first
Bluetooth connection.
[0008] With reference to any one of the first aspect of the embodiments of the present invention,
or the first to the second possible implementation manners of the first aspect, in
a third possible implementation manner of the first aspect of the embodiments of the
present invention, before the determining, by a network connection device in a network
to which user equipment belongs, that a second Bluetooth connection between the user
equipment and the wearable device is disconnected, the method further includes:
receiving a triggering command sent by the user equipment, where the triggering command
is used to instruct to establish the first Bluetooth connection between the network
connection device and the wearable device; or
finding, by the network connection device, a Bluetooth signal of the wearable device;
or
after the network connection device finds the Bluetooth signal of the wearable device,
sending an acknowledgment request message to the user equipment, where the acknowledgment
request message is used to request the user equipment to determine whether the first
Bluetooth connection be established between the network connection device and the
wearable device; and receiving an acknowledgment message returned by the user equipment.
[0009] With reference to any one of the first aspect of the embodiments of the present invention,
or the first to the third possible implementation manners of the first aspect, in
a fourth possible implementation manner of the first aspect of the embodiments of
the present invention, the establishing the first Bluetooth connection between the
network connection device and the wearable device includes:
establishing the first Bluetooth connection between the network connection device
and the wearable device by using a bridge device that communicates with the network
connection device; and
the sending the first information to the wearable device through the first Bluetooth
connection includes: transmitting, by the network connection device, the first information
to the bridge device; and sending, by the bridge device, the first information to
the wearable device through a Bluetooth connection between the bridge device and the
wearable device.
[0010] With reference to any one of the first aspect of the embodiments of the present invention,
or the first to the fourth possible implementation manners of the first aspect, in
a fifth possible implementation manner of the first aspect of the embodiments of the
present invention, the method further includes:
receiving, by the network connection device, second information sent by the wearable
device through the first Bluetooth connection; and
sending, by the network connection device, the second information to the user equipment
through the third communication connection.
[0011] With reference to any one of the first aspect of the embodiments of the present invention,
or the first to the fifth possible implementation manners of the first aspect, in
a sixth possible implementation manner of the first aspect of the embodiments of the
present invention, the method further includes:
receiving a first notification message sent by the user equipment, where the first
notification message is used to instruct the network connection device to disconnect
the first Bluetooth connection between the network connection device the wearable
device; and disconnecting the first Bluetooth connection between the network connection
device and the wearable device; or
disconnecting the third communication connection between the network connection device
and the user equipment; and disconnecting the first Bluetooth connection between the
network connection device and the wearable device.
[0012] A second aspect of the embodiments of the present invention provides a communications
method of a wearable device, including:
determining, by user equipment, that a second Bluetooth connection between the user
equipment and the wearable device is disconnected; and
if a first Bluetooth connection between a network connection device in a network to
which the user equipment belongs and the wearable device is established, sending,
by the user equipment, first information to the network connection device through
a third communication connection to the network connection device, so that the network
connection device sends the first information to the wearable device through the first
Bluetooth connection.
[0013] In a first possible implementation manner of the second aspect of the embodiments
of the present invention, the determining, by user equipment, that a second Bluetooth
connection between the user equipment and the wearable device is disconnected includes:
detecting, by the user equipment, that a second Bluetooth connection between the user
equipment and the wearable device is disconnected; or
when the user equipment determines that the third communication connection to the
network connection device is established, disconnecting the second Bluetooth connection
to the wearable device.
[0014] With reference to the second aspect of the embodiments of the present invention,
or the first possible implementation manner of the second aspect, in a second possible
implementation manner of the second aspect of the embodiments of the present invention,
before the sending, by the user equipment, first information to the network connection
device through a third communication connection to the network connection device,
the method further includes:
sending, by the user equipment, first configuration information to the network connection
device, where the first configuration information includes a Bluetooth address of
the wearable device and a key; and sending, by the user equipment, third configuration
information to the wearable device, where the third configuration information includes
a Bluetooth address of the network connection device and a key; or,
sending, by the user equipment, a mode request message to the wearable device, where
the mode request message is used to request the wearable device to enable a Bluetooth
pairing mode; and sending, by the user equipment, a procedure request message to the
network connection device, where the procedure request message is used to request
the network connection device to enable a Bluetooth pairing procedure with the wearable
device; or
sending, by the user equipment, a mode request message to the network connection device,
where the mode request message is used to request the network connection device to
enable a Bluetooth pairing mode; and sending, by the user equipment, a procedure request
message to the wearable device, where the procedure request message is used to request
the wearable device to enable a Bluetooth pairing procedure with the network connection
device.
[0015] With reference to any one of the second aspect of the embodiments of the present
invention, or the first to the second possible implementation manners of the second
aspect, in a third possible implementation manner of the second aspect of the embodiments
of the present invention, after the determining, by user equipment, that a second
Bluetooth connection between the user equipment and the wearable device is disconnected,
the method further includes:
sending, by the user equipment, a triggering command to the network connection device,
where the triggering command is used to instruct to establish the first Bluetooth
connection between the network connection device and the wearable device; and/or
receiving, by the user equipment, an announcement message sent by the network connection
device, where the announcement message is used to notify the user equipment that the
first Bluetooth connection between the network connection device and the wearable
device is established.
[0016] With reference to any one of the second aspect of the embodiments of the present
invention, or the first to the third possible implementation manners of the second
aspect, in a fourth possible implementation manner of the second aspect of the embodiments
of the present invention, the method further includes:
finding, by the user equipment, a Bluetooth signal of the wearable device; establishing
the second Bluetooth connection to the wearable device; and sending, by the user equipment,
first information to the wearable device through the second Bluetooth connection;
or
after the third communication connection between the user equipment and the network
connection device is disconnected, finding, by the user equipment, a Bluetooth signal
of the wearable device; establishing the second Bluetooth connection to the wearable
device; and sending, by the user equipment, first information to the wearable device
through the second Bluetooth connection; or
after the user equipment receives second notification message sent by the network
connection device, where the second notification message is used to notify the user
equipment that the first Bluetooth connection between the network connection device
and the wearable device is disconnected, finding, by the user equipment, a Bluetooth
signal of the wearable device; establishing the second Bluetooth connection to the
wearable device; and sending, by the user equipment, first information to the wearable
device through the second Bluetooth connection; or
when the user equipment finds a Bluetooth signal of the wearable device, and when
the user equipment does not perform information interaction with the wearable device
by using the network connection device in a preset time, sending, to the network connection
device by the user equipment, a request for disconnecting the first Bluetooth connection;
establishing the second Bluetooth connection to the wearable device; and sending,
by the user equipment, first information to the wearable device through the second
Bluetooth connection.
[0017] With reference to any one of the second aspect of the embodiments of the present
invention, or the first to the fourth possible implementation manners of the second
aspect, in a fifth possible implementation manner of the second aspect of the embodiments
of the present invention, the sending, by the user equipment, first information to
the network connection device through a third communication connection to the network
connection device includes:
sending, by the user equipment, the first information to the network connection device
by using the Internet Protocol IP; or sending, by the user equipment, the first information
to the network connection device by using the Universal Plug and Play UPnP protocol;
or sending, by the user equipment, the first information to the network connection
device by using the Wireless Fidelity Wi-Fi protocol.
[0018] A third aspect of the embodiments of the present invention provides a network connection
device, including:
a communication establishment unit, configured to determine that a second Bluetooth
connection between user equipment and a wearable device is disconnected, and establish
a first Bluetooth connection to the wearable device;
an information receiving unit, configured to receive first information that is sent
by the user equipment through a third communication connection to the network connection
device; and
a sending unit, configured to send the first information to the wearable device through
the first Bluetooth connection established by the communication establishment unit.
[0019] In a first possible implementation manner of the third aspect of the embodiments
of the present invention, the network connection device further includes:
a first configuration unit, configured to receive first configuration information
sent by the user equipment, where the first configuration information includes a Bluetooth
address of the wearable device and a key; and store the first configuration information,
where the first configuration information is used by the sending unit to send the
first information to the wearable device through the first Bluetooth connection; or
the first configuration unit, configured to receive a procedure request message sent
by the user equipment, where the procedure request message is used to request the
network connection device to enable a Bluetooth pairing procedure with the wearable
device; and enable the Bluetooth pairing procedure with the wearable device according
to the procedure request message; or
the first configuration unit, configured to receive a mode request message sent by
the user equipment, where the mode request message is used to request the network
connection device to enable a Bluetooth pairing mode; and enable the Bluetooth pairing
mode according to the mode request message, so as to accept Bluetooth pairing with
the wearable device.
[0020] With reference to the third aspect of the embodiments of the present invention, or
the first possible implementation manner of the third aspect, in a second possible
implementation manner of the third aspect of the embodiments of the present invention,
the network connection device further includes:
a second configuration unit, configured to receive second configuration information
sent by the user equipment, where the second configuration information includes Bluetooth
service information supported by the wearable device; and establish a mapping relationship
between the Bluetooth service information and service information supported by the
third communication connection, and store the mapping relationship; where
the sending unit is specifically configured to: convert, according to the mapping
relationship stored by the second configuration unit, first information sent by the
user equipment through the third communication connection to first information sent
through the first Bluetooth connection, and send the first information to the wearable
device through the first Bluetooth connection.
[0021] With reference to any one of the third aspect of the embodiments of the present invention,
or the first to the second possible implementation manners of the third aspect, in
a third possible implementation manner of the third aspect of the embodiments of the
present invention:
the communication establishment unit is specifically configured to: after a triggering
command sent by the user equipment is received, where the triggering command is used
to instruct to establish the first Bluetooth connection between the network connection
device and the wearable device, determine that second Bluetooth connection between
the user equipment and the wearable device is disconnected; or
after a Bluetooth signal of the wearable device is found, determine that the second
Bluetooth connection between the user equipment and the wearable device is disconnected;
or
after a Bluetooth signal of the wearable device is found, send an acknowledgment request
message to the user equipment, where the acknowledgment request message is used to
request the user equipment to determine whether the first Bluetooth connection be
established between the network connection device and the wearable device; and after
an acknowledgment message returned by the user equipment is received, determine that
the second Bluetooth connection between the user equipment and the wearable device
is disconnected.
[0022] With reference to any one of the third aspect of the embodiments of the present invention,
or the first to the third possible implementation manners of the third aspect, in
a fourth possible implementation manner of the third aspect of the embodiments of
the present invention:
the communication establishment unit is specifically configured to establish the first
Bluetooth connection to the wearable device by using a bridge device that communicates
with the network connection device; and
the sending unit is specifically configured to transmit the first information to the
bridge device; and the bridge device sends the first information to the wearable device
through a Bluetooth connection between the bridge device and the wearable device.
[0023] With reference to any one of the third aspect of the embodiments of the present invention,
or the first to the fourth possible implementation manners of the third aspect, in
a fifth possible implementation manner of the third aspect of the embodiments of the
present invention:
the information receiving unit is further configured to receive second information
sent by the wearable device through the first Bluetooth connection; and
the sending unit is further configured to send the second information to the user
equipment through the third communication connection.
[0024] With reference to any one of the third aspect of the embodiments of the present invention,
or the first to the fifth possible implementation manners of the third aspect, in
a sixth possible implementation manner of the third aspect of the embodiments of the
present invention, the network connection device further includes:
a disconnecting unit, configured to receive a first notification message sent by the
user equipment, where the first notification message is used to instruct the network
connection device to disconnect the first Bluetooth connection between the network
connection device the wearable device; and disconnect the first Bluetooth connection
between the network connection device the wearable device; or
disconnect the third communication connection between the network connection device
and the user equipment; and disconnect the first Bluetooth connection between the
network connection device and the wearable device.
[0025] A fourth aspect of the embodiments of the present invention provides user equipment,
including:
a communication determining unit, configured to determine that a second Bluetooth
connection between the user equipment and a wearable device is disconnected; and
an information sending unit, configured to: if a first Bluetooth connection between
a network connection device in a network to which the user equipment belongs and the
wearable device is established, send first information to the network connection device
through a third communication connection to the network connection device, so that
the network connection device sends the first information to the wearable device through
the first Bluetooth connection.
[0026] In a first possible implementation manner of the fourth aspect of the embodiments
of the present invention, the user equipment further includes:
a configuration sending unit, configured to send first configuration information to
the network connection device, where: the first configuration information includes
a Bluetooth address of the wearable device and a key; and the configuration sending
unit is further configured to send third configuration information to the wearable
device, where the third configuration information includes a Bluetooth address of
the network connection device and a key; or,
the configuration sending unit, configured to send a mode request message to the wearable
device, where the mode request message is used to request the wearable device to enable
a Bluetooth pairing mode; and send a procedure request message to the network connection
device, where the procedure request message is used to request the network connection
device to enable a Bluetooth pairing procedure with the wearable device; or,
the configuration sending unit, configured to send a mode request message to the network
connection device, where the mode request message is used to request the network connection
device to enable a Bluetooth pairing mode; and send a procedure request message to
the wearable device, where the procedure request message is used to request the wearable
device to enable a Bluetooth pairing procedure with the network connection device.
[0027] With reference to the fourth aspect of the embodiments of the present invention,
or the first possible implementation manner of the fourth aspect, in a second possible
implementation manner of the fourth aspect of the embodiments of the present invention,
the user equipment further includes:
a triggering unit, configured to send a triggering command to the network connection
device, where the triggering command is used to instruct to establish the first Bluetooth
connection between the network connection device and the wearable device; and/or
the triggering unit, configured to receive an announcement message sent by the network
connection device, where the announcement message is used to notify the user equipment
that the first Bluetooth connection between the network connection device and the
wearable device is established.
[0028] With reference to any one of the fourth aspect of the embodiments of the present
invention, or the first to the second possible implementation manners of the fourth
aspect, in a third possible implementation manner of the fourth aspect of the embodiments
of the present invention, the user equipment further includes:
a communication establishment unit, configured to find a Bluetooth signal of the wearable
device and establish a second Bluetooth connection to the wearable device; or
after the third communication connection between the user equipment and the network
connection device is disconnected, find a Bluetooth signal of the wearable device
and establish a second Bluetooth connection to the wearable device; or
after a second notification message sent by the network connection device is received,
where the second notification message is used to notify the user equipment that the
first Bluetooth connection between the network connection device and the wearable
device is disconnected, find a Bluetooth signal of the wearable device and establish
a second Bluetooth connection to the wearable device; or
when a Bluetooth signal of the wearable device is found, and when the user equipment
does not perform information interaction with the wearable device by using the network
connection device in a preset time, send, to the network connection device, a request
for disconnecting the first Bluetooth connection, and establish the second Bluetooth
connection between the user equipment and the wearable device; where
the information sending unit is further configured to send the first information to
the wearable device through the second Bluetooth connection.
[0029] A fifth aspect of the embodiments of the present invention provides a communications
system, including a network connection device, user equipment, and a wearable device,
where:
the network connection device is the network connection device according to any one
of the third aspect of the embodiments of the present invention, the first to the
third, or the fifth and the sixth possible implementation manners of the third aspect;
and the user equipment is the user equipment according to any one of the fourth aspect
of the embodiments of the present invention, or the first to the third possible implementation
manners of the fourth aspect; and
the wearable device is configured to: after a first Bluetooth connection to the network
connection device is established, receive first information sent by the network connection
device.
[0030] A sixth aspect of the embodiments of the present invention provides a communications
system, including a network connection device, at least one bridge device, user equipment,
and a wearable device, where the at least one bridge device is separately connected
to the network connection device by using an electrical power cable, where:
the network connection device is the network connection device according to any one
of the third aspect of the embodiments of the present invention, or the first to the
sixth possible implementation manners of the third aspect; and the user equipment
is the user equipment according to any one of the fourth aspect of the embodiments
of the present invention, or the first to the third possible implementation manners
of the fourth aspect; and
the wearable device is configured to: after a first Bluetooth connection is performed
by using the bridge device connected to the network connection device, receive first
information that is forwarded by the bridge device and that is sent by the network
connection device through the first Bluetooth connection.
[0031] In the method of this embodiment, if a second Bluetooth connection between user equipment
and a wearable device is disconnected, a first Bluetooth connection between a network
connection device and the wearable device is established, so that the network connection
device may send, to the wearable device through the foregoing first Bluetooth connection,
first information sent by the user equipment through a third communication connection
to the network connection device. In this way, indirect communication between the
user equipment and the wearable device is implemented by using the network connection
device, so that the user equipment and the wearable device are not limited by a communication
range.
BRIEF DESCRIPTION OF DRAWINGS
[0032] To describe the technical solutions in the embodiments of the present invention or
in the prior art more clearly, the following briefly describes the accompanying drawings
required for describing the embodiments or the prior art. Apparently, the accompanying
drawings in the following description show merely some embodiments of the present
invention, and a person of ordinary skill in the art may still derive other drawings
from these accompanying drawings without creative efforts.
FIG. 1a is a schematic structural diagram of a communications system applied to a
communications method of a wearable device according to an embodiment of the present
invention;
FIG. 1b is a schematic structural diagram of another communications system applied
to a communications method of a wearable device according to an embodiment of the
present invention;
FIG. 2 is a flowchart of a communications method of a wearable device according to
an embodiment of the present invention;
FIG. 3 is a flowchart of another communications method of a wearable device according
to an embodiment of the present invention;
FIG. 4 is a flowchart of another communications method of a wearable device according
to an embodiment of the present invention;
FIG. 5a is a flowchart of a method used by user equipment to configure each device
in a communications system according to an embodiment of the present invention;
FIG. 5b is a flowchart of a method of indirect communication between user equipment
and a wearable device according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a network connection device according
to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of another network connection device according
to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of user equipment according to an embodiment
of the present invention; and
FIG. 9 is a schematic structural diagram of another network connection device according
to an embodiment of the present invention.
DESCRIPTION OF EMBODIMENTS
[0033] The following clearly and completely describes the technical solutions in the embodiments
of the present invention with reference to the accompanying drawings in the embodiments
of the present invention. Apparently, the described embodiments are merely some but
not all of the embodiments of the present invention. All other embodiments obtained
by a person of ordinary skill in the art based on the embodiments of the present invention
without creative efforts shall fall within the protection scope of the present invention.
[0034] In the specification, claims, and accompanying drawings of the present invention,
the terms "first", "second", "third", "fourth", and so on (if existent) are intended
to distinguish between similar objects but do not necessarily indicate a specific
order or sequence. It should be understood that the data termed in such a way are
interchangeable in proper circumstances so that the embodiments of the present invention
described herein can be implemented in orders except the order illustrated or described
herein. In addition, the terms "include", "contain" and any other variants mean to
cover the non-exclusive inclusion, for example, a process, method, system, product,
or device that includes a list of steps or units is not necessarily limited to those
units, but may include other units not expressly listed or inherent to such a process,
method, system, product, or device.
[0035] An embodiment of the present invention provides a communications method of a wearable
device that may be mainly applied to data communications systems shown in FIG. 1a
and FIG. 1b. The communications system shown in FIG. 1a includes user equipment, a
wearable device, and a network connection device. The user equipment may be a device
that can access a network by using a network connection device, such as a mobile phone,
a Pad, or a personal computer. The wearable device may be a device that can be used
by pairing with the user equipment (for example, the smart band in FIG. 1), such as
a smart band or a smart watch. The network connection device may be a device that
has a network connection function, such as a home Wireless Fidelity (Wi-Fi) router
and a gateway. In an embodiment of the present invention, the network connection device
may require a Bluetooth function.
[0036] Generally, a communication connection between the user equipment and the wearable
device may be directly established, for example, a Bluetooth communication connection.
The user equipment may send a message to the wearable device for execution. For example,
when the user equipment has an incoming call, the user equipment may send a message
to the wearable device, and the wearable device displays the incoming call of the
user equipment.
[0037] In this embodiment, however, when the communication connection between the user equipment
and the wearable device is disconnected because of reasons such as a distance, an
indirect communication connection between the user equipment and the wearable device
may be implemented by using the network connection device. Specifically, a communication
connection that is of a protocol and that is between the network connection device
and the user equipment is established, for example, a communication connection of
the Universal Plug and Play (UPnP) protocol or a communication connection of the Wi-Fi
protocol. A communication connection that is of a Bluetooth protocol is established
between the network connection device and the wearable device. A message sent by the
user equipment to the wearable device may be indirectly transmitted to the wearable
device by using the network connection device.
[0038] The communications system shown in FIG. 1b includes the user equipment, the network
connection device, the wearable device, and at least one bridge device. For a connection
between the user equipment and the network connection device, refer to the connection
between the user equipment and the network connection device in FIG. 1a. Each bridge
device may be connected to the network connection device by using an electrical power
cable, the communication connection that is of the Bluetooth protocol may be established
between the network connection device and the wearable device by using any one of
the bridge devices, so that the network connection device may encapsulate the information
sent by the user equipment into a Bluetooth packet, and transmit the Bluetooth packet
to the bridge device by using an electrical power cable protocol, and then the bridge
device transmits the Bluetooth packet to the wearable device.
[0039] Main functions of the bridge device are to ensure a coverage area of communication
between the network connection device and the wearable device and to ensure that a
message sent by the network connection device may arrive to the wearable device.
[0040] The communications method of a wearable device in this embodiment of the present
invention is performed by the network connection device in the system shown in FIG.
1a or FIG. 1b. A flowchart is shown in FIG. 2, including:
Step 101: Determine that a second Bluetooth connection between the user equipment
and the wearable device is disconnected, and establish a first Bluetooth connection
between the network connection device in a network to which the user equipment belongs
and the wearable device.
[0041] Generally, the second Bluetooth connection between the user equipment and the wearable
device is established, and the user equipment may directly communicate with the wearable
device. If the second Bluetooth connection is disconnected, in this embodiment, to
implement that the user equipment indirectly communicates with the wearable device
by using the network connection device, the network connection device separately establish
a communication connection to the wearable device and a communication connection to
the user equipment. For a communication connection between the network connection
device and the user equipment, if the user equipment accesses the network by using
the network connection device, the communication connection between the network connection
device and the user equipment is established. For a communication connection between
the network connection device and the wearable device, establishing the first Bluetooth
connection between the network connection device and the wearable device may be triggered
in the following cases:
- (1) When the user equipment finds that the second Bluetooth connection to the wearable
device is disconnected, or when the user equipment finds that a third communication
connection to the network connection device is established, the user equipment may
directly send a triggering command to the user network connection device, where the
triggering command is used to instruct to establish the first Bluetooth connection
between the network connection device and the wearable device. When receiving the
triggering command sent by the user equipment, the network connection device may determine
that the second Bluetooth connection between the user equipment and the wearable device
is disconnected, and actively establish the first Bluetooth connection to the wearable
device. Specifically, after receiving the triggering command, the network connection
device sends a Bluetooth paging message. When finding that the second Bluetooth connection
to the user equipment is disconnected, the wearable device determines whether the
Bluetooth paging message sent by the network connection device can be received. Alternatively,
if the second Bluetooth connection between the wearable device and the user equipment
is not disconnected, the wearable device still detects in real time whether the Bluetooth
paging message sent by the network connection device is received; if the Bluetooth
paging message is received, a Bluetooth paging response is sent to the network connection
device; if the network connection device receives the Bluetooth paging response sent
by the wearable device, the first Bluetooth connection to the wearable device is established.
- (2) After finding a Bluetooth signal of the wearable device, the network connection
device determines that the second Bluetooth connection between the user equipment
and the wearable device is disconnected. Specifically, the network connection device
may periodically send the Bluetooth paging message. When finding that the second Bluetooth
connection to the user equipment is disconnected, the wearable device determines whether
the Bluetooth paging message sent by the network connection device can be received.
Alternatively, if the second Bluetooth connection between the wearable device and
the user equipment is not disconnected, the wearable device still detects in real
time whether the Bluetooth paging message is received; if the Bluetooth paging message
is received, the Bluetooth paging response is sent to the network connection device;
if the network connection device receives the Bluetooth paging response sent by the
wearable device, the first Bluetooth connection to the wearable device is established.
- (3) After finding a Bluetooth signal of the wearable device, the network connection
device sends an acknowledgment request message to the user equipment, where the acknowledgment
request message is used to request the user equipment to determine whether the first
Bluetooth connection be established between the network connection device and the
wearable device. If an acknowledgment message returned by the user equipment is received,
the network connection device determines that the second Bluetooth connection between
the user equipment and the wearable device is disconnected, and then establishes the
first Bluetooth connection to the wearable device; if an unacknowledgment message
returned by the user equipment is received, the first Bluetooth connection may be
not established.
[0042] It should be noted that, in the second case, after the network connection device
finds the Bluetooth signal of the wearable device and determine the second Bluetooth
connection, the first Bluetooth connection is established; or after the network connection
device finds the Bluetooth signal of the wearable device, the first Bluetooth connection
is first established, and then the user equipment disconnects the second Bluetooth
connection, so as to determine that the second Bluetooth connection is disconnected.
[0043] It should be noted that, in the two cases of the communications systems shown in
FIG. 1a and FIG. 1b, the established first Bluetooth connections between the network
connection device and the wearable device are different. In the system shown in FIG.
1a, a direct first Bluetooth connection between the network connection device and
the wearable device is established; however, in the system shown in FIG. 1b, an indirect
first Bluetooth connection between the network connection device and the wearable
device is established by using a bridge device that communicates with the network
connection device.
[0044] It should be further noted that, optionally, after the first Bluetooth connection
between the network connection device and the wearable device is established, the
network connection device may further send an announcement message to the user equipment,
where the announcement message is used to notify the user equipment that the first
Bluetooth connection between the network connection device and the wearable device
is established, so that the user equipment may send first information to the wearable
device by using the network connection device.
[0045] Step 102: The network connection device receives first information that is sent by
the user equipment through a third communication connection to the network connection
device, where the first information is sent to the network connection device by the
user equipment through the third communication connection when the second Bluetooth
connection between the user equipment and the wearable device is disconnected.
[0046] Step 103: The network connection device sends the first information to the wearable
device through the first Bluetooth connection established in step 101.
[0047] After the first Bluetooth connection between the network connection device and the
wearable device is established, the user equipment may first send, to the network
connection device, the first information to be sent to the wearable device, and then
the network connection device sends the first information to the wearable device.
The first information may be content, an instruction, data, and the like that is sent
by the user equipment to the wearable device. A format of the first information sent
by the user equipment to the network connection device may be the same as or different
from a format of the first information sent by the network connection device to the
wearable device. When the user equipment sends the first information to the network
connection device, a communications protocol format supported by the third communication
connection may be used; and when the network connection device sends the first information
to the wearable device, a Bluetooth protocol format is mainly used. Therefore, in
a specific operation, the network connection device may convert first information
in the communications protocol format supported by the third communication connection
to first information in the Bluetooth protocol format.
[0048] Specifically, the third communication connection between the network connection device
and the user equipment may be a communication connection that supports the Internet
Protocol (IP), so that the network connection device may receive the first information
sent by the user equipment by using the Internet Protocol. Specifically, the network
connection device may receive the first information that is in the Bluetooth protocol
format and that is carried in a payload of an IP packet, and send the first information
to the wearable device through the first Bluetooth connection; or the network connection
device may receive first information that is in an upper-layer protocol format and
that is carried in an IP packet, and send the first information to the wearable device
through the first Bluetooth connection. Upper-layer protocols include but are not
limited to: the UPnP protocol; the Digital Living Network Alliance (DLNA) protocol;
the Intelligent Grouping and Resource Sharing protocol (IGRS), which is also referred
to as the IGRS protocol; the Hypertext Transfer Protocol (HTTP); the Transmission
Control Protocol (TCP); and the User Datagram Protocol (UDP). The network connection
device converts the first information in the upper-layer protocol format to the first
information in the Bluetooth protocol format.
[0049] The third communication connection may further be a communication connection that
supports the Universal Plug and Play protocol. The network connection device may receive
first information that is in the UPnP protocol format and that is sent by the user
equipment, or convert first information in the UPnP protocol format to first information
in the Bluetooth protocol format, and then send the first information to the wearable
device through the first Bluetooth connection.
[0050] The third communication connection may further be a connection that supports the
Wi-Fi protocol. The network connection device may receive the first information that
is in the Bluetooth protocol format and that is in a payload of a Media Access Control
address (MAC) frame of the Wi-Fi protocol, and send the first information to the wearable
device through the first Bluetooth connection; or the network connection device may
receive the first information that is in an upper-layer protocol format and that is
sent by the user equipment by using the Wi-Fi, and convert first information in the
upper-layer protocol format to first information in the Bluetooth protocol format,
and send the first information to the wearable device through the first Bluetooth
connection. Upper-layer protocols include but are not limited to the UPnP protocol,
the DLNA protocol, the IGRS, the HTTP, the TCP, the UDP, and the IP.
[0051] It should be further noted that, when the network connection device sends the first
information through the first Bluetooth connection, for the system shown in FIG. 1a,
the network connection device may directly send the first information to the wearable
device; for the system shown in FIG. 1b, the communication connection of the Bluetooth
protocol may be established between the network connection device and the wearable
device by using any one of the bridge devices, so that the network connection device
may encapsulate the first information sent by the user equipment into the Bluetooth
packet, and transmit the Bluetooth packet to the bridge device by using the electrical
power cable protocol, and then the bridge device sends the Bluetooth packet to the
wearable device in a communication range of the bridge device.
[0052] Further, for second information actively sent by the wearable device to the user
equipment, the network connection device receives the second information that is sent
by the wearable device through the first Bluetooth connection, where the second information
may be a notification or data that is sent by the wearable device to the user equipment,
information that is reported by the wearable device to the user equipment, or the
like. The network connection device may send the second information to the user equipment
through the third communication connection to the user equipment. A format of the
second information sent by the wearable device to the network connection device may
be the same as or different from a format of the second information sent by the network
connection device to the user equipment.
[0053] It can be learned that in the method of this embodiment, if a second Bluetooth connection
between user equipment and a wearable device is disconnected, a first Bluetooth connection
is established between a network connection device and the wearable device, and the
network connection device may send, to the wearable device through the first Bluetooth
connection, first information sent by the user equipment. In this way, indirect communication
between the user equipment and the wearable device is implemented by using the network
connection device, so that the user equipment and the wearable device are not limited
by a communication range.
[0054] It should be noted that, in the communications method in steps 101 to 103, the user
equipment indirectly communicates with the wearable device by using the network connection
device in the network to which the user equipment belongs. In one case, specifically,
under any one of following conditions, the first Bluetooth connection between the
network connection device and the wearable device is disconnected, and the user equipment
directly communicates with the wearable device:
[0055] The network connection device receives a first notification message sent by the user
equipment, where the first notification message is used to instruct the network connection
device to disconnect the first Bluetooth connection between the network connection
device the wearable device; and the third communication connection between the network
connection device and the user equipment is disconnected.
[0056] It should be further noted that, the communications method in steps 101 to 103 indicates
communication that is performed after each device in the system shown in FIG. 1a or
FIG. 1b is configured. Therefore, before step 101, the user equipment further configure
the network connection device. Specifically, before step 101, the network connection
device may further perform a configuration step in any one of the following manners.
A flowchart is shown in FIG. 3, including:
- (1) The user equipment directly performs configuration
Step 104: The network connection device receives a first configuration information
sent by the user equipment, where the first configuration information includes a Bluetooth
address of the wearable device and a key for communication between the network connection
device and the wearable device, and may further include information such as a pairing
relationship between the user equipment and the wearable device. The network connection
device stores the first configuration information, where the first configuration information
is used by the network connection device to send the first information to the wearable
device through the first Bluetooth connection. Optionally, if the first configuration
information includes no pairing relationship between the user equipment and the wearable
device, the network connection device may generate the pairing relationship between
the user equipment and the wearable device according to the first configuration information.
Therefore, when information is transmitted between the network connection device and
the wearable device, the network connection device may establish the first Bluetooth
connection according to the first configuration information and transmit the information
through the first Bluetooth connection.
Further, the network connection device may further receive second configuration information
sent by the user equipment, and the second configuration information includes Bluetooth
service information supported by the wearable device, such as characteristic information
of the Bluetooth protocol or a command of the Bluetooth protocol. Therefore, the network
connection device may establish a mapping relationship between the Bluetooth service
information and the service information supported by the third communication connection,
and store the mapping relationship. When sending the first information to the wearable
device, the network connection device may convert, according to the mapping relationship,
the first information sent through the third communication connection to the first
information sent through the first Bluetooth connection, and send the first information
to the wearable device through the first Bluetooth connection.
When establishing the mapping relationship, the network connection device mainly establishes
a correspondence between each piece of information in the Bluetooth service information
and each piece of information in the service supported by the third communication
connection, for example, establishes a correspondence between a command or a message
in the Bluetooth protocol and a command or a message of the protocol supported by
the third communication connection.
- (2) The user equipment indirectly configures that the network connection device actively
performs a Bluetooth pairing with the wearable device.
Step 105: The network connection device receives a procedure request message sent
by the user equipment, where the procedure request message is used to request the
network connection device to enable a Bluetooth pairing procedure with the wearable
device; and the network connection device enables the Bluetooth pairing procedure
with the wearable device according to the procedure request message. That is, the
network connection device actively sends a Bluetooth pairing request to the wearable
device. When the pairing succeeds, the network connection device may store information
about the wearable device, including information such as the Bluetooth address and
the key. Further, the network connection device generates the pairing relationship
between the user equipment and the wearable device.
- (3) The user equipment indirectly configures that the network connection device passively
accepts the pairing with the wearable device.
[0057] Step 106: The network connection device receives a mode request message sent by the
user equipment, where the mode request message is used to request the network connection
device to enable a Bluetooth pairing mode; and the network connection device enables
the Bluetooth pairing mode according to the mode request message to, so as to passively
accept Bluetooth pairing with the wearable device. That is, the network connection
device is set to a state of being searchable by another Bluetooth device within a
period of time, and can accept a pairing request. When the pairing succeeds, the network
connection device may store the information about the wearable device, including information
such as the Bluetooth address and the key. Further, the network connection device
generates the pairing relationship between the user equipment and the wearable device.
[0058] A function of the pairing relationship between the user equipment and the wearable
device includes: The user equipment first sends, to the network connection device,
the first information that is sent to the wearable device, and the network connection
device sends the first information to the corresponding wearable device according
to the pairing relationship.
[0059] An embodiment of the present invention further provides another communications method
of a wearable device that may be applied to the communications system shown in FIG.
1a or FIG. 1b. The method of this embodiment is a method performed by user equipment
in the system. A flowchart is shown in FIG. 4, including:
[0060] Step 201: The user equipment determines that a second Bluetooth connection between
the user equipment and the wearable device is disconnected. Generally, a communication
connection between the user equipment and the wearable device is a Bluetooth communication
connection. When the user equipment detects no Bluetooth signal of the wearable device,
or strength of a detected Bluetooth signal of the wearable device is less than a threshold,
it is determined that the second Bluetooth connection between the user equipment and
the wearable device is disconnected. Alternatively, in another case, when determining
a third communication connection to a network connection device in a network to which
the user equipment belongs is established, the user equipment may actively disconnect
the second Bluetooth connection to the wearable device. Therefore, when the third
communication connection is established between the user equipment and the network
connection device, it is determined that the second Bluetooth connection to the wearable
device is disconnected.
[0061] It should be understood that, after the user equipment finds that the second Bluetooth
connection to the wearable device is disconnected, if a first Bluetooth connection
between the network connection device and the wearable device is established, the
user equipment may perform step 202. Specifically:
[0062] The user equipment may actively trigger the network connection device to establish
the first Bluetooth connection to the wearable device. Specifically, the user equipment
may send a triggering command to the network connection device, where the triggering
command is used to instruct to establish the first Bluetooth connection between the
network connection device and the wearable device, so that the user equipment may
indirectly communicate with the wearable device by using the network connection device.
Therefore the user equipment considers that the first Bluetooth connection between
the network connection device and the wearable device is established, and performs
a subsequent step 202. In another case, establishing the first Bluetooth connection
between the network connection device and the wearable device is triggered by the
wearable device. After establishing the first Bluetooth connection to the wearable
device, the network connection device may send an announcement message to the user
equipment, where the announcement message is used to notify the user equipment that
the first Bluetooth connection between the network connection device and the wearable
device is established, so that the user equipment may perform the subsequent step
202 according to the announcement message. When the user equipment actively triggers
the network connection device to establish the first Bluetooth connection to the wearable
device, after the user equipment sends the triggering command, the user equipment
further receive the announcement message returned by the network connection device,
and then the user equipment may perform the subsequent step 202.
[0063] Step 202: When the user equipment includes information that to be sent to the wearable
device, the user equipment sends first information to the network connection device
through the third communication connection to the network connection device to which
the user equipment belongs, so that the network connection device may send the first
information to the wearable device through the first Bluetooth connection.
[0064] Specifically, the third communication connection between the network connection device
and the user equipment may support a connection of the Internet Protocol (IP), so
that the user equipment may send the first information to the network connection device
by using the Internet Protocol. Specifically, the first information in a Bluetooth
protocol format is carried in a payload of an IP packet and sent to the network connection
device; or the user equipment sends the first information in an upper-layer protocol
format to the network connection device by using an IP packet, and upper-layer protocols
include but are not limited to the UPnP protocol, the DLNA protocol, the IGRS, the
HTTP, and the TCP.
[0065] The third communication connection may further be a connection that supports the
Universal Plug and Play protocol, and the user equipment sends the first information
to the network connection device by using the Universal Plug and Play protocol. Specifically,
the first information in the UPnP protocol format is sent to the network connection
device. Alternatively, the third communication connection may be a connection that
supports the Wi-Fi protocol, and the user equipment sends the first information to
the network connection device by using the Wi-Fi protocol. Specifically, the first
information in the Bluetooth protocol format is carried in a payload of a MAC frame
of the Wi-Fi protocol and sent to the network connection device; or the first information
in an upper-layer protocol format is sent to the network connection device by using
the Wi-Fi, and upper-layer protocols include but are not limited to the UPnP protocol,
the DLNA protocol, the IGRS, the HTTP, the TCP, the UDP, and the IP.
[0066] The first information sent by the user equipment may be content, an instruction,
data, and the like that is sent by the user equipment to the wearable device, and
a format of the first information sent by the user equipment to the network connection
device may be the same as or different from a format of the first information sent
by the network connection device to the wearable device. When the user equipment sends
the first information to the network connection device, a communications protocol
format supported by the third communication connection may be used; and when the network
connection device sends the first information to the wearable device, a Bluetooth
protocol format is mainly used. Therefore, in a specific operation, the network connection
device may convert first information in the communications protocol format supported
by the third communication connection to first information in the Bluetooth protocol
format. For a method specifically performed by the network connection device, refer
to the foregoing descriptions in this embodiment. Details are not described herein.
[0067] Further, the user equipment may receive, by using the network connection device,
second information sent by the wearable device. The network connection device receives
the second information that is sent by the wearable device through the first Bluetooth
connection, and the second information may be a notification or data that is sent
by the wearable device to the user equipment, information that is reported by the
wearable device to the user equipment, or the like. The network connection device
sends the second information to the user equipment through the third communication
connection to the user equipment. A format of the second information sent by the wearable
device to the network connection device may be the same as or different from a format
of the second information sent by the network connection device to the user equipment.
[0068] Further, when any one of conditions occurs, the user equipment may establish the
second Bluetooth connection to the wearable device, and the user equipment sends the
first information to the wearable device through the second Bluetooth connection.
[0069] The user equipment finds a Bluetooth signal of the wearable device. For example,
the user equipment finds that strength of a Bluetooth signal of the wearable device
reaches a threshold.
[0070] After the third communication connection between the user equipment and the network
connection device is disconnected, the user equipment finds the Bluetooth signal of
the wearable device.
[0071] After the user equipment receives a second notification message sent by the network
connection device, where the second notification message is used to notify the user
equipment that the first Bluetooth connection between the network connection device
and the wearable device is disconnected, the user equipment finds the Bluetooth signal
of the wearable device.
[0072] When the user equipment finds the Bluetooth signal of the wearable device, and when
the user equipment does not perform information interaction with the wearable device
by using the network connection device in a preset time, the user equipment sends,
to the network connection device, a request for disconnecting the first Bluetooth
connection.
[0073] It can be learned that in the method of this embodiment, if a second Bluetooth connection
between user equipment and a wearable device is disconnected, a first Bluetooth connection
may be established between a network connection device of the user equipment and the
wearable device. When the user equipment finds that the second Bluetooth connection
to the wearable device is disconnected, the user equipment may send first information
to the wearable device by using the network connection device. In this way, indirect
communication between the user equipment and the wearable device is implemented by
using the network connection device, so that the user equipment and the wearable device
can communicate with each other without being limited by a communication range.
[0074] It should be understood that the communications method in steps 201 and 202 is the
communications method that is used after devices in the communications system are
configured; however, before step 201, the user equipment may separately configure
the wearable device and the network connection device in following manners, specifically:
- (1) The user equipment directly and separately configures, for the network connection
device and the wearable device, information required for performing first Bluetooth
communication between the network connection device and the wearable device.
The user equipment may send first configuration information to the network connection
device, where the first configuration information includes a Bluetooth address of
the wearable device and a key for performing Bluetooth communication between the network
connection device and the wearable device, and may further include a pairing relationship
between the user equipment and the wearable device, so that the network connection
device stores the first configuration information. The user equipment may send third
configuration information to the wearable device, where the third configuration information
includes a Bluetooth address of the network connection device, and may further include
information such as a key for performing communication between the network connection
device and the wearable device.
Further, the user equipment may further send second configuration information to the
network connection device, where the second configuration information includes Bluetooth
service information supported by the wearable device. Therefore, the network connection
device may establish, according to the second configuration information, a mapping
relationship between the Bluetooth service information and service information supported
by the third communication connection, and store the mapping relationship.
- (2) The user equipment indirectly and separately configures a function of the network
connection device and a function of the wearable device, so that the network connection
device may actively initiate a Bluetooth pairing procedure to the wearable device,
and the wearable device may be passively paired with the network connection device.
The user equipment sends a mode request message to the wearable device, where the
mode request message is used to request the wearable device to enable a Bluetooth
pairing mode; that is, the wearable device is set to a state of being searchable by
another Bluetooth device within a period of time, and can accept a pairing request.
The user equipment sends a procedure request message to the network connection device,
where the procedure request message is used to request the network connection device
to enable a Bluetooth pairing procedure with the wearable device.
Alternatively, the user equipment sends the procedure request message only to the
network connection device, where the procedure request message is used to request
the network connection device to enable a Bluetooth pairing procedure with the wearable
device, instead of sending the mode request message to the wearable device to enable
the Bluetooth pairing mode. The wearable device is preset to enable a pairing mode,
that is, is preset to a state of being searchable by another Bluetooth device, and
can accept a pairing request. In a pairing process, the wearable device may prompt
a user whether to accept pairing with the network connection device. After the user
determines to accept pairing with the network connection device, the wearable device
accepts the pairing with the network connection device.
- (3) The user equipment indirectly and separately configures a function of the network
connection device and a function of the wearable device, so that the wearable device
may actively initiate a Bluetooth pairing procedure to the network connection device,
and the network connection device may be passively paired with the wearable device.
[0075] The user equipment sends the mode request message to the network connection device,
where the mode request message is used to request the network connection device to
enable the Bluetooth pairing mode; that is, the network connection device is set to
the state of being searchable by another Bluetooth device within a period of time,
and can accept the pairing request. The user equipment sends the procedure request
message to the wearable device, where the procedure request message is used to request
the wearable device to enable the Bluetooth pairing procedure with the network connection
device.
[0076] The following describes a communications method of a wearable device provided in
the present invention is described by using an application embodiment. In the communications
system of this embodiment shown in FIG. 1a, user equipment communicates with a network
connection device by using the UPnP protocol, the network connection device communicates
with the wearable device by using the Bluetooth protocol, and the user equipment communicates
with the wearable device by using the Bluetooth protocol. In this embodiment:
- 1. The user equipment configures the network connection device and the wearable device.
A flowchart is shown in FIG. 5a, including:
- (1) The user equipment obtains a Bluetooth address BD_ADDR1 of the network connection
device and a Bluetooth address BD_ADDR2 of the wearable device, and generates a key
Link_Key for performing Bluetooth communication between the network connection device
and the wearable device.
Specifically, the user equipment may obtain, by using a web client installed on the
user equipment, the Bluetooth address BD_ADDR1 of the network connection device from
a web server, that is, the network connection device; or the user equipment serves
as a control point, and reads the Bluetooth address BD_ADDR1 from the network connection
device (the network connection device is used as a UPnP device) by using the UPnP
protocol.
- (2) The user equipment sends information such as the Bluetooth address BD_ADDR1 of
the network connection device and the key Link Key to the wearable device for storage.
- (3) The user equipment sends information such as the Bluetooth address BD_ADDR2 of
the wearable device and the key Link Key to the network connection device for storage.
Optionally, the user equipment sends information such as a pairing relationship between
the user equipment and the wearable device to the network connection device for storage.
If the network connection device receives no pairing relationship between the user
equipment and the wearable device, the pairing relationship between the user equipment
and the wearable device be established.
- (4) The user equipment obtains Bluetooth service information supported by the wearable
device from the wearable device, and sends the Bluetooth service information to the
network connection device.
Therefore, the network connection device may establish a mapping relationship between
the Bluetooth service information supported by the wearable device and service information
of the UPnP protocol, and map the wearable device to a UPnP root device of the network
connection device. For example, the network connection device establishes a mapping
relationship between configuration management service (CMS) information of the UPnP
protocol and heart rate service (HEART RATE SERVICE) information supported by the
wearable device, specifically:
- A. Map the Bluetooth address of the wearable device to a universally unique identifier
(UUID) of the UPnP root device.
- B. Establish a mapping relationship between a function (action) and an event in a
CMS service and the GATT and a characteristic (CHARACTERISTIC) command in a Bluetooth
protocol, for example:
A value setting function (SetValues) in the CMS service corresponds to a write request
(Write Request) in the Bluetooth protocol; a value obtaining function (GetValues)
in the CMS service corresponds to a read request (Read Request) in the Bluetooth protocol;
and a report event in the CMS service corresponds to a value handling notification
(Handle Value Notification) in the Bluetooth protocol, and the like.
- C. Establish a mapping relationship between a characteristic (CHARACTERISTIC) in the
Bluetooth protocol and a parameter in a data model of a CMS service, for example:
Characteristics in the Bluetooth protocol, including a heart rate measurement (Heart
Rate Measurement), a heart rate measurement client characteristic configuration descriptor
(Heart Rate Measurement Client Characteristic Configuration descriptor), a body sensor
location (Body Sensor Location), a heart rate control point (Heart Rate Control Point),
and the like, are considered as parameters in the data model of the CMS service.
- D. Establish a mapping relationship between a characteristic having a notify (Notify)
attribute in the Bluetooth protocol and status variable in the CMS service, so that
the wearable device may report a characteristic value, for example:
The heart rate measurement (Heart Rate Measurement) in the Bluetooth protocol is corresponding
to the status variable of the UPnP protocol.
- 2. The user equipment indirectly communicates with the wearable device by using the
network connection device. A flowchart is shown in FIG. 5b, including:
- (1) In a process of performing the Bluetooth communication between the user equipment
and the wearable device, if the wearable device does not receive, within a period
of time, a Bluetooth heartbeat packet sent by the user equipment, it is determined
that the Bluetooth connection between the wearable device and the user equipment is
disconnected. In this case, the wearable device continues to determine whether a Bluetooth
paging message sent by the network connection device can be received. If the Bluetooth
paging message sent by the network connection device can be received, the wearable
device may return a Bluetooth paging response, so as to establish a Bluetooth communication
connection between the network connection device and the wearable device.
In another specific embodiment (as shown by dashed lines in FIG. 5b), if the user
equipment does not receive, within a period of time, a Bluetooth heartbeat response
message sent by the wearable device, it is determined that the Bluetooth connection
to the wearable device is disconnected, and the user equipment sends the triggering
command to the network connection device by using the UPnP protocol, so as to trigger
the network connection device to establish the Bluetooth communication connection
to the wearable device.
- (2) After the Bluetooth communication connection between the network connection device
and the wearable device is established, an announcement message is sent to the user
equipment, where the announcement message is used to notify the user equipment that
the first Bluetooth connection between the network connection device and the wearable
device is established, or that the wearable device is in an online state. For example,
the announcement message is used to notify the user equipment that a UPnP root device
corresponding to the wearable device is in the online state, and the announcement
message is specifically Simple Service Discovery Protocol (Simple Service Discovery
Protocol, SSDP) :: alive (alive) announcement message.
- (3) After receiving the SSDP :: alive announcement message sent by the network connection
device, the user equipment may indirectly communicate with the wearable device, specifically:
The user equipment sends the first information to the network connection device by
using the UPnP protocol, and the network connection device converts the first information
sent by using the UPnP protocol to the first information sent by using the Bluetooth
protocol, and sends the first information to the wearable device. For example, the
first information sent by the user equipment to the wearable device is parameter value
reading. The user equipment sends a GetValues () command of the UPnP protocol to the
network connection device, and the network connection device converts the GetValues
() command to the Read Request () of the Bluetooth protocol and sends the Read Request
() to the wearable device.
When the wearable device sends second information to the user equipment, the wearable
device sends the second information to the network connection device by using the
Bluetooth protocol, and the network connection device converts second information
sent by using the Bluetooth protocol to second information sent by using the UPnP
protocol, and sends the second information to the user equipment. For example, the
second information sent by the wearable device to the user equipment is heart rate
reporting. The wearable device sends a heart rate measurement (Heart Rate Measurement)
parameter value to the network connection device by using a Handle Value Notification
() message of the Bluetooth protocol, and the network connection device converts the
heart rate measurement parameter value to a notification event of the UPnP protocol
and report the heart rate measurement parameter value to the user equipment.
- (4) When the user equipment finds that strength of a Bluetooth signal of the wearable
device reaches a threshold, the user equipment instructs the network connection device
to disconnect the Bluetooth connection to the wearable device, so that the user equipment
may communicate with the wearable device by establishing a direct communication connection.
[0077] The following describes a communications method of a wearable device provided in
the present invention by using another following specific embodiment. In the communications
system of this embodiment shown in FIG. 1b, the method in this embodiment is similar
to the method of the application embodiment corresponding to FIG. 1a. A difference
is as follows: In this embodiment, a network connection device communicates with a
wearable device by using a bridge device, where the bridge device is connected to
the network connection device by using an electrical power cable, and the bridge device
mainly transmits a Bluetooth message sent by the network connection device or the
wearable device.
[0078] An embodiment of the present invention further provides a network connection device,
where the network connection device may be a gateway device such as a Wi-Fi router.
A schematic structural diagram of the network connection device is shown in FIG. 6,
including:
a communication establishment unit 11, configured to determine that a second Bluetooth
connection between user equipment and a wearable device is disconnected, and establish
a first Bluetooth connection to the wearable device, where:
specifically, the communication establishment unit 11 is specifically configured to:
after a triggering command sent by the user equipment is received, where the triggering
command is used to instruct to establish the first Bluetooth connection between the
network connection device and the wearable device, determine that the second Bluetooth
connection between the user equipment and the wearable device is disconnected, and
establish the first Bluetooth connection to the wearable device; or after a Bluetooth
signal of the wearable device is found, determine that the second Bluetooth connection
between the user equipment and the wearable device is disconnected, and establish
the first Bluetooth connection to the wearable device; or after a Bluetooth signal
of the wearable device is found, send an acknowledgment request message to the user
equipment, where the acknowledgment request message is used to request the user equipment
to determine whether the first Bluetooth connection be established between the network
connection device and the wearable device, and after an acknowledgment message returned
by the user equipment is received, determine that the second Bluetooth connection
between the user equipment and the wearable device is disconnected, and establish
the first Bluetooth connection to the wearable device;
an information receiving unit 12, configured to receive first information that is
sent by the user equipment through a third communication connection to the network
connection device; and
a sending unit 13, configured to send the first information received by the information
receiving unit 12 to the wearable device through the first Bluetooth connection established
by the communication establishment unit 11.
[0079] It may be understood that, when establishing the first Bluetooth connection between
the network connection device and the wearable device, the communication establishment
unit 11 may establish the first Bluetooth connection to the wearable device by using
a bridge device that communicates with the network connection device; and the sending
unit 13 is specifically configured to transmit the first information to the bridge
device, and the bridge device sends the first information to the wearable device through
the Bluetooth connection to the wearable device.
[0080] Further, in this embodiment, the information receiving unit 12 is further configured
to receive second information sent by the wearable device through the first Bluetooth
connection; and the sending unit 13 is further configured to send the second information
to the user equipment through the third communication connection.
[0081] It can be learned that in this embodiment of the present invention, if a second Bluetooth
connection between user equipment and a wearable device is disconnected, a first Bluetooth
connection between a network connection device and the wearable device is established
by using a communication establishment unit 11; when an information receiving unit
12 receives first information that is sent by the user equipment through a third communication
connection to the network connection device, a sending unit 13 sends the first information
to the wearable device through the first Bluetooth connection. In this way, indirect
communication between the user equipment and the wearable device is implemented by
using the network connection device, so that the user equipment and the wearable device
are not limited by a communication range.
[0082] As shown in FIG. 7, in a specific embodiment, in addition to the structure shown
in FIG. 6, the network connection device includes a first configuration unit 14, a
second configuration unit 15, and a disconnecting unit 16.
[0083] The first configuration unit 14 is configured to receive first configuration information
sent by the user equipment, where the first configuration information includes a Bluetooth
address of the wearable device and a key; and store the first configuration information,
where the first configuration information further includes information such as a pairing
relationship between the user equipment and the wearable device, and the first configuration
information is used by the sending unit to send the first information to the wearable
device through the first Bluetooth connection. Alternatively, the first configuration
unit 14 is configured to receive a procedure request message sent by the user equipment,
where the procedure request message is used to request the network connection device
to enable a Bluetooth pairing procedure with the wearable device; and enable the Bluetooth
pairing procedure with the wearable device according to the procedure request message.
Alternatively, the first configuration unit 14 is configured to receive a mode request
message sent by the user equipment, where the mode request message is used to request
the network connection device to enable a Bluetooth pairing mode; and enable the Bluetooth
pairing mode according to the mode request message, so as to accept Bluetooth pairing
with the wearable device. The first configuration unit 14 is further configured to
establish the pairing relationship between the user equipment and the wearable device.
[0084] The second configuration unit 15 is configured to receive second configuration information
sent by the user equipment, where the second configuration information includes Bluetooth
service information supported by the wearable device; and establish a mapping relationship
between the Bluetooth service information and service information supported by the
third communication connection, and store the mapping relationship. The sending unit
13 is specifically configured to: convert, according to the mapping relationship stored
by the second configuration unit 15, first information sent by the user equipment
through the third communication connection to first information sent through the first
Bluetooth connection, and send the first information to the wearable device through
the first Bluetooth connection.
[0085] The disconnecting unit 16 is configured to receive a first notification message sent
by the user equipment, where the first notification message is used to instruct the
network connection device to disconnect the first Bluetooth connection between the
network connection device the wearable device, and disconnect the first Bluetooth
connection between the network connection device the wearable device; or disconnect
the third communication connection between the network connection device and the user
equipment, and disconnect the first Bluetooth connection between the network connection
device the wearable device.
[0086] An embodiment of the present invention further provides user equipment. A schematic
structural diagram of the user equipment is shown in FIG. 8, including:
a communication determining unit 20, configured to determine that a second Bluetooth
connection between the user equipment and a wearable device is disconnected, where
the communication determining unit 20 is specifically configured to: when it is detected
that the second Bluetooth connection to the wearable device is disconnected, or when
the user equipment determines to establish a third communication connection to the
network connection device, disconnect the second Bluetooth connection to the wearable
device; and
an information sending unit 21, configured to: after the communication determining
unit 10 determines that the first Bluetooth connection is disconnected, if a first
Bluetooth connection between a network connection device in a network to which the
user equipment belongs and the wearable device is established, send first information
to the network connection device through a third communication connection to the network
connection device, so that the network connection device sends the first information
to the wearable device through the first Bluetooth connection.
[0087] Further, the user equipment may further include a configuration sending unit 22,
a triggering unit 23, and a communication establishment unit 24 (In FIG. 8, dashed
lines are used to represent structures that are further included in the user equipment).
[0088] The configuration sending unit 22 is configured to send first configuration information
to the network connection device, where the first configuration information includes
a Bluetooth address of the wearable device and a key, and may further include information
such as a pairing relationship between the user equipment and the wearable device;
and the configuration sending unit 22 is further configured to send third configuration
information to the wearable device, where the third configuration information includes
a Bluetooth address of the network connection device and a key. Alternatively, the
configuration sending unit 22 is configured to send a mode request message to the
wearable device, where the mode request message is used to request the wearable device
to enable a Bluetooth pairing mode; and send a procedure request message to the network
connection device, where the procedure request message is used to request the network
connection device to enable a Bluetooth pairing procedure with the wearable device.
Alternatively, the configuration sending unit 22 is configured to send a mode request
message to the network connection device, where the mode request message is used to
request the network connection device to enable a Bluetooth pairing mode; and send
a procedure request message to the wearable device, where the procedure request message
is used to request the wearable device to enable a Bluetooth pairing procedure with
the network connection device.
[0089] Further, the configuration sending unit 22 is further configured to send second configuration
information to the network connection device, where the second configuration information
includes Bluetooth service information supported by the wearable device. Therefore,
the network connection device may establish, according to the second configuration
information, a mapping relationship between the Bluetooth service information and
service information supported by the third communication connection, and store the
mapping relationship.
[0090] The triggering unit 23 is configured to send a triggering command to the network
connection device, where the triggering command is used to instruct to establish the
first Bluetooth connection between the network connection device and the wearable
device; and/or the triggering unit 23 is configured to receive an announcement message
sent by the network connection device, where the announcement message is used to notify
the user equipment that the first Bluetooth connection between the network connection
device and the wearable device is established.
[0091] It may be understood that, in the user equipment, after the communication determining
unit 20 determines that the second Bluetooth connection to the wearable device is
disconnected, the information sending unit 21 directly sends the first information;
or after the communication determining unit 20 determines that the second Bluetooth
connection to the wearable device is disconnected, the triggering unit 23 first triggers
the network connection device to establish the first Bluetooth connection to the wearable
device, or after the triggering unit 23 receives the announcement message, the information
sending unit 21 sends the first information.
[0092] The communication establishment unit 24 is configured to find a Bluetooth signal
of the wearable device and establish a second Bluetooth connection to the wearable
device; or after the third communication connection between the user equipment and
the network connection device is disconnected, find a Bluetooth signal of the wearable
device and establish a second Bluetooth connection to the wearable device; or after
a second notification message sent by the network connection device is received, where
the second notification message is used to notify the user equipment that the first
Bluetooth connection between the network connection device and the wearable device
is disconnected, find a Bluetooth signal of the wearable device and establish a second
Bluetooth connection to the wearable device; or when a Bluetooth signal of the wearable
device is found, and when the user equipment does not perform information interaction
with the wearable device by using the network connection device in a preset time,
send, to the network connection device, a request for disconnecting the first Bluetooth
connection and establish the second Bluetooth connection to the wearable device. In
this case, the information sending unit 21 is further configured to send the first
information to the wearable device through the second Bluetooth connection established
by the communication establishment unit 24.
[0093] It can be learned that, in this embodiment, if a second Bluetooth connection between
user equipment and a wearable device is disconnected, a first Bluetooth connection
between a network connection device in a network to which the user equipment belongs
and the wearable device is established. When a communication determining unit 20 in
the user equipment finds that the second Bluetooth connection to the wearable device
is disconnected, an information sending unit 21 may send the first information to
the wearable device by using the network connection device. In this way, indirect
communication between the user equipment and the wearable device is implemented by
using the network connection device, so that the user equipment and the wearable device
are not limited by a communication range.
[0094] An embodiment of the present invention further provides another network connection
device, where the network connection device may be a gateway device such as a Wi-Fi
router. A schematic structural diagram of the network connection device is shown in
FIG. 9, including: a processor 30 connected to a bus, a memory 31, a communications
unit 32, and a power supply 33, where the communications unit 32 may include a transmitter
321 and a receiver 322.
[0095] The memory 31 may be configured to store a software program and a module. The processor
30 executes various functions or applications of a network connection device and implements
data processing by running the software program and the module that are stored in
the memory 31. The memory 31 mainly includes a program storage area and a data storage
area, where the program storage area may store an operating system, an application
program required by at least one function, and the data storage area may store data
created according to use of the network connection device, and the like. In a specific
implementation manner of the present invention, the memory 30 may include a volatile
memory, for example, a nonvolatile random access memory (NVRAM), a phase change random
access memory (PRAM), or a magnetoresistive random access memory (MRAM); and may further
include a nonvolatile memory, for example, at least one magnetic disk storage device,
an electrically erasable programmable read-only memory (EEPROM), or a flash memory
device such as a NOR flash memory or an NAND flash memory. The nonvolatile memory
stores an operating system and an application program to be executed by the processor
30; and the processor 30 loads, from the nonvolatile memory, a running program and
data to a memory, and stores digital content in a large number of storage apparatuses.
The operating system is used to control and manage a general system task, for example,
memory management, storage device control or power management, and various components
and/or drives that facilitate communication between various software and hardware.
[0096] In this embodiment, the program storage area of the memory 31 may store a program
that performs the communications method in the embodiment corresponding to FIG. 2
or FIG. 3. Details are not described herein.
[0097] The power supply 33 is configured to supply power to various parts of the network
connection device to keep them running. The power supply 33 may be a built-in battery,
for example, a common lithium-ion battery or a nickel-hydride battery; and may also
include an external power supply that directly supplies power to the network connection
device, for example, an AC adapter. In some embodiments of the present invention,
the power supply 33 may have a broader definition; for example, may further include
a power management system, a charging system, a power failure detection circuit, a
power converter or inverter, a power status indicator (such as a light emitting diode),
and any other components related to power generation, management, and distribution
of the electronic device.
[0098] The processor 30 is a control center of the network connection device and is connected
to each part of the entire network connection device by using various interfaces and
lines. The processor 30 implements various functions of the network connection device
and/or processes data by running or executing a software program and/or a module that
are/is stored in the memory 31 and by invoking data stored in the memory 31. The processor
30 may be constituted by an integrated circuit (IC), for example, may be constituted
by a single packaged IC, or may be constituted by connecting multiple packaged ICs
that have a same function or different functions. For example, the processor 30 may
include only a central processing unit (CPU), or may be a combination of a GPU, a
digital signal processor (DSP), and a control chip (for example, a baseband chip)
in a communications unit. In an implementation manner of the present invention, the
CPU may be a single computing core, or may include multiple computing cores.
[0099] In this embodiment, the processor 30 may invoke a program stored in a program storage
area, and performs the communications method in the embodiment corresponding to FIG.
2 or FIG. 3. Details are not described herein.
[0100] The communications unit 32 is configured to establish a communication channel, so
that the network connection device may connect the wearable device and the user equipment
by using the communication channel. The communications unit 32 may include communication
modules (not shown in FIG. 9), such as a wireless local area network (wireless LAN
for short) module, a Bluetooth module, and a base band module, and radio frequency
(RF) circuits corresponding to these communication modules, so as to perform wireless
local area network communication, Bluetooth communication and/or cellular communications
system communication, such as wideband code division multiple access (W-CDMA) and/or
high speed downlink packet access (HSDPA). These communication modules are configured
to control communication between all the components in the network connection device,
and may support direct memory access.
[0101] In different implementation manners of the present invention, each of communication
modules in the communications unit 32 generally appears in a form of an integrated
circuit chip, and the communication modules may be combined selectively instead of
including all communication modules and corresponding antenna groups. For example,
the communications unit 32 may include only a baseband chip, a radio frequency chip,
and a corresponding antenna, so as to provide a communication function in a cellular
communications system. The electronic device may be connected to a cellular network
or the Internet through a wireless communication connection established by the communications
unit 32, for example, wireless local area network access or WCDMA access. In some
optional implementation manners of the present invention, a communication module in
the communications unit 32, for example, the baseband module, may be integrated into
a processor 30, typically, such as APQ+MDM platforms provided by Qualcomm
[0102] The radio frequency circuit is configured to receive and send information, or receive
and send a signal during a call. Generally, the radio frequency circuit includes a
well-known circuit used to perform these functions, which includes but is not limited
to an antenna system, a radio frequency transceiver including the transmitter 321
and the receiver 322, one or more amplifiers, a tuner, one or more oscillators, a
digital signal processor, a codec chipset, and a memory. In addition, the radio frequency
circuit may further communicate with a network and another device by means of wireless
communication. The wireless communications may use any communication standard or protocol,
including but not limited to Global System for Mobile Communications (GSM), General
Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division
Multiple Access (WCDMA), HSUPA (High Speed Uplink Packet Access technology), and Long
Term Evolution (LTE).
[0103] Specifically, in this embodiment, the processor 30 in the network connection device
may invoke the program stored in the memory 31 to implement the following functions.
[0104] The processor 30 is configured to determine that a second Bluetooth connection between
user equipment and a wearable device is disconnected, and instruct to establish a
first Bluetooth connection between the communications unit 32 and the wearable device.
When receiving first information sent through a third communication connection between
the user equipment and the network connection device, the receiver 322 in the communications
unit 32 instructs the transmitter 321 in the communications unit 32 to send the first
information to the wearable device through the established first Bluetooth connection.
In this way, indirect communication between the user equipment and the wearable device
is implemented by using the network connection device, so that the user equipment
and the wearable device are not limited by a communication range.
[0105] Specifically, when the receiver 322 receives a triggering command sent by the user
equipment, where the triggering command is used to instruct to establish the first
Bluetooth connection between the network connection device and the wearable device,
the processor 31 determines that the second Bluetooth connection between the user
equipment and the wearable device is disconnected, and establishes the first Bluetooth
connection to the wearable device; or after the communications unit 32 finds a Bluetooth
signal of the wearable device, for example, the transmitter 321 sends a Bluetooth
paging message, and when the receiver 322 receives a Bluetooth paging response sent
by the wearable device, the processor 30 determines that the second Bluetooth connection
between the user equipment and the wearable device is disconnected, and instructs
to establish the first Bluetooth connection between the communications unit 32 and
the wearable device; or after the communications unit 32 finds a Bluetooth signal
of the wearable device, the transmitter 321 sends an acknowledgment request message
to the user equipment, where the acknowledgment request message is used to request
the user equipment to determine whether the first Bluetooth connection be established
between the network connection device and the wearable device, and the receiver 322
receives the acknowledgment message returned by the user equipment, the processor
30 determines that the second Bluetooth connection between the user equipment and
the wearable device is disconnected, and then the processor 30 instructs to establish
the first Bluetooth connection between the communications unit 32 and the wearable
device.
[0106] It may be understood that, when the processor 30 instructs to establish the first
Bluetooth connection between the communications unit 32 and the wearable device, specifically,
the first Bluetooth connection to the wearable device may be established by using
a bridge device that communicates with the network connection device. Specifically,
the processor 30 instructs the transmitter 321 to transmit the first information to
the bridge device, and the bridge device sends the first information to the wearable
device through the Bluetooth connection to the wearable device.
[0107] Further, the processor 30 is further configured to: when the receiver 322 receives
second information that is sent by the wearable device through the first Bluetooth
connection, instruct the transmitter 321 to send the second information to the user
equipment through the third communication connection.
[0108] In a specific embodiment, the processor 30 is further configured to: when the receiver
322 receives first configuration information sent by the user equipment, where the
first configuration information includes a Bluetooth address of the wearable device
and a key, store the first configuration information into the memory 31. The first
configuration information is used by the sending unit to send the first information
to the wearable device through the first Bluetooth connection, where the first configuration
information further includes information such as a pairing relationship between the
user equipment and the wearable device. Alternatively, the processor 30 is configured
to: when the receiver 322 receives a procedure request message sent by the user equipment,
where the procedure request message is used to request the network connection device
to enable a Bluetooth pairing procedure with the wearable device, enable the Bluetooth
pairing procedure with the wearable device according to the procedure request message.
Alternatively, the processor 30 is configured to: when the receiver 322 receives a
mode request message sent by the user equipment, where the mode request message is
used to request the network connection device to enable a Bluetooth pairing mode,
enable the Bluetooth pairing mode according to the mode request message, so as to
accept Bluetooth pairing with the wearable device. The processor 30 is further configured
to establish the pairing relationship between the user equipment and the wearable
device.
[0109] Further, the processor 30 is further configured to: when the receiver 322 receives
second configuration information sent by the user equipment, where the second configuration
information includes Bluetooth service information supported by the wearable device,
establish a mapping relationship between the Bluetooth service information and service
information supported by the third communication connection, and store the mapping
relationship in the memory 31; and the processor 30 is specifically configured to:
instruct, according to the mapping relationship, the transmitter 321 to convert first
information sent by the user equipment through the third communication connection
to first information sent through the first Bluetooth connection, and send the first
information to the wearable device through the first Bluetooth connection.
[0110] In another specific embodiment, the processor 30 is further configured to: when the
receiver 322 receives a first notification message sent by the user equipment, where
the first notification message is used to instruct the network connection device to
disconnect the first Bluetooth connection between the network connection device the
wearable device, disconnect the first Bluetooth connection between the network connection
device the wearable device; or disconnect the third communication connection between
the network connection device and the user equipment; and disconnect the first Bluetooth
connection between the network connection device the wearable device.
[0111] An embodiment of the present invention further provides another user equipment. A
structure of the user equipment may be similar to the structure of the network connection
device shown in FIG. 9, including: a processor connected to a bus, a memory, a communications
unit, and a power supply, where the communications unit may include a transmitter
and a receiver.
[0112] The processor may invoke a program stored in the memory to implement the following
functions.
[0113] The processor is configured to determine that a second Bluetooth connection between
user equipment and a wearable device is disconnected; and if a first Bluetooth connection
between a network connection device in a network to which the user equipment belongs
and the wearable device is established, instruct the transmitter to send first information
to the network connection device through a third communication connection to the network
connection device, so that the network connection device sends the first information
to the wearable device through the first Bluetooth connection. In this way, indirect
communication between the user equipment and the wearable device is implemented by
using the network connection device, so that the user equipment and the wearable device
are not limited by a communication range. The processor is specifically configured
to detect that the second Bluetooth connection to the wearable device is disconnected;
or when the user equipment determines to establish a third communication connection
to the network connection device, disconnect the second Bluetooth connection to the
wearable device, and determine that the second Bluetooth connection to the wearable
device is disconnected.
[0114] In a specific embodiment, the processor is further configured to instruct the transmitter
to send first configuration information to the network connection device, where the
first configuration information includes a Bluetooth address of the wearable device
and a key, and may further include information such as a pairing relationship between
the user equipment and the wearable device; and instruct the transmitter to send third
configuration information to the wearable device, where the third configuration information
includes a Bluetooth address of the network connection device and a key. Alternatively,
the processor is further configured to instruct the transmitter to send a mode request
message to the wearable device, where the mode request message is used to request
the wearable device to enable a Bluetooth pairing mode; and send a procedure request
message to the network connection device, where the procedure request message is used
to request the network connection device to enable a Bluetooth pairing procedure with
the wearable device. Alternatively, the processor is further configured to instruct
the transmitter to send a mode request message to the network connection device, where
the mode request message is used to request the network connection device to enable
a Bluetooth pairing mode; and send a procedure request message to the wearable device,
where the procedure request message is used to request the wearable device to enable
a Bluetooth pairing procedure with the network connection device.
[0115] Further, the processor is further configured to instruct the transmitter to send
second configuration information to the network connection device, where the second
configuration information includes Bluetooth service information supported by the
wearable device. Therefore, the network connection device may establish, according
to the second configuration information, a mapping relationship between the Bluetooth
service information and service information supported by the third communication connection,
and store the mapping relationship.
[0116] In another specific embodiment, the processor is further configured to instruct the
transmitter to send a triggering command to the network connection device, where the
triggering command is used to instruct to establish the first Bluetooth connection
between the network connection device and the wearable device; and/or the receiver
is configured to receive an announcement message sent by the network connection device,
where the announcement message is used to notify the user equipment that the first
Bluetooth connection between the network connection device and the wearable device
is established.
[0117] It may be understood that, after it is determined that the second Bluetooth connection
to the wearable device is disconnected, the processor may directly instruct the transmitter
to send the first information; or after it is determined that the second Bluetooth
connection to the wearable device is disconnected, instruct the transmitter to trigger
the network connection device to establish the first Bluetooth connection to the wearable
device; or after the receiver receives the announcement message, instruct the transmitter
to send the first information.
[0118] In another embodiment, the processor further finds a Bluetooth signal of the wearable
device and establishes the second Bluetooth connection to the wearable device; or
after the third communication connection between the user equipment and the network
connection device is disconnected, finds a Bluetooth signal of the wearable device
and establishes a second Bluetooth connection to the wearable device; or after a second
notification message sent by the network connection device is received, where the
second notification message is used to notify the user equipment that the first Bluetooth
connection between the network connection device and the wearable device is disconnected,
finds a Bluetooth signal of the wearable device and establishes the second Bluetooth
connection to the wearable device; or when a Bluetooth signal of the wearable device
is found, and when the user equipment does not perform information interaction with
the wearable device by using the network connection device in a preset time, sends,
to the network connection device, a request for disconnecting the first Bluetooth
connection, and establishes the second Bluetooth connection to the wearable device.
Therefore, the processor is further configured to instruct the transmitter to send
the first information to the wearable device through the established second Bluetooth
connection.
[0119] An embodiment of the present invention further provides a communications system.
A schematic structural diagram of the communications system is shown in FIG. 1a, including
a network connection device, user equipment, and a wearable device.
[0120] A structure of the network connection device may be similar to the structure of the
network connection device in the embodiment corresponding to FIG. 6, FIG. 7, or FIG.
9, and the network connection device is mainly used to connect a communication between
the user equipment and the wearable device. A structure of the user equipment may
be similar to the structure of the user equipment in the embodiment corresponding
to FIG. 8, and details are not described herein.
[0121] The wearable device is configured to: after a first Bluetooth connection to the network
connection device is established, receive first information sent by the network connection
device; and send second information to the network connection device through the first
Bluetooth connection.
[0122] An embodiment of the present invention further provides another communications system.
A schematic structural diagram of the communications system is shown in FIG. 1b, including
a network connection device, at least one bridge device, user equipment, and a wearable
device. The at least one bridge device is separately connected to the network connection
device by using an electrical power cable; and the bridge device is configured to
only forward a message of a second communications protocol between the network connection
device and the wearable device, and ensure a communication range between the network
connection device and the wearable device.
[0123] A structure of the network connection device may be similar to the structure of the
network connection device in the embodiment corresponding to FIG. 6, FIG. 7, or FIG.
9, and is mainly used to connect a communication between the user equipment and the
wearable device. A structure of the user equipment may be similar to the structure
of the user equipment in the embodiment corresponding to FIG. 8, and details are not
described herein.
The wearable device is configured to: after a first Bluetooth connection is performed
by using the bridge device connected to the network connection device, receive first
information that is forwarded by the bridge device and that is sent by the network
connection device through the first Bluetooth connection.
Further embodiments of the present invention are provided in the following. It should
be noted that the numbering used in the following section does not necessarily need
to comply with the numbering used in the previous sections.
Embodiment 1. A communications method of a wearable device, comprising:
determining, by a network connection device in a network to which user equipment belongs,
that a second Bluetooth connection between the user equipment and the wearable device
is disconnected, and establishing a first Bluetooth connection between the network
connection device and the wearable device;
receiving, by the network connection device, first information that is sent by the
user equipment through a third communication connection to the network connection
device; and
sending, by the network connection device, the first information to the wearable device
through the first Bluetooth connection.
Embodiment 2. The method according to embodiment 1, before the receiving, by the network
connection device, first information that is sent by the user equipment through a
third communication connection to the network connection device, further comprising:
receiving, by the network connection device, first configuration information sent
by the user equipment, wherein the first configuration information comprises a Bluetooth
address of the wearable device and a key; and storing, by the network connection device,
the first configuration information, wherein the first configuration information is
used by the network connection device to send the first information to the wearable
device through the first Bluetooth connection; or,
receiving, by the network connection device, a procedure request message sent by the
user equipment, wherein the procedure request message is used to request the network
connection device to enable a Bluetooth pairing procedure with the wearable device;
and enabling the Bluetooth pairing procedure with the wearable device according to
the procedure request message; or,
receiving, by the network connection device, a mode request message sent by the user
equipment, wherein the mode request message is used to request the network connection
device to enable a Bluetooth pairing mode; and enabling the Bluetooth pairing mode
according to the mode request message, so as to accept Bluetooth pairing with the
wearable device.
Embodiment 3. The method according to embodiment 1 or 2, before the receiving, by
the network connection device, first information that is sent by the user equipment
through a third communication connection to the network connection device, further
comprising:
receiving, by the network connection device, second configuration information sent
by the user equipment, wherein the second configuration information comprises Bluetooth
service information supported by the wearable device; and establishing a mapping relationship
between the Bluetooth service information and service information supported by the
third communication connection, and storing the mapping relationship; wherein
the sending, by the network connection device, the first information to the wearable
device through the established first Bluetooth connection comprises: converting, according
to the mapping relationship, first information sent by the user equipment through
the third communication connection to first information sent through the first Bluetooth
connection, and sending the first information to the wearable device through the first
Bluetooth connection.
Embodiment 4. The method according to any one of embodiments 1 to 3, before the determining,
by a network connection device in a network to which user equipment belongs, that
a second Bluetooth connection between the user equipment and the wearable device is
disconnected, further comprising:
receiving a triggering command sent by the user equipment, wherein the triggering
command is used to instruct to establish the first Bluetooth connection between the
network connection device and the wearable device; or
finding, by the network connection device, a Bluetooth signal of the wearable device;
or
after the network connection device finds the Bluetooth signal of the wearable device,
sending an acknowledgment request message to the user equipment, wherein the acknowledgment
request message is used to request the user equipment to determine whether the first
Bluetooth connection be established between the network connection device and the
wearable device; and receiving an acknowledgment message returned by the user equipment.
Embodiment 5. The method according to any one of embodiments 1 to 4, wherein the establishing
the first Bluetooth connection between the network connection device and the wearable
device comprises:
establishing the first Bluetooth connection between the network connection device
and the wearable device by using a bridge device that communicates with the network
connection device; and
the sending the first information to the wearable device through the first Bluetooth
connection comprises: transmitting, by the network connection device, the first information
to the bridge device; and sending, by the bridge device, the first information to
the wearable device through a Bluetooth connection between the bridge device and the
wearable device.
Embodiment 6. The method according to any one of embodiments 1 to 5, wherein the method
further comprises:
receiving, by the network connection device, second information sent by the wearable
device through the first Bluetooth connection; and
sending, by the network connection device, the second information to the user equipment
through the third communication connection.
Embodiment 7. The method according to any one of embodiments 1 to 6, wherein the method
further comprises:
receiving a first notification message sent by the user equipment, wherein the first
notification message is used to instruct the network connection device to disconnect
the first Bluetooth connection between the network connection device the wearable
device; and disconnecting the first Bluetooth connection between the network connection
device and the wearable device; or
disconnecting the third communication connection between the network connection device
and the user equipment; and disconnecting the first Bluetooth connection between the
network connection device and the wearable device.
Embodiment 8. A communications method of a wearable device, comprising:
determining, by user equipment, that a second Bluetooth connection between the user
equipment and the wearable device is disconnected; and
if a first Bluetooth connection between a network connection device in a network to
which the user equipment belongs and the wearable device is established, sending,
by the user equipment, first information to the network connection device through
a third communication connection to the network connection device, so that the network
connection device sends the first information to the wearable device through the first
Bluetooth connection.
Embodiment 9. The method according to embodiment 8, wherein the determining, by user
equipment, that a second Bluetooth connection between the user equipment and the wearable
device is disconnected comprises:
detecting, by the user equipment, that a second Bluetooth connection between the user
equipment and the wearable device is disconnected; or
when the user equipment determines that the third communication connection to the
network connection device is established, disconnecting the second Bluetooth connection
to the wearable device.
Embodiment 10. The method according to embodiment 8 or 9, before the sending, by the
user equipment, first information to the network connection device through a third
communication connection to the network connection device, further comprising:
sending, by the user equipment, first configuration information to the network connection
device, wherein the first configuration information comprises a Bluetooth address
of the wearable device and a key; and sending, by the user equipment, third configuration
information to the wearable device, wherein the third configuration information comprises
a Bluetooth address of the network connection device and a key; or,
sending, by the user equipment, a mode request message to the wearable device, wherein
the mode request message is used to request the wearable device to enable a Bluetooth
pairing mode; and sending, by the user equipment, a procedure request message to the
network connection device, wherein the procedure request message is used to request
the network connection device to enable a Bluetooth pairing procedure with the wearable
device; or
sending, by the user equipment, a mode request message to the network connection device,
wherein the mode request message is used to request the network connection device
to enable a Bluetooth pairing mode; and sending, by the user equipment, a procedure
request message to the wearable device, wherein the procedure request message is used
to request the wearable device to enable a Bluetooth pairing procedure with the network
connection device.
Embodiment 11. The method according to any one of embodiments 8 to 10, after the determining,
by user equipment, that a second Bluetooth connection between the user equipment and
the wearable device is disconnected, further comprising:
sending, by the user equipment, a triggering command to the network connection device,
wherein the triggering command is used to instruct to establish the first Bluetooth
connection between the network connection device and the wearable device; and/or
receiving, by the user equipment, an announcement message sent by the network connection
device, wherein the announcement message is used to notify the user equipment that
the first Bluetooth connection between the network connection device and the wearable
device is established.
Embodiment 12. The method according to any one of embodiments 8 to 11, wherein the
method further comprises:
finding, by the user equipment, a Bluetooth signal of the wearable device; establishing
the second Bluetooth connection to the wearable device; and sending, by the user equipment,
first information to the wearable device through the second Bluetooth connection;
or
after the third communication connection between the user equipment and the network
connection device is disconnected, finding, by the user equipment, a Bluetooth signal
of the wearable device; establishing the second Bluetooth connection to the wearable
device; and sending, by the user equipment, first information to the wearable device
through the second Bluetooth connection; or
after the user equipment receives second notification message sent by the network
connection device, wherein the second notification message is used to notify the user
equipment that the first Bluetooth connection between the network connection device
and the wearable device is disconnected, finding, by the user equipment, a Bluetooth
signal of the wearable device; establishing the second Bluetooth connection to the
wearable device; and sending, by the user equipment, first information to the wearable
device through the second Bluetooth connection; or
when the user equipment finds a Bluetooth signal of the wearable device, and when
the user equipment does not perform information interaction with the wearable device
by using the network connection device in a preset time, sending, to the network connection
device by the user equipment, a request for disconnecting the first Bluetooth connection;
establishing the second Bluetooth connection to the wearable device; and sending,
by the user equipment, first information to the wearable device through the second
Bluetooth connection.
Embodiment 13. The method according to any one of embodiments 8 to 12, wherein the
sending, by the user equipment, first information to the network connection device
through a third communication connection to the network connection device comprises:
sending, by the user equipment, the first information to the network connection device
by using the Internet Protocol IP; or sending, by the user equipment, the first information
to the network connection device by using the Universal Plug and Play UPnP protocol;
or sending, by the user equipment, the first information to the network connection
device by using the Wireless Fidelity Wi-Fi protocol.
Embodiment 14. A network connection device, comprising:
a communication establishment unit, configured to determine that a second Bluetooth
connection between user equipment and a wearable device is disconnected, and establish
a first Bluetooth connection to the wearable device;
an information receiving unit, configured to receive first information that is sent
by the user equipment through a third communication connection to the network connection
device; and
a sending unit, configured to send the first information to the wearable device through
the first Bluetooth connection established by the communication establishment unit.
Embodiment 15. The device according to embodiment 14, further comprising:
a first configuration unit, configured to receive first configuration information
sent by the user equipment, wherein the first configuration information comprises
a Bluetooth address of the wearable device and a key; and store the first configuration
information, wherein the first configuration information is used by the sending unit
to send the first information to the wearable device through the first Bluetooth connection;
or
the first configuration unit, configured to receive a procedure request message sent
by the user equipment, wherein the procedure request message is used to request the
network connection device to enable a Bluetooth pairing procedure with the wearable
device; and enable the Bluetooth pairing procedure with the wearable device according
to the procedure request message; or
the first configuration unit, configured to receive a mode request message sent by
the user equipment, wherein the mode request message is used to request the network
connection device to enable a Bluetooth pairing mode; and enable the Bluetooth pairing
mode according to the mode request message, so as to accept Bluetooth pairing with
the wearable device.
Embodiment 16. The device according to embodiment 14 or 15, further comprising:
a second configuration unit, configured to receive second configuration information
sent by the user equipment, wherein the second configuration information comprises
Bluetooth service information supported by the wearable device; and establish a mapping
relationship between the Bluetooth service information and service information supported
by the third communication connection, and store the mapping relationship; wherein
the sending unit is specifically configured to: convert, according to the mapping
relationship stored by the second configuration unit, first information sent by the
user equipment through the third communication connection to first information sent
through the first Bluetooth connection, and send the first information to the wearable
device through the first Bluetooth connection.
Embodiment 17. The device according to any one of embodiments 14 to 16, wherein:
the communication establishment unit is specifically configured to: after a triggering
command sent by the user equipment is received, wherein the triggering command is
used to instruct to establish the first Bluetooth connection between the network connection
device and the wearable device, determine that second Bluetooth connection between
the user equipment and the wearable device is disconnected; or
after a Bluetooth signal of the wearable device is found, determine that the second
Bluetooth connection between the user equipment and the wearable device is disconnected;
or
after a Bluetooth signal of the wearable device is found, send an acknowledgment request
message to the user equipment, wherein the acknowledgment request message is used
to request the user equipment to determine whether the first Bluetooth connection
be established between the network connection device and the wearable device; and
after an acknowledgment message returned by the user equipment is received, determine
that the second Bluetooth connection between the user equipment and the wearable device
is disconnected.
Embodiment 18. The device according to any one of embodiments 14 to 17, wherein:
the communication establishment unit is specifically configured to establish the first
Bluetooth connection to the wearable device by using a bridge device that communicates
with the network connection device; and
the sending unit is specifically configured to transmit the first information to the
bridge device; and the bridge device sends the first information to the wearable device
through a Bluetooth connection between the bridge device and the wearable device.
Embodiment 19. The device according to any one of embodiments 14 to 18, wherein:
the information receiving unit is further configured to receive second information
sent by the wearable device through the first Bluetooth connection; and
the sending unit is further configured to send the second information to the user
equipment through the third communication connection.
Embodiment 20. The device according to any one of embodiments 14 to 19, further comprising:
a disconnecting unit, configured to receive a first notification message sent by the
user equipment, wherein the first notification message is used to instruct the network
connection device to disconnect the first Bluetooth connection between the network
connection device the wearable device; and disconnect the first Bluetooth connection
between the network connection device the wearable device; or
disconnect the third communication connection between the network connection device
and the user equipment; and disconnect the first Bluetooth connection between the
network connection device the wearable device.
Embodiment 21. User equipment, comprising:
a communication determining unit, configured to determine that a second Bluetooth
connection between the user equipment and a wearable device is disconnected; and
an information sending unit, configured to: if a first Bluetooth connection between
a network connection device in a network to which the user equipment belongs and the
wearable device is established, send first information to the network connection device
through a third communication connection to the network connection device, so that
the network connection device sends the first information to the wearable device through
the first Bluetooth connection.
Embodiment 22. The user equipment according to embodiment 21, further comprising:
a configuration sending unit, configured to send first configuration information to
the network connection device, wherein: the first configuration information comprises
a Bluetooth address of the wearable device and a key; and the configuration sending
unit is further configured to send third configuration information to the wearable
device, wherein the third configuration information comprises a Bluetooth address
of the network connection device and a key; or,
the configuration sending unit, configured to send a mode request message to the wearable
device, wherein the mode request message is used to request the wearable device to
enable a Bluetooth pairing mode; and send a procedure request message to the network
connection device, wherein the procedure request message is used to request the network
connection device to enable a Bluetooth pairing procedure with the wearable device;
or,
the configuration sending unit, configured to send a mode request message to the network
connection device, wherein the mode request message is used to request the network
connection device to enable a Bluetooth pairing mode; and send a procedure request
message to the wearable device, wherein the procedure request message is used to request
the wearable device to enable a Bluetooth pairing procedure with the network connection
device.
Embodiment 23. The user equipment according to embodiment 21 or 22, further comprising:
a triggering unit, configured to send a triggering command to the network connection
device, wherein the triggering command is used to instruct to establish the first
Bluetooth connection between the network connection device and the wearable device;
and/or
the triggering unit, configured to receive an announcement message sent by the network
connection device, wherein the announcement message is used to notify the user equipment
that the first Bluetooth connection between the network connection device and the
wearable device is established.
Embodiment 24. The user equipment according to any one of embodiments 21 to 23, further
comprising:
a communication establishment unit, configured to:
find a Bluetooth signal of the wearable device and establish a second Bluetooth connection
to the wearable device; or
after the third communication connection between the user equipment and the network
connection device is disconnected, find a Bluetooth signal of the wearable device
and establish a second Bluetooth connection to the wearable device; or
after a second notification message sent by the network connection device is received,
wherein the second notification message is used to notify the user equipment that
the first Bluetooth connection between the network connection device and the wearable
device is disconnected, find a Bluetooth signal of the wearable device and establish
a second Bluetooth connection to the wearable device; or
when a Bluetooth signal of the wearable device is found, and when the user equipment
does not perform information interaction with the wearable device by using the network
connection device in a preset time, send, to the network connection device, a request
for disconnecting the first Bluetooth connection, and establish the second Bluetooth
connection between the user equipment and the wearable device; wherein
the information sending unit is further configured to send the first information to
the wearable device through the second Bluetooth connection.
Embodiment 25. A communications system, comprising a network connection device, user
equipment, and a wearable device, wherein:
the network connection device is the network connection device according to any one
of embodiments 14 to 17, embodiment 19, or embodiment 20, and the user equipment is
the user equipment according to any one of embodiments 21 to 24; and
the wearable device is configured to: after a first Bluetooth connection to the network
connection device is established, receive first information sent by the network connection
device.
Embodiment 26. A communications system, comprising a network connection device, at
least one bridge device, user equipment, and a wearable device, wherein the at least
one bridge device is separately connected to the network connection device by using
an electrical power cable;
the network connection device is the network connection device according to any one
of embodiments 14 to 20, and the user equipment is the user equipment according to
any one of embodiments 21 to 24; and
the wearable device is configured to: after a first Bluetooth connection is performed
by using the bridge device connected to the network connection device, receive first
information that is forwarded by the bridge device and that is sent by the network
connection device through the first Bluetooth connection.
[0124] A person of ordinary skill in the art may understand that all or some of the steps
of the methods in the embodiments may be implemented by a program instructing relevant
hardware. The program may be stored in a computer readable storage medium. The storage
medium may include: a ROM, a RAM, a magnetic disk, or an optical disc.
The communications method of a wearable device, the communications system, and the
related device that are provided in the embodiments of the present invention are described
in detail above. The principle and implementation of the present invention are described
herein by using specific examples. The description about the embodiments is merely
provided to help understand the method and core ideas of the present invention. In
addition, a person of ordinary skill in the art can make variations and modifications
to the present invention in terms of the specific implementations and application
scopes according to the ideas of the present invention. Therefore, the content of
specification shall not be construed as a limit to the present invention.