Embodiments of this disclosure generally relate to the field of communication technologies, and in particular, to a short-distance wireless communication method, a device, a storage medium, and a computer program product.
A short-distance wireless communication technology is a technology for wireless transmission of data in a small area. The short-distance wireless communication technology usually covers an area from several meters to hundreds of meters. A BLUETOOTH (BT) technology is a common short-distance wireless communication technology. In a typical BT device, a standard transmission distance is merely 10 meters (m). A case in which an output power is increased to 20 decibel-milliwatts (dBm) and the transmission distance can reach 100 m is also extremely limited for a current expected implementation scenario. In addition, the transmission distance decreases sharply when there is a shelter.
Embodiments provide a short-distance wireless communication method, a device, a computer-readable storage medium, and a computer program product.
According to a first aspect of this disclosure, a short-distance wireless communication method is provided. In the method, a sending device sends first clock information to a relay device, where the first clock information indicates a local clock of the sending device, and communication between the sending device and a receiving device is performed based on at least the first clock information. The sending device sends first service data to the receiving device via the relay device.
In a first implementation of the first aspect, the sending device sends, to the relay device, configuration information associated with the communication, where the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In a second implementation of the first aspect, the sending device may send the first clock information to the relay device via another relay device.
In a third implementation of the first aspect, the sending device may send the first service data to the relay device via another relay device.
In a fourth implementation of the first aspect, the sending device may receive second service data of the receiving device via the relay device.
In a fifth implementation of the first aspect, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
According to the method provided in the first aspect of this disclosure, when the sending device determines that the receiving device is to move away from a coverage area of the sending device and move to a coverage area of the relay device, the sending device may send, to the relay device, clock information of the sending device and the configuration information associated with the communication between the sending device and the receiving device, so that the relay device may forward, to the receiving device, a data service from the sending device after the sending device sends, to the relay device, the service data to be sent to the receiving device, without perceiving by the receiving device that a direct link between the sending device and the receiving device is disconnected, and based on the clock information of the sending device and the configuration information associated with the communication. This can minimize a limitation on a transmission distance in a short-distance wireless communication technology, and can enable the receiving device to still receive the service data based on a clock offset and configuration information that match a sending device in previous communication in a moving process.
According to a second aspect of this disclosure, a short-distance wireless communication method is provided. In the method, a relay device receives first clock information from a sending device, where the first clock information indicates a local clock of the sending device, and communication between the sending device and a receiving device is performed based on at least the first clock information. The relay device updates second clock information based on at least the first clock information, where the second clock information indicates a local clock of the relay device. The relay device sends, to the receiving device, first service data from the sending device based on at least updated second clock information.
In a first implementation of the second aspect, the relay device may determine a second clock offset between the sending device and the relay device based on the first clock information and the second clock information, and update the second clock information based on the second clock offset and the first clock information.
In a second implementation of the second aspect, the relay device may receive, from the receiving device, configuration information associated with the communication, where the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In a third implementation of the second aspect, the relay device may receive, via another relay device, the first clock information associated with the sending device.
In a fourth implementation of the second aspect, the relay device may receive, via another relay device, the first service data to be sent to the receiving device.
In a fifth implementation of the second aspect, the relay device may receive second service data of the receiving device from the receiving device, and forward the second service data to the sending device based on configuration information.
In a sixth implementation of the second aspect, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
According to a third aspect of this disclosure, a short-distance wireless communication method is provided. In the method, a receiving device receives first service data from the receiving device via a relay device based on a first clock offset between the receiving device and a sending device and configuration information associated with communication between the sending device and the receiving device.
In a first implementation of the second aspect, the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In a second implementation of the second aspect, the receiving device may send second service data of the receiving device based on the configuration information.
In a third implementation of the second aspect, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE (ZIGBEE) communication, or SparkLink communication.
According to a fourth aspect of this disclosure, a sending device is provided. The sending device includes at least one processor and at least one memory including computer program code. The at least one memory and the computer program code may work with the at least one processor to enable the at least one processor to perform the method according to the first aspect of this disclosure.
According to a fifth aspect of this disclosure, a relay device is provided. The relay device includes at least one processor and at least one memory including computer program code. The at least one memory and the computer program code may work with the at least one processor to enable the at least one processor to perform the method according to the second aspect of this disclosure.
According to a sixth aspect of this disclosure, a receiving device is provided. The receiving device includes at least one processor and at least one memory including computer program code. The at least one memory and the computer program code may work with the at least one processor to enable the at least one processor to perform the method according to the third aspect of this disclosure.
According to a seventh aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the processor is enabled to perform the method according to the first aspect, the second aspect, or the third aspect of this disclosure.
According to an eighth aspect of this disclosure, a computer program product is provided. The computer program product includes computer-executable instructions, and when the computer-executable instructions are executed by a processor, the processor is enabled to perform the method according to the first aspect, the second aspect, or the third aspect of this disclosure.
According to a ninth aspect of this disclosure, a communication apparatus is provided. The communication apparatus includes a transceiver unit and a processing unit. The transceiver unit is configured to send first clock information to a relay device, where the first clock information indicates a local clock of a sending device, and communication between the sending device and a receiving device is performed based on at least the first clock information, and send first service data to the receiving device via the relay device.
In a first implementation of the ninth aspect, the transceiver unit is further configured to send the first clock information to the relay device via another relay device.
In a second implementation of the ninth aspect, the transceiver unit is further configured to send the first service data to the relay device via another relay device.
In a third implementation of the ninth aspect, the transceiver unit is further configured to receive second service data of the receiving device via the relay device.
In a fourth implementation of the ninth aspect, the transceiver unit is further configured to send, to the relay device, configuration information associated with the communication, where the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In a fifth implementation of the ninth aspect, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
According to a tenth aspect of this disclosure, a communication apparatus is provided. The communication apparatus includes a transceiver unit and a processing unit. The transceiver unit is configured to receive first clock information from a sending device, where the first clock information indicates a local clock of the sending device, and communication between the sending device and a receiving device is performed based on at least the first clock information, and send, to the receiving device, first service data from the sending device based on at least updated second clock information. The processing unit is used by a relay device to update second clock information based on at least the first clock information, where the second clock information indicates a local clock of the relay device.
In a first implementation of the tenth aspect, the processing unit is further configured to determine a second clock offset between the sending device and the relay device based on the first clock information and the second clock information, and update the second clock information based on the second clock offset and the first clock information.
In a second implementation of the tenth aspect, the transceiver unit is further configured to receive, via another relay device, the first clock information associated with the sending device.
In a third implementation of the tenth aspect, the transceiver unit is further configured to receive, via another relay device, the first service data to be sent to the receiving device.
In a fourth implementation of the tenth aspect, the transceiver unit is further configured to receive second service data of the receiving device from the receiving device, and forward the second service data to the sending device based on configuration information.
In a fifth implementation of the tenth aspect, the transceiver unit is further configured to receive, from the receiving device, configuration information associated with the communication, where the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In a sixth implementation of the tenth aspect, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
According to an eleventh aspect of this disclosure, a communication apparatus is provided. The communication apparatus includes a transceiver unit and a processing unit. The transceiver unit receives first service data from a receiving device via a relay device based on a first clock offset between the receiving device and a sending device and configuration information associated with communication between the sending device and the receiving device.
In a first implementation of the eleventh aspect, the transceiver unit is further configured to send second service data of the receiving device based on the configuration information.
In a second implementation of the eleventh aspect, the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In a third implementation of the eleventh aspect, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE (ZIGBEE) communication, or SparkLink communication.
According to a twelfth aspect of this disclosure, a communication apparatus is provided, including at least one processor. The at least one processor is configured to execute a computer program or instructions in a memory, to enable the communication apparatus to perform the method according to embodiments of the first aspect, the second aspect, or the third aspect.
According to a thirteenth aspect of this disclosure, a communication apparatus is provided, including a processor, a transceiver, and a memory. The processor is configured to execute a computer program or instructions in the memory, to enable the communication apparatus to perform the method according to embodiments of the first aspect, the second aspect, or the third aspect.
According to a fourteenth aspect of this disclosure, a communication apparatus is provided, including a processor and a memory. The processor is configured to execute a computer program or instructions in the memory, to enable the communication apparatus to perform the method according to embodiments of the first aspect, the second aspect, or the third aspect.
According to a fifteenth aspect of this disclosure, another communication apparatus is provided, including an interface circuit and a logic circuit. The interface circuit may be understood as an input/output interface, and the logic circuit may be used to run code instructions to perform the method according to embodiments of the first aspect, the second aspect, or the third aspect.
The foregoing and other features, advantages, and aspects of embodiments of this disclosure become clearer with reference to the accompanying drawings and the following detailed descriptions. In the accompanying drawings, the same or similar reference numerals indicate the same or similar elements.
The following describes some example embodiments with reference to the accompanying drawings. Although example embodiments of this disclosure are shown in the accompanying drawings, it should be understood that this disclosure may be implemented in various forms, and should not be construed as being limited to embodiments described herein. On the contrary, these embodiments are provided for a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are merely used as examples, but are not intended to limit the protection scope of this disclosure.
The terms “communication network” and “wireless network” used in this specification are networks that comply with any appropriate communication standard, such as Long-Term Evolution (LTE), LTE Advanced (LTE-A), wideband code-division multiple access (CDMA) (WCDMA), and High Speed Packet Access (HSPA). In addition, communication between a receiving device and a sending device in the communication network may be performed according to any appropriate generation communication protocol, including but not limited to first generation (1G), second generation (2G), second-and-a-half generation (2.5G), Enhanced Data Rates for Global System for Mobile Communications (GSM) Evolution (or 2.75G), third generation (3G), fourth generation (4G), 4.5G, and fifth generation (5G) communication protocols, and/or any other protocols currently known or to be developed in the future. Embodiments of this disclosure may be applied to various communication systems, including cellular and non-cellular communication systems. In view of rapid development of communication, certainly, there are also a communication technology and a system that are of a future type and that may embody this disclosure. Therefore, the scope of this disclosure should not be considered to be limited to the systems described above. For a purpose of illustration, embodiments of this disclosure are described with reference to a 5G communication system.
The terms “sending device”, “relay device”, and “receiving device” used in this specification are any terminal device that can perform wireless communication. As an illustrative and non-limiting example, the “sending device”, “relay device”, or “receiving device” may also be referred to as a communication device, a terminal device, user equipment (UE), a subscriber station (SS), a portable subscriber station, a mobile station (MS), or an access terminal (AT). The “sending device”, “relay device”, and “receiving device” may include but are not limited to a mobile phone, a cellular phone, a smartphone, a voice over Internet Protocol (IP) (VoTP) phone, a wireless local loop phone, a tablet computer, a wearable terminal device, a personal digital assistant (PDA), a portable computer, a desktop computer, an image capture terminal device (for example, a digital camera), a game terminal device, a music storage and playback device, a vehicle-mounted wireless terminal device, a wireless endpoint, a mobile station, laptop embedded equipment (LEE), laptop mounted equipment (LME), a Universal Serial Bus (USB) dongle, a smart device, wireless customer premises equipment (CPE), an Internet of things (IoT) device, a watch or another wearable device, a head-mounted display (HMD), a vehicle, a drone, a medical device and application (for example, remote surgery), an industrial device and application (for example, a robot and/or another wireless device running in an industrial and/or automatic processing chain environment), a consumer-type electronic device, a commercial operation device and/or an industrial wireless network.
The term “include” and variants thereof used in this specification indicate open inclusion, that is, “include but is not limited to”. Unless otherwise stated, the term “or” means “and/or”. The term “based on” means “at least partially based on”. The terms “example embodiments” and “some embodiments” represent “at least one example embodiment”. Another explicit and implicit definition may also be included below.
As mentioned above, a short-distance wireless communication technology is a technology for wireless transmission of data in a small area. The short-distance wireless communication technology usually covers an area from several meters to hundreds of meters. A BLUETOOTH (BT) technology is a common short-distance wireless communication technology. In a typical BLUETOOTH device, a standard transmission distance is merely 10 m. A case in which an output power is increased to 20 dBm and the transmission distance can reach 100 m is also extremely limited for a current expected implementation scenario. In addition, the transmission distance decreases sharply when there is a shelter.
In a solution, if a transmission distance is too long, it is usually considered to increase a transmit power or increase a quantity of retransmission times.
When a high power is used to transmit, although the transmission distance may be increased, power consumption may be significantly increased. This is not appropriate for a low-power consuming BLUETOOTH solution. In addition, increasing a transmit power of a device causes interference to another surrounding device. As a result, the device and the other surrounding device further increase transmit power, and mutual interference is caused. Consequently, transmission quality of all devices in the environment deteriorates.
If the quantity of retransmission times is increased, more transmission opportunities are needed for sending a single packet. As a result, power consumption is increased, a transmission delay is increased, and interference immunity is clearly reduced.
If it is considered to relay and amplify a BLUETOOTH signal, the BLUETOOTH transmission distance can be significantly increased. However, a challenge brought by this is that BLUETOOTH is a system that performs frequency hopping and encryption along with a host clock. When a host (a transmit end) is transferred (where in other words, a function of a current transmit end is transferred to another relay device), a frequency hopping sequence, physical layer modulation and bandwidth configurations, and an encryption mode of a receive end also need to be changed. In this period of time, a service cannot be continuously performed, causing freezing and reducing user experience.
Example processes of short-distance wireless communication according to embodiments of this disclosure are described below with reference to
In the network environment 100, the device 110, the device 120-1, the device 120-2, and the device 130 may include but are not limited to a mobile phone, a cellular phone, a smartphone, a tablet computer, a tablet mobile phone, a computer, a portable computer, a desktop computer, a PDA, a monitor, a computer monitor, a television, a tuner, an entertainment unit, a navigation device, a communication device, a fixed location data unit, a mobile location data unit, a radio, a satellite radio, a music player, a digital music player, a portable music player, a digital video player, a video player, a DIGITAL VERSATILE DISC (DVD) player, a portable digital video player, or any other appropriate device that can support the short-distance wireless communication.
It should be understood that the network environment 100 is merely used for an example purpose, and does not imply any limitation on the scope of this disclosure. Embodiments of this disclosure may be further embodied in another network environment or architecture. In addition, it should be further understood that the network environment 100 may further include another element or entity configured to implement a purpose of a communication connection, data transmission, or the like. For ease of description, the element or entity is not shown in
The network environment 100 according to embodiments of this disclosure may be a wireless network that complies with any protocol currently known or to be developed in the future, including but not limited to a Narrowband IoT (NB-IoT) system, a GSM, an EDGE system, a WCDMA system, a CDMA 2000 (CDMA2000) system, a time division-synchronous CDMA (TD-SCDMA) system, an LTE system, and three application scenarios Enhanced Mobile Broadband (eMBB), Ultra-Reliable Low Latency Communications (URLLC), and Enhanced Machine Type Communication (eMTC) of a 5G mobile communication system.
In the network environment 100, the sending device 110 and the receiving device 130 may perform the short-distance wireless communication with each other, for example, BLUETOOTH communication. Further, in some embodiments, when the receiving device 130 is in a coverage area of the sending device 110, the sending device 110 may transmit service data to the receiving device 130.
As described above, due to a limitation on a transmission distance, if the receiving device 130 is in a moving state, the receiving device 130 may gradually move away from the coverage area of the sending device 110. This causes data transmission losses or interruption.
One or more relay devices, such as the relay devices 120-1 and/or 120-2 in the network environment 100, may be used to increase the transmission distance of short-distance wireless transmission in the network environment 100.
For example, when the receiving device 130 moves away from the coverage area of the sending device 110 and moves close to a coverage area of the relay device 120-1, the sending device 110 may send, to the relay device 120-1, the service data to be sent to the receiving device 130, and then the relay device 120-1 sends the service data to the receiving device 130. Similarly, other service data backhauled from the receiving device 130 may also be forwarded to the sending device 110 via the relay device 120-1.
For example, a short-distance wireless technology in the network environment 100 uses a BLUETOOTH technology. As mentioned above, BLUETOOTH is a system that performs frequency hopping and encryption along with a host clock. When a host (a transmit end) is transferred (where in other words, a function of a current transmit end is transferred to another relay device), a frequency hopping sequence, physical layer modulation and bandwidth configurations, and an encryption mode of a receive end also need to be changed. In this period of time, a service cannot be continuously performed, causing freezing. Therefore, it is expected that when the relay device relays and amplifies BLUETOOTH information to increase the transmission distance, it can be ensured that the frequency hopping sequence, the physical layer modulation and bandwidth configurations, and the encryption mode remain unchanged before and after the host is transferred, to ensure the service to be continuously performed and avoid the freezing.
Therefore, embodiments of this disclosure provide a short-distance wireless communication method. In the method, in response to detecting that the receiving device that is communicating with the sending device is to move to the coverage area of the relay device, the sending device sends, to the relay device, first clock information associated with the sending device and configuration information associated with communication between the sending device and the receiving device. The sending device sends first service data to the receiving device via the relay device. In this manner, the transmission distance can be significantly increased, and service freezing and interruption in a signal relay process is avoided.
Now refer to
In the example scenario shown in
If the receiving device 130 is in a coverage area of the sending device 110 (refer to locations of the sending device 110 and the receiving device 130 shown in
In the example scenario shown in
To enable communication between the relay device 120-1 and the receiving device 130 to be still based on clock information of the sending device 110 and configuration information associated with communication between the sending device 110 and the receiving device 130, the sending device 110 sends, to the relay device 120-1, first clock information associated with the sending device 110 and the configuration information associated with the communication between the sending device 110 and the receiving device 130.
In some embodiments, the first clock information associated with the sending device 110 may be a local clock of the sending device 110.
In some embodiments, the configuration information associated with the communication between the sending device 110 and the receiving device 130 may include one or more of encryption information for the communication, address information of the receiving device 130, and modulation information for the communication.
Based on the first clock information associated with the sending device 110, the relay device 120-1 may update second clock information associated with the relay device.
In some embodiments, the relay device 120-1 may determine a clock offset clkB_off between the sending device 110 and the relay device 120-1 based on the first clock information and the second clock information, and update, based on the clock offset clkB_off, the second clock information associated with the relay device.
The sending device 110 sends, to the relay device 120-1, service data information to be sent to the receiving device 130. The relay device 120-1 may further send the service data information to the receiving device 130 based on updated second clock information and the obtained configuration information associated with the communication between the sending device 110 and the receiving device 130.
When the receiving device 130 receives the service data from the relay device 120-1, because the relay device 120-1 has updated, based on clock information associated with the sending device 110, local clock information associated with the relay device 120-1, the receiving device 130 can still receive the service data based on the clock offset clkA_off between the receiving device 130 and the sending device 110. Therefore, transmission of the service data can be kept smooth without interruption, so that the receiving device 130 does not perceive that a host transfer process from the sending device 110 to the relay device 120-1 has happened.
Similarly, when the host has been transferred, the service data that is from the receiving device 130 and that is to be sent to the sending device 110 may alternatively be first received by the relay device 120-1 and then forwarded to the sending device 110.
With reference to
It is assumed that the clock information associated with the sending device 110 is clkT, clock information associated with the relay device 120-1 is clkM, and clock information associated with the receiving device 130 is clkR. The clock offset between the receiving device 130 and the sending device 110 is: clkT−clkR=clkA_off, and the clock offset between the sending device 110 and the relay device 120-1 is: clkT−clkM=clkB_off. When the receiving device 130 is connected to the relay device 120-1, a clock offset between the receiving device 130 and the relay device 120-1 is: clkM−clkR. Because the clock information clkT associated with the sending device 110 and the clock information clkM associated with the relay device 120-1 are usually inconsistent, after the host is transferred, a receiving clock offset previously determined by the receiving device 130 changes, and a corresponding frequency hopping sequence, corresponding physical layer modulation and bandwidth configurations, and a corresponding encryption mode also need to change.
After the relay device 120-1 receives the clock information associated with the sending device 110, the relay device 120-1 may update, based on the clock information associated with the sending device 110, the clock information associated with the relay device 120-1, that is, updated clock information clkM′ associated with the relay device 120-1=clkM+clkB_off=clkM+clkT−clkM=clkT. It can be learned that the updated clock information clkM′ associated with the relay device 120-1 is completely aligned with the clock information clkT associated with the sending device 110. Therefore, the receiving device 130 can still receive the service data based on the clock offset clkA_off, that is, clkT−clkR, between the receiving device 130 and the sending device 110.
In some embodiments, more than one relay device can be used to further implement a short-distance wireless communication process according to embodiments of this disclosure, to further increase the transmission distance in the short-distance wireless communication process. Now refer to
In the example scenario shown in
If the receiving device 130 is in a coverage area of the sending device 110 (refer to locations of the sending device 110 and the receiving device 130 shown in
In the example scenario shown in
When the direct link 303 between the receiving device 130 and the relay device 120-2 has been established, to enable communication between the relay device 120-2 and the receiving device 130 to be still based on clock information of the sending device 110 and configuration information associated with communication between the sending device 110 and the receiving device 130, the sending device 110 sends, to the relay device 120-1, first clock information associated with the sending device 110 and the configuration information associated with the communication between the sending device 110 and the receiving device 130, and then, the relay device 120-1 forwards the first clock information and the configuration information to the relay device 120-2.
In some embodiments, the first clock information associated with the sending device 110 may be a local clock of the sending device 110.
In some embodiments, the configuration information associated with the communication between the sending device 110 and the receiving device 130 may include one or more of encryption information for the communication, address information of the receiving device 130, and modulation information for the communication.
Similarly, based on the first clock information associated with the sending device 110, the relay device 120-2 may update third clock information associated with the relay device 120-2.
In some embodiments, the relay device 120-2 may determine a clock offset clkC_off between the sending device 110 and the relay device 120-2 based on the first clock information and the third clock information, and update, based on the clock offset clkC_off, the third clock information associated with the relay device.
The sending device 110 sends, to the relay device 120-1, service data information to be sent to the receiving device 130. The relay device 120-1 further forwards the service data to the relay device 120-2, so that the relay device 120-2 may send the service data information to the receiving device 130 based on updated third clock information and the obtained configuration information associated with the communication between the sending device 110 and the receiving device 130.
When the receiving device 130 receives the service data from the relay device 120-2, because the relay device 120-2 has updated, based on clock information associated with the sending device 110, local clock information associated with the relay device 120-2, the receiving device 130 can still receive the service data based on the clock offset clkA_off between the receiving device 130 and the sending device 110. Therefore, transmission of the service data can be kept smooth without interruption, so that the receiving device 130 does not perceive that a host transfer process from the sending device 110 to the relay device 120-2 has happened.
Similarly, when the host has been transferred, the service data that is from the receiving device 130 and that is to be sent to the sending device 110 may alternatively be first received by the relay device 120-2 and then forwarded to the relay device 120-1, and then the relay device 120-1 forwards, to the sending device 110, the service data from the receiving device 130.
With reference to
It is assumed that the clock information associated with the sending device 110 is clkT, clock information associated with the relay device 120-1 is clkM1, clock information associated with the relay device 120-1 is clkM2, and clock information associated with the receiving device 130 is clkR. The clock offset between the receiving device 130 and the sending device 110 is: clkT−clkR=clkA_off, and the clock offset between the sending device 110 and the relay device 120-2 is: clkT−clkM1+clkM1−clkM2=clkT−clkM2=clkC_off. When the receiving device 130 is connected to the relay device 120-1, a clock offset between the receiving device 130 and the relay device 120-1 is: clkM2−clkR. Because the clock information clkT associated with the sending device 110 and the clock information clkM2 associated with the relay device 120-1 are usually inconsistent, after the host is transferred, a receiving clock offset previously determined by the receiving device 130 changes, and a corresponding frequency hopping sequence, corresponding physical layer modulation and bandwidth configurations, and a corresponding encryption mode also need to change.
After the relay device 120-2 receives the clock information associated with the sending device 110, the relay device 120-2 may update, based on the clock information associated with the sending device 110, the clock information associated with the relay device 120-2, that is, updated clock information clkM2′ associated with the relay device 120-2=clkM2+clkC_off=clkM2+clkT−clkM2=clkT. It can be learned that the updated clock information clkM2′ associated with the relay device 120-1 is completely aligned with the clock information clkT associated with the sending device 110. Therefore, the receiving device 130 can still receive the service data based on the clock offset clkA_off, that is, clkT−clkR, between the receiving device 130 and the sending device 110.
In this manner, the relay device can relay and amplify BLUETOOTH information to increase a transmission distance, and ensure that the frequency hopping sequence, the physical layer modulation and bandwidth configurations, and the encryption mode remain unchanged before and after the host is transferred, to ensure a service to be continuously performed and avoid the freezing.
It should be understood that, although the foregoing descriptions include some specific implementation details, this should not be construed as limiting the scope of the disclosure, but rather as descriptions of specific example embodiments. Some features described in this specification in a context of separate example embodiments may alternatively be integrated into a single example embodiment. Conversely, various features that are described in a context of a single example embodiment may alternatively be implemented separately in a plurality of example embodiments or in any appropriate sub-combination.
In 410, the sending device 110 sends first clock information to a relay device, where the first clock information indicates a local clock of the sending device, and communication between the sending device and a receiving device is performed based on at least the first clock information.
In 420, the sending device 110 sends first service data to the receiving device via the relay device.
In some example embodiments, the sending device may send, to the relay device, configuration information associated with the communication, where the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In some example embodiments, the sending device may send the first clock information to the relay device via another relay device.
In some example embodiments, the sending device may send the first service data to the relay device via another relay device.
In some example embodiments, the sending device may receive second service data of the receiving device via the relay device.
In some example embodiments, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
In 510, the relay device receives first clock information from a sending device, where the first clock information indicates a local clock of the sending device, and communication between the sending device and a receiving device is performed based on at least the first clock information.
In some embodiments, the relay device 120-1 or 120-2 may receive, via another relay device, the first clock information associated with the sending device.
In 520, the relay device 120-1 or 120-2 updates second clock information based on at least the first clock information, where the second clock information indicates a local clock of the relay device.
In some example embodiments, the relay device 120-1 or 120-2 may determine a second clock offset between the sending device and the relay device based on the first clock information and the second clock information, and update the second clock information based on the second clock offset and the first clock information.
In 530, the relay device 120-1 or 120-2 sends, to the receiving device, first service data from the sending device based on at least updated second clock information.
In some example embodiments, the relay device may receive, from the receiving device, configuration information associated with the communication, where the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In some example embodiments, the relay device 120-1 or 120-2 may receive, via another relay device, the first service data to be sent to the receiving device.
In some example embodiments, the relay device 120-1 or 120-2 may receive second service data of the receiving device from the receiving device, and forward the second service data to the sending device based on configuration information.
In some example embodiments, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
In 610, the receiving device 130 receives first service data from the sending device via a relay device based on a first clock offset between the receiving device and a sending device and configuration information associated with communication between the sending device and the receiving device.
In some example embodiments, the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In some example embodiments, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
In some example embodiments, the receiving device 130 may send second service data of the receiving device based on the configuration information.
As shown in
In an embodiment in which the communication apparatus 700 is implemented as the sending device 110 shown in
In some example embodiments, the input/output interface 710 is further configured to send the first clock information to the relay device via another relay device.
In some example embodiments, the input/output interface 710 is further configured to send the first service data to the relay device via another relay device.
In some example embodiments, the input/output interface 710 is further configured to receive second service data of the receiving device via the relay device.
In some example embodiments, the input/output interface 710 is further configured to send, to the relay device, configuration information associated with the communication, where the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In some example embodiments, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
In an embodiment in which the communication apparatus 700 is implemented as the relay device 120-1 or 120-2 shown in
In some example embodiments, the logic circuit 720 is further configured to determine a second clock offset between the sending device and the relay device based on the first clock information and the second clock information, and update the second clock information based on the second clock offset and the first clock information.
In some example embodiments, the input/output interface 710 is further configured to receive, via another relay device, the first clock information associated with the sending device.
In some example embodiments, the input/output interface 710 is further configured to receive, via another relay device, the first service data to be sent to the receiving device.
In some example embodiments, the input/output interface 710 is further configured to receive second service data of the receiving device from the receiving device, and forward the second service data to the sending device based on configuration information.
In some example embodiments, the input/output interface 710 is further configured to receive, from the receiving device, configuration information associated with the communication, where the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In some example embodiments, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
In an embodiment in which the communication apparatus 700 is implemented as the receiving device 130 shown in
In some example embodiments, the input/output interface 710 is further configured to send second service data of the receiving device based on the configuration information.
In some example embodiments, the configuration information includes at least one of encryption information for the communication, address information of the receiving device, modulation information for the communication, a configuration parameter of a control layer, and a configuration parameter of an application layer.
In some example embodiments, short-distance wireless communication may include one of the following: BLUETOOTH communication, Greentooth communication, mobile hotspot (WI-FI) communication, ZIGBEE communication, or SparkLink communication.
It should be understood that the communication apparatus 700 in
As shown in
The processor 810 may be of any appropriate type applicable to the local technical environment, and may include but is not limited to one or more of a general-purpose computer, a special-purpose computer, a microcontroller, a digital signal processor (DSP), and a controller-based multi-core controller architecture. The communication apparatus 800 may also include a plurality of processors, such as an application-specific integrated circuit (ASIC) chip, which belongs to a clock synchronized in time with a main processor. The processor 810 is coupled to a communication unit 840. The communication unit 840 may receive and send information via a radio signal or with help of an optical fiber, a cable, and/or another component.
The memory 820 may include one or more nonvolatile memories and one or more volatile memories. An example of the nonvolatile memory includes but is not limited to a read-only memory (ROM), an erasable programmable ROM (EPROM), a flash memory, a hard disk, a compact disc (CD), a DVD, or another magnetic storage and/or optical storage. An Example of the volatile memory includes but is not limited to a random-access memory (RAM) and the like.
This embodiment of this disclosure may be implemented with help of a computer program, so that the communication apparatus 800 may perform any process described with reference to
In the foregoing embodiments in which the sending device 110, the relay device 120-1 or 120-2, and the receiving device 130 determine an adjustment parameter by using a machine learning algorithm module, a reinforcement learning model, and the like, the module and the model may be stored in the memory 820 in a manner of computer program code or the instructions 830. The processor executes the program code or the instructions in the memory 820 to enable the communication apparatus 800 to perform processing processes implemented by the sending device 110, the relay device 120-1 or 120-2, and the receiving device 130 in
In some embodiments, the computer program may be tangibly included in a computer-readable medium. The computer-readable medium may be included in the communication apparatus 800 (for example, in the memory 820) or another storage device that may be accessed by the communication apparatus 800. The computer program may be loaded from the computer-readable medium into the RAM for execution. The computer-readable medium may include any type of tangible nonvolatile memory, such as a ROM, an EPROM, a flash memory, a hard disk, a CD, or a DVD.
When the communication apparatus 900 is configured to implement a function of the sending device 110 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the sending device 110 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the sending device 110 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the sending device 110 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the sending device 110 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the sending device 110 in the method embodiment shown in
When the communication apparatus 900 is configured to implement a function of the relay device 120-1 or 120-2 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the relay device 120-1 or 120-2 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the relay device 120-1 or 120-2 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the relay device 120-1 or 120-2 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the relay device 120-1 or 120-2 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the relay device 120-1 or 120-2 in the method embodiment shown in
When the communication apparatus 900 is configured to implement a function of the receiving device 130 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the receiving device 130 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the receiving device 130 in the method embodiment shown in
When the communication apparatus 900 is configured to implement the function of the receiving device 130 in the method embodiment shown in
For more detailed descriptions of the processing unit 910 and the transceiver unit 920, directly refer to related descriptions in the method embodiments shown in
In general, various example embodiments of this disclosure may be implemented in hardware or a dedicated circuit, software, logic, or any combination thereof. Some aspects may be implemented in the hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, a microprocessor, or another computing device. When aspects of the example embodiments of this disclosure are illustrated or described as block diagrams, flowcharts, or represented using some other figures, it will be understood that the blocks, apparatuses, systems, techniques, or methods described herein may be implemented as non-limiting examples in the hardware, the software, the firmware, the dedicated circuit or the logic, general-purpose hardware or the controller, or the other computing device, or some combinations thereof.
For example, the example embodiments of this disclosure may be described in a context of machine-executable or computer-executable instructions. The machine-executable instructions are, for example, a program module executed in a device included in a real or virtual processor of a target. In general, the program module includes a routine, a program, a library, an object, a class, a component, a data structure, and the like, and executes a specific task or implements a specific abstract data structure. In various example embodiments, functions of the program module may be combined or split between described program modules. The machine-executable instructions used for the program module may be executed locally or in a distributed device. In the distributed device, the program module may be located in both a local storage medium and a remote storage medium.
Computer program code used to implement the methods disclosed in this disclosure may be written in one or more programming languages. The computer program code may be provided for a processor of a general-purpose computer, a special-purpose computer, or another programmable data processing apparatus, so that when the program code is executed by a computer or the other programmable data processing apparatus, a function/an operation specified in the flowcharts and/or block diagrams are implemented. The program code may be executed all on the computer, partially on the computer, as an independent software package, partially on the computer and partially on a remote computer, or all on a remote computer or server.
In a context of this disclosure, the computer program code or related data may be carried by any appropriate carrier, so that a device, an apparatus, or the processor can perform various processing and operations described above. Examples of the carrier include a signal, a computer-readable medium, and the like. For example, the signal may include a propagating signal in an electrical, optical, radio, sound, or another form, such as a carrier wave and an infrared signal.
In the context of this disclosure, a machine-readable medium or a computer-readable medium may be any tangible medium that includes or stores a program for or has a program related to an instruction execution system, the apparatus, or the device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any appropriate combination thereof. More detailed examples of the machine-readable storage medium include an electrical connection with one or more wires, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM or flash memory, an optical storage device, a magnetic storage device, or any appropriate combination thereof.
In addition, while operations are described in a particular order, this should not be understood as requiring such operations to be completed in the particular order shown or in a successive order, or performing all the illustrated operations to obtain the desired results. In some cases, multitasking or parallel processing is advantageous. Similarly, although the foregoing descriptions include some specific implementation details, this should not be construed as limiting the scope of any claim, but rather as descriptions of specific example embodiments. Some features described in this specification in a context of separate example embodiments may alternatively be integrated into a single example embodiment. Conversely, various features that are described in a context of a single example embodiment may alternatively be implemented separately in a plurality of example embodiments or in any appropriate sub-combination.
Although a subject matter has been described in language specific to structural features and/or methodological actions, it should be understood that the subject matter defined in the appended claims is not limited to the specific features or actions described above. Rather, the specific features and actions described above are disclosed as example forms of implementing the claims.
This is a continuation of International Patent Application No. PCT/CN2022/087415 filed on Apr. 18, 2022, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2022/087415 | Apr 2022 | WO |
Child | 18915756 | US |