CN115776644A - Broadcast message transmitting method and device, electronic equipment and storage medium - Google Patents

Broadcast message transmitting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115776644A
CN115776644A CN202111038917.7A CN202111038917A CN115776644A CN 115776644 A CN115776644 A CN 115776644A CN 202111038917 A CN202111038917 A CN 202111038917A CN 115776644 A CN115776644 A CN 115776644A
Authority
CN
China
Prior art keywords
electronic device
broadcast message
state
preset
transmitting
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
Application number
CN202111038917.7A
Other languages
Chinese (zh)
Inventor
包建全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111038917.7A priority Critical patent/CN115776644A/en
Priority to PCT/CN2022/113981 priority patent/WO2023030071A1/en
Publication of CN115776644A publication Critical patent/CN115776644A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/26TPC being performed according to specific parameters using transmission rate or quality of service QoS [Quality of Service]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a method and a device for transmitting a broadcast message, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method comprises the following steps: and determining target transmitting power from at least two preset transmitting powers according to the state of the first electronic equipment, wherein the at least two preset transmitting powers have different magnitudes, and transmitting a broadcast message based on the target transmitting power to indicate a second electronic equipment receiving the broadcast message to display the target message when the second electronic equipment determining that the received signal strength of the broadcast message is greater than the received signal strength threshold. According to the method and the device, the target transmitting power is dynamically determined to transmit the broadcast message according to the state of the electronic equipment, so that other electronic equipment can determine the display of the prompt message, the display of the prompt message is better controlled, and the user experience is improved by avoiding disturbance to the user.

Description

