CN113329471A - Method, system, storage medium, and electronic device for establishing peer-to-peer communication - Google Patents
Method, system, storage medium, and electronic device for establishing peer-to-peer communication Download PDFInfo
- Publication number
- CN113329471A CN113329471A CN202110541794.2A CN202110541794A CN113329471A CN 113329471 A CN113329471 A CN 113329471A CN 202110541794 A CN202110541794 A CN 202110541794A CN 113329471 A CN113329471 A CN 113329471A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- communication module
- communication
- peer
- data transmission
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 173
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000005540 biological transmission Effects 0.000 claims abstract description 38
- 230000001360 synchronised effect Effects 0.000 claims abstract description 25
- 230000001276 controlling effect Effects 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 9
- 230000002618 waking effect Effects 0.000 claims description 8
- 230000000875 corresponding effect Effects 0.000 claims description 5
- 230000002596 correlated effect Effects 0.000 claims description 4
- 230000009286 beneficial effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 230000005236 sound signal Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0229—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present disclosure relates to a method, a system, a storage medium and an electronic device for establishing peer-to-peer communication, and relates to the technical field of communication, wherein the method comprises the following steps: broadcasting a synchronization signal through a communication module of a first electronic device in a case where it is determined that the first electronic device has a need to transmit data to a second electronic device; under the condition that the first electronic equipment is determined to have no data transmission requirement, controlling the communication module to enter a dormant state; and awakening the communication module at intervals, and searching for synchronous signals sent by other electronic equipment through the communication module after awakening the communication module successfully each time. The beneficial effects of this disclosure are: in the point-to-point communication, the electronic equipment in the point-to-point communication can realize simultaneous standby, and the point-to-point communication connection can be recovered when any end has a data transmission requirement, so that the power consumption of the electronic equipment in standby is reduced.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, a system, a storage medium, and an electronic device for establishing peer-to-peer communications.
Background
The terminal device generally communicates with the operator network, that is, the terminal device is connected to the base station first and then transmits data through the operator network. In addition, there are some other special communication modes, such as point-to-point communication. The terminal equipment is not directly connected with the base station, but the non-public network frequency band is utilized to carry out point-to-point or multipoint-to-multipoint connection between the terminal equipment, and the typical applications include unmanned aerial vehicles, wireless bridges and the like. However, in the current point-to-point communication mode, only the terminal device serving as the terminal side can realize standby, and the terminal device serving as the base station or the AP side needs to broadcast a signal, so that low-power standby cannot be realized, and thus, energy consumption is too high.
Disclosure of Invention
The purpose of the present disclosure is to provide a method, a system, a storage medium, and an electronic device for establishing peer-to-peer communication, which are used to solve the technical problem that a terminal device cannot be in low power standby mode.
In order to achieve the above object, in a first aspect, the present disclosure provides a method for establishing peer-to-peer communication, applied to a first electronic device, the method including:
broadcasting a synchronization signal through a communication module of the first electronic device in case it is determined that the first electronic device has a need to transmit data to a second electronic device, wherein the second electronic device is capable of establishing peer-to-peer communication with the first electronic device in case it is searched for the synchronization signal;
under the condition that the first electronic equipment is determined to have no data transmission requirement, controlling the communication module to enter a dormant state; and are
The communication module is awakened at intervals, and after the communication module is awakened successfully each time, the communication module searches for synchronous signals sent by other electronic equipment.
Optionally, the first electronic device is preset with a search frequency point, and accordingly, after the communication module is awakened successfully each time, searching for the synchronization signal sent by the other electronic device through the communication module includes:
after the communication module is awakened successfully each time, searching whether synchronous signals sent by other electronic equipment exist or not by the communication module aiming at the searching frequency point;
the method further comprises the following steps:
and controlling the communication module to enter a dormant state under the condition that the synchronous signals sent by other electronic equipment do not exist on the searching frequency point.
Optionally, the method further comprises:
determining that the first electronic device has a requirement for sending data to the second electronic device when data to be sent to the second electronic device exists in a data sending queue of the first electronic device;
and determining that the first electronic device has no data transmission requirement under the condition that the point-to-point communication between the first electronic device and the second electronic device is disconnected and the data in the data transmission queue of the first electronic device is empty.
Optionally, the controlling the communication module to enter the sleep state when it is determined that there is no data transmission demand for the first electronic device includes:
detecting the current electric quantity of the first electronic equipment under the condition that the first electronic equipment is determined to have no data transmission requirement;
when the current electric quantity does not meet a preset threshold value, controlling the communication module to enter a dormant state;
the method further comprises the following steps:
and when the current electric quantity meets the preset threshold value, controlling the communication module to maintain an awakening state and continuously searching for a synchronous signal.
Optionally, the first electronic device includes a BS operating mode and a UE operating mode, and broadcasting a synchronization signal through a communication module of the first electronic device in a case that it is determined that the first electronic device has a need to transmit data to a second electronic device includes:
under the condition that it is determined that the first electronic device has a requirement for sending data to a second electronic device, if the first electronic device is in the UE working mode, switching the first electronic device from the UE working mode to the BS working mode, so as to broadcast a synchronization signal through a communication module of the first electronic device in the BS mode;
the controlling the communication module to enter a sleep state when it is determined that the first electronic device does not have a data transmission requirement includes:
under the condition that it is determined that the first electronic device does not have a data transmission requirement, if the first electronic device is in the BS operating mode, switching the first electronic device from the BS operating mode to the UE operating mode, so as to control the communication module to enter a sleep state in the UE mode.
Optionally, the waking up the communication module at intervals includes:
acquiring the energy-saving level of the first electronic equipment;
determining a corresponding wake-up interval duration according to the energy-saving grade, wherein the wake-up interval duration is positively correlated with the energy-saving grade;
and awakening the communication module at intervals according to the awakening interval duration.
In a second aspect, the present disclosure further provides a system for establishing peer-to-peer communication, applied to a first electronic device, the system including:
a search module configured to broadcast a synchronization signal through a communication module of the first electronic device in a case where it is determined that the first electronic device has a need to transmit data to a second electronic device, wherein the second electronic device is capable of establishing peer-to-peer communication with the first electronic device in a case where the synchronization signal is searched;
the sleep module is configured to control the communication module to enter a sleep state under the condition that the first electronic device is determined not to have the data transmission requirement;
and the awakening module is configured to awaken the communication module at intervals and search the synchronization signals sent by other electronic equipment through the communication module after awakening the communication module successfully each time.
Optionally, the wake-up module is specifically configured to:
after the communication module is awakened successfully each time, searching whether synchronous signals sent by other electronic equipment exist or not by the communication module aiming at the searching frequency point;
the sleep module is further configured to:
and controlling the communication module to enter a dormant state under the condition that the synchronous signals sent by other electronic equipment do not exist on the searching frequency point.
In a third aspect, the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, implement the steps of the method for establishing peer-to-peer communication described in any of the above embodiments.
In a fourth aspect, the present disclosure also provides an electronic device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method for establishing peer-to-peer communication as described in any of the above embodiments.
Through the technical scheme, the first electronic equipment transmits power outwards when the data transmission requirement exists. In other times, the first electronic device is in a standby state, and in the standby state, the search synchronization signal is awakened at intervals. Furthermore, during the wake-up process, the first electronic device performs signal reception without transmitting power to the outside. Therefore, in the point-to-point communication, the first electronic device and the second electronic device can both realize the simultaneous standby, and the point-to-point communication connection can be recovered when the data transmission requirement exists at any end, so that the power consumption of the electronic device in the standby state can be reduced.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a flow chart diagram of a proposed method of establishing peer-to-peer communication according to an exemplary embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating the detailed steps of step 110 shown in FIG. 1;
FIG. 3 is a detailed step flow diagram of step 130 shown in FIG. 1;
fig. 4 is a schematic structural diagram of a system for establishing peer-to-peer communication according to an exemplary embodiment of the present disclosure;
FIG. 5 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a flowchart illustrating a method for establishing peer-to-peer communication according to an exemplary embodiment of the disclosure. The method is applied to first electronic equipment, and the first electronic equipment can be terminal equipment such as a smart phone and a tablet personal computer. As shown in fig. 1, the method includes:
And step 130, waking up the communication module at intervals, and searching for synchronization signals sent by other electronic devices through the communication module after successfully waking up the communication module each time.
In step 110, the second electronic device is similar to the first electronic device, and may be a smart phone, a tablet computer, or the like. The first electronic device sending data to the second electronic device means that the first electronic device directly sends data information to the second electronic device, rather than forwarding the data information to the second electronic device through the base station.
When the first electronic device has a need to transmit data to the second electronic device, the first electronic device broadcasts a synchronization signal, wherein the synchronization signal is used for requesting to establish point-to-point communication with the second electronic device. When the second electronic device receives the synchronization signal transmitted by the first electronic device, the second electronic device transmits a communication signal for requesting establishment of peer-to-peer communication to the first electronic device. It should be understood that the address verification and communication link establishment of the point-to-point communication are prior art and will not be described in detail herein.
In step 120, when there is no data transmission requirement for the first electronic device, the first electronic device controls the communication module to enter a sleep state. It is worth to be noted that the communication module may be a WIFI module, a cellular communication module, or another functional module that can communicate using an LTE or WIFI communication protocol.
In step 130, the first electronic device wakes up the communication module at intervals without a need to transmit data to other electronic devices, and searches for a synchronization signal transmitted by other electronic devices through the communication module after successfully waking up the communication module each time. At this time, the first electronic device, as a BS side in peer-to-peer communication, searches for a synchronization signal sent by another electronic device to the first electronic device to establish peer-to-peer communication with the other electronic device according to the synchronization signal.
It should be understood that the first electronic device may wake up the communication module periodically at preset time intervals, for example, the first electronic device wakes up periodically at 1s time intervals and searches for synchronization information transmitted by other electronic devices during each wake-up. By setting the time interval, the maximum time delay for establishing the connection between the first electronic device and the second electronic device depends on the wake-up period of the opposite terminal, for example, when the time interval for waking up the first electronic device is 1s, the peer-to-peer communication can be resumed by waiting for 1s at the longest. Of course, the electronic device may also wake up at unequal time intervals, which may be set according to actual use conditions.
Thus, in the above embodiment, the first electronic device transmits power to the outside only when there is a need for data transmission. In other times, the first electronic device is in a standby state, and in the standby state, the search synchronization signal is awakened at intervals. Furthermore, during the wake-up process, the first electronic device performs signal reception without transmitting power to the outside. Therefore, in the point-to-point communication, the first electronic device and the second electronic device can both realize the simultaneous standby, and the point-to-point communication connection can be recovered when the data transmission requirement exists at any end, so that the power consumption of the electronic device in the standby state can be reduced.
It should be noted that, in the present disclosure, the first and the second are only used for distinguishing the types of the electronic devices, and are not used for limiting the number of the electronic devices. In the peer-to-peer communication, two electronic devices may perform peer-to-peer communication, or a plurality of electronic devices may perform peer-to-peer communication.
In an implementation manner, the first electronic device is preset with a search frequency point, and accordingly, after the communication module is awakened successfully each time, searching for the synchronization signal sent by the other electronic device through the communication module includes:
after the communication module is awakened successfully each time, searching whether synchronous signals sent by other electronic equipment exist or not by the communication module aiming at the searching frequency point;
the method further comprises the following steps:
and controlling the communication module to enter a dormant state under the condition that the synchronous signals sent by other electronic equipment do not exist on the searching frequency point.
Here, after the first electronic device wakes up the communication module each time, it will search for whether there is a synchronization signal sent to it by another electronic device at a preset search frequency point, where the synchronization signal is a signal broadcasted by another electronic device and used to request to establish peer-to-peer communication with the first electronic device. The preset searching frequency point may be a working frequency point of the first electronic device and the second electronic device, which are configured in advance, and when the second electronic device broadcasts the synchronization signal in the working frequency point, the first electronic device searches the synchronization signal in the working frequency point. When the synchronous signals broadcast by other electronic equipment are searched, the first electronic equipment and the other electronic equipment carry out point-to-point communication; when the synchronous signals broadcast by other electronic equipment are not searched, the communication module of the first electronic equipment is in a dormant state, and after the communication module is awakened next time, the synchronous signals sent by other electronic equipment are searched again.
For example, the first electronic device wakes up periodically with a time interval of 6s and a wake-up duration of 2s, if the first electronic device wakes up at 19:45:21 and does not search for the synchronization signal sent by other electronic devices, after 19:45:23, the communication module of the first electronic device enters a sleep state, and at 19:45:29, the first electronic device wakes up the communication module again to search for the synchronization signal.
It should be understood that, when the types or manufacturers of the first electronic device and the other electronic devices are the same, the preset search frequency points may be the same frequency band, and certainly, the search frequency points of the first electronic device and the other electronic devices may also be different, and in the actual search process, the first electronic device searches for the synchronization signal by traversing each frequency band.
In one implementation, before step 110, it may be determined whether the first electronic device has a need to transmit data to the second electronic device by:
determining that the first electronic device has a requirement for sending data to the second electronic device when data to be sent to the second electronic device exists in a data sending queue of the first electronic device;
and determining that the first electronic device has no data transmission requirement under the condition that the point-to-point communication between the first electronic device and the second electronic device is disconnected and the data in the data transmission queue of the first electronic device is empty.
Here, the data transmission queue is a queue created to store data to be transmitted, and when the upper application of the first electronic device needs to transmit data to the second electronic device, the upper application of the first electronic device stores the data to be transmitted into the data transmission queue. And when the data to be sent to the second electronic equipment exists in the data sending queue, determining that the first electronic equipment has a requirement for sending the data to the second electronic equipment. When the point-to-point communication between the first electronic device and the second electronic device is disconnected and the data in the data transmission queue of the first electronic device is empty, it is determined that the first electronic device does not have a data transmission requirement.
Fig. 2 is a detailed flowchart of step 110 shown in fig. 1. In one implementation, as shown in fig. 2, in step 110, in the case that it is determined that there is no data transmission requirement for the first electronic device, controlling the communication module to enter the sleep state includes:
step 111, detecting the current electric quantity of the first electronic equipment under the condition that the first electronic equipment is determined to have no data transmission requirement;
the method further comprises the following steps:
and 113, when the current electric quantity meets the preset threshold value, controlling the communication module to maintain an awakening state and continuously searching for a synchronous signal.
Here, when it is determined that there is no data transmission demand in the first electronic device, the first electronic device detects a current electric quantity of the battery module, and controls the communication module to enter the sleep state when the current electric quantity of the battery module does not satisfy a preset threshold. And when the current electric quantity of the battery module meets a preset threshold value, controlling the communication module to maintain an awakening state and continuously searching for the synchronous signal. For example, the preset threshold is [ 80%, 100% ], and when the current power of the first electronic device is 50%, the first electronic device controls the communication module to enter the sleep state. When the current electric quantity of the first electronic device is 90%, the first electronic device continuously searches for the synchronous signal until the electric quantity is reduced to be less than a preset threshold value, and the communication module is controlled to be in a dormant state.
In one implementation, the first electronic device includes a BS operating mode and a UE operating mode, and broadcasting a synchronization signal through a communication module of the first electronic device upon determining that the first electronic device has a need to transmit data to a second electronic device includes:
under the condition that it is determined that the first electronic device has a requirement for sending data to a second electronic device, if the first electronic device is in the UE working mode, switching the first electronic device from the UE working mode to the BS working mode, so as to broadcast a synchronization signal through a communication module of the first electronic device in the BS mode;
the controlling the communication module to enter a sleep state when it is determined that the first electronic device does not have a data transmission requirement includes:
under the condition that it is determined that the first electronic device does not have a data transmission requirement, if the first electronic device is in the BS operating mode, switching the first electronic device from the BS operating mode to the UE operating mode, so as to control the communication module to enter a sleep state in the UE mode.
Here, the BS operation mode refers to that the electronic device is used as a base station or an AP access point, and in the BS operation mode, the electronic device broadcasts a synchronization signal. The UE operating mode refers to that the electronic device serves as a UE side, and in the UE operating mode, the electronic device searches for a synchronization signal.
Generally, both a first electronic device and a second electronic device of peer-to-peer communication can be in a UE operating mode during standby, when the first electronic device has a data transmission requirement, the first electronic device switches from the UE operating mode to a BS operating mode, and in the BS operating mode, controls a communication module to broadcast a synchronization signal and waits for the second electronic device to connect. And the second electronic equipment is awakened periodically in the UE working mode, searches for the synchronous signal and establishes point-to-point communication when the synchronous signal broadcasted by the first electronic equipment is searched. When the first electronic equipment does not have the data transmission requirement, the first electronic equipment is switched back to the UE working mode from the BS working mode, meanwhile, the point-to-point communication connection is disconnected with the second electronic equipment, and the communication module is controlled to enter a dormant state in the UE mode.
Fig. 3 is a detailed flowchart of step 130 shown in fig. 1. In one implementation, as shown in fig. 3, in step 130, the waking up the communication module at intervals includes:
and step 133, waking up the communication module at intervals according to the wake-up interval duration.
Here, the energy saving level may be set by the electronic device according to its own power, for example, a power less than 20% corresponds to one energy saving level. Each energy-saving grade corresponds to one awakening interval duration, and the awakening interval duration is positively correlated with the size of the energy-saving grade. For example, the energy saving level is divided into 5 levels according to the electric quantity, 0-20% corresponds to the energy saving level 5, 20-40% corresponds to the energy saving level 4, 40-60% corresponds to the energy saving level 3, 60-80% corresponds to the energy saving level 2, and 80-100% corresponds to the energy saving level 1. Level 1 corresponds to wake-up interval duration 1s, level 2 corresponds to wake-up interval duration 2s, level 3 corresponds to wake-up interval duration 3s, level 4 corresponds to wake-up interval duration 4s, level 5 corresponds to wake-up interval duration 5 s.
By determining the corresponding wake-up interval duration according to the energy-saving level of the electronic equipment, the wake-up interval duration can be shortened under the condition that the electric quantity of the electronic equipment is sufficient, so that the time delay for establishing point-to-point communication is reduced.
Fig. 4 is a schematic structural diagram of a system for establishing peer-to-peer communication according to an exemplary embodiment of the present disclosure. As shown in fig. 4, the present disclosure also provides a system for establishing peer-to-peer communication, applied to a first electronic device, where the system 1300 includes:
a search module 1301 configured to broadcast a synchronization signal through a communication module of the first electronic device in a case where it is determined that the first electronic device has a need to transmit data to a second electronic device, wherein the second electronic device is capable of establishing peer-to-peer communication with the first electronic device in a case where the synchronization signal is searched;
a sleep module 1302 configured to control the communication module to enter a sleep state if it is determined that the first electronic device does not have a data transmission requirement;
and the wakeup module 1303 is configured to wake up the communication module at intervals, and search for a synchronization signal sent by another electronic device through the communication module after the communication module is successfully woken up each time.
Optionally, the wake-up module 1303 is specifically configured to:
after the communication module is awakened successfully each time, searching whether synchronous signals sent by other electronic equipment exist or not by the communication module aiming at the searching frequency point;
the sleep module 1302 is further configured to:
and controlling the communication module to enter a dormant state under the condition that the synchronous signals sent by other electronic equipment do not exist on the searching frequency point.
With regard to the system in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 5 is a block diagram illustrating an electronic device in accordance with an example embodiment. As shown in fig. 5, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input/output (I/O) interface 704, and a communication component 705.
The processor 701 is configured to control the overall operation of the electronic device 700, so as to complete all or part of the steps in the method for establishing peer-to-peer communication. The memory 702 is used to store various types of data to support operation at the electronic device 700, such as instructions for any application or method operating on the electronic device 700 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and the like. The Memory 702 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia components 703 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 702 or transmitted through the communication component 705. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, or 5G, NB-IOT (Narrow Band Internet of Things), or a combination of one or more of them, so that the corresponding Communication component 705 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method for establishing point-to-point communication.
In another exemplary embodiment, a computer-readable storage medium comprising program instructions which, when executed by a processor, carry out the steps of the above-described method of establishing a peer-to-peer communication is also provided. For example, the computer readable storage medium may be the memory 702 described above comprising program instructions that are executable by the processor 701 of the electronic device 700 to perform the method of establishing peer-to-peer communication described above.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned method of establishing a point-to-point communication when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.
Claims (10)
1. A method for establishing peer-to-peer communication, applied to a first electronic device, the method comprising:
broadcasting a synchronization signal through a communication module of the first electronic device in case it is determined that the first electronic device has a need to transmit data to a second electronic device, wherein the second electronic device is capable of establishing peer-to-peer communication with the first electronic device in case it is searched for the synchronization signal;
under the condition that the first electronic equipment is determined to have no data transmission requirement, controlling the communication module to enter a dormant state; and are
The communication module is awakened at intervals, and after the communication module is awakened successfully each time, the communication module searches for synchronous signals sent by other electronic equipment.
2. The method according to claim 1, wherein the first electronic device is preset with a search frequency point, and accordingly, after the communication module is awakened successfully each time, searching for the synchronization signal sent by the other electronic device through the communication module comprises:
after the communication module is awakened successfully each time, searching whether synchronous signals sent by other electronic equipment exist or not by the communication module aiming at the searching frequency point;
the method further comprises the following steps:
and controlling the communication module to enter a dormant state under the condition that the synchronous signals sent by other electronic equipment do not exist on the searching frequency point.
3. The method of claim 1, further comprising:
determining that the first electronic device has a requirement for sending data to the second electronic device when data to be sent to the second electronic device exists in a data sending queue of the first electronic device;
and determining that the first electronic device has no data transmission requirement under the condition that the point-to-point communication between the first electronic device and the second electronic device is disconnected and the data in the data transmission queue of the first electronic device is empty.
4. The method of claim 1, wherein the controlling the communication module to enter the sleep state in case that it is determined that there is no data transmission need in the first electronic device comprises:
detecting the current electric quantity of the first electronic equipment under the condition that the first electronic equipment is determined to have no data transmission requirement;
when the current electric quantity does not meet a preset threshold value, controlling the communication module to enter a dormant state;
the method further comprises the following steps:
and when the current electric quantity meets the preset threshold value, controlling the communication module to maintain an awakening state and continuously searching for a synchronous signal.
5. The method of claim 1, wherein the first electronic device comprises a BS operating mode and a UE operating mode, and wherein broadcasting a synchronization signal via a communication module of the first electronic device upon determining that the first electronic device has a need to transmit data to a second electronic device comprises:
under the condition that it is determined that the first electronic device has a requirement for sending data to a second electronic device, if the first electronic device is in the UE working mode, switching the first electronic device from the UE working mode to the BS working mode, so as to broadcast a synchronization signal through a communication module of the first electronic device in the BS mode;
the controlling the communication module to enter a sleep state when it is determined that the first electronic device does not have a data transmission requirement includes:
under the condition that it is determined that the first electronic device does not have a data transmission requirement, if the first electronic device is in the BS operating mode, switching the first electronic device from the BS operating mode to the UE operating mode, so as to control the communication module to enter a sleep state in the UE mode.
6. The method according to any of claims 1-5, wherein said waking up the communication module at intervals comprises:
acquiring the energy-saving level of the first electronic equipment;
determining a corresponding wake-up interval duration according to the energy-saving grade, wherein the wake-up interval duration is positively correlated with the energy-saving grade;
and awakening the communication module at intervals according to the awakening interval duration.
7. A system for establishing peer-to-peer communication, for use with a first electronic device, the system comprising:
a search module configured to broadcast a synchronization signal through a communication module of the first electronic device in a case where it is determined that the first electronic device has a need to transmit data to a second electronic device, wherein the second electronic device is capable of establishing peer-to-peer communication with the first electronic device in a case where the synchronization signal is searched;
the sleep module is configured to control the communication module to enter a sleep state under the condition that the first electronic device is determined not to have the data transmission requirement;
and the awakening module is configured to awaken the communication module at intervals and search the synchronization signals sent by other electronic equipment through the communication module after awakening the communication module successfully each time.
8. The system of claim 7, wherein the wake-up module is specifically configured to:
after the communication module is awakened successfully each time, searching whether synchronous signals sent by other electronic equipment exist or not by the communication module aiming at the searching frequency point;
the sleep module is further configured to:
and controlling the communication module to enter a dormant state under the condition that the synchronous signals sent by other electronic equipment do not exist on the searching frequency point.
9. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method of establishing a peer-to-peer communication according to any one of claims 1 to 6.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of establishing peer-to-peer communication according to any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110541794.2A CN113329471A (en) | 2021-05-18 | 2021-05-18 | Method, system, storage medium, and electronic device for establishing peer-to-peer communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110541794.2A CN113329471A (en) | 2021-05-18 | 2021-05-18 | Method, system, storage medium, and electronic device for establishing peer-to-peer communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113329471A true CN113329471A (en) | 2021-08-31 |
Family
ID=77415912
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110541794.2A Pending CN113329471A (en) | 2021-05-18 | 2021-05-18 | Method, system, storage medium, and electronic device for establishing peer-to-peer communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113329471A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117041927A (en) * | 2023-07-12 | 2023-11-10 | 重庆御芯微信息技术有限公司 | Low-power-consumption monitoring type emergency help-seeking communication method for digital interphone |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1592296A (en) * | 2003-09-02 | 2005-03-09 | Lg电子株式会社 | Apparatus and method for controlling data communication in wireless local area network |
CN103974391A (en) * | 2013-02-04 | 2014-08-06 | 华为终端有限公司 | Device wake-up method and device |
CN104219747A (en) * | 2014-09-03 | 2014-12-17 | 深圳市中兴移动通信有限公司 | Method and device for adjusting wakeup time according to power information and terminal |
CN104216501A (en) * | 2014-08-21 | 2014-12-17 | 刘勇 | Electricity saving method for mobile terminal, electricity saving system for mobile terminal and mobile terminal |
CN105354044A (en) * | 2014-08-21 | 2016-02-24 | 阿里巴巴集团控股有限公司 | Application awakening method and apparatus |
CN108513341A (en) * | 2017-02-24 | 2018-09-07 | 珠海市魅族科技有限公司 | Communication means, communication device and the communication terminal of WLAN |
CN110461031A (en) * | 2019-08-26 | 2019-11-15 | 维沃移动通信有限公司 | The control method and terminal device of terminal device |
CN111163447A (en) * | 2019-12-19 | 2020-05-15 | 展讯通信(上海)有限公司 | Communication device, system and dormancy and awakening method |
CN111417182A (en) * | 2020-03-31 | 2020-07-14 | 上海庆科信息技术有限公司 | Data transmission method, device, storage medium, processor and system |
CN111679861A (en) * | 2020-05-09 | 2020-09-18 | 浙江大华技术股份有限公司 | Wake-up apparatus and method for electronic device, computer device and storage medium |
CN112533269A (en) * | 2019-09-17 | 2021-03-19 | 华为技术有限公司 | Data receiving and sending method, electronic equipment and computer readable storage medium |
-
2021
- 2021-05-18 CN CN202110541794.2A patent/CN113329471A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1592296A (en) * | 2003-09-02 | 2005-03-09 | Lg电子株式会社 | Apparatus and method for controlling data communication in wireless local area network |
CN103974391A (en) * | 2013-02-04 | 2014-08-06 | 华为终端有限公司 | Device wake-up method and device |
CN104216501A (en) * | 2014-08-21 | 2014-12-17 | 刘勇 | Electricity saving method for mobile terminal, electricity saving system for mobile terminal and mobile terminal |
CN105354044A (en) * | 2014-08-21 | 2016-02-24 | 阿里巴巴集团控股有限公司 | Application awakening method and apparatus |
CN104219747A (en) * | 2014-09-03 | 2014-12-17 | 深圳市中兴移动通信有限公司 | Method and device for adjusting wakeup time according to power information and terminal |
CN108513341A (en) * | 2017-02-24 | 2018-09-07 | 珠海市魅族科技有限公司 | Communication means, communication device and the communication terminal of WLAN |
CN110461031A (en) * | 2019-08-26 | 2019-11-15 | 维沃移动通信有限公司 | The control method and terminal device of terminal device |
CN112533269A (en) * | 2019-09-17 | 2021-03-19 | 华为技术有限公司 | Data receiving and sending method, electronic equipment and computer readable storage medium |
CN111163447A (en) * | 2019-12-19 | 2020-05-15 | 展讯通信(上海)有限公司 | Communication device, system and dormancy and awakening method |
CN111417182A (en) * | 2020-03-31 | 2020-07-14 | 上海庆科信息技术有限公司 | Data transmission method, device, storage medium, processor and system |
CN111679861A (en) * | 2020-05-09 | 2020-09-18 | 浙江大华技术股份有限公司 | Wake-up apparatus and method for electronic device, computer device and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117041927A (en) * | 2023-07-12 | 2023-11-10 | 重庆御芯微信息技术有限公司 | Low-power-consumption monitoring type emergency help-seeking communication method for digital interphone |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116017642A (en) | Communication processing method and device and storage medium | |
US9706600B2 (en) | Connectionless Wi-Fi mesh communication | |
CN109413721B (en) | Configuration and detection method of wake-up signal detection time, network equipment and terminal | |
JP2017507586A (en) | Neighbor aware network (NAN) discovery using wake-up messages | |
EP3556155A1 (en) | Improved power-save mode for wireless device | |
JP2012175516A (en) | Radio base station and radio communication system using the same | |
CN114980283A (en) | State switching method and device, and beacon signal transmission and device | |
US11218961B2 (en) | Power saving for wireless device | |
WO2022017359A1 (en) | Direct communication start-up control method and related device | |
CN113038575B (en) | Wake-up signal processing method, wake-up signal configuration method and related equipment | |
CN111955049B (en) | State control method, device, communication equipment and storage medium | |
WO2022143861A1 (en) | Method and device for supplying energy, and communication device | |
CN107809789B (en) | Communication method, communication device, access point and station of wireless local area network | |
US10945207B2 (en) | Beacon signal processing system and filtering method of reducing wake-up frequency | |
WO2022017360A1 (en) | Method for controlling activation of direct communication, and related device | |
JP2024506104A (en) | Operating methods, devices and communication equipment for communication equipment | |
CN112333795B (en) | Network access method and device | |
CN113329471A (en) | Method, system, storage medium, and electronic device for establishing peer-to-peer communication | |
CN113395749B (en) | Transmission configuration method and electronic equipment | |
CN110753387A (en) | Monitoring method of downlink control channel and control method of downlink control channel monitoring | |
CN112219446A (en) | DRX (discontinuous reception) packet awakening method and device, communication equipment and storage medium | |
WO2022174798A1 (en) | Power saving method and apparatus, device, and readable storage medium | |
CN114765837B (en) | Power saving processing method, device and equipment | |
CN110691344A (en) | Terminal awakening method, random access method, device, terminal and network equipment | |
CN115460698A (en) | PDCCH monitoring method, terminal and network side equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210831 |