CN113068168B - Communication method, device, electronic equipment and storage medium - Google Patents
Communication method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113068168B CN113068168B CN202110287740.8A CN202110287740A CN113068168B CN 113068168 B CN113068168 B CN 113068168B CN 202110287740 A CN202110287740 A CN 202110287740A CN 113068168 B CN113068168 B CN 113068168B
- Authority
- CN
- China
- Prior art keywords
- signal
- wifi router
- wifi
- terminal equipment
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
- H04W40/22—Communication 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing 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 device, electronic equipment and a storage medium, and belongs to the field of communication. The method comprises the following steps: transmitting a first signal to a second terminal device through Bluetooth connection, amplifying the first signal through a Wifi router through Wifi connection, and transmitting 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 larger than that of the first signal; wherein the first signal and the second signal carry the same data packet. The application expands the coverage of Bluetooth without changing Bluetooth power consumption, and does not need additional professional equipment.
Description
Technical Field
The application belongs to the field of communication, and particularly relates to a communication method, a device, electronic equipment and a storage medium.
Background
With the popularization of bluetooth devices such as bluetooth headsets and handrings and bluetooth communication in life, bluetooth low energy applications are increasing.
Bluetooth low power consumption limits Bluetooth's power, results in Bluetooth's coverage area being very small, limited for small communication distance and barrier-free scenes. The distance between two low-power consumption Bluetooth devices exceeds 10m in an open environment, connection is unstable, communication in one room is unstable, and the use experience of the Bluetooth devices is greatly affected.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art:
if the coverage area of the Bluetooth is increased by increasing the power of the Bluetooth, the power consumption is increased, and the cruising of the Bluetooth equipment is not facilitated.
Disclosure of Invention
An object of the embodiments of the present application is to provide a communication method, apparatus, electronic device, and storage medium, which can solve the problem that improvement of bluetooth coverage needs to promote bluetooth power consumption or use professional equipment.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a communication method, which is applied to a first terminal device, where the method includes:
transmitting a first signal to a second terminal device through a Bluetooth connection;
the first signal is amplified through a Wifi router through a Wifi connection, and then a second signal is sent to the second terminal equipment, and the second signal is demodulated by the second terminal equipment under the condition that the signal intensity of the second signal is determined to be larger 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, applied to a second terminal device, where the method includes:
Receiving a first signal sent by first terminal equipment through Bluetooth connection, and receiving a second signal sent by the first terminal equipment 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 the second terminal equipment through Bluetooth connection, sending a second signal to the second terminal equipment after amplifying the first signal through a Wifi router through Wifi connection, and demodulating the second signal under the condition that the second terminal equipment determines that the signal intensity of the second signal is larger than that of the first signal;
wherein the first signal and the second signal carry the same data packet.
In a fourth aspect, embodiments of the present application provide 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 the 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, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first or second aspect when executed by the processor.
In a sixth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the method according to the first or second aspect.
In a seventh aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect or the second aspect.
In this application embodiment, through regard as bluetooth relay with wifi router, utilize the signal amplification function of wifi router to amplify the signal that first terminal equipment sent, under the condition that amplified signal is greater than the signal strength of original signal, demodulate amplified signal, under the condition that does not change bluetooth consumption, enlarge bluetooth's coverage, and do not need extra professional equipment.
Drawings
FIG. 1 is one of the flow charts of the 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 of relative positions of a Wifi router, a first terminal device and a second terminal device in the communication method provided by the application;
fig. 5 is a second schematic diagram of the relative positions of a Wifi router, a first terminal device and a second terminal device in the communication method provided in the present application;
FIG. 6 is a schematic diagram of a prompt message interface for Wifi router connection in the communication method provided by the application;
FIG. 7 is a second schematic diagram of a prompt message interface for connection of a Wifi router in the communication method provided by the application;
fig. 8 is a schematic diagram of a timeslot 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 diagram of a time slot of a Wifi router passing through both a first terminal device and a second terminal device 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 flow chart of the communication method provided in the present application;
FIG. 12 is one of the block diagrams of the communication device provided herein;
FIG. 13 is a second block diagram of the communication device provided in the present application;
fig. 14 is a schematic diagram of a hardware structure of the electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The communication method, the device, the electronic equipment and the storage medium provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides a communication method, which is applied to a first terminal device, and includes:
the method provided by the embodiment of the application is applied to first terminal equipment, wherein the first terminal equipment is Bluetooth equipment, such as Bluetooth headphones, a bracelet and the like, or mobile terminals with Bluetooth functions, such as smart phones, personal computers, tablet computers or wearable smart equipment and the like.
The second terminal device is a Bluetooth device or a mobile terminal with Bluetooth function.
The first terminal device and the second terminal device start Bluetooth, and Bluetooth communication is directly carried out between the first terminal device and the second terminal device. I.e. the first signal is a bluetooth signal.
Because bluetooth's power is low, lead to bluetooth's coverage very little, in the communication distance between first terminal equipment and the second terminal equipment great, or have the scene of barrier, bluetooth communication is unstable. Therefore, the Wifi router is used as a bluetooth relay between the first terminal device and the second terminal device.
As Wifi network coverage is becoming more and more popular, many public places, such as subways, buses, squares and markets, have Wifi network coverage. Therefore, the Wifi router has great practical value as a Bluetooth relay.
The first terminal device and the second terminal device are co-frequency with the Wifi router, for example, all three use a 2.4G network, so that the first terminal device and the second terminal device can communicate with the Wifi router.
The communication process between the first terminal device and the second terminal device and the Wifi router is as follows:
1. the first terminal equipment simultaneously sends a first signal P0 to the second terminal equipment and the Wifi router;
2. after the first signal P0 is received by the Wifi router, the Wifi router amplifies the first signal P0, takes the amplified first signal P0 as a second signal P1, and sends the second signal P1 to the second terminal equipment;
3. The second terminal equipment receives the first signal P0 and the second signal P1 successively, compares the signal intensity of the first signal P0 with the signal intensity of the second signal P1, and demodulates the signal with large signal intensity. Wherein the signal strength is characterized by the level of the signal, the greater the level, the greater the signal strength.
The propagation of the first signal P0 is due to multipath effects, the signal arriving from the first terminal device to the second terminal device being actually the result of the superposition of a plurality of signals.
As shown in fig. 2, the first signal P0 arrives at 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 the 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 improved.
The hardware block diagram of the Wifi router is shown in fig. 3, and the Wifi router includes an antenna, a filter, a Wifi transceiver, a Wifi ap internal buffer, and a PA (Power Amplifier).
The receiving process of the Wifi router on the first signal P0 includes: the first signal P0 is received by an antenna of the Wifi router, filtered by a filter and then input into a Wifi transceiver of the Wifi router. The Wifi transceiver down-converts the radio frequency signal into a baseband signal and then caches the baseband signal.
The transmitting process of the Wifi router to the first signal P0 includes: the Wifi transceiver up-converts the baseband signal in the buffer memory into a radio frequency signal, and the radio frequency signal is amplified by the PA, filtered by the filter and then transmitted 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 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 increased additionally.
The second signal P1 is a signal amplified by the Wifi router, but the signal strength of the second signal P1 received by the second terminal device is not necessarily greater than the signal strength of the first signal P0.
For example, as shown in fig. 4, in the case where the distance between the Wifi router and the second terminal device B is far greater 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.
Demodulating P1 in case P1 is greater than P0; in the case where P1 is smaller than P0, P0 is demodulated.
According to the embodiment of the application, the wifi router is used as a Bluetooth relay, the signal transmitted by the first terminal equipment is amplified by the signal amplification function of the wifi router, 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 Bluetooth is enlarged under the condition that Bluetooth power consumption is not changed, and additional professional equipment is not needed.
Optionally, before the second signal is sent to the second terminal device after the first signal is amplified by the Wifi router through the Wifi connection, the method further includes: displaying prompt information of amplifying and forwarding signals through a Wifi router 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;
and when the first terminal equipment and the second terminal equipment establish Bluetooth connection, the first terminal equipment 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 equipment have the same frequency, so that the Wifi router and the first terminal equipment 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 and displays prompt information. The prompt message is used for prompting the user to amplify the first signal by connecting with the Wifi router. The display interface of the prompt message 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 first input may be in the form of a mouse click operation or a keyboard input operation, and embodiments of the present application are not limited to the specific form of the first input.
As shown in fig. 6, when the user clicks the "yes" button on the display interface of the prompt message, a request for establishing a communication connection is sent to the Wifi router to establish the Wifi connection.
As shown in fig. 7, when a plurality of Wifi routers with the same frequency as the first terminal device exist in a preset range of the first terminal device, related information of the Wifi routers is also displayed on a display interface of the prompt information.
The related information of the Wifi router comprises the name and signal strength of the Wifi router, such as the name of the Wifi router is a Wifi router 1 and a Wifi router 2.
The user clicks the yes button on the display interface of the prompt message and also needs to select the Wifi router. And sending a request for establishing communication connection to the Wifi router selected by the user according to clicking and selecting operations 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, and Wifi connection is established. The control instruction is a Wifi signal.
The Wifi router monitors signals sent by the first terminal equipment. 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 guaranteed to be 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 equipment exists in the preset range of the first terminal equipment, so that a user can conveniently perform Wifi connection operation according to the prompt information.
Optionally, the sending a request for establishing a communication connection to the Wifi router includes:
and sending a request for establishing communication connection to the Wifi router under the condition that the received power corresponding to the signal sent through the Bluetooth connection is smaller than a preset threshold value.
The signals sent through the Bluetooth connection comprise signals sent by the first terminal equipment A and the second terminal equipment 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 the 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, a signal amplifying function is started, and the 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 under the condition that the receiving power corresponding to the signal sent by the Bluetooth connection is smaller, so that effective utilization of resources is realized.
Optionally, the method further comprises: and sending a transmission delay corresponding to the data forwarding through the Wifi router to the second terminal equipment, wherein the transmission delay is used for indicating the second terminal equipment to receive the second signal after the second terminal equipment passes through 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 a transmission delay t1 corresponding to the Wifi router to forward the first signal P0. The second terminal device receives the second signal after t1. The second signal is received before the signal transmission is performed.
As shown in fig. 8, in the case that neither the first terminal device a nor the second terminal device B passes through the Wifi router, a directly transmits a signal to B, and B simultaneously receives a signal. Then B sends a signal directly to a, which receives the signal simultaneously. TX means transmit and RX means receive.
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 transmits a signal to B through the Wifi router, generating a transmission delay t1, resulting in delay of B reception and transmission signals by t1, and delay of a reception signal of a corresponding to the transmission signal of B by t1.
And then B sends a signal to A through the Wifi router, the 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 method and the device, the transmission delay corresponding to the data forwarding through the Wifi router is sent to the second terminal equipment, the second terminal equipment is instructed to receive signals after the transmission delay, then the signals are sent, the first terminal equipment and the second terminal equipment are prevented from sending signals at the same time, and the communication quality is improved.
Optionally, the method further comprises: the transmission delay is determined based on the size of the data packet.
The transmission delay is determined according to the size of the data packet sent by the first terminal device to the second terminal device. The larger the packet, the greater the transmission delay for forwarding data via the Wifi router.
The embodiment of the application realizes accurate determination of the transmission delay, thereby indicating the second terminal equipment to receive the signal after the transmission delay, better avoiding the first terminal equipment and the second terminal equipment from simultaneously transmitting the signal and improving the communication quality.
As shown in fig. 10, the complete steps of the communication method in the embodiment of the present application are as follows:
1. the method comprises the steps that a first terminal device A and a 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 the first terminal device A exists in a preset range of the first terminal device A;
if the wireless communication system does not exist, the A and the B directly carry out Bluetooth communication without passing through a Wifi router;
if yes, prompting the user to connect with the Wifi router;
3. after the A is connected with the Wifi router, detecting whether the receiving power corresponding to the signal sent by the A or the B is smaller than a preset threshold Pb or not;
if not, the A and the B directly carry out Bluetooth communication without passing through a Wifi router;
if yes, the A commands the Wifi router to start a Bluetooth signal amplifying function, and the B agrees with the transmission delay t1;
4. the P0 sent by the A is amplified by a Wifi router and then becomes a second signal P1, and the P1 is sent to the B through the Wifi router; meanwhile, the A directly sends P0 to the 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, applied to a second terminal device, including:
The method provided by the embodiment of the application is applied to second terminal equipment, wherein the second terminal equipment is Bluetooth equipment, such as Bluetooth headphones, a bracelet and the like, or a mobile terminal with a Bluetooth function, such as a smart phone, a personal computer, a tablet personal computer or a wearable intelligent device and the like.
The first terminal device is a Bluetooth device or a mobile terminal with Bluetooth function.
The first terminal device and the second terminal device start Bluetooth, and Bluetooth communication is directly carried out between the first terminal device and the second terminal device. I.e. the first signal is a bluetooth signal.
Because bluetooth's power is low, lead to bluetooth's coverage very little, in the communication distance between first terminal equipment and the second terminal equipment great, or have the scene of barrier, bluetooth communication is unstable. 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 are co-frequency with the Wifi router, for example, all three 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 to directly receive a first signal P0 sent by a first terminal device; the other path is that the first signal P0 sent by the first terminal equipment is amplified by the Wifi router and then becomes a second signal P1, and the second signal P1 sent by the Wifi router is received.
The second signal P1 is a signal amplified by the Wifi router, but the signal strength of the second signal P1 received by the second terminal device is not necessarily greater than the signal strength of the first signal 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 there is an obstacle between the Wifi router and the second terminal device, the signal strength of P1 may be smaller than the signal strength of P0.
The second terminal device compares P0 and P1. Demodulating P1 in case P1 is greater than P0; in the case where P1 is smaller than P0, P0 is demodulated.
According to the embodiment of the application, the wifi router is used as a Bluetooth relay, the signal transmitted by the first terminal equipment is amplified by the signal amplification function of the wifi router, the second terminal equipment demodulates the amplified signal under the condition that the amplified signal is larger than the signal intensity of the original signal, the coverage range of Bluetooth is enlarged under the condition that Bluetooth power consumption is not changed, and additional professional equipment is not needed.
Optionally, the method further comprises: and receiving the transmission delay corresponding to the data forwarding through the Wifi router and sent by the first terminal equipment, and receiving the 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 a transmission delay t1 corresponding to the Wifi router to forward the first signal P0.
The second terminal equipment receives the transmission delay t1 sent by the first terminal equipment, and then receives the signal after t1. The second terminal device does not transmit a signal until it receives the signal.
According to the method and the device, the second terminal equipment receives the transmission delay corresponding to the data forwarding through the Wifi router, the signal receiving is performed after the transmission delay, the signal sending is performed, the first terminal equipment and the second terminal equipment are prevented from sending signals at the same time, and the communication quality is improved.
Optionally, the transmission delay is determined based on the size of the data packet.
The transmission delay is determined according to the size of the data packet sent by the first terminal device to the second terminal device. The larger the packet, the greater the transmission delay for forwarding data via the Wifi router.
The embodiment of the application realizes accurate determination of the transmission delay, so that the second terminal equipment receives the signal after the transmission delay, thereby better avoiding the first terminal equipment and the second terminal equipment from simultaneously transmitting the signal and improving the communication quality.
It should be noted that, in the communication method provided in the embodiment of the present application, the execution 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, taking an example that the communication device executes a loading communication method, the communication method provided in the embodiment of the present application is described.
As shown in fig. 12, the communication device provided in the embodiment of the present application includes a first sending module 1201; wherein:
the first sending module 1201 is configured to send a first signal to a second terminal device through bluetooth connection, amplify the first signal through Wifi connection via a Wifi router, and send a second signal to the second terminal device, where the second signal is demodulated by the second terminal device when determining 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.
The communication device is a bluetooth device, such as a bluetooth headset, a bracelet, or the like, or a mobile terminal with a bluetooth function, such as a smart phone, a personal computer, a tablet personal computer, or a wearable smart device, or the like.
The second terminal device is a Bluetooth device or a mobile terminal with Bluetooth function.
The communication device and the second terminal equipment start Bluetooth, and Bluetooth communication is directly carried out 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 share the same frequency with the Wifi router, for example, all three 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 from the first sending module 1201 through two paths, and is directly sent to the second terminal device B by the first sending module 1201, or is forwarded to the second terminal device B through the 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 improved.
The second signal P1 is a signal amplified by the Wifi router, but the signal strength of the second signal P1 received by the second terminal device is not necessarily greater than the signal strength of the first signal P0.
Demodulating P1 in case P1 is greater than P0; in the case where P1 is smaller than P0, P0 is demodulated.
According to the embodiment of the application, the wifi router is used as a Bluetooth relay, the signal transmitted by the first terminal equipment is amplified by the signal amplification function of the wifi router, 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 Bluetooth is enlarged under the condition that Bluetooth power consumption is not changed, and additional professional equipment is not needed.
Optionally, the device further comprises a connection module for: displaying prompt information of amplifying and forwarding signals through the Wifi router 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 received power corresponding to the signal sent through the Bluetooth connection is smaller than a preset threshold value.
Optionally, the device further includes a second sending module, configured to: and sending a transmission delay for forwarding data through the Wifi router to the second terminal equipment, wherein the transmission delay is used for indicating the second terminal equipment to receive signals after the transmission delay.
Optionally, the device further comprises a determining module for: the transmission delay is determined based on the size of the data packet.
As shown in fig. 13, the communication device 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 bluetooth connection, and receive a second signal sent by the first sending module after amplifying the first signal through a Wifi router by Wifi connection;
the first receiving module 1301 and the first transmitting module directly perform bluetooth communication therebetween. I.e. the first signal is a bluetooth signal.
Because bluetooth's power is low, lead to bluetooth's coverage very little, in the communication distance between first terminal equipment and the second terminal equipment great, or have the scene of barrier, bluetooth communication is unstable. 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 transmitting module are co-frequency with the Wifi router, for example, all three use a 2.4G network, so that the first receiving module 1301 and the first transmitting 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 to directly receive a first signal P0 sent by a first sending module; the other path is that the first signal P0 sent by the first sending module is amplified by the Wifi router and then becomes 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 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.
The second signal P1 is a signal amplified by the Wifi router, but the signal strength of the second signal P1 received by the second terminal device is not necessarily greater than the signal strength of the first signal P0.
The demodulation module 1302 compares P0 and P1. Demodulating P1 in case P1 is greater than P0; in the case where P1 is smaller than P0, P0 is demodulated.
According to the embodiment of the application, the wifi router is used as a Bluetooth relay, the signal transmitted by the first terminal equipment is amplified by the signal amplification function of the wifi router, the second terminal equipment demodulates the amplified signal under the condition that the amplified signal is larger than the signal intensity of the original signal, the coverage range of Bluetooth is enlarged under the condition that Bluetooth power consumption is not changed, and additional professional equipment is not needed.
Optionally, the apparatus further comprises a second receiving module for:
and receiving the transmission delay of the data forwarding through the Wifi router, which is sent by the first sending module, and receiving the signal after the transmission delay.
Optionally, the transmission delay is determined based on the size of the data packet.
The communication device in the embodiment of the application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
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 operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The communication device provided in the embodiment of the present application can implement each process implemented by the communication device in the embodiments of the methods of fig. 1, fig. 2, fig. 6, fig. 7, and fig. 9 to fig. 11, and in order to avoid repetition, a detailed description is omitted here.
According to the embodiment of the application, the wifi router is used as a Bluetooth relay, the signal transmitted by the first terminal equipment is amplified by the signal amplification function of the wifi router, 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 Bluetooth is enlarged under the condition that Bluetooth power consumption is not changed, and additional professional equipment is not needed.
Fig. 14 is a schematic hardware structure of an electronic device according to an embodiment of the present application, as shown in fig. 14, where the electronic device 1400 includes, but is not limited to: at least part of the components of the radio frequency 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, the processor 1410, and the like.
Those skilled in the art will appreciate that the electronic device 1400 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1410 by a power management system to perform functions such as managing charging, discharging, and power consumption by 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
It should be appreciated that in embodiments of the present application, the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042, with the graphics processor 14041 processing image data of still pictures or video obtained by an image capturing device (e.g., 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. The touch panel 14071 is also referred to as a touch screen. The touch panel 14071 may include two parts, 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, a joystick, and so forth, which are not described in detail herein.
In this embodiment, after receiving downlink data from a network side device, the radio frequency unit 1401 processes the downlink data with the processor 1410; in addition, the uplink data is sent to the network side equipment. Typically, the radio frequency 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 processor 1410 is configured to send a first signal to a second terminal device through bluetooth connection, amplify the first signal through Wifi connection via a Wifi router, and send a second signal to the second terminal device, 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 of amplifying and forwarding signals through a Wifi router 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 an input of a user; and responding to the input, and sending a request for establishing communication connection to the Wifi router so as 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 received 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 the data forwarding through the Wifi router to the second terminal equipment, wherein the transmission delay is used for indicating the second terminal equipment to receive signals after the transmission delay.
Optionally, the processor is configured to: the transmission delay is determined 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 bluetooth connection, and receive a second signal sent by the first terminal device after amplifying the first signal 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.
Optionally, the processor is configured to: and receiving the transmission delay corresponding to the data forwarding through the Wifi router and sent by the first terminal equipment, and receiving the signal after the transmission delay.
Optionally, the transmission delay is determined based on the size of the data packet.
The electronic device embodiment in the embodiment of the present application is a product embodiment corresponding to the above method embodiment, and all implementation manners in the above method embodiment are applicable to the electronic device embodiment, and the same or similar technical effects may be achieved, so that the description thereof is omitted herein.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction realizes each process of the embodiment of the object distance measurement method when executed by a processor, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a 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 (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or an instruction, implementing each process of the above object distance measuring method embodiment, and achieving the same technical effect, so as to avoid repetition, and no redundant description is provided herein.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, 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 one … …" does not exclude the presence of other elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, and may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.
Claims (15)
1. A communication method applied to a first terminal device, comprising:
transmitting a first signal to a second terminal device through a Bluetooth connection;
the first signal is amplified through a Wifi router through a Wifi connection, and then a second signal is sent to the second terminal equipment, and the second signal is demodulated by the second terminal equipment under the condition that the signal intensity of the second signal is determined to be larger than that of the first signal;
the first terminal is used for sending the first signal to the second terminal and the Wifi router at the same time, and the Wifi router is used for amplifying the first signal to obtain a second signal and sending the second signal to the second terminal; the second terminal is used for demodulating the signal with the largest signal strength in the first signal and the second 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 second signal is sent to the second terminal device after the first signal is amplified via a Wifi router through a Wifi connection, the method further comprises:
displaying prompt information of amplifying and forwarding signals through a Wifi router 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 to establish 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 received power corresponding to the signal sent through the Bluetooth connection is smaller than a preset threshold value.
4. A method of communicating according to claim 3, wherein the method further comprises:
and sending a transmission delay corresponding to the data forwarding through the Wifi router to the second terminal equipment, wherein the transmission delay is used for indicating the second terminal equipment to receive the second signal after the second terminal equipment passes through the transmission delay.
5. The communication method according to claim 4, characterized in that the method further comprises:
the transmission delay is determined 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 first terminal equipment through Bluetooth connection, and receiving a second signal sent by the first terminal equipment 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;
demodulating the first signal if it is determined that the signal strength of the second signal is less than or equal to the signal strength of the first signal;
wherein the first signal and the second signal carry the same data packet.
7. The communication method according to claim 6, characterized in that the method further comprises:
and receiving the transmission delay corresponding to the data forwarding through the Wifi router and sent by the first terminal equipment, and receiving the signal 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 the second terminal equipment through Bluetooth connection, sending a second signal to the second terminal equipment after amplifying the first signal through a Wifi router through Wifi connection, and demodulating the second signal under the condition that the second terminal equipment determines that the signal intensity of the second signal is larger than that of the first signal;
Wherein the first signal and the second signal carry the same data packet;
the communication equipment is used for simultaneously sending the first signal to the second terminal and the Wifi router, and the Wifi router is used for amplifying the first signal to obtain a second signal and sending the second signal to the second terminal; the second terminal is used for demodulating the signal with the largest signal strength in the first signal and the second signal.
10. The communication device of claim 9, wherein the device further comprises a connection module for:
displaying prompt information of amplifying and forwarding signals through the Wifi router 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 communication 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 received power corresponding to the signal sent through the Bluetooth connection is smaller than a preset threshold value.
12. The communication device of claim 11, wherein the device further comprises a second transmission module configured to:
and sending a transmission delay for forwarding data through the Wifi router to the second terminal equipment, wherein the transmission delay is used for indicating the second terminal equipment 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 that of the first signal;
the demodulation module is further configured to demodulate the first signal if it is determined that the signal strength of the second signal is less than or equal to the signal strength of 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 instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the communication method according to any of claims 1-8.
15. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the communication method according to any of claims 1-8.
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 CN113068168A (en) | 2021-07-02 |
CN113068168B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117879629B (en) * | 2024-03-13 | 2024-05-07 | 成都正扬博创电子技术有限公司 | Response signal processing method and device of airborne collision avoidance system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN205017328U (en) * | 2015-08-27 | 2016-02-03 | 杨珊珊 | Intelligence relay system and unmanned aerial vehicle thereof |
CN105451321B (en) * | 2015-12-01 | 2019-06-04 | 小米科技有限责任公司 | Promote the method, device and equipment of WIFI signal intensity |
CN105680927A (en) * | 2015-12-29 | 2016-06-15 | 青岛海尔智能家电科技有限公司 | Intelligent household appliance and WIFI signal relay method and device |
EP3509229B1 (en) * | 2018-01-04 | 2022-03-02 | Wilson Electronics, LLC | Detection of line loss in signal booster system |
CN111866831A (en) * | 2020-06-30 | 2020-10-30 | 歌尔科技有限公司 | Connection control method, device, terminal equipment and system |
-
2021
- 2021-03-17 CN CN202110287740.8A patent/CN113068168B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113068168A (en) | 2021-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110247678B (en) | Terminal control method and terminal | |
CN107896119B (en) | Antenna sharing circuit and mobile terminal | |
CN109819450B (en) | Signal receiving method, device and terminal | |
CN108880631B (en) | Information receiving and transmitting switching method and terminal | |
CN111988771B (en) | Wireless connection control method and device and electronic equipment | |
CN112262532B (en) | Method for improving MIMO throughput direction by increasing radio frequency path and terminal equipment | |
CN112688714B (en) | Radio frequency circuit, Bluetooth realization method and device and electronic equipment | |
CN111064491A (en) | Mobile terminal equipment and method for receiving and transmitting signals thereof | |
EP3843459A1 (en) | Communication system switching method and terminal device | |
CN108579081B (en) | Event processing method, device and computer storage medium based on game | |
WO2022206651A1 (en) | Instant communication method and apparatus, electronic device, and storage medium | |
CN110149639B (en) | Interference processing method, terminal equipment and network side equipment | |
CN110557166B (en) | Communication circuit adjusting method and terminal | |
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 | |
CN112888055B (en) | Wi-Fi uplink data sending method and device, electronic equipment and storage medium | |
CN105557016B (en) | A kind of processing method and terminal of voice and packet data concurrent service | |
CN113727298B (en) | Layer two identification determining method, device and terminal | |
CN113407423A (en) | Signal intensity display method and signal intensity display device | |
CN109831225B (en) | Antenna circuit and control method thereof | |
CN108988901B (en) | Radio frequency signal receiving and transmitting device, radio frequency signal receiving and transmitting method and mobile terminal | |
CN108337718B (en) | Wireless network scanning method and device, terminal equipment and storage 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 |
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 |