Broadcast message transmitting method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a method and an apparatus for transmitting a broadcast message, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic equipment is more widely used and more functions are more and more, and the electronic equipment becomes one of the necessary things in daily life of people. At present, more and more electronic devices start to support the functions of rapidly discovering and displaying prompts of other electronic devices, however, the electronic devices have a high probability of erroneous judgment in the judgment of whether to display the prompts, which causes large interference to users and influences user experience.
Disclosure of Invention
In view of the above problems, the present application provides a method, an apparatus, an electronic device, and a storage medium for transmitting a broadcast message to solve the above problems.
In a first aspect, an embodiment of the present application provides a method for transmitting a broadcast message, which is applied to a first electronic device, and the method includes: determining target transmitting power from at least two preset transmitting powers according to the state of the first electronic equipment, wherein the at least two preset transmitting powers are different in size; transmitting a broadcast message based on the target transmission power to instruct a second electronic device receiving the broadcast message to display target information upon determining that a received signal strength of the broadcast message is greater than a received signal strength threshold.
In a second aspect, an embodiment of the present application provides a method for transmitting a broadcast message, which is applied to a second electronic device, and the method includes: acquiring received signal strength of a broadcast message transmitted by a first electronic device, wherein the broadcast message is transmitted by the first electronic device based on a target transmission power, the target transmission power is determined by the first electronic device from at least two preset transmission powers according to the state of the first electronic device, and the at least two preset transmission powers are different in size; and when the received signal strength is greater than the received signal strength threshold value, displaying the target information.
In a third aspect, an embodiment of the present application provides an apparatus for transmitting a broadcast message, which is applied to a first electronic device, and the apparatus includes: the transmission power determining module is used for determining target transmission power from at least two preset transmission powers according to the state of the first electronic device, wherein the at least two preset transmission powers are different in size; and the broadcast message transmitting module is used for transmitting a broadcast message based on the target transmitting power so as to instruct the second electronic equipment receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be greater than the received signal strength threshold.
In a fourth aspect, an embodiment of the present application provides an apparatus for transmitting a broadcast message, where the apparatus is applied to a second electronic device, and the apparatus includes: a received signal strength obtaining module, configured to obtain received signal strength of a broadcast message transmitted by a first electronic device, where the broadcast message is transmitted by the first electronic device based on a target transmission power, the target transmission power is determined by the first electronic device according to a state of the first electronic device, and the at least two preset transmission powers are different in magnitude; and the prompt information display module is used for displaying the target information when the received signal strength is greater than the received signal strength threshold value.
In a fifth aspect, embodiments of the present application provide an electronic device, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions, the processor performing the above method when the instructions are executed by the processor.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored, and the program code may be called by a processor to execute the foregoing method.
According to the method, the device, the electronic device and the storage medium for transmitting the broadcast message, the target transmitting power is determined from at least two preset transmitting powers with different sizes according to the state of the first electronic device, the broadcast message is transmitted based on the target transmitting power to indicate that the second electronic device receiving the broadcast message displays the target information when the received signal strength of the broadcast message is determined to be larger than the received signal strength threshold value, and therefore the target transmitting power is dynamically determined according to the state of the electronic device to transmit the broadcast message, so that other electronic devices can determine to display the prompt information, display of the prompt information is controlled better, disturbance to a user is avoided, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating a first application environment that may be provided by an embodiment of the present application;
FIG. 2 is a diagram illustrating a second application environment that may be provided by an embodiment of the present application;
FIG. 3 is a diagram illustrating a third application environment that may be provided by an embodiment of the present application;
FIG. 4 is a diagram illustrating a fourth exemplary application environment that may be provided by embodiments of the present application;
fig. 5 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 10 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
FIG. 11 illustrates an exemplary flow diagram that may be used with embodiments of the present application;
FIG. 12 is a block diagram of a device for transmitting a broadcast message according to an embodiment of the present application;
fig. 13 is a block diagram illustrating a transmitting apparatus of a broadcast message according to an embodiment of the present application.
Fig. 14 is a block diagram of an electronic device according to an embodiment of the present application, configured to execute a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 15 illustrates a storage unit for storing or carrying program codes for implementing a transmission method of a broadcast message according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Internet Of Things (IOT) is a network concept that extends and expands its user end to any article to article for information exchange and communication based on the Internet concept. With the development of the internet of things technology, some scenes can be configured in the internet of things system. For a configured scene, a plurality of electronic devices can be involved, and the plurality of electronic devices have a certain linkage relationship and can work cooperatively. For example, the configured scenario may include that at least one of the two electronic devices performs a specified operation when the one electronic device is close to the other electronic device, for example, one of the electronic devices outputs a connection prompt message for prompting a connection with the other electronic device.
As shown in fig. 1, the second electronic device 100 may be a user terminal (for example, may be a smart phone), the first electronic device 200 may be a smart home device, the smart home device may include an electronic device such as a smart television, an air conditioner, a curtain, and the like, when the second electronic device 100 is close to the first electronic device 200, a control interface of the first electronic device 200 is displayed on the second electronic device 100, and a user may control the first electronic device 200 to perform a corresponding action through the control interface of the first electronic device 200 displayed by the second electronic device 100. Or, the second electronic device 100 displays the connection prompt information of the first electronic device 200, and the user may establish a connection between the second electronic device 100 and the first electronic device 200 through the connection prompt information displayed by the second electronic device 100.
As shown in fig. 2, the second electronic device 100 may be a user terminal (e.g., may be a smart phone), the first electronic device 200 may be a true wireless bluetooth headset (TWS) device, when the first electronic device 200 approaches the second electronic device 100, the second electronic device 100 displays a pop-up information 110, the charge amount of the TWS bluetooth headset may be displayed in the pop-up information 110, and a connection prompt information may be displayed, in an embodiment of the present application, the TWS bluetooth headset device may include a headset 220 and a headset box (charging device) 210, the headset box 210 may accommodate the headset 220, in an embodiment of the present application, an inner wall of the shell of the headset box 210 forms an accommodating cavity, and the headset 220 may be accommodated in the accommodating cavity of the headset box 210. In addition, the earphone box 210 may not only provide a containing cavity for containing the earphone 220, but also communicate with the earphone 220, so that information such as the power, name, or network parameters of the earphone 220 can be obtained, so that the user terminal can successfully pair with the earphone 220 through the earphone box 210 and realize communication connection. In one embodiment, the earphone box 210 is also used to charge the earphone 220. In an embodiment of the present application, when the earphone box 210 is opened, the earphone 220 may be triggered to transmit a Bluetooth Low Energy (BLE) broadcast, and after receiving the BLE broadcast, the second electronic device 100, for example, a smart phone, may pop up a pop-up box, where the pop-up box may provide an operation interface for a user to connect the earphone 220 quickly, or may display the electric quantity of the earphone 220 and the electric quantity of the earphone box 210 in the pop-up box information at the same time.
Currently, the distance between two electronic devices can be determined by the strength of a received signal of one electronic device received by the other electronic device, and in an embodiment of the present application, the ranging formula is as follows:
Figure BDA0003248476080000031
in formula (1), d represents the distance between two electronic devices, RSSI represents the received signal strength of one electronic device received by the other electronic device, a is a reference distance, which is usually a constant, and B is a path loss factor. As can be seen from equation (1), the distance d has a one-to-one correspondence with the RSSI. Therefore, it is usually determined whether a distance between one electronic device and another electronic device is smaller than a preset distance, or whether one electronic device enters a preset range of another electronic device, and it is usually determined whether one electronic device enters the preset range of another electronic device by acquiring a received signal strength of another electronic device received by one electronic device, and then determining whether the received signal strength is greater than a signal strength threshold.
In an embodiment of the present application, it is assumed that the two electronic devices are the second electronic device 100 and the first electronic device 200, respectively, and the first electronic device 200 transmits a broadcast message to the surroundings when the first electronic device 200 starts the wireless communication module. As shown in fig. 3, assuming that the second electronic device 100 is a user terminal, the first electronic device 200 is a TWS bluetooth headset, when the first electronic device 200 approaches the second electronic device 100, the lid of the earphone box 210 is in a closed state, and at this time, the earphone box 210 does not transmit a broadcast message to the surroundings, i.e., as shown in fig. 3, the second electronic device 100 does not receive the broadcast message transmitted by the earphone box 210, and does not display the bezel information 110, and when the lid of the second electronic device 100 is in an open state, as shown in fig. 4, the earphone 220 transmits a broadcast message, which can be received by the second electronic device 100, and displays the bezel information 110 when the received signal strength of the received broadcast message is greater than the signal strength threshold. The second electronic device 100 and the first electronic device 200 can be controlled to trigger the popup only within a certain distance by setting the signal intensity threshold, so that the mobile phone popup of other people is prevented from being triggered by mistake to a certain extent.
In some embodiments, the wireless communication module may be a Wi-Fi module or a bluetooth module, and in this embodiment, the wireless communication module may be a bluetooth module, and the second electronic device 100 and the first electronic device 200 may be connected via bluetooth, so that the broadcast message may be a bluetooth broadcast message, for example, BLE broadcast. The second electronic device 100 can detect the broadcast message of the first electronic device 200 as the distance between the first electronic device 200 and the second electronic device 100 approaches, and can further determine the signal strength, i.e., the received signal strength, of the broadcast message received by the first electronic device 200, the received signal strength of the second electronic device 100 gradually increases as the distance between the second electronic device 100 and the first electronic device 200 approaches, the second electronic device 100 displays the pop-up information when the detected received signal strength is greater than the signal strength threshold, and then the first electronic device 00 and the first electronic device 200 can establish a wireless connection (e.g., bluetooth connection).
For example, a connection button, such as a connection control 111 shown in fig. 4, is displayed in the pop-up box information 110 displayed by the second electronic device 100, and the user clicks the connection control 111, so that the connection between the second electronic device 100 and the first electronic device 200 can be realized.
The electronic equipment can support the function of quickly discovering other electronic equipment and displaying prompt, and the electronic equipment mainly carries out direct comparison on the received signal strength of the broadcast messages transmitted by other electronic equipment and a set signal strength threshold value in the judgment of whether the prompt information is displayed. That is to say, other electronic devices may directly transmit the broadcast message according to the preset transmission power, and may not perform different processing for different scenes, so that the prompt information of the electronic device that receives the broadcast message is displayed by mistake, which may disturb the user and affect the user experience.
In view of the above problems, the inventors have found and proposed a method, an apparatus, an electronic device, and a storage medium for transmitting a broadcast message according to embodiments of the present application through long-term research, where a target transmission power is dynamically determined according to a state of the electronic device to transmit the broadcast message, so that other electronic devices determine to display prompt information, thereby better controlling the display of the prompt information and avoiding disturbance to a user to improve user experience. The method for transmitting the broadcast message is described in detail in the following embodiments.
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application. The method is used for dynamically determining the target transmitting power to transmit the broadcast message according to the state of the electronic equipment so that other electronic equipment can determine the display of the prompt message, the display of the prompt message is better controlled, and the user experience is improved by avoiding disturbance to the user. In a specific embodiment, the method of transmitting a broadcast message is applied to the apparatus 300 for transmitting a broadcast message as shown in fig. 12 and an electronic device (first electronic device) 500 (fig. 14) configured with the apparatus 300 for transmitting a broadcast message. It can be understood that the first electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, a bluetooth headset, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 5, the method for transmitting the broadcast message may specifically include the following steps:
step S110: determining a target transmitting power from at least two preset transmitting powers according to the state of the first electronic device, wherein the at least two preset transmitting powers are different in size.
In this embodiment, the first electronic device may acquire the state in which it is located. The state of the first electronic device may include a pairing state and a loop connection state.
In some embodiments, the first electronic device may acquire the status it is in before the broadcast message is to be transmitted. The first electronic device is a TWS bluetooth headset, and the second electronic device is a smart phone. When the earphone box (charging device) accommodated by the TWS Bluetooth earphone is opened, the TWS Bluetooth earphone can be automatically started and tries to transmit broadcast messages so as to try to establish Bluetooth connection with the smart phone, and the TWS Bluetooth earphone can acquire the state of the TWS Bluetooth earphone. When the lid of the TWS Bluetooth headset is closed, the TWS Bluetooth headset can be automatically closed and stop transmitting broadcast messages, and the TWS Bluetooth headset does not acquire the state of the TWS Bluetooth headset.
In some embodiments, the first electronic device may acquire the state in which the first electronic device is located in response to the instruction information. For example, the first electronic device may acquire the state of the first electronic device in response to a target touch operation when the target touch operation performed on the first electronic device by a user is detected. For another example, the first electronic device may obtain the state of the first electronic device in response to the target voice information when receiving the target voice information input by the user. For another example, the first electronic device may obtain the state of the first electronic device in response to the preset time when the preset time is detected. For another example, the first electronic device may obtain the state of the first electronic device in response to a preset environment when detecting a preset environment state (a preset temperature, a preset humidity, a preset illumination intensity, a preset brightness, and the like).
As an implementable manner, the first electronic device may determine the state the first electronic device is in based on its connection record. When the first electronic device has the connection record, it may be determined that the state of the first electronic device is the paired connection back state. When the first electronic device does not have the connection record, it may be determined that the state in which the first electronic device is located is the pairing state.
As yet another implementable manner, the first electronic device may determine the state the first electronic device is in based on its stored record. When the first electronic device stores the address information of other electronic devices, it may be determined that the state of the first electronic device is the paired connection state. When the first electronic device does not store the address information of other electronic devices, it may be determined that the state of the first electronic device is the pairing state.
Of course, in this embodiment, the state of the first electronic device may also be obtained in other more manners, which is not described herein again.
In some embodiments, the first electronic device may be preset and store at least two preset transmitting powers with different sizes. For example, the first electronic device may preset and store a first preset transmitting power and a second preset transmitting power, and the first preset transmitting power and the second preset transmitting power have different magnitudes. For another example, the first electronic device may preset and store a first preset emission power, a second preset emission power, and a third preset emission power \8230, the N-th preset emission power, wherein the first preset emission power, the second preset emission power, the third preset emission power \8230, the N-th preset emission power are different in magnitude.
In this embodiment, after the first electronic device obtains the state of the first electronic device, a preset transmitting power may be determined from at least two preset transmitting powers according to the state of the first electronic device, and the preset transmitting power is used as the target transmitting power.
As an implementable manner, the first electronic device may pre-establish and store a mapping relationship table, where the mapping relationship table may include at least two states, at least two preset transmission powers, and a corresponding relationship between the at least two states and the at least two preset transmission powers, where each of the at least two states may correspond to one or more preset transmission powers, which is not limited herein. Referring to table 1, the at least two states in the mapping relationship table may include a first state, a second state, and a third state, and the at least two preset transmitting powers in the mapping relationship table may include a first preset transmitting power, a second preset transmitting power, and a third preset transmitting power, where the first state and the first preset transmitting power have a corresponding relationship, the second state and the second preset transmitting power have a corresponding relationship, and the third state and the third preset transmitting power have a corresponding relationship.
TABLE 1
Status of state Preset transmission power
First state First preset transmitting power
Second state Second predetermined transmission power
Third state Third predetermined transmit power
…… ……
Based on the mapping relation table, when the state of the first electronic device is determined to be the first state, a first preset transmitting power can be determined as a target transmitting power; when the state of the first electronic device is determined to be the second state, determining a second preset transmitting power as a target transmitting power; when the state of the first electronic device is determined to be a third state, a third preset transmission power may be determined as the target transmission power, and so on.
In some embodiments, the first electronic device may preset and store a preset transmission power with a fixed size as a default preset transmission power, and correspond the default preset transmission power to one of the states in which the electronic device is located. In specific implementation, when the state of the first electronic device is obtained to be consistent with one of the states, the default preset transmitting power can be used as the target transmitting power; when the state of the first electronic device is not consistent with the one state, a certain value can be increased or decreased on the basis of the default preset transmitting power, and a new preset transmitting power is obtained and used as the target transmitting power.
In this embodiment, the preset transmission power may be a bluetooth low energy transmission power.
Step S120: transmitting a broadcast message based on the target transmit power to instruct a second electronic device receiving the broadcast message to display target information upon determining that a received signal strength of the broadcast message is greater than a received signal strength threshold.
In this embodiment, after determining the target transmission power, the first electronic device may transmit a broadcast message based on the target transmission power. It can be understood that the larger the target transmission power is, the wider (farther) the coverage of the broadcast message transmitted based on the target transmission power is, and the greater the received signal strength of the broadcast message received at the same position is; the smaller the target transmission power, the narrower (closer) the coverage of the broadcast message transmitted based on the target transmission power, and the smaller the received signal strength of the broadcast message received at the same location. For example, assuming that the preset transmission power includes a first preset transmission power and a second preset transmission power, and the first preset transmission power is greater than the second preset transmission power, when the first preset transmission power is determined as the target transmission power, the coverage of the broadcast message transmitted based on the target transmission power may be S1, the received signal strength of the broadcast message received at the same location is RSSI1, when the second preset transmission power is determined as the target transmission power, the coverage of the broadcast message transmitted based on the target transmission power may be S2, the received signal strength of the broadcast message received at the same location is RSSI2, the coverage of S1 is greater than the coverage of S2, and RSSI1 is greater than RSSI2.
When the second electronic device is located in the broadcast coverage range of the first electronic device, the second electronic device can receive the broadcast message transmitted by the first electronic device. Accordingly, when the second electronic device receives the broadcast message transmitted by the first electronic device, the received signal strength of the received broadcast message may be obtained, and the received signal strength may be compared with a preset received signal strength threshold. When the size comparison result represents that the received signal strength is greater than a preset received signal strength threshold, target information can be displayed on the second electronic device; and when the comparison result indicates that the received signal strength is not greater than the preset received signal strength threshold, not displaying the target information on the second electronic equipment.
In some embodiments, the second electronic device may calculate the received signal strength of the broadcast message from the received broadcast message transmitted by the first electronic device. In one calculation mode, the received signal strength = RxPower-SystemGain, where RxPower is the in-band received power of a signal obtained by performing analog-to-digital conversion on a received wireless signal, and then performing processing such as filtering of a Digital Front End (DFE); the Systemgain represents the system gain and can be estimated from the radio frequency front end.
In some embodiments, the first electronic device is a TWS bluetooth headset apparatus, and the second electronic device is a smartphone. When the headset case (charging device) that the headset houses is opened, the headset may automatically turn on and attempt to transmit the broadcast message at the determined target transmission power in an attempt to establish a bluetooth connection with the smartphone, and when the headset case of the TWS bluetooth headset device is closed, the headset may automatically turn off and stop transmitting the broadcast message at the determined target transmission power. Accordingly, when the smartphone is within the broadcast range of the headset, then a broadcast message transmitted by the headset at the determined target transmit power may be received, and the received signal strength of the broadcast message transmitted by the headset at the determined target transmit power may be obtained.
It can be understood that, when a first electronic device transmits a broadcast message, if the number of second electronic devices located within the broadcast coverage of the first electronic device is one, only the one second electronic device may receive the broadcast message transmitted by the first electronic device, and obtain the received signal strength of the broadcast message; if the number of the second electronic devices located in the broadcast coverage area of the first electronic device is multiple, the multiple second electronic devices may all receive the broadcast message transmitted by the first point device, and obtain the received signal strength of the broadcast message.
In some embodiments, after obtaining the received signal strength of the broadcast message transmitted by the first electronic device, the second electronic device may compare the received signal strength to a received signal strength threshold to determine whether the received signal strength is greater than the received signal strength threshold. When the received signal strength is not greater than the received signal strength threshold, it can be determined that the received signal strength does not meet the signal strength requirement of the display prompt, and the target information can be intercepted, that is, the target information may not be displayed. When the received signal strength and the like are judged to be greater than the received signal strength threshold value, it can be determined that the received signal strength meets the signal strength requirement of the display prompt, and then the target information is displayed, that is, the target information can be displayed.
In some embodiments, the manner in which the second electronic device displays the target information may include: the target information is displayed on the display interface, the target information is displayed on the display interface in a pop-up window mode, the target information is displayed on the status bar, and the like, which is not limited herein.
In some implementations, the state in which the second electronic device is located can include a pairing state and a loopback state. When the second electronic device is in the configuration state, the target information may be connection prompt information, that is, the target information may be used to prompt the second electronic device to perform a pairing connection operation. When the state of the second electronic device is the connection back state, the target information may be a connection success prompt information, that is, the target information may be used to prompt that the connection back success with the second electronic device has been performed.
According to the method for transmitting the broadcast message, the target transmitting power is determined from at least two preset transmitting powers with different sizes according to the state of the first electronic device, the broadcast message is transmitted based on the target transmitting power, and the second electronic device receiving the broadcast message is indicated to display the target information when the received signal strength of the broadcast message is determined to be greater than the received signal strength threshold, so that the target transmitting power is dynamically determined according to the state of the electronic device to transmit the broadcast message, other electronic devices can determine to display the prompt information, display of the prompt information is better controlled, and disturbance to a user is avoided to improve user experience.
Referring to fig. 6, fig. 6 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application. In this embodiment, the at least two preset transmitting powers include a first preset transmitting power and a second preset transmitting power, where the first preset transmitting power is greater than the second preset transmitting power, and the method for transmitting the broadcast message may specifically include the following steps:
step S210: and when the state of the first electronic device is a pairing state, determining a first preset transmitting power from the at least two preset transmitting powers as the target transmitting power, wherein the pairing state is used for representing that pairing operation is to be executed between the first electronic device and the second electronic device.
In this embodiment, the at least two preset transmitting powers include a first preset transmitting power and a second preset transmitting power, wherein the first preset transmitting power is greater than the second preset transmitting power. As another mode, the second preset transmitting power may be a default value that is tested in advance, and the first preset transmitting power may be obtained by adding a certain value to the second preset transmitting power.
By one approach, the state in which the first electronic device is located may include a pairing state. The first electronic device is in a pairing state, and represents that other electronic devices in the broadcast coverage range of the first electronic device can scan the first electronic device at any time and can be paired and connected with the first electronic device. In this embodiment, the pairing status may be used to represent that a pairing operation is to be performed between the first electronic device and the second electronic device. As a practical manner, the second electronic device may be any electronic device that can scan the first electronic device and is not paired with the first electronic device.
In some embodiments, when it is determined that the state of the second electronic device is the pairing state, it may be considered that the first electronic device does not transmit the broadcast message in a targeted manner, and the second electronic device may display the target information as much as possible to prompt a user corresponding to the second electronic device to establish a connection with the first electronic device. Based on this, in this embodiment, a larger preset transmission power may be selected as the target preset transmission power from the first preset transmission power and the second preset transmission power, so that the received signal strength of the broadcast message of the first electronic device received by the second electronic device is more easily greater than the preset received signal strength threshold, thereby improving the display probability of the target information. In an embodiment of the present application, when it is determined that the state of the first electronic device is the pairing state, the first preset transmission power may be determined as the target preset transmission power from the first preset transmission power and the second preset transmission power.
Step S220: and when the state of the first electronic device is a loop connection state, determining the second preset transmitting power from the at least two preset transmitting powers as the target transmitting power, wherein the loop connection state is used for representing a loop connection operation to be executed after pairing between the first electronic device and a third electronic device.
By one approach, the state of the first electronic device may include a paired loopback state. The first electronic device is in a connection-back state, which represents that the first electronic device is performing connection-back operation with the previously paired and connected electronic device by means of paging. In this embodiment, the connection status may be used to represent a connection operation to be performed after the first electronic device and a third electronic device are paired, where the third electronic device may be an electronic device that is connected to the first electronic device in a pairing manner.
In some embodiments, when it is determined that the state of the first electronic device is the connection-back state, the first electronic device may be considered to be more likely to connect back to the electronic device that has been connected by the previous pairing, for example, it may be considered that the first electronic device is being connected back to a third electronic device that has been connected by the previous pairing, and the second electronic device may be made to display no target information as much as possible to reduce disturbance to a user corresponding to the second electronic device. Based on this, in this embodiment, a smaller preset transmission power may be selected from the first preset transmission power and the second preset transmission power as the target transmission power, so that the received signal strength of the broadcast message of the first electronic device received by the second electronic device is more easily smaller than the preset received signal strength threshold, thereby reducing the display probability of the target information. In an embodiment of the application, when it is determined that the state of the first electronic device is the loop connection state, the second preset transmission power may be determined as the target preset transmission power from the first preset transmission power and the second preset transmission power.
Step S230: transmitting a broadcast message based on the target transmit power to instruct a second electronic device receiving the broadcast message to display target information upon determining that a received signal strength of the broadcast message is greater than a received signal strength threshold.
For detailed description of step S230, please refer to step S120, which is not described herein again.
The method for transmitting a broadcast message includes acquiring a state of a first electronic device, determining, when the state of the first electronic device is a configuration state, a first transmit power as a target transmit power from at least two preset transmit powers, determining, when the state of the first electronic device is a loopback state, a second transmit power as a target transmit power from the at least two preset transmit powers, and transmitting the broadcast message based on the target transmit power to instruct a second electronic device that receives the broadcast message to display target information when it is determined that a received signal strength of the broadcast message is greater than a received signal strength threshold. Compared with the method for sending the broadcast message shown in fig. 5, in the embodiment, when the electronic device is in the pairing state, a larger transmission power is selected for sending the broadcast message than when the electronic device is in the loop connection state, so that the display of the prompt information is better controlled, and the user is prevented from being disturbed to improve the user experience.
Referring to fig. 7, fig. 7 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application. The method is applied to the first electronic device, and as will be described in detail with reference to the flow shown in fig. 7, the method for transmitting the broadcast message may specifically include the following steps:
step S310: when the first electronic device does not have a connection record, determining that the state of the first electronic device is a pairing state, wherein the pairing state is used for representing that pairing operation is to be executed between the first electronic device and the second electronic device.
As a practical manner, the first electronic device may acquire its connection information before transmitting the broadcast message, and determine whether the first electronic device has a connection record based on its connection information. When it is determined that the first electronic device does not have the connection record based on the connection information of the first electronic device, it may be determined that the state in which the first electronic device is located is a pairing state.
In some embodiments, when it is determined that the first electronic device does not have a connection record, it is characterized that the first electronic device has not been paired and connected with another electronic device before, that is, the first electronic device is intended to be paired and connected with another electronic device when transmitting a broadcast message this time, that is, it may be determined that the state of the first electronic device is a paired state. In this embodiment, if the broadcast message transmitted by the first electronic device is received by the second electronic device, the pairing status indicates that a pairing operation is to be performed between the first electronic device and the second electronic device.
In some embodiments, the first electronic device may determine whether it stores address information of the third electronic device, for example, the first electronic device may determine whether it stores a MAC address of the third electronic device. When it is determined that the first electronic device does not store the address information of the third electronic device, it may be determined that the first electronic device does not have a connection record. That is, when it is determined that the first electronic device does not store the address information of the third electronic device, it is characterized that the first electronic device has not been paired and connected with the third electronic device before, that is, the first electronic device is intended to be paired and connected with the second electronic device when transmitting the broadcast message this time, that is, it may be determined that the state where the first electronic device is located is the paired state.
Step S320: when the first electronic device has a connection record, determining that the state of the first electronic device is a connection back state, wherein the connection back state is used for representing connection back operation to be executed after pairing of the first electronic device and a third electronic device.
As a practical way, the first electronic device may acquire its connection information before transmitting the broadcast message, and determine whether the first electronic device has a connection record based on its connection information. When it is determined that the first electronic device has the connection record based on the connection information of the first electronic device, it may be determined that the state of the first electronic device is the connection-back state. That is, it may be determined that the first electronic device is in a state of being connected back after the pairing connection is disconnected.
In some embodiments, when it is determined that the first electronic device has the connection record, it is characterized that the first electronic device has been paired and connected with another electronic device before, that is, the first electronic device is to perform a backhaul connection with an electronic device that has been paired and connected before when transmitting the broadcast message this time, that is, it may be determined that the first electronic device is in a backhaul state. In this embodiment, since the second electronic device may receive the broadcast message transmitted by the first electronic device, and determine that the state of the first electronic device is the loopback state based on the broadcast message, the loopback state may be considered to be used to represent that a loopback operation is to be performed between the first electronic device and another electronic device.
In some embodiments, the first electronic device may determine whether it stores address information of the third electronic device, for example, the first electronic device may determine whether it stores a MAC address of the third electronic device. When the first electronic device is determined to store the address information of the third electronic device, it may be determined that the first electronic device has a connection record. That is, when it is determined that the first electronic device stores the address information of the third electronic device, it is characterized that the first electronic device has been paired and connected with the third electronic device before, that is, when the first electronic device transmits the broadcast message this time, the first electronic device is not intended to be paired and connected with the second electronic device (intended to be connected back with the third electronic device), that is, it may be determined that the state where the first electronic device is located is the connection back state.
As one mode, when there is a connection record in the first electronic device, it may be detected whether the first electronic device has performed a loopback operation and failed to perform loopback during the transmission of the broadcast message, where when the first electronic device has performed a loopback operation and failed to perform loopback, the first electronic device may be considered to be switched from a loopback state to a pairing state, that is, it is determined that the state in which the first electronic device is located is a pairing state, rather than a loopback state.
As another way, when there is a connection record in the first electronic device, it may be detected whether the first electronic device has received a command to switch to the pairing state at this time of transmitting the broadcast message, for example, a user presses a key on an earphone box to switch the state, and when it is detected that the first electronic device has received the command to switch to the pairing state, it may be considered that the first electronic device has switched from the connection back state to the pairing state, that is, it is determined that the state of the first electronic device is the pairing state, but not the connection back state.
When the first electronic device has a connection record, and the first electronic device has not performed the reconnection operation and has not received the instruction to switch to the pairing state, it may be determined that the state of the first electronic device is the reconnection state.
Step S330: determining a target transmitting power from at least two preset transmitting powers according to the state of the first electronic device, wherein the at least two preset transmitting powers are different in size.
Step S340: transmitting a broadcast message based on the target transmission power to instruct a second electronic device receiving the broadcast message to display target information upon determining that a received signal strength of the broadcast message is greater than a received signal strength threshold.
For the detailed description of steps S330 to S340, refer to steps S110 to S120, which are not described herein again.
In the method for transmitting the broadcast message, when the first electronic device does not have the connection record, it is determined that the state where the first electronic device is located is the pairing state, or when the first electronic device has the connection record, it is determined that the state where the first electronic device is located is the loopback state, according to the pairing state or the loopback state where the first electronic device is located, a target transmission power is determined from at least two preset transmission powers, and the broadcast message is transmitted based on the target transmission power to indicate the second electronic device that receives the broadcast message to display the target information when it is determined that the received signal strength of the broadcast message is greater than the received signal strength threshold. Compared with the method for transmitting the broadcast message shown in fig. 5, the present embodiment further determines the state of the electronic device according to the connection record of the electronic device, so as to improve the accuracy of the determined state of the electronic device.
Referring to fig. 8, fig. 8 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application. The method is applied to the first electronic device, and as will be described in detail with reference to the flow shown in fig. 8, the method for transmitting the broadcast message may specifically include the following steps:
step S410: when the charging device is detected to be opened, determining target transmitting power from at least two preset transmitting powers according to the state of the Bluetooth headset, wherein the at least two preset transmitting powers are different in size.
In this embodiment, the first electronic device is a bluetooth headset, and the bluetooth headset is accommodated in the charging device.
In some embodiments, when the charging device is closed, the bluetooth headset does not transmit the broadcast message because the bluetooth headset is accommodated in the charging device, and thus, the state of the bluetooth headset may not be acquired. When the charging device is opened, the Bluetooth headset transmits the broadcast message because only part of the Bluetooth headset is accommodated in the charging device, and therefore the target transmission power is determined from at least two preset transmission powers according to the state of the Bluetooth headset.
Step S420: and transmitting a broadcast message based on the target transmission power to indicate a second electronic device receiving the broadcast message to display target information when determining that the received signal strength of the broadcast message is greater than a received signal strength threshold, wherein the target information is used for prompting the Bluetooth headset to be connected.
For detailed description of step S420, please refer to step S120, which is not described herein.
According to the method for transmitting the broadcast message, when the first electronic device detects that the charging device accommodated by the first electronic device is turned on, the target transmission power is determined from at least two preset transmission powers according to the state of the bluetooth headset, and the broadcast message is transmitted based on the target transmission power to indicate the second electronic device receiving the broadcast message to display the target information when the second electronic device determines that the received signal strength of the broadcast message is greater than the received signal strength threshold. Compared with the method for transmitting the broadcast message shown in fig. 5, in this embodiment, when the charging device accommodated in the bluetooth headset is turned on, the acquisition of the state of the bluetooth headset is triggered, so that the accuracy of the acquisition opportunity of the state of the bluetooth headset is improved.
Referring to fig. 9, fig. 9 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present disclosure. The method is used for dynamically determining the target transmitting power to transmit the broadcast message according to the state of the electronic equipment so that other electronic equipment can determine the display of the prompt message, the display of the prompt message is better controlled, and the user experience is improved by avoiding disturbance to the user. In an embodiment of the present application, the method for transmitting a broadcast message is applied to the apparatus 400 for transmitting a broadcast message shown in fig. 13 and an electronic device (second electronic device) 500 (fig. 14) configured with the apparatus 400 for transmitting a broadcast message. It can be understood that the second electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 9, the method for transmitting the broadcast message may specifically include the following steps:
step S510: the method comprises the steps of obtaining the received signal strength of a received broadcast message transmitted by first electronic equipment, wherein the broadcast message is transmitted by the first electronic equipment based on target transmission power, the target transmission power is determined by the first electronic equipment from at least two preset transmission powers according to the state of the first electronic equipment, and the at least two preset transmission powers are different in size.
Step S520: and when the received signal strength is greater than a received signal strength threshold value, displaying target information.
For the detailed description of steps S510 to S520, refer to steps S110 to S130, which are not described herein again.
According to the broadcast message transmitting method provided by the embodiment of the application, the second electronic device obtains the received signal strength of the received broadcast message transmitted by the first electronic device, wherein the broadcast message is transmitted by the first electronic device based on the target transmitting power, the target transmitting power is determined by the first electronic device according to the state of the first electronic device from at least two preset transmitting powers, and when the received signal strength is greater than the threshold value of the received signal strength, the target information is displayed, so that the target transmitting power is dynamically determined according to the state of the electronic device to transmit the broadcast message, and other electronic devices determine to display the prompt information, so that the prompt information is better controlled to be displayed, and the user experience is improved by avoiding disturbance on the user.
Referring to fig. 10, fig. 10 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the present application. The method is applied to the second electronic device, and as will be described in detail with reference to the flow shown in fig. 10, the method for transmitting the broadcast message may specifically include the following steps:
step S610: the method comprises the steps of obtaining the received signal strength of a received broadcast message transmitted by first electronic equipment, wherein the broadcast message is transmitted by the first electronic equipment based on target transmission power, the target transmission power is determined by the first electronic equipment from at least two preset transmission powers according to the state of the first electronic equipment, and the at least two preset transmission powers are different in size.
For detailed description of step S610, please refer to step S110 to step S120, which are not described herein again.
Step S620: and when the received signal strength is greater than a received signal strength threshold value and the first electronic equipment meets a preset equipment condition, displaying the target information.
In some embodiments, the second electronic device may preset and store a preset device condition, where the preset device condition is used as a criterion of the first electronic device. Therefore, in this embodiment, when receiving the broadcast message transmitted by the first electronic device, the second electronic device may determine whether the first electronic device satisfies the preset device condition based on the broadcast message. When the first electronic device is determined to meet the preset device condition, the target information may be displayed on the basis of determining that the received signal strength of the broadcast message is greater than the received signal strength threshold. Wherein, when it is determined that the first electronic device does not satisfy the preset device condition, the target information may not be displayed even on the basis of determining that the received signal strength of the broadcast message is greater than the received signal strength.
As a practical manner, when the second electronic device receives the broadcast message transmitted by the first electronic device, the second electronic device may parse the broadcast message. When the analysis is successful, the protocol representing the broadcast message transmitted by the first electronic device meets the protocol set by the second electronic device, and then it can be determined that the first electronic device meets the preset device condition. When the analysis fails, if the protocol representing the broadcast message transmitted by the first electronic device does not meet the protocol set by the second electronic device, it may be determined that the first electronic device does not meet the preset device condition.
In some embodiments, when the second electronic device receives the broadcast message of the first electronic device, the second electronic device may acquire the identity information of the first electronic device based on the broadcast message. As a practical manner, the second electronic device may obtain the identity information of the first electronic device based on the protocol of the broadcast message. As another implementable manner, the second electronic device may obtain the identity information of the first electronic device based on the information of the target flag bit of the broadcast message obtained through parsing.
In some embodiments, the second electronic device may preset and store a preset identity condition, where the preset identity condition is used as a criterion of the first electronic device. Therefore, in this embodiment, when the second electronic device obtains the identity information of the first electronic device, it may be determined whether the identity information meets a preset identity condition. When the identity information of the first electronic device is determined to meet the preset identity condition, the first electronic device is represented as the electronic device meeting the set condition of the second electronic device, and the target information can be displayed on the basis of determining that the received signal strength of the broadcast message is greater than the received signal strength threshold value. When the identity information of the first electronic device is determined not to meet the preset identity condition, the first electronic device is represented as the electronic device which does not meet the set condition of the second electronic device, and therefore the target information can not be displayed even on the basis that the received signal strength of the broadcast message is determined to be larger than the received signal strength.
As a manner, the preset identity condition may be a preset manufacturer, and when the first electronic device is produced by the preset manufacturer, the identity information of the first electronic device may be considered to satisfy the preset identity condition; the preset identity condition may be a preset terminal merchant, and when the first electronic device is a preset terminal merchant brand, the identity information of the first electronic device may be considered to meet the preset identity condition; the preset identity condition may be a manufacturer of the second electronic device, and when the manufacturer of the first electronic device is consistent with the manufacturer of the second electronic device, the identity information of the first electronic device may be considered to satisfy the preset identity condition; the preset identity condition may be a terminal merchant of the second electronic device, and when the terminal merchant brand of the first electronic device is consistent with the terminal commodity card of the second electronic device, the identity information of the first electronic device may be considered to meet the preset identity condition, and the like, which is not limited herein.
Step S630: intercepting the target information when the received signal strength is not greater than the received signal strength threshold.
In some embodiments, after acquiring the received signal strength of the broadcast message transmitted by the first electronic device, the second electronic device may compare the received signal strength with a received signal strength threshold to determine whether the received signal strength is greater than the received signal strength threshold. When the received signal strength is determined to be not greater than the target received signal strength threshold, it may be determined that the received signal strength does not meet the signal strength requirement of the display prompt, and the target information may be intercepted, that is, the target information may not be displayed. The method for intercepting the target information may include hiding the target information, deleting the target information, minimizing the target information, and the like, which is not limited herein.
In the method for transmitting a broadcast message provided in an embodiment of the present application, a second electronic device obtains a received signal strength of a received broadcast message transmitted by a first electronic device, where the broadcast message is transmitted by the first electronic device based on a target transmission power, the target transmission power is determined by the first electronic device according to a state of the first electronic device from at least two preset transmission powers, when the received signal strength is greater than a received signal strength threshold and the first electronic device satisfies a preset device condition, target information is displayed, and when the received signal strength is not greater than the received signal strength threshold, the target information for prompting a connection with the first electronic device is intercepted. Compared with the method for transmitting the broadcast message shown in fig. 5, in this embodiment, when the received signal strength is not greater than the target received signal strength threshold, the prompt message is intercepted, so as to avoid disturbing the user and improve the user experience. In addition, the target information is displayed when the first electronic device meets the preset device condition, so that the user experience is improved by avoiding the interference of other electronic devices to the user.
Referring to fig. 11, as shown in fig. 11, the first electronic device may be a bluetooth headset, and the second electronic device may be a smart device (e.g., a smart phone, a tablet computer, etc.). Wherein, when the earphone box of the bluetooth earphone device is opened, whether the bluetooth earphone is in the pairing state can be judged. If the bluetooth headset is determined to be in the pairing state, transmitting BLE broadcasts with larger transmission power, and if the bluetooth headset is determined not to be in the pairing state (for example, in the backhaul state), transmitting BLE broadcasts with smaller transmission power, wherein the BLE broadcasts may carry information of the bluetooth headset, such as connection records and the like. The intelligent device in the broadcasting range of the Bluetooth headset can receive the BLE broadcasting and analyze the BLE broadcasting to obtain an analysis result. And judging whether the Bluetooth headset is the target device or not based on the analysis result, for example, judging whether the identity information of the Bluetooth headset meets a preset identity condition or not. When the Bluetooth headset is judged to be the target device, the received signal strength is compared with the pop-up window threshold value, if the received signal strength is larger than the pop-up window threshold value, the pop-up window is carried out, and if the received signal strength is not larger than the pop-up window threshold value, the pop-up window is not carried out. Referring to fig. 12, fig. 12 is a block diagram illustrating a transmitting apparatus for a broadcast message according to an embodiment of the present application. The apparatus 300 for transmitting a broadcast message is applied to the first electronic device, and will be explained with reference to the block diagram shown in fig. 12, where the apparatus 300 for transmitting a broadcast message includes: a transmission power determining module 310 and a broadcast message transmitting module 320, wherein:
a transmission power determining module 310, configured to determine a target transmission power from at least two preset transmission powers according to a state of the first electronic device, where the at least two preset transmission powers are different in size.
Further, the at least two preset transmitting powers include a first preset transmitting power and a second preset transmitting power, where the first preset transmitting power is greater than the second preset transmitting power, and the transmitting power determining module 310 includes: a first transmit power determination sub-module, wherein:
and the first transmission power determining submodule is used for determining a first preset transmission power as the target transmission power from the at least two preset transmission powers when the state of the first electronic device is a pairing state, wherein the pairing state is used for representing that pairing operation is to be executed between the first electronic device and the second electronic device.
Further, the transmission power determining module 310 includes: a second transmit power determination submodule, wherein:
and the second transmission power determining submodule is used for determining the second preset transmission power as the target transmission power from the at least two preset transmission powers when the state of the first electronic device is a loop connection state, wherein the loop connection state is used for representing a loop connection operation to be executed after pairing is performed between the first electronic device and the third electronic device.
Further, the first electronic device is a bluetooth headset, the bluetooth headset is accommodated in a charging device, and the transmission power determining module 310 includes: a third transmit power determination sub-module, wherein:
and the third transmission power determining submodule is used for determining target transmission power from at least two preset transmission powers according to the state of the first electronic equipment when the charging device is detected to be opened.
A broadcast message transmitting module 320, configured to transmit a broadcast message based on the target transmission power to instruct a second electronic device receiving the broadcast message to display target information when it is determined that the received signal strength of the broadcast message is greater than a received signal strength threshold.
Further, the transmitting device 300 of the broadcast message further includes: pairing state acquisition module and reconnection state acquisition module, wherein:
the pairing state obtaining module is configured to determine that the state of the first electronic device is a pairing state when the first electronic device has no connection record, where the pairing state is used to represent that a pairing operation is to be performed between the first electronic device and the second electronic device.
The reconnection status acquiring module is configured to determine that a status of the first electronic device is a reconnection status when the first electronic device has a connection record, where the reconnection status is used to represent a reconnection operation to be performed after pairing between the first electronic device and a third electronic device.
Referring to fig. 13, fig. 13 is a block diagram illustrating a transmitting apparatus of a broadcast message according to an embodiment of the present application. The apparatus 400 for transmitting a broadcast message is applied to the second electronic device, and will be described with reference to the block diagram shown in fig. 13, where the apparatus 400 for transmitting a broadcast message includes: a received signal strength acquisition module 410 and a prompt information display module 420, wherein:
a received signal strength obtaining module 410, configured to obtain a received signal strength of a broadcast message transmitted by a first electronic device, where the broadcast message is transmitted by the first electronic device based on a target transmission power, the target transmission power is determined by the first electronic device according to a state of the first electronic device, and the at least two preset transmission powers are different in size.
And a prompt information display module 420, configured to display the target information when the received signal strength is greater than the received signal strength threshold.
Further, the prompt information display module 420 includes: prompt information display submodule, wherein:
and the prompt information display submodule is used for displaying the target information when the received signal strength is greater than a received signal strength threshold value and the first electronic equipment meets preset equipment conditions.
Further, the prompt information display sub-module includes: a prompt information display unit, wherein:
and the prompt information display unit is used for displaying the target information when the received signal strength is greater than a received signal strength threshold value and the identity information of the first electronic equipment meets a preset identity condition.
Further, the transmitting device 400 of the broadcast message further includes: a prompt message interception module, wherein:
and the prompt information intercepting module is used for intercepting the target information when the received signal strength is not greater than the received signal strength threshold value.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In several embodiments provided in the present application, the coupling of the modules to each other may be electrical, mechanical or other forms of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 14, a block diagram of an electronic device 500 according to an embodiment of the present disclosure is shown, where the electronic device 500 may be the first electronic device 200 or the second electronic device 100, which is not limited herein. The electronic device 500 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 500 in the present application may include one or more of the following components: a processor 510, a memory 520, and one or more applications, wherein the one or more applications may be stored in the memory 520 and configured to be executed by the one or more processors 510, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 510 may include one or more processing cores, among others. The processor 510 interfaces with various components throughout the electronic device 500 using various interfaces and circuitry to perform various functions of the electronic device 500 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 520 and invoking data stored in the memory 520. Alternatively, the processor 510 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 510 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 510, but may be implemented by a communication chip.
The Memory 520 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 520 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 520 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created during use by the electronic device 500 (e.g., phone books, audio-visual data, chat log data), and so forth.
Referring to fig. 15, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 600 has stored therein a program code that can be called by a processor to execute the method described in the above method embodiments.
The computer-readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 600 includes a non-volatile computer-readable medium. The computer readable storage medium 600 has storage space for program code 610 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 610 may be compressed, for example, in a suitable form.
In summary, according to the broadcast message transmitting method, apparatus, electronic device, and storage medium provided in this embodiment of the present application, a target transmit power is determined from at least two preset transmit powers with different sizes according to a state of a first electronic device, and a broadcast message is transmitted based on the target transmit power to indicate a second electronic device that receives the broadcast message to display target information when it is determined that a received signal strength of the broadcast message is greater than a received signal strength threshold, so that the target transmit power is dynamically determined according to the state of the electronic device to transmit the broadcast message, so that other electronic devices determine to display prompt information, display of the prompt information is better controlled, and user experience is improved by avoiding disturbance to a user.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for transmitting a broadcast message, the method being applied to a first electronic device, the method comprising:
determining a target transmitting power from at least two preset transmitting powers according to the state of the first electronic equipment, wherein the at least two preset transmitting powers are different in size;
transmitting a broadcast message based on the target transmit power to instruct a second electronic device receiving the broadcast message to display target information upon determining that a received signal strength of the broadcast message is greater than a received signal strength threshold.
2. The method of claim 1, wherein the at least two preset transmission powers comprise a first preset transmission power and a second preset transmission power, wherein the first preset transmission power is greater than the second preset transmission power, and wherein determining the target transmission power from the at least two preset transmission powers according to the state of the first electronic device comprises:
and when the state of the first electronic device is a pairing state, determining a first preset transmitting power from the at least two preset transmitting powers as the target transmitting power, wherein the pairing state is used for representing that pairing operation is to be executed between the first electronic device and the second electronic device.
3. The method of claim 2, wherein determining the target transmit power from at least two preset transmit powers according to the state of the first electronic device comprises:
and when the state of the first electronic device is a loop connection state, determining the second preset transmitting power from the at least two preset transmitting powers as the target transmitting power, wherein the loop connection state is used for representing a loop connection operation to be executed after pairing between the first electronic device and a third electronic device.
4. The method according to any one of claims 1-3, wherein before determining the target transmit power from at least two preset transmit powers according to the state of the first electronic device, further comprising:
when the first electronic device does not have a connection record, determining that the state of the first electronic device is a pairing state, wherein the pairing state is used for representing pairing operation to be executed between the first electronic device and the second electronic device; or
When the first electronic device has a connection record, determining that the state of the first electronic device is a connection back state, wherein the connection back state is used for representing connection back operation to be performed after the first electronic device and the third electronic device are paired.
5. The method according to any one of claims 1-3, wherein the first electronic device is a Bluetooth headset, the Bluetooth headset is housed in a charging device, and the determining the target transmission power from at least two predetermined transmission powers according to the state of the first electronic device comprises:
when the charging device is detected to be opened, determining target transmitting power from the at least two preset transmitting powers according to the state of the first electronic equipment.
6. A method for transmitting a broadcast message, the method being applied to a second electronic device, the method comprising:
acquiring received signal strength of a broadcast message transmitted by a first electronic device, wherein the broadcast message is transmitted by the first electronic device based on a target transmission power, the target transmission power is determined by the first electronic device from at least two preset transmission powers according to the state of the first electronic device, and the at least two preset transmission powers are different in size;
and when the received signal strength is greater than a received signal strength threshold value, displaying target information.
7. An apparatus for transmitting a broadcast message, the apparatus being applied to a first electronic device, the apparatus comprising:
the transmission power determining module is used for determining target transmission power from at least two preset transmission powers according to the state of the first electronic device, wherein the at least two preset transmission powers are different in size;
and the broadcast message transmitting module is used for transmitting a broadcast message based on the target transmitting power so as to instruct the second electronic equipment receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be greater than the received signal strength threshold.
8. An apparatus for transmitting a broadcast message, the apparatus being applied to a second electronic device, the apparatus comprising:
a received signal strength obtaining module, configured to obtain received signal strength of a broadcast message transmitted by a first electronic device, where the broadcast message is transmitted by the first electronic device based on a target transmission power, the target transmission power is determined by the first electronic device according to a state of the first electronic device, and the at least two preset transmission powers are different in magnitude;
and the prompt information display module is used for displaying the target information when the received signal strength is greater than the received signal strength threshold value.
9. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-5 or claim 6.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 5 or according to claim 6.
CN202111038917.7A 2021-09-06 2021-09-06 Broadcast message transmitting method and device, electronic equipment and storage medium Pending CN115776644A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111038917.7A CN115776644A (en) 2021-09-06 2021-09-06 Broadcast message transmitting method and device, electronic equipment and storage medium
PCT/CN2022/113981 WO2023030071A1 (en) 2021-09-06 2022-08-22 Broadcast message transmitting method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111038917.7A CN115776644A (en) 2021-09-06 2021-09-06 Broadcast message transmitting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115776644A true CN115776644A (en) 2023-03-10

Family

ID=85387421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111038917.7A Pending CN115776644A (en) 2021-09-06 2021-09-06 Broadcast message transmitting method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN115776644A (en)
WO (1) WO2023030071A1 (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030050009A1 (en) * 2001-09-12 2003-03-13 Kurisko Mark A. Security apparatus and method during BLUETOOTH pairing
US20090143012A1 (en) * 2007-12-04 2009-06-04 Samsung Electronics Co. Ltd. Bluetooth-enabled mobile terminal and fast device connection method thereof
CN101860480A (en) * 2009-04-01 2010-10-13 奥迪康有限公司 The method of pair wireless devices
CN104092823A (en) * 2014-07-09 2014-10-08 北京深思数盾科技有限公司 Information safety device and Bluetooth pairing method
US20140378056A1 (en) * 2013-06-21 2014-12-25 Bose Corporation Low energy wireless proximity pairing
WO2018161581A1 (en) * 2017-03-10 2018-09-13 广东欧珀移动通信有限公司 Control method, device, storage medium, and electronic apparatus for broadcast sending
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system
CN110267358A (en) * 2019-07-01 2019-09-20 张洋 Establish the system, method and blue-tooth device of bluetooth connection
CN112333332A (en) * 2020-10-27 2021-02-05 维沃移动通信有限公司 Prompt message display method and device and electronic equipment
WO2021036835A1 (en) * 2019-08-30 2021-03-04 华为技术有限公司 Bluetooth search method and system, and related apparatus
CN113286282A (en) * 2021-05-18 2021-08-20 Oppo广东移动通信有限公司 Prompting method, prompting device, electronic equipment, target equipment, connection system and medium
CN113316082A (en) * 2021-05-26 2021-08-27 Oppo广东移动通信有限公司 Pairing method and device, mobile terminal and storage medium
CN115604801A (en) * 2021-07-07 2023-01-13 Oppo广东移动通信有限公司(Cn) Prompting method, prompting device, target equipment, electronic equipment, connection system and medium
WO2023103732A1 (en) * 2021-12-08 2023-06-15 Oppo广东移动通信有限公司 State control method and apparatus for earphone device, earphone device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107249214A (en) * 2017-07-07 2017-10-13 宇龙计算机通信科技(深圳)有限公司 Bluetooth power consumption adjusting method and system
CN111757303A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Control method of Bluetooth transmitting power and terminal equipment
CN112821963B (en) * 2020-12-30 2022-07-22 恒玄科技(上海)股份有限公司 Method and device for reducing interference to loudspeaker and electronic equipment

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030050009A1 (en) * 2001-09-12 2003-03-13 Kurisko Mark A. Security apparatus and method during BLUETOOTH pairing
US20090143012A1 (en) * 2007-12-04 2009-06-04 Samsung Electronics Co. Ltd. Bluetooth-enabled mobile terminal and fast device connection method thereof
CN101860480A (en) * 2009-04-01 2010-10-13 奥迪康有限公司 The method of pair wireless devices
US20140378056A1 (en) * 2013-06-21 2014-12-25 Bose Corporation Low energy wireless proximity pairing
CN104092823A (en) * 2014-07-09 2014-10-08 北京深思数盾科技有限公司 Information safety device and Bluetooth pairing method
WO2018161581A1 (en) * 2017-03-10 2018-09-13 广东欧珀移动通信有限公司 Control method, device, storage medium, and electronic apparatus for broadcast sending
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system
CN110267358A (en) * 2019-07-01 2019-09-20 张洋 Establish the system, method and blue-tooth device of bluetooth connection
WO2021036835A1 (en) * 2019-08-30 2021-03-04 华为技术有限公司 Bluetooth search method and system, and related apparatus
CN112333332A (en) * 2020-10-27 2021-02-05 维沃移动通信有限公司 Prompt message display method and device and electronic equipment
CN113286282A (en) * 2021-05-18 2021-08-20 Oppo广东移动通信有限公司 Prompting method, prompting device, electronic equipment, target equipment, connection system and medium
CN113316082A (en) * 2021-05-26 2021-08-27 Oppo广东移动通信有限公司 Pairing method and device, mobile terminal and storage medium
CN115604801A (en) * 2021-07-07 2023-01-13 Oppo广东移动通信有限公司(Cn) Prompting method, prompting device, target equipment, electronic equipment, connection system and medium
WO2023103732A1 (en) * 2021-12-08 2023-06-15 Oppo广东移动通信有限公司 State control method and apparatus for earphone device, earphone device and storage medium

Also Published As

Publication number Publication date
WO2023030071A1 (en) 2023-03-09

Similar Documents

Publication Publication Date Title
CN109257500B (en) Audio playing method and device, electronic equipment and storage medium
CN108184164B (en) Audio playing method, smart television and computer readable storage medium
CN107835033B (en) Antenna tuning switch control method and device, terminal equipment and storage medium
CN106230492B (en) Terminal antenna switching method and device and mobile terminal
US11089638B2 (en) Mobile device and electronic device for wireless communication, and operation methods thereof
WO2023030531A1 (en) Prompt information display method and apparatus, electronic device, and storage medium
US11012970B2 (en) Method for processing radio frequency interference and electronic device
CN112839303B (en) Method and related device for device reconnection
CN110430562B (en) Bluetooth communication method and related device
CN113395687A (en) Reconnection method, reconnection device, electronic equipment and storage medium
CN111970683A (en) Method and device for switching SIM (subscriber identity Module) card, terminal equipment and storage medium
CN114565070B (en) Label binding method and device and mobile terminal
CN109257732B (en) Equipment control method and device and electronic equipment
EP3843459A1 (en) Communication system switching method and terminal device
EP3962150A1 (en) Method for solving wifi channel interference and related product
US20200356149A1 (en) Electronic device and control method thereof
CN113329391B (en) Prompt information display method and device, electronic equipment and storage medium
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN115776644A (en) Broadcast message transmitting method and device, electronic equipment and storage medium
CN113316222B (en) Data processing method, device, electronic equipment and storage medium
CN105635379B (en) Noise suppression method and device
CN111800836B (en) Communication method, device, electronic equipment and storage medium
CN115767443A (en) Prompt information display method and device, electronic equipment and storage medium
US9210658B2 (en) Communication device, communication system, communication method, and program

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