CN113068168A - Communication method, communication apparatus, electronic device, and storage medium - Google Patents

Communication method, communication apparatus, electronic device, and storage medium Download PDF

Info

Publication number
CN113068168A
CN113068168A CN202110287740.8A CN202110287740A CN113068168A CN 113068168 A CN113068168 A CN 113068168A CN 202110287740 A CN202110287740 A CN 202110287740A CN 113068168 A CN113068168 A CN 113068168A
Authority
CN
China
Prior art keywords
signal
terminal device
wifi router
wifi
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110287740.8A
Other languages
Chinese (zh)
Other versions
CN113068168B (en
Inventor
谌涛
叶翀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110287740.8A priority Critical patent/CN113068168B/en
Publication of CN113068168A publication Critical patent/CN113068168A/en
Application granted granted Critical
Publication of CN113068168B publication Critical patent/CN113068168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a communication method, a communication device, electronic equipment and a storage medium, and belongs to the field of communication. The method comprises the following steps: sending a first signal to a second terminal device through Bluetooth connection, amplifying the first signal through a Wifi router through Wifi connection, and sending a second signal to the second terminal device, wherein the second signal is demodulated by the second terminal device under the condition that the signal intensity of the second signal is determined to be greater than that of the first signal; wherein the first signal and the second signal carry the same data packet. Under the condition that the power consumption of the Bluetooth is not changed, the coverage range of the Bluetooth is enlarged, and extra professional equipment is not needed.

Description

Communication method, communication apparatus, electronic device, and storage medium
Technical Field
The present application belongs to the field of communications, and in particular, relates to a communication method, apparatus, electronic device, and storage medium.
Background
Along with the popularization of bluetooth devices such as bluetooth headset, bracelet and bluetooth communication in life, bluetooth low energy's application is more and more.
The low power consumption of the bluetooth limits the power of the bluetooth, so that the coverage range of the bluetooth is very small, and the bluetooth is limited to be used in scenes with small communication distance and no obstacles. Two bluetooth low energy equipment will be less stable apart from exceeding 10m under spacious environment, connect, will connect unstablely at indoor one room communication of separating, greatly influence bluetooth equipment's use and experience.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art:
if improve the coverage of bluetooth through the power of increaseing the bluetooth, can lead to the consumption to promote, be unfavorable for bluetooth equipment's continuation of the journey.
Disclosure of Invention
An object of the embodiments of the present application is to provide a communication method, an apparatus, an electronic device, and a storage medium, which can solve the problem that improvement of a bluetooth coverage requires improvement of bluetooth power consumption or use of a professional device.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a communication method, which is applied to a first terminal device, and the method includes:
sending a first signal to a second terminal device through Bluetooth connection;
transmitting a second signal to the second terminal device after amplifying the first signal through a Wifi connection via a Wifi router, wherein the second signal is demodulated by the second terminal device under the condition that the signal intensity of the second signal is determined to be greater than that of the first signal;
wherein the first signal and the second signal carry the same data packet.
In a second aspect, an embodiment of the present application provides a communication method, which is applied to a second terminal device, and the method includes:
receiving a first signal sent by a first terminal device through Bluetooth connection, and receiving a second signal sent by the first terminal device through a Wifi router through Wifi connection;
demodulating the second signal if it is determined that the signal strength of the second signal is greater than the signal strength of the first signal;
wherein the first signal and the second signal carry the same data packet.
In a third aspect, an embodiment of the present application provides a communication apparatus, including:
the first sending module is used for sending a first signal to a second terminal device through Bluetooth connection, amplifying the first signal through a Wifi router through Wifi connection, and then sending a second signal to the second terminal device, wherein the second signal is demodulated by the second terminal device under the condition that the signal intensity of the second signal is determined to be greater than that of the first signal;
wherein the first signal and the second signal carry the same data packet.
In a fourth aspect, an embodiment of the present application provides a communication apparatus, including:
the first receiving module is used for receiving a first signal sent by the first sending module through Bluetooth connection and receiving a second signal sent by the first sending module after the first signal is amplified by a Wifi router through Wifi connection;
a demodulation module configured to demodulate the second signal if it is determined that the signal strength of the second signal is greater than the signal strength of the first signal;
wherein the first signal and the second signal carry the same data packet.
In a fifth aspect, the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect or the second aspect.
In a sixth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first or second aspect.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect or the second aspect.
In the embodiment of the application, the wifi router is used as a bluetooth relay, the signal amplification function of the wifi router is used for amplifying the signal sent by the first terminal device, the amplified signal is demodulated under the condition that the amplified signal is stronger than the signal strength of the original signal, the coverage range of bluetooth is expanded under the condition that the power consumption of the bluetooth is not changed, and no additional professional device is needed.
Drawings
Fig. 1 is a flow chart of a communication method provided herein;
fig. 2 is a schematic diagram of a signal transmission path in the communication method provided in the present application;
FIG. 3 is a hardware block diagram of a Wifi router in the prior art;
fig. 4 is one of schematic diagrams illustrating relative positions of a Wifi router, a first terminal device and a second terminal device in the communication method provided by the present application;
fig. 5 is a second schematic diagram illustrating relative positions of the Wifi router, the first terminal device and the second terminal device in the communication method provided by the present application;
FIG. 6 is one of schematic diagrams of a prompt information interface for connecting a Wifi router in the communication method provided by the present application;
fig. 7 is a second schematic diagram of a prompt information interface for connecting a Wifi router in the communication method provided in the present application;
fig. 8 is a schematic time slot diagram in which neither the first terminal device nor the second terminal device passes through a Wifi router in the prior art;
fig. 9 is a schematic time slot diagram of a first terminal device and a second terminal device both passing through a Wifi router in the communication method provided by the present application;
fig. 10 is a second flowchart of a communication method provided in the present application;
fig. 11 is a third flowchart of a communication method provided in the present application;
fig. 12 is one of the structural diagrams of the communication apparatus provided in the present application;
fig. 13 is a second structural diagram of a communication device according to the present application;
fig. 14 is a schematic diagram of a hardware structure of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The communication method, the apparatus, the electronic device and the storage medium provided by the embodiments of the present application are described in detail with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, an embodiment of the present application provides a communication method, which is applied to a first terminal device, and the method includes:
step 101, a first terminal device sends a first signal to a second terminal device through Bluetooth connection;
the method provided by the embodiment of the application is applied to the first terminal device, wherein the first terminal device is a Bluetooth device, such as a Bluetooth headset, a bracelet and the like, or a mobile terminal with a Bluetooth function, such as a smart phone, a personal computer, a tablet computer or a wearable smart device and the like.
The second terminal device is a Bluetooth device or a mobile terminal with a Bluetooth function.
The first terminal equipment and the second terminal equipment start Bluetooth and directly carry out Bluetooth communication between the first terminal equipment and the second terminal equipment. I.e. the first signal is a bluetooth signal.
102, amplifying the first signal through a Wifi router through Wifi connection, and then sending a second signal to the second terminal device, where the second signal is demodulated by the second terminal device under the condition that it is determined that the signal strength of the second signal is greater than that of the first signal; wherein the first signal and the second signal carry the same data packet.
Due to the low power of the bluetooth, the coverage of the bluetooth is very small, and the bluetooth communication is unstable in a scene that the communication distance between the first terminal device and the second terminal device is large or an obstacle exists. Therefore, the Wifi router is used as a bluetooth relay between the first terminal device and the second terminal device.
Due to the fact that the Wifi network coverage is more and more popular, many public places such as subways, buses, squares and markets are covered by the Wifi network. Therefore, the Wifi router has a great practical value as a Bluetooth relay.
The first terminal device and the second terminal device have the same frequency as the Wifi router, for example, the first terminal device and the second terminal device all use a 2.4G network, so that the first terminal device and the second terminal device can communicate with the Wifi router.
The process of the first terminal device and the second terminal device communicating with the Wifi router is as follows:
1. the first terminal device sends a first signal P0 to the second terminal device and the Wifi router simultaneously;
2. after the first signal P0 is received by the Wifi router, the Wifi router amplifies the first signal P0, the amplified first signal P0 serves as a second signal P1, and the second signal P1 is sent to the second terminal device;
3. the second terminal equipment receives the first signal P0 and the second signal P1 in sequence, compares the signal strength of P0 with the signal strength of P1, and demodulates the signal with large signal strength. The signal strength is characterized by the level of the signal, and the greater the level, the greater the signal strength.
The propagation of the first signal P0 is affected by multipath effects, and the signal arriving at the second terminal device from the first terminal device is actually the result of the superposition of multiple signals.
As shown in fig. 2, the first signal P0 reaches the second terminal device B from the first terminal device a through two paths, and is directly sent to the second terminal device B by the first terminal device a, or is forwarded to the second terminal device B via a Wifi router.
The relay function of the Wifi router is equivalent to increasing the signal energy of the first signal P0 in a certain path, so that the signal power of the signal received by the second terminal device is increased.
Fig. 3 shows a hardware block diagram of a Wifi router, which includes an antenna, a filter, a Wifi transceiver, a Wifi ap internal cache, and a PA (Power Amplifier).
The process of receiving the first signal P0 by the Wifi router includes: the first signal P0 is received by an antenna of the Wifi router, filtered by a filter and then input to a Wifi transceiver of the Wifi router. And the Wifi transceiver buffers the radio-frequency signals after down-converting the radio-frequency signals into baseband signals.
The transmission process of the first signal P0 by the Wifi router comprises the following steps: and the Wifi transceiver up-converts the baseband signals in the cache into radio frequency signals, amplifies the radio frequency signals by the PA, filters the radio frequency signals by the filter, and sends the radio frequency signals to the second terminal equipment through the antenna.
According to the embodiment of the application, the hardware circuit of the Wifi router is fully utilized, and the amplification and up-down frequency conversion of the first signal P0 are processed by the radio frequency front-end circuit of the Wifi router. And a professional Bluetooth chip is not needed, and the cost of a hardware circuit is not additionally increased.
Although the second signal P1 is the first signal P0 amplified by the Wifi router, the signal strength of P1 received by the second terminal device is not necessarily greater than the signal strength of P0.
For example, as shown in fig. 4, in a case where the distance between the Wifi router and the second terminal device B is much larger than the distance between the first terminal device a and the second terminal device B, the signal strength of P1 may be smaller than that of P0.
As shown in fig. 5, in the case where there is an obstacle in the path from the Wifi router to the second terminal device B, the signal strength of P1 may be smaller than that of P0.
In the case that P1 is greater than P0, P1 is demodulated; in the case where P1 is smaller than P0, P0 is demodulated.
The embodiment of the application uses the wifi router as the Bluetooth relay, and the signal amplification function of the wifi router is used for amplifying the signal sent by the first terminal device, so that the amplified signal is demodulated under the condition that the amplified signal is larger than the signal intensity of the original signal, the coverage range of the Bluetooth is enlarged under the condition that the Bluetooth power consumption is not changed, and extra professional equipment is not needed.
Optionally, before the first signal is amplified by the Wifi router through the Wifi connection and then sent to the second terminal device, the method further includes: displaying prompt information amplified by the Wifi router and used for forwarding signals under the condition that the Wifi router with the same frequency as the first terminal equipment exists in the preset range of the first terminal equipment;
when the first terminal device and the second terminal device establish Bluetooth connection, the first terminal device detects whether a Wifi router exists in a preset range. The preset range is preset according to actual needs.
And the existing Wifi router and the first terminal device have the same frequency, so that the Wifi router and the first terminal device can communicate.
And under the condition that the Wifi router with the same frequency as the first terminal equipment is detected, the first terminal equipment sends display prompt information. The prompt message is used for prompting the user that the first signal can be amplified by the Wifi router. The display interface of the hint information is shown in fig. 6.
Receiving a first input; and responding to the first input, and sending a request for establishing communication connection to the Wifi router so as to establish the Wifi connection.
The form of the first input may be a mouse click operation or a keyboard input operation, and the embodiment of the application is not limited to a specific form of the first input.
As shown in fig. 6, when the user clicks the "yes" button on the display interface of the hint information, a request for establishing a communication connection is sent to the Wifi router to establish a Wifi connection.
As shown in fig. 7, when a plurality of Wifi routers having the same frequency as the first terminal device exist within the preset range of the first terminal device, the related information of the Wifi routers is also displayed on the display interface of the prompt information.
The related information of the Wifi router includes the name and signal strength of the Wifi router, for example, the names of the Wifi routers are Wifi router 1 and Wifi router 2.
When the user clicks a 'yes' button on a display interface of the prompt message, the user needs to select the Wifi router. And sending a request for establishing communication connection to the Wifi router selected by the user according to the clicking and selecting operation of the user so as to establish Wifi connection.
The first terminal device supports both Bluetooth and Wifi. When the Wifi router is used as a Bluetooth relay, the first terminal device sends a control instruction to the Wifi router to establish Wifi connection. The control command is a Wifi signal.
The Wifi router listens for a signal sent by the first terminal device. Whether the signal is a Bluetooth signal or a Wifi signal is judged through the bandwidth of the signal, if the Bluetooth signal is 1M bandwidth, Wifi is 20M bandwidth, and only the Bluetooth signal is amplified.
According to the embodiment of the application, the prompt information is displayed under the condition that the Wifi router with the same frequency as the first terminal device exists in the preset range of the first terminal device, and a user can conveniently carry out Wifi connection operation according to the prompt information.
Optionally, the sending the request for establishing the communication connection to the Wifi router includes:
and sending a request for establishing communication connection to the Wifi router under the condition that the receiving power corresponding to the signal sent through the Bluetooth connection is smaller than a preset threshold value.
The signals transmitted through the bluetooth connection include signals transmitted by the first terminal device a and the second terminal device B through the bluetooth connection.
After the Bluetooth connection is established between the A and the B, when the A determines that the receiving power of the signal sent by the A or the B is smaller than a preset threshold Pb, the A sends a request for establishing communication connection to the Wifi router so as to establish the communication connection between the A and the Wifi router, the signal amplification function is started, and a first signal sent by the A is amplified.
According to the embodiment of the application, the Wifi router is used as the Bluetooth relay only when the receiving power corresponding to the signal sent by the Bluetooth connection is small, so that the effective utilization of resources is realized.
Optionally, the method further comprises: and sending a transmission delay corresponding to data forwarding through the Wifi router to the second terminal device, wherein the transmission delay is used for indicating the second terminal device to receive the second signal after the transmission delay.
Since the bluetooth signal is a time division signal, the first terminal device and the second terminal device cannot transmit signals at the same time. Therefore, after the Wifi router is used as the bluetooth relay, the first terminal device and the second terminal device need to agree on the transmission delay t1 corresponding to the Wifi router for forwarding the first signal P0. The second terminal device does not receive the second signal until t 1. The second signal is received and then transmitted.
As shown in fig. 8, under the condition that neither the first terminal device a nor the second terminal device B passes through the Wifi router, a directly sends a signal to B, and B receives the signal at the same time. B then sends a signal directly to a, which receives the signal simultaneously. TX denotes transmission and RX denotes reception.
As shown in fig. 9, in the case where both the first terminal device a and the second terminal device B pass through the Wifi router, a sends a signal to B through the Wifi router, resulting in a transmission delay t1, resulting in a delay t1 for B receiving and sending a signal, and a delay t1 for the received signal of a corresponding to the sent signal of B.
Then B sends a signal to A through a Wifi router, a transmission delay t2 is generated, and the received signal of A corresponding to the sent signal of B continues to be delayed by t2, namely the received signal of A is delayed by t1+ t2 in total.
According to the embodiment of the application, the transmission delay corresponding to the data forwarding through the Wifi router is sent to the second terminal device, the second terminal device is indicated to receive signals after the transmission delay, then the signals are sent, the first terminal device and the second terminal device are prevented from sending signals simultaneously, and the communication quality is improved.
Optionally, the method further comprises: determining the transmission delay based on the size of the data packet.
The transmission delay is determined according to the size of a data packet sent by the first terminal device to the second terminal device. The larger the packet is, the larger the transmission delay for data forwarding via the Wifi router is.
According to the embodiment of the application, the transmission delay is accurately determined, so that the second terminal equipment is indicated to receive signals after the transmission delay, the first terminal equipment and the second terminal equipment are better prevented from sending signals simultaneously, and the communication quality is improved.
As shown in fig. 10, the steps of the communication method according to the embodiment of the present application are as follows:
1. the first terminal device A and the second terminal device B establish Bluetooth connection;
2. the method comprises the steps that a first terminal device A monitors whether a Wifi router with the same frequency as a first terminal device A exists in a preset range of the first terminal device A or not;
if the Bluetooth does not exist, the A and the B directly carry out Bluetooth communication without a Wifi router;
if the user does not connect with the Wifi router, prompting the user to connect with the Wifi router;
3. after the A is connected with the Wifi router, whether the receiving power corresponding to the signal sent by the A or the B is smaller than a preset threshold Pb or not is detected;
if not, the A and the B directly carry out Bluetooth communication without a Wifi router;
if yes, the A commands the Wifi router to start a Bluetooth signal amplification function, and the transmission delay t1 is agreed with the B;
4. the P0 sent by the A is amplified by the Wifi router to become a second signal P1, and the P1 is sent to the standby B through the Wifi router; while a sends P0 directly to B;
5. b judges whether P0 is smaller than P1, and demodulates the larger one.
As shown in fig. 11, an embodiment of the present application provides a communication method, which is applied to a second terminal device, and the method includes:
step 1101, receiving a first signal sent by a first terminal device through a bluetooth connection, and receiving a second signal sent by the first terminal device after amplifying the first signal through a Wifi router through a Wifi connection;
the method provided by the embodiment of the application is applied to the second terminal device, and the second terminal device is a Bluetooth device, such as a Bluetooth headset, a bracelet and the like, or a mobile terminal with a Bluetooth function, such as a smart phone, a personal computer, a tablet computer or a wearable smart device and the like.
The first terminal equipment is Bluetooth equipment or a mobile terminal with a Bluetooth function.
The first terminal equipment and the second terminal equipment start Bluetooth and directly carry out Bluetooth communication between the first terminal equipment and the second terminal equipment. I.e. the first signal is a bluetooth signal.
Due to the low power of the bluetooth, the coverage of the bluetooth is very small, and the bluetooth communication is unstable in a scene that the communication distance between the first terminal device and the second terminal device is large or an obstacle exists. Therefore, the Wifi router is used as a bluetooth relay between the first terminal device and the second terminal device.
The first terminal device and the second terminal device have the same frequency as the Wifi router, for example, the first terminal device and the second terminal device all use a 2.4G network, so that the first terminal device and the second terminal device can communicate with the Wifi router.
The second terminal device receives the first signal P0 transmitted by the first terminal device through two paths. One path is directly receiving a first signal P0 sent by the first terminal equipment; the other path is that the first signal P0 sent by the first terminal device is amplified by the Wifi router and then becomes the second signal P1, and the second signal P1 sent by the Wifi router is received.
Step 1102, demodulating the second signal if it is determined that the signal strength of the second signal is greater than the signal strength of the first signal; wherein the first signal and the second signal carry the same data packet.
Although the second signal P1 is the first signal P0 amplified by the Wifi router, the signal strength of P1 received by the second terminal device is not necessarily greater than the signal strength of P0.
If the distance between the Wifi router and the second terminal device is far greater than the distance between the first terminal device and the second terminal device, or if an obstacle exists between the Wifi router and the second terminal device, the signal strength of P1 may be smaller than that of P0.
The second terminal device compares P0 and P1. In the case that P1 is greater than P0, P1 is demodulated; in the case where P1 is smaller than P0, P0 is demodulated.
The embodiment of the application uses the wifi router as the Bluetooth relay, and the signal amplification function of the wifi router is used for amplifying the signal sent by the first terminal device, the second terminal device demodulates the amplified signal under the condition that the amplified signal is stronger than the signal intensity of the original signal, so that the coverage range of the Bluetooth is enlarged under the condition that the Bluetooth power consumption is not changed, and extra professional equipment is not needed.
Optionally, the method further comprises: and receiving transmission delay which is sent by the first terminal equipment and corresponds to data forwarding through the Wifi router, and receiving signals after the transmission delay.
Since the bluetooth signal is a time division signal, the first terminal device and the second terminal device cannot transmit signals at the same time. Therefore, after the Wifi router is used as the bluetooth relay, the first terminal device and the second terminal device need to agree on the transmission delay t1 corresponding to the Wifi router for forwarding the first signal P0.
After the transmission delay t1 sent by the first terminal device is received by the second terminal device, the signal is received after t 1. The second terminal device does not send a signal until it receives a signal.
According to the embodiment of the application, the second terminal device receives the transmission delay which is sent by the first terminal device and corresponds to the data forwarding through the Wifi router, the signal is received after the transmission delay, then the signal is sent, the first terminal device and the second terminal device are prevented from sending signals simultaneously, and the communication quality is improved.
Optionally, the transmission delay is determined based on a size of the data packet.
The transmission delay is determined according to the size of a data packet sent by the first terminal device to the second terminal device. The larger the packet is, the larger the transmission delay for data forwarding via the Wifi router is.
According to the embodiment of the application, the transmission delay is accurately determined, so that the second terminal equipment receives signals after the transmission delay, the first terminal equipment and the second terminal equipment are better prevented from sending signals simultaneously, and the communication quality is improved.
It should be noted that, in the communication method provided in the embodiment of the present application, the execution main body may be a communication device, or a control module in the communication device for executing the loading communication method. In the embodiment of the present application, a communication device executes a loading communication method as an example, and the communication method provided in the embodiment of the present application is described.
As shown in fig. 12, the communication apparatus provided in the embodiment of the present application includes a first transmitting module 1201; wherein:
the first sending module 1201 is configured to send a first signal to a second terminal device through a bluetooth connection, and send a second signal to the second terminal device after amplifying the first signal through a Wifi router through the Wifi connection, where the second signal is demodulated by the second terminal device when it is determined that the signal strength of the second signal is greater than the signal strength of the first signal; the first signal and the second signal carry the same data packet.
Wherein, communication device is bluetooth equipment, such as bluetooth headset, bracelet etc. or has bluetooth function's mobile terminal, such as smart mobile phone, personal computer, panel computer or can wear smart machine etc..
The second terminal device is a Bluetooth device or a mobile terminal with a Bluetooth function.
The communication device and the second terminal equipment start Bluetooth and directly carry out Bluetooth communication between the communication device and the second terminal equipment. I.e. the first signal is a bluetooth signal.
The communication device and the second terminal device have the same frequency as the Wifi router, for example, the communication device, the second terminal device and the Wifi router all use a 2.4G network, so that the first terminal device and the second terminal device can communicate with the Wifi router.
The first signal P0 arrives at the second terminal device through two paths from the first sending module 1201, and is sent to the second terminal device B directly by the first sending module 1201, or is forwarded to the second terminal device B via a Wifi router.
The relay function of the Wifi router is equivalent to increasing the signal energy of the first signal P0 in a certain path, so that the signal power of the signal received by the second terminal device is increased.
Although the second signal P1 is the first signal P0 amplified by the Wifi router, the signal strength of P1 received by the second terminal device is not necessarily greater than the signal strength of P0.
In the case that P1 is greater than P0, P1 is demodulated; in the case where P1 is smaller than P0, P0 is demodulated.
The embodiment of the application uses the wifi router as the Bluetooth relay, and the signal amplification function of the wifi router is used for amplifying the signal sent by the first terminal device, so that the amplified signal is demodulated under the condition that the amplified signal is larger than the signal intensity of the original signal, the coverage range of the Bluetooth is enlarged under the condition that the Bluetooth power consumption is not changed, and extra professional equipment is not needed.
Optionally, the apparatus further comprises a connection module configured to: displaying prompt information amplified by the Wifi router and used for forwarding signals under the condition that the Wifi router with the same frequency as the first sending module exists in the preset range of the first sending module; receiving a first input; and responding to the first input, and sending a request for establishing communication connection to the Wifi router so as to establish the Wifi connection.
Optionally, the connection module is configured to: and sending a request for establishing communication connection to the Wifi router under the condition that the receiving power corresponding to the signal sent through the Bluetooth connection is smaller than a preset threshold value.
Optionally, the apparatus further includes a second sending module, configured to: and sending transmission delay for data forwarding through the Wifi router to the second terminal device, wherein the transmission delay is used for indicating the second terminal device to receive signals after the transmission delay.
Optionally, the apparatus further comprises a determining module configured to: determining the transmission delay based on the size of the data packet.
As shown in fig. 13, the communication apparatus provided in the embodiment of the present application includes a first receiving module 1301 and a demodulating module 1302; wherein:
the first receiving module 1301 is configured to receive a first signal sent by a first sending module through a bluetooth connection, and receive a second signal sent by the first sending module after the first signal is amplified by a Wifi router through a Wifi connection;
the first receiving module 1301 and the first transmitting module directly perform bluetooth communication. I.e. the first signal is a bluetooth signal.
Due to the low power of the bluetooth, the coverage of the bluetooth is very small, and the bluetooth communication is unstable in a scene that the communication distance between the first terminal device and the second terminal device is large or an obstacle exists. Therefore, the Wifi router is used as a bluetooth relay between the first terminal device and the second terminal device.
The first receiving module 1301 and the first sending module have the same frequency as the Wifi router, for example, the three modules all use a 2.4G network, so that the first receiving module 1301 and the first sending module can communicate with the Wifi router.
The first receiving module 1301 receives the first signal P0 transmitted by the first transmitting module through two paths. One path is directly receiving the first signal P0 sent by the first sending module; the other path is that the first signal P0 sent by the first sending module is amplified by the Wifi router to become a second signal P1, and the second signal P1 sent by the Wifi router is received.
The demodulation module 1302 is configured to demodulate the second signal if the signal strength of the second signal is determined to be greater than the first signal; wherein the first signal and the second signal carry the same data packet.
Although the second signal P1 is the first signal P0 amplified by the Wifi router, the signal strength of P1 received by the second terminal device is not necessarily greater than the signal strength of P0.
The demodulation module 1302 compares P0 and P1. In the case that P1 is greater than P0, P1 is demodulated; in the case where P1 is smaller than P0, P0 is demodulated.
The embodiment of the application uses the wifi router as the Bluetooth relay, and the signal amplification function of the wifi router is used for amplifying the signal sent by the first terminal device, the second terminal device demodulates the amplified signal under the condition that the amplified signal is stronger than the signal intensity of the original signal, so that the coverage range of the Bluetooth is enlarged under the condition that the Bluetooth power consumption is not changed, and extra professional equipment is not needed.
Optionally, the apparatus further includes a second receiving module, configured to:
and receiving transmission delay which is sent by the first sending module and used for data forwarding through the Wifi router, and receiving signals after the transmission delay.
Optionally, the transmission delay is determined based on a size of the data packet.
The communication device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The communication device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The communication device provided in the embodiment of the present application can implement each process implemented by the communication device in the method embodiments of fig. 1, fig. 2, fig. 6, fig. 7, and fig. 9 to fig. 11, and for avoiding repetition, details are not described here again.
The embodiment of the application uses the wifi router as the Bluetooth relay, and the signal amplification function of the wifi router is used for amplifying the signal sent by the first terminal device, so that the amplified signal is demodulated under the condition that the amplified signal is larger than the signal intensity of the original signal, the coverage range of the Bluetooth is enlarged under the condition that the Bluetooth power consumption is not changed, and extra professional equipment is not needed.
Fig. 14 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure, and as shown in fig. 14, the electronic device 1400 includes, but is not limited to: at least some of the components of the radio unit 1401, the network module 1402, the audio output unit 1403, the input unit 1404, the sensor 1405, the display unit 1406, the user input unit 1407, the interface unit 1408, the memory 1409, and the processor 1410, etc.
Those skilled in the art will appreciate that the electronic device 1400 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1410 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 14 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
It should be understood that in the embodiment of the present application, the input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, and the Graphics processor 14041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1407 includes a touch panel 14071 and other input devices 14072. Touch panel 14071, also referred to as a touch screen. The touch panel 14071 may include two parts of a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
In this embodiment, the radio frequency unit 1401 receives downlink data from a network side device and then processes the downlink data in the processor 1410; in addition, the uplink data is sent to the network side equipment. In general, radio unit 1401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 1409 may be used to store software programs or instructions as well as various data. The memory 1409 may mainly include a stored program or instruction area and a stored data area, wherein the stored program or instruction area may store an operating system, an application program or instruction (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. In addition, the Memory 1409 may include a high-speed random access Memory and may further include a nonvolatile Memory, wherein the nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable Programmable PROM (EPROM), an Electrically Erasable Programmable ROM (EEPROM), or a flash Memory. Such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
Processor 1410 may include one or more processing units; alternatively, the processor 1410 may integrate an application processor, which mainly handles operating systems, user interfaces, and applications or instructions, etc., and a modem processor, which mainly handles wireless communications, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1410.
The processor 1410 is configured to send a first signal to a second terminal device through a bluetooth connection, and send a second signal to the second terminal device after amplifying the first signal through a Wifi router through the Wifi connection, where the second signal is demodulated by the second terminal device when it is determined that the signal strength of the second signal is greater than the signal strength of the first signal; wherein the first signal and the second signal carry the same data packet.
Optionally, the processor is configured to: displaying prompt information amplified by the Wifi router and used for forwarding signals under the condition that the Wifi router with the same frequency as the first terminal equipment exists in the preset range of the first terminal equipment; receiving input of a user; in response to the input, sending a request to establish a communication connection to the Wifi router to establish the Wifi connection.
Optionally, the processor is configured to: and sending a request for establishing communication connection to the Wifi router under the condition that the receiving power corresponding to the signal sent through the Bluetooth connection is smaller than a preset threshold value.
Optionally, the processor is configured to: and sending a transmission delay corresponding to data forwarding through the Wifi router to the second terminal device, wherein the transmission delay is used for indicating the second terminal device to receive signals after the transmission delay.
Optionally, the processor is configured to: determining the transmission delay based on the size of the data packet.
Or, the processor 1410 is configured to receive a first signal sent by a first terminal device through a bluetooth connection, and receive a second signal sent by the first terminal device after amplifying the first signal through a Wifi router through a Wifi connection; demodulating the second signal if it is determined that the signal strength of the second signal is greater than the signal strength of the first signal; wherein the first signal and the second signal carry the same data packet.
Optionally, the processor is configured to: and receiving transmission delay which is sent by the first terminal equipment and corresponds to data forwarding through the Wifi router, and receiving signals after the transmission delay.
Optionally, the transmission delay is determined based on a size of the data packet.
The electronic device embodiment in the embodiment of the present application is a product embodiment corresponding to the method embodiment, and all implementation manners in the method embodiment are applicable to the electronic device embodiment, and may also achieve the same or similar technical effects, so that details are not described herein again.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned embodiment of the object distance measuring method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above embodiment of the object distance measurement method, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order, depending on the functions involved, for example, performing the described methods in an order different from that described, and may also add, omit, or combine various steps. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (15)

1. A communication method, applied to a first terminal device, the method comprising:
sending a first signal to a second terminal device through Bluetooth connection;
transmitting a second signal to the second terminal device after amplifying the first signal through a Wifi connection via a Wifi router, wherein the second signal is demodulated by the second terminal device under the condition that the signal intensity of the second signal is determined to be greater than that of the first signal;
wherein the first signal and the second signal carry the same data packet.
2. The communication method according to claim 1, wherein before the transmitting the second signal to the second terminal device after amplifying the first signal through the Wifi connection via the Wifi router, the method further comprises:
displaying prompt information amplified by the Wifi router and used for forwarding signals under the condition that the Wifi router with the same frequency as the first terminal equipment exists in the preset range of the first terminal equipment;
receiving a first input;
and responding to the first input, and sending a request for establishing communication connection to the Wifi router so as to establish the Wifi connection.
3. The communication method according to claim 2, wherein the sending the request for establishing the communication connection to the Wifi router comprises:
and sending a request for establishing communication connection to the Wifi router under the condition that the receiving power corresponding to the signal sent through the Bluetooth connection is smaller than a preset threshold value.
4. The communication method of claim 3, wherein the method further comprises:
and sending a transmission delay corresponding to data forwarding through the Wifi router to the second terminal device, wherein the transmission delay is used for indicating the second terminal device to receive the second signal after the transmission delay.
5. The communication method of claim 4, wherein the method further comprises:
determining the transmission delay based on the size of the data packet.
6. A communication method, applied to a second terminal device, the method comprising:
receiving a first signal sent by a first terminal device through Bluetooth connection, and receiving a second signal sent by the first terminal device after the first signal is amplified by a Wifi router through Wifi connection;
demodulating the second signal if it is determined that the signal strength of the second signal is greater than the signal strength of the first signal;
wherein the first signal and the second signal carry the same data packet.
7. The communication method of claim 6, wherein the method further comprises:
and receiving transmission delay which is sent by the first terminal equipment and corresponds to data forwarding through the Wifi router, and receiving signals after the transmission delay.
8. The communication method of claim 7, wherein the transmission delay is determined based on a size of the data packet.
9. A communication device, the device comprising:
the first sending module is used for sending a first signal to a second terminal device through Bluetooth connection, amplifying the first signal through a Wifi router through Wifi connection, and then sending a second signal to the second terminal device, wherein the second signal is demodulated by the second terminal device under the condition that the signal intensity of the second signal is determined to be greater than that of the first signal;
wherein the first signal and the second signal carry the same data packet.
10. The communication device of claim 9, wherein the device further comprises a connection module configured to:
displaying prompt information amplified by the Wifi router and used for forwarding signals under the condition that the Wifi router with the same frequency as the first sending module exists in the preset range of the first sending module;
receiving a first input;
and responding to the first input, and sending a request for establishing communication connection to the Wifi router so as to establish the Wifi connection.
11. The communications device of claim 10, wherein the connection module is configured to:
and sending a request for establishing communication connection to the Wifi router under the condition that the receiving power corresponding to the signal sent through the Bluetooth connection is smaller than a preset threshold value.
12. The communications device of any of claim 11, wherein the device further comprises a second sending module configured to:
and sending transmission delay for data forwarding through the Wifi router to the second terminal device, wherein the transmission delay is used for indicating the second terminal device to receive signals after the transmission delay.
13. A communication device, the device comprising:
the first receiving module is used for receiving a first signal sent by the first sending module through Bluetooth connection and receiving a second signal sent by the first sending module through a Wifi router through Wifi connection;
a demodulation module configured to demodulate the second signal if it is determined that the signal strength of the second signal is greater than the first signal;
wherein the first signal and the second signal carry the same data packet.
14. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the communication method according to any one of claims 1 to 8.
15. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the communication method according to any one of claims 1 to 8.
CN202110287740.8A 2021-03-17 2021-03-17 Communication method, device, electronic equipment and storage medium Active CN113068168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110287740.8A CN113068168B (en) 2021-03-17 2021-03-17 Communication method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110287740.8A CN113068168B (en) 2021-03-17 2021-03-17 Communication method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113068168A true CN113068168A (en) 2021-07-02
CN113068168B CN113068168B (en) 2023-06-23

Family

ID=76561283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110287740.8A Active CN113068168B (en) 2021-03-17 2021-03-17 Communication method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113068168B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117879629A (en) * 2024-03-13 2024-04-12 成都正扬博创电子技术有限公司 Response signal processing method and device of airborne collision avoidance system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205017328U (en) * 2015-08-27 2016-02-03 杨珊珊 Intelligence relay system and unmanned aerial vehicle thereof
CN105451321A (en) * 2015-12-01 2016-03-30 小米科技有限责任公司 Method, apparatus and device for improving WIFI signal strength
CN105680927A (en) * 2015-12-29 2016-06-15 青岛海尔智能家电科技有限公司 Intelligent household appliance and WIFI signal relay method and device
CA3028715A1 (en) * 2018-01-04 2019-07-04 Wilson Electronics, Llc Line loss detection in a signal booster system
CN111866831A (en) * 2020-06-30 2020-10-30 歌尔科技有限公司 Connection control method, device, terminal equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205017328U (en) * 2015-08-27 2016-02-03 杨珊珊 Intelligence relay system and unmanned aerial vehicle thereof
CN105451321A (en) * 2015-12-01 2016-03-30 小米科技有限责任公司 Method, apparatus and device for improving WIFI signal strength
CN105680927A (en) * 2015-12-29 2016-06-15 青岛海尔智能家电科技有限公司 Intelligent household appliance and WIFI signal relay method and device
CA3028715A1 (en) * 2018-01-04 2019-07-04 Wilson Electronics, Llc Line loss detection in a signal booster system
CN111866831A (en) * 2020-06-30 2020-10-30 歌尔科技有限公司 Connection control method, device, terminal equipment and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117879629A (en) * 2024-03-13 2024-04-12 成都正扬博创电子技术有限公司 Response signal processing method and device of airborne collision avoidance system
CN117879629B (en) * 2024-03-13 2024-05-07 成都正扬博创电子技术有限公司 Response signal processing method and device of airborne collision avoidance system

Also Published As

Publication number Publication date
CN113068168B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN110247678B (en) Terminal control method and terminal
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
CN107896119B (en) Antenna sharing circuit and mobile terminal
CN112769445B (en) Radio frequency circuit, signal transmitting method and electronic equipment
CN110753389A (en) Network control method and electronic equipment
CN110166794B (en) Live broadcast audio processing method, device and system
CN111988771B (en) Wireless connection control method and device and electronic equipment
CN108668328B (en) Network switching method and mobile terminal
CN112688714B (en) Radio frequency circuit, Bluetooth realization method and device and electronic equipment
CN114389648A (en) Signal transmission method and device, terminal equipment, intelligent equipment and electronic equipment
CN112272041A (en) Radio frequency circuit and electronic device
CN113162844B (en) Instant messaging method, instant messaging device, electronic equipment and storage medium
CN113068168B (en) Communication method, device, electronic equipment and storage medium
CN113078922B (en) Radio frequency circuit, control method and device of radio frequency circuit and electronic equipment
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108579081B (en) Event processing method, device and computer storage medium based on game
CN112888055B (en) Wi-Fi uplink data sending method and device, electronic equipment and storage medium
CN113407423A (en) Signal intensity display method and signal intensity display device
CN107592132B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
CN110149639B (en) Interference processing method, terminal equipment and network side equipment
CN108988901B (en) Radio frequency signal receiving and transmitting device, radio frequency signal receiving and transmitting method and mobile terminal
CN108696917B (en) Communication connection method, device, electronic device and computer readable medium
CN112769451B (en) Information transmission/reception control method, information transmission/reception control device, electronic apparatus, and storage medium
CN113489508B (en) Power supply control method, power supply control device, electronic device, and readable storage medium
CN112769446B (en) Radio frequency circuit, signal transceiving method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant