[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

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

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a method, a device, electronic equipment and a storage medium for transmitting broadcast messages, 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 are different in size, and transmitting a broadcast message based on the target transmitting power so as to instruct the second electronic equipment receiving the broadcast message to display the target message when determining that the received signal strength of the broadcast message is greater than a received signal strength threshold. According to the method and the device, the target transmitting power is dynamically determined according to the state of the electronic equipment to transmit the broadcast message, so that other electronic equipment can determine the display of the prompt information, the display of the prompt information is better controlled, and the disturbance to a user is avoided, so that the user experience is improved.

Description

Broadcast message transmitting method and device, electronic equipment and storage medium
Technical Field
The present application relates to the technical field of electronic devices, and in particular, to a method and apparatus for transmitting a broadcast message, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic devices are increasingly widely used, and have more and more functions, and become one of the necessities in daily life. At present, more and more electronic devices start to support the functions of quickly finding and displaying prompts of other electronic devices, however, the probability of misjudgment is higher on judging whether the prompts are displayed or not, so that the interference to users is larger, and the experience of the users is affected.
Disclosure of Invention
In view of the above, the present application proposes a broadcast message transmitting method, apparatus, electronic device and storage medium, so as to solve the above problem.
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, where 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; and transmitting a broadcast message based on the target transmission power to instruct a second electronic device receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be 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, where the method includes: acquiring 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 transmitting power, the target transmitting power is determined by the first electronic equipment from at least two preset transmitting powers according to the state of the first electronic equipment, and the at least two preset transmitting powers are different in size; and displaying target information when the received signal strength is greater than a received signal strength threshold.
In a third aspect, an embodiment of the present application provides a transmitting apparatus for a broadcast message, which is applied to a first electronic device, where the apparatus includes: the transmitting power determining module is used for 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; and the broadcast message transmitting module is used for transmitting a broadcast message based on the target transmitting power so as to instruct a second electronic device receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be greater than a received signal strength threshold.
In a fourth aspect, an embodiment of the present application provides a transmitting apparatus for a broadcast message, which is applied to a second electronic device, where the apparatus includes: a received signal strength obtaining module, configured to obtain a received signal strength of a broadcast message transmitted by a received first electronic device, where the broadcast message is transmitted by the first electronic device based on a target transmission power, where the target transmission power is determined by the first electronic device from at least two preset transmission powers according to a state where the first electronic device is located, and the at least two preset transmission powers are different in size; and the prompt information display module is used for displaying target information when the received signal strength is greater than a received signal strength threshold value.
In a fifth aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory coupled to the processor, the memory storing instructions that when executed by the processor perform the above-described method.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being callable by a processor to perform the above method.
According to the method, the device, the electronic equipment 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 equipment, the broadcast message is transmitted based on the target transmitting power, and the second electronic equipment receiving the broadcast message is indicated to display target information when the received signal strength of the broadcast message is determined to be greater than the received signal strength threshold value, so that the target transmitting power is dynamically determined according to the state of the electronic equipment to transmit the broadcast message, other electronic equipment can determine to display prompt information, display of the prompt information is better controlled, interference to a user is avoided, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a first application environment schematic that may be used with embodiments of the present application;
FIG. 2 illustrates a second application environment schematic that may be used with embodiments of the present application;
FIG. 3 illustrates a third application environment schematic that may be provided by embodiments of the present application;
FIG. 4 illustrates a fourth application environment schematic that may be provided by an embodiment of the present application;
Fig. 5 is a flow chart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 6 is a flow chart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 7 is a flow chart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 8 is a flow chart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 9 is a flow chart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
fig. 10 is a flow chart illustrating a method for transmitting a broadcast message according to an embodiment of the present application;
FIG. 11 illustrates an exemplary diagram of a flow that may be used with embodiments of the present application;
Fig. 12 is a block diagram of a broadcast message transmitting apparatus according to an embodiment of the present application;
Fig. 13 is a block diagram of a broadcast message transmitting apparatus according to an embodiment of the present application.
Fig. 14 shows a block diagram of an electronic device for performing a method of transmitting a broadcast message according to an embodiment of the present application;
fig. 15 illustrates a storage unit for storing or carrying program code for implementing a transmission method of a broadcast message according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
The internet of things (Internet Of Things, IOT) is a network concept that extends and extends its user end to any article to article on the basis of the "internet concept" to exchange and communicate information. With the development of the internet of things technology, some scenes can be configured in the internet of things system. For the configuration scene, a plurality of electronic devices can be involved, and a certain linkage relation exists among the plurality of electronic devices, so that the electronic devices can work cooperatively. For example, the configured scenario may include that when one electronic device approaches the other electronic device, at least one of the two electronic devices performs a specified operation, e.g., one of the electronic devices outputs connection prompt information for prompting 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, where the smart home device may include an electronic device such as a smart television, an air conditioner, a curtain, and the like, and when the second electronic device 100 approaches 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 on 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 can establish 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 (for example, may be a smart phone), the first electronic device 200 may be a real wireless bluetooth headset (true wireless stereo, TWS) device, when the first electronic device 200 approaches the second electronic device 100, the second electronic device 100 displays the frame information 110, the power of the TWS bluetooth headset may be displayed in the frame information 110, the connection prompt information may be displayed, and the like, in an embodiment of the present application, the TWS bluetooth headset device may include a headset 220 and a headset case (charging device) 210, the headset case 210 may accommodate the headset 220, in an embodiment of the present application, the inner wall of the housing of the headset case 210 forms an accommodating cavity, and the headset 220 may be accommodated in the accommodating cavity of the headset case 210. In addition, the earphone box 210 may not only provide a receiving cavity for receiving the earphone 220, but also communicate with the earphone 220, so that information such as an electric quantity of the earphone 220, a name or a network parameter of the earphone 220 can be obtained, so that the user terminal can be successfully paired with the earphone 220 through the earphone box 210 and realize communication connection. As an embodiment, the earphone case 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 emit a bluetooth low energy (bluetooh low energy, BLE) broadcast, and the second electronic device 100, for example, a smart phone, may pop up a frame after receiving the BLE broadcast, where the frame may provide an operation interface for the user to quickly connect to the earphone 220, or may display the power of the earphone 220 and the power of the earphone box 210 in the frame information at the same time.
Currently, the distance between two electronic devices can be determined by the received signal strength of another electronic device received by one electronic device, and in an embodiment of the present application, the ranging formula is as follows:
In formula (1), d represents the distance between two electronic devices, RSSI represents the received signal strength of another electronic device received by one electronic device, a is a reference distance, typically a constant, and B is a path loss factor. As can be seen from equation (1), the distance d is in one-to-one correspondence with the RSSI. Therefore, it is generally determined whether the 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 then, whether one electronic device enters the preset range of another electronic device may be determined by acquiring the 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, assuming that two electronic devices are the second electronic device 100 and the first electronic device 200, respectively, the first electronic device 200 transmits a broadcast message to the surroundings when the first electronic device 200 starts up 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 device, when the first electronic device 200 approaches the second electronic device 100, the cover of the earphone box 210 is in a closed state, at this time, the earphone box 210 does not transmit a broadcast message to the surroundings, that is, as shown in fig. 3, the second electronic device 100 does not receive the broadcast message transmitted by the earphone box 210, and the frame information 110 is not displayed, and when the cover 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 when the received signal strength of the received broadcast message is greater than the signal strength threshold, the frame information 110 is displayed. The second electronic device 100 and the first electronic device 200 can be controlled to trigger the popup window within a certain distance by setting the signal intensity threshold, so that the popup window of the mobile phone 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 embodiments of the present application, the wireless communication module may be a bluetooth module, and the second electronic device 100 and the first electronic device 200 may be connected through bluetooth, and then the broadcast message may be a bluetooth broadcast message, for example, a BLE broadcast. As the distance between the first electronic device 200 and the second electronic device 100 approaches, the second electronic device 100 can detect the broadcast message of the first electronic device 200, and thus can determine the signal strength, i.e., the received signal strength, of the broadcast message received by the first electronic device 200, as the distance between the second electronic device 100 and the first electronic device 200 approaches, the received signal strength of the second electronic device 100 gradually increases, and when the detected received signal strength is greater than the signal strength threshold, the second electronic device 100 displays the frame flicking information, and then the first electronic device 00 and the first electronic device 200 can establish a wireless connection (e.g., a bluetooth connection).
For example, a connection button is displayed in the frame information 110 displayed by the second electronic device 100, such as the connection control 111 shown in fig. 4, 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 achieved.
The electronic device can support the function of quickly finding other electronic devices and displaying prompts, and the electronic device is mainly used for directly comparing the received signal strength of the received broadcast messages transmitted by the other electronic devices with a set signal strength threshold on the basis of judging whether the prompt information is displayed or not. That is, other electronic devices can directly transmit the broadcast message according to the preset transmitting power, and cannot perform different processing on different scenes, so that the false display of the prompt information of the electronic device receiving the broadcast message occurs, which causes disturbance to the user and affects the user experience.
In order to solve the problems, the inventor discovers through long-term research and provides the method, the device, the electronic equipment and the storage medium for transmitting the broadcast message, and the target transmitting power is dynamically determined according to the state of the electronic equipment to transmit the broadcast message, so that other electronic equipment can determine to display prompt information, display of the prompt information is better controlled, and disturbance to a user is avoided to improve user experience. The method of 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 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 information, the display of the prompt information can be better controlled, and the disturbance to the user is avoided so as to improve the user experience. In a specific embodiment, the broadcast message transmission method is applied to the broadcast message transmission apparatus 300 shown in fig. 12 and the electronic device (first electronic device) 500 (fig. 14) configured with the broadcast message transmission apparatus 300. It can be appreciated that the first electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, a bluetooth headset, etc., which is not limited herein. The following details about the procedure shown in fig. 5, the method for transmitting a broadcast message may specifically include the following steps:
Step S110: 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 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 reconnection state.
In some embodiments, the first electronic device may acquire the state it is in before it will transmit the broadcast message. The first electronic device is taken as a TWS Bluetooth headset, and the second electronic device is taken as a smart phone for illustration. When the earphone box (charging device) accommodated in the TWS Bluetooth earphone is opened, the TWS Bluetooth earphone can be started automatically and try to transmit a broadcast message 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 earphone cover of the TWS Bluetooth earphone is closed, the TWS Bluetooth earphone can be automatically closed and stops transmitting broadcast messages, and the TWS Bluetooth earphone can not acquire the state of the TWS Bluetooth earphone.
In some embodiments, the first electronic device may obtain, in response to the instruction information, a state in which the first electronic device is located. For example, when detecting a target touch operation acted on the first electronic device by a user, the first electronic device may acquire a state of the first electronic device in response to the target touch operation. For another example, the first electronic device may, upon receiving target voice information input by a user, obtain, in response to the target voice information, a state in which the first electronic device is located. For another example, the first electronic device may obtain, when a preset time is detected, a state in which the first electronic device is located in response to the preset time. For another example, when detecting a preset environmental state (preset temperature, preset humidity, preset illumination intensity, preset brightness, etc.), the first electronic device may obtain, in response to the preset environment, a state in which the first electronic device is located.
As an implementation manner, the first electronic device may determine, based on the connection record thereof, a state in which the first electronic device is located. When the first electronic device has a connection record, it can be determined that the state of the first electronic device is a paired connection state. When the first electronic device does not have the connection record, the state of the first electronic device can be determined to be the pairing state.
As yet another implementation, the first electronic device may determine, based on its stored record, a state in which the first electronic device is located. When the first electronic device stores address information of other electronic devices, it can be determined that the state of the first electronic device is a paired reconnection state. When the first electronic device does not store address information of other electronic devices, the state of the first electronic device can be determined to be a 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.
In some embodiments, the first electronic device may preset and store at least two preset transmission powers with different magnitudes. For example, the first electronic device may preset and store a first preset transmission power and a second preset transmission power, where the first preset transmission power and the second preset transmission power are different in magnitude. For another example, the first electronic device may preset and store a first preset transmission power, a second preset transmission power, and a third preset transmission power … … N preset transmission power, where the first preset transmission power, the second preset transmission power, and the third preset transmission power … … N preset transmission power are different from each other in size.
In this embodiment, after the first electronic device obtains the state in which the first electronic device is located, one preset transmitting power may be determined from at least two preset transmitting powers according to the state in which the first electronic device is located, and the predetermined transmitting power is used as the target transmitting power.
As an implementation 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 transmitting powers, and a correspondence between the at least two states and the at least two preset transmitting powers, where each state in the at least two states may correspond to one or more preset transmitting powers, and 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 Preset transmit power
First state First preset transmitting power
Second state Second preset transmitting power
Third state Third preset transmitting power
…… ……
Based on the mapping relation table, when the state of the first electronic equipment is determined to be the first state, determining the first preset transmitting power as the target transmitting power; when the state of the first electronic equipment is determined to be the second state, determining a second preset transmitting power as a target transmitting power; when the state in which the first electronic device is determined to be in the 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. When the state of the first electronic equipment is 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 inconsistent with one of the states, a certain value can be increased or a certain value can be reduced on the basis of default preset transmitting power, and new preset transmitting power is obtained as target transmitting power.
In this embodiment, the preset transmitting power may be a bluetooth low energy transmitting power.
Step S120: and transmitting a broadcast message based on the target transmission power to instruct a second electronic device receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be greater than a received signal strength threshold.
In this embodiment, after determining the target transmission power, the first electronic device may transmit the broadcast message based on the target transmission power. It can be understood that the larger the target transmission power is, the wider (the 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 location 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, a coverage area of a broadcast message transmitted based on the target transmission power may be S1, a 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, a coverage area of the broadcast message transmitted based on the target transmission power may be S2, a received signal strength of the broadcast message received at the same location is RSSI2, a coverage area of S1 is greater than a coverage area of S2, and RSSI1 is greater than RSSI2.
When the second electronic device is located in the broadcast coverage of the first electronic device, the second electronic device may 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 second electronic device may acquire the received signal strength of the received broadcast message, and compare the received signal strength with a preset received signal strength threshold. When the comparison result indicates that the received signal strength is greater than a preset received signal strength threshold, displaying target information on the second electronic equipment; and when the magnitude comparison result indicates that the received signal strength is not greater than the preset received signal strength threshold, the target information is not displayed 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 signal in-band received power obtained by performing analog/digital conversion on the received wireless signal, filtering the signal by a digital front end (digital front end, DFE), and the like; SYSTEMGAIN denotes the system gain, which can be estimated from the rf front-end.
In some embodiments, the first electronic device is a TWS bluetooth headset device, and the second electronic device is a smart phone. When the earphone box (charging device) in which the earphone is accommodated is opened, the earphone may be automatically turned on and attempt to transmit a broadcast message at the determined target transmission power in order to attempt to establish a bluetooth connection with the smart phone, and when the earphone box of the TWS bluetooth earphone device is closed, the earphone may be automatically turned off and stop transmitting a broadcast message at the determined target transmission power. Accordingly, when the smart phone is located within the broadcasting range of the headset, a broadcast message transmitted by the headset at the determined target transmission power may be received, and a received signal strength of the received broadcast message transmitted by the headset at the determined target transmission power may be obtained.
It can be understood that, when the first electronic device transmits the broadcast message, if the number of the second electronic devices located in the broadcast coverage area of the first electronic device is one, only the one second electronic device can receive the broadcast message transmitted by the first electronic device, and acquire 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 can all receive the broadcast message transmitted by the first point device and acquire the received signal strength of the broadcast message.
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 not to be greater than the 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 then the target information may be intercepted, that is, the target information may not be displayed. When the received signal strength is determined to be greater than the received signal strength threshold, it may 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 may be displayed.
In some embodiments, the manner in which the second electronic device displays the target information may include: the display interface displays the target information, the display interface displays the target information through a popup window, and the status bar displays the target information, etc., without limitation.
In some implementations, the state in which the second electronic device is located may include a pairing state and a reconnection state. When the state of the second electronic device is 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 the pairing connection operation. When the state of the second electronic device is the reconnection state, the target information may be connection success prompt information, that is, the target information may be used to prompt that the second electronic device has performed reconnection work.
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 target information when the received signal strength of the broadcast message is determined to be greater than the received signal strength threshold value, 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 can determine to display 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 flow chart illustrating a method for transmitting a broadcast message according to an embodiment of the application. The method is applied to the first electronic device, and will be described in detail with respect to the flowchart shown in fig. 6, 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 transmitting method of the broadcast message specifically includes the following steps:
step S210: and when the state of the first electronic equipment 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 pairing operation to be executed between the first electronic equipment and the second electronic equipment.
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. Alternatively, the second preset transmitting power may be a default value after the pre-test is completed, and the first preset transmitting power may be obtained by adding a certain value to the second preset transmitting power.
As 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 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 characterize a pairing operation to be performed between the first electronic device and the second electronic device. As an implementation manner, the second electronic device may be any electronic device that can scan to the first electronic device and is not connected to the first electronic device in a pairing manner.
In some embodiments, when the state of the second electronic device is determined to be the pairing state, it may be considered that the first electronic device does not transmit the broadcast message in a targeted manner at this time, and the second electronic device may display the target information as much as possible to prompt the user corresponding to the second electronic device to establish a connection with the first electronic device. Based on this, in this embodiment, the larger preset transmission power may be selected from the first preset transmission power and the second preset transmission power as the target 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 in which the first electronic device is located 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: when the state of the first electronic device is a reconnection state, determining the second preset transmitting power from the at least two preset transmitting powers as the target transmitting power, wherein the reconnection state is used for representing a reconnection operation to be performed after pairing between the first electronic device and the third electronic device.
As one way, the state in which the first electronic device is located may include a paired back-connected state. The first electronic device is in a reconnection state, which means that the first electronic device performs a reconnection operation with a previously paired and connected electronic device by paging. In this embodiment, the connection state may be used to characterize a connection operation of the first electronic device and a third electronic device after pairing is to be performed, where the third electronic device may be an electronic device that is connected by pairing on the first electronic device.
In some embodiments, when the state in which the first electronic device is determined to be the reconnection state, the first electronic device may be considered to be more likely to be an electronic device that is paired and connected before reconnection, for example, the first electronic device may be considered to be being connected back to a third electronic device that is paired and connected before, and then the second electronic device may be prevented from displaying the target information as much as possible so as to reduce the disturbance to the 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 present application, when it is determined that the state in which the first electronic device is located is the reconnection 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: and transmitting a broadcast message based on the target transmission power to instruct a second electronic device receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be greater than a received signal strength threshold.
The specific description of step S230 is referred to step S120, and will not be repeated here.
According to the method for transmitting the broadcast message, which is provided by the embodiment of the application, the state of the first electronic equipment is obtained, when the state of the first electronic equipment is the configuration state, the first transmitting power is determined as the target transmitting power from at least two preset transmitting powers, when the state of the first electronic equipment is the reconnection state, the second transmitting power is determined as the target transmitting power from at least two preset transmitting powers, and the broadcast message is transmitted based on the target transmitting power, so that the second electronic equipment receiving the broadcast message is indicated to display target information when the received signal strength of the broadcast message is determined to be greater than the received signal strength threshold. Compared with the method for sending the broadcast message shown in fig. 5, the embodiment further realizes better control of the display of the prompt information by selecting larger transmission power to send the broadcast message when the electronic device is in the pairing state than when the electronic device is in the reconnection state, and avoids disturbing the user 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 application. The method is applied to the first electronic device, and will be described in detail with respect to the flowchart shown in fig. 7, and the method for transmitting the broadcast message specifically may include the following steps:
step S310: and when the first electronic equipment does not have a connection record, determining the state of the first electronic equipment as a pairing state, wherein the pairing state is used for representing pairing operation to be executed between the first electronic equipment and the second electronic equipment.
As an implementation manner, the first electronic device may acquire connection information thereof before transmitting the broadcast message, and determine whether the first electronic device has a connection record based on the connection information thereof. When it is determined that the first electronic device does not have a 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 other electronic devices before, that is, when the first electronic device transmits a broadcast message this time, the first electronic device is to pair with and connect with other electronic devices, that is, it may be determined that the state in which the first electronic device is located is a pairing state. In this embodiment, the broadcast message transmitted by the first electronic device is received by the second electronic device, and 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, e.g., 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 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 address information of the third electronic device, it is characterized that the first electronic device is not paired and connected with the third electronic device before, that is, when the first electronic device transmits a broadcast message this time, the first electronic device is paired and connected with the second electronic device, that is, it may be determined that the state in which the first electronic device is located is a paired state.
Step S320: when the first electronic equipment has a connection record, determining that the state of the first electronic equipment is a reconnection state, wherein the reconnection state is used for representing reconnection operation of the first electronic equipment and the third electronic equipment after pairing is to be executed.
As an implementation manner, the first electronic device may acquire connection information thereof before transmitting the broadcast message, and determine whether the first electronic device has a connection record based on the connection information thereof. When determining that the first electronic device has a connection record based on the connection information of the first electronic device, the state of the first electronic device can be determined to be a reconnection state. That is, the state in which the first electronic device is in may be determined to be a reconnection state after the pairing connection is disconnected.
In some embodiments, when determining that the first electronic device has a connection record, the first electronic device is characterized as being paired and connected with other electronic devices before, that is, when the first electronic device transmits a broadcast message this time, the first electronic device is in order to connect back with the electronic device that is paired and connected before, that is, it may be determined that the state in which the first electronic device is located is a connection-back 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 where the first electronic device is located is a reconnection state based on the broadcast message, the reconnection state may be considered to be used to represent a reconnection operation to be performed between the first electronic device and other electronic devices.
In some embodiments, the first electronic device may determine whether it stores address information of the third electronic device, e.g., the first electronic device may determine whether it stores a MAC address of the third electronic device. When determining that the first electronic device stores 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 address information of the third electronic device, it is characterized that the first electronic device is paired and connected with the third electronic device before, that is, when the first electronic device transmits a broadcast message this time, the first electronic device is not paired with and connected to the second electronic device (is to be connected back to the third electronic device), that is, it may be determined that the state in which the first electronic device is located is a connection-back state.
In one manner, when the first electronic device has a connection record, it may be detected whether the first electronic device has performed a reconnection operation and failed in reconnection when the first electronic device transmits the broadcast message, where when the first electronic device has performed the reconnection operation and failed in reconnection, the first electronic device may be considered to be switched from the reconnection state to the pairing state, i.e., it is determined that the state in which the first electronic device is located is the pairing state, instead of the reconnection state.
As another way, when the first electronic device has a connection record, it may be detected whether the first electronic device has received an instruction to switch to the pairing state when the first electronic device transmits the broadcast message, for example, the user presses a key on the earphone box for state switching for a long time, and when it is detected that the first electronic device receives the instruction to switch to the pairing state, it may be considered that the first electronic device is switched from the reconnection state to the pairing state, that is, it is determined that the state in which the first electronic device is located is the pairing state, instead of the reconnection state.
When the first electronic device has a connection record, and the first electronic device does not execute the reconnection operation and the first electronic device does not receive the command for switching to the pairing state, the state of the first electronic device can be determined to be the reconnection state.
Step S330: 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 are different in size.
Step S340: and transmitting a broadcast message based on the target transmission power to instruct a second electronic device receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be greater than a received signal strength threshold.
The specific description of step S330 to step S340 is referred to step S110 to step S120, and will not be repeated here.
According to the method for transmitting the broadcast message, when the first electronic equipment does not have a connection record, the state of the first electronic equipment is determined to be the pairing state, or when the first electronic equipment has the connection record, the state of the first electronic equipment is determined to be the reconnection state, the target transmitting power is determined from at least two preset transmitting powers according to the pairing state or the reconnection state of the first electronic equipment, the broadcast message is transmitted based on the target transmitting power, and the second electronic equipment receiving the broadcast message is indicated to display target information when the received signal strength of the broadcast message is determined to be greater than the received signal strength threshold. Compared with the broadcast message transmitting method shown in fig. 5, the embodiment further determines the state of the electronic device according to the connection record of the electronic device, thereby improving 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 application. The method is applied to the first electronic device, and will be described in detail with respect to the flowchart shown in fig. 8, and the method for transmitting the broadcast message specifically may 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 covered, the bluetooth headset is accommodated in the charging device, so that the bluetooth headset does not transmit a broadcast message at this time, and therefore, the state of the bluetooth headset may not be acquired. When the charging device is opened, the Bluetooth headset only partially is accommodated in the charging device, and then the Bluetooth headset transmits a broadcast message, so that the target transmitting power is determined from at least two preset transmitting powers according to the state of the Bluetooth headset.
Step S420: and transmitting a broadcast message based on the target transmitting power to indicate a second electronic device receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be greater than a received signal strength threshold, wherein the target information is used for prompting connection with the Bluetooth headset.
The specific description of step S420 refers to step S120, and is not described herein.
According to the method for transmitting the broadcast message, when the first electronic device detects that the charging device accommodated in the first electronic device is turned on, the target transmitting power is determined from at least two preset transmitting powers according to the state of the Bluetooth headset, and the broadcast message is transmitted based on the target transmitting power, so that the second electronic device receiving the broadcast message is indicated to display target information when the received signal strength of the broadcast message is determined to be greater than the received signal strength threshold. Compared with the broadcast message transmitting method 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 as to improve the accuracy of the acquisition opportunity of the state of the bluetooth headset.
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 information, the display of the prompt information can be better controlled, and the disturbance to the user is avoided so as to improve the user experience. In an embodiment of the present application, the transmission method of the broadcast message is applied to the transmission apparatus 400 of the broadcast message as shown in fig. 13 and the electronic device (second electronic device) 500 (fig. 14) configured with the transmission apparatus 400 of the broadcast message. It can be appreciated that the second electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited herein. The following details about the procedure shown in fig. 9, the method for transmitting a broadcast message may specifically include the following steps:
step S510: the method comprises the steps of obtaining the 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 target transmitting power, the target transmitting power is determined by the first electronic device from at least two preset transmitting powers according to the state of the first electronic device, and the at least two preset transmitting powers are different in size.
Step S520: and displaying target information when the received signal strength is greater than a received signal strength threshold.
The specific description of step S510 to step S520 is referred to step S110 to step S130, and will not be repeated here.
According to the method for transmitting the broadcast message, the second electronic device obtains the received signal intensity of the broadcast message transmitted by the first electronic device, the broadcast message is transmitted by the first electronic device based on the target transmitting power, the target transmitting power is determined from at least two preset transmitting powers according to the state of the first electronic device, when the received signal intensity is larger than the threshold value of the received signal intensity, the target information is displayed, so that the transmitting of the broadcast message is carried out by dynamically determining the target transmitting power according to the state of the electronic device, the other electronic devices can determine the display of the prompt information, the display of the prompt information can be better controlled, the disturbance to a user is avoided, and the user experience is improved.
Referring to fig. 10, fig. 10 is a flowchart illustrating a method for transmitting a broadcast message according to an embodiment of the application. The method is applied to the second electronic device, and will be described in detail with respect to the flowchart shown in fig. 10, and the method for transmitting the broadcast message specifically may include the following steps:
step S610: the method comprises the steps of obtaining the 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 target transmitting power, the target transmitting power is determined by the first electronic device from at least two preset transmitting powers according to the state of the first electronic device, and the at least two preset transmitting powers are different in size.
The specific description of step S610 refers to steps S110-S120, and is not repeated here.
Step S620: and when the received signal strength is greater than a received signal strength threshold and the first electronic equipment meets the 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 basis for determining 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 meets 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 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. When the first electronic device is determined not to meet 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 an implementation manner, the second electronic device may parse the broadcast message when receiving the broadcast message transmitted by the first electronic device. And when the analysis is successful, the protocol of the broadcast message transmitted by the first electronic equipment is characterized to meet the protocol set by the second electronic equipment, and then the first electronic equipment can be determined to meet the preset equipment condition. And when the analysis fails, the protocol of the broadcast message transmitted by the first electronic equipment is characterized to not meet the protocol set by the second electronic equipment, and the first electronic equipment can be determined to not meet the preset equipment condition.
In some embodiments, when receiving a broadcast message of a first electronic device, a second electronic device may obtain identity information of the first electronic device based on the broadcast message. As an implementation manner, the second electronic device may acquire the identity information of the first electronic device based on the protocol of the broadcast message. As still another implementation manner, the second electronic device may acquire the identity information of the first electronic device based on the information of the target flag bit of the broadcast message obtained by 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 basis for determining 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 the 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 characterized as the electronic device meeting the set condition of the second electronic device, and the target information can be displayed on the basis that the received signal strength of the broadcast message is determined to be greater than the received signal strength threshold. When the identity information of the first electronic device is determined to not meet the preset identity condition, the first electronic device is characterized to be the electronic device which does not meet the set condition of the second electronic device, and even if the received signal strength of the broadcast message is determined to be larger than the received signal strength, the target information is not displayed.
As a way, 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 manufacturer, and when the first electronic device is a preset terminal manufacturer brand, the identity information of the first electronic device may be considered to satisfy 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 manufacturer of the second electronic device, and when a brand of the terminal manufacturer of the first electronic device is consistent with a terminal commodity brand of the second electronic device, the identity information of the first electronic device may be considered to satisfy the preset identity condition, which is not limited herein.
Step S630: and 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 not to be 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 then the target information may be intercepted, that is, the target information may not be displayed. The method of 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.
According to the method for transmitting the broadcast message, the second electronic device obtains the received signal intensity of the broadcast message transmitted by the first electronic device, the broadcast message is transmitted by the first electronic device based on the target transmitting power, the target transmitting power is determined from at least two preset transmitting powers according to the state of the first electronic device, when the received signal intensity is greater than the received signal intensity threshold value and the first electronic device meets the preset device condition, target information is displayed, and when the received signal intensity is not greater than the received signal intensity threshold value, the target information used for prompting connection with the first electronic device is intercepted. Compared with the broadcast message transmitting method shown in fig. 5, the embodiment also intercepts the prompt message when the received signal strength is not greater than the target received signal strength threshold, and avoids disturbing the user to improve the user experience. In addition, when the first electronic equipment meets the preset equipment conditions, the target information is displayed, so that the interference of other electronic equipment to the user is avoided, and the user experience is improved.
Referring to fig. 11, as shown in fig. 11, the first electronic device may be a bluetooth headset device, and the second electronic device may be a smart device (such as a smart phone, a tablet computer, etc.). When the earphone box of the Bluetooth earphone device is opened, whether the Bluetooth earphone is in a pairing state or not can be judged. If it is determined that the bluetooth headset is in a pairing state, transmitting BLE broadcast with a larger transmitting power, and if it is determined that the bluetooth headset is not in a pairing state (e.g. in a loopback state), transmitting BLE broadcast with a smaller transmitting power, wherein the BLE broadcast may carry information of the bluetooth headset, such as connection record, etc. 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 a target device or not based on the analysis result, for example, judging whether the identity information of the Bluetooth headset meets the preset identity condition or not. And when the Bluetooth headset is judged to be the target equipment, comparing the received signal strength with a popup threshold, popup if the received signal strength is larger than the popup threshold, and not popup if the received signal strength is not larger than the popup threshold. Fig. 12 is a block diagram of a broadcast message transmitting apparatus 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 described below with respect to the block diagram shown in fig. 12, where the apparatus 300 for transmitting a broadcast message includes: a transmit power determination module 310 and a broadcast message transmission module 320, wherein:
The transmitting power determining module 310 is configured to determine a target transmitting power from at least two preset transmitting powers according to a state of the first electronic device, where the at least two preset transmitting powers are different in size.
Further, the at least two preset transmission powers include a first preset transmission power and a second preset transmission power, where the first preset transmission power is greater than the second preset transmission power, and the transmission power determining module 310 includes: a first transmit power determination submodule in which:
and the first transmission power determining submodule is used for determining a first preset transmission power from the at least two preset transmission powers as the target transmission power when the state of the first electronic equipment is a pairing state, wherein the pairing state is used for representing pairing operation to be executed between the first electronic equipment and the second electronic equipment.
Further, the transmit power determining module 310 includes: a second transmit power determination submodule, wherein:
And the second transmitting power determining submodule is used for determining the second preset transmitting power from the at least two preset transmitting powers as the target transmitting power when the state of the first electronic equipment is a reconnection state, wherein the reconnection state is used for representing a reconnection operation to be performed between the first electronic equipment and the third electronic equipment after pairing.
Further, the first electronic device is a bluetooth headset, the bluetooth headset is accommodated in the charging device, and the transmitting power determining module 310 includes: a third transmit power determination submodule in which:
And the third transmitting power determining submodule is used for determining target transmitting power from at least two preset transmitting 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, so as to instruct a second electronic device that receives 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.
Further, the transmitting device 300 of the broadcast message further includes: the device comprises a pairing state acquisition module and a reconnection state acquisition module, wherein:
the pairing state acquisition module is used for determining that the state of the first electronic equipment is a pairing state when the first electronic equipment does not have a connection record, wherein the pairing state is used for representing pairing operation to be executed between the first electronic equipment and the second electronic equipment.
And the reconnection state acquisition module is used for determining that the state of the first electronic equipment is a reconnection state when the connection record exists in the first electronic equipment, wherein the reconnection state is used for representing the reconnection operation of the first electronic equipment and the third electronic equipment after pairing is to be executed.
Referring to fig. 13, fig. 13 is a block diagram illustrating a broadcast message transmitting apparatus 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 below with respect to a 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 display module 420, wherein:
A received signal strength obtaining module 410, configured to obtain 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, where the target transmission power is determined by the first electronic device according to a state where the first electronic device is located, from at least two preset transmission powers, and the at least two preset transmission powers are different in size.
And the prompt information display module 420 is configured to display target information when the received signal strength is greater than a received signal strength threshold.
Further, the prompt message display module 420 includes: a prompt message display sub-module, wherein:
And the prompt information display sub-module 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 the preset equipment condition.
Further, the prompt message display submodule 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 the preset identity condition.
Further, the transmitting device 400 of the broadcast message further includes: prompt message interception module, wherein:
and the prompt information interception module is used for intercepting the target information when the received signal strength is not greater than the received signal strength threshold value.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 14, a block diagram of an electronic device 500 according to an embodiment of the present application 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 device capable of running an application program. The electronic device 500 of the present application may include one or more of the following components: a processor 510, a memory 520, and one or more application programs, wherein the one or more application programs may be stored in the memory 520 and configured to be executed by the one or more processors 510, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Wherein processor 510 may include one or more processing cores. The processor 510 utilizes various interfaces and lines to connect various portions of the overall electronic device 500, 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 in at least one of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 510 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 510 and may be implemented solely by a single communication chip.
Memory 520 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 520 may be used to store instructions, programs, code sets, or instruction sets. 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 the various method embodiments described below, etc. The storage data area may also store data created by the electronic device 500 in use (e.g., phonebook, audiovisual data, chat log data), and the like.
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 which can be called by a processor to perform 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. Optionally, computer readable storage medium 600 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 600 has storage space for program code 610 to perform any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 610 may be compressed, for example, in a suitable form.
In summary, according to the method, the device, the electronic device and the storage medium for transmitting the broadcast message provided by the embodiment of the application, 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, so that 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, 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 determine to display the prompt information, the display of the prompt information is better controlled, the disturbance to the user is avoided, and the user experience is improved.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (8)

1. A method of transmitting a broadcast message, for use with a first electronic device, the method comprising:
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, the state of the first electronic equipment comprises a pairing state and a reconnection state, the target transmitting power determined by the first electronic equipment in the pairing state is larger than the target transmitting power determined by the first electronic equipment in the reconnection state, the pairing state is used for representing pairing operation to be executed between the first electronic equipment and the second electronic equipment, and the reconnection state is used for representing reconnection operation to be executed between the first electronic equipment and the third electronic equipment after pairing;
And transmitting a broadcast message based on the target transmission power to instruct a second electronic device receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be greater than a received signal strength threshold.
2. The method of claim 1, wherein before determining the target transmit power from the at least two preset transmit powers according to the state of the first electronic device, further comprises:
When the first electronic equipment does not have a connection record, determining that the state of the first electronic equipment is a pairing state, wherein the pairing state is used for representing pairing operation to be executed between the first electronic equipment and the second electronic equipment; or alternatively
When the first electronic equipment has a connection record, determining that the state of the first electronic equipment is a reconnection state, wherein the reconnection state is used for representing reconnection operation of the first electronic equipment and the third electronic equipment after pairing is to be executed.
3. The method of claim 1, wherein the first electronic device is a bluetooth headset, the bluetooth headset is accommodated in a charging device, and the determining the target transmission power from at least two preset transmission powers according to a state in which the first electronic device is located includes:
And 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.
4. A method of receiving a broadcast message, for use with a second electronic device, the method comprising:
The method comprises the steps that received signal strength of a broadcast message transmitted by a first electronic device is obtained, the broadcast message is transmitted by the first electronic device based on target transmission power, the target transmission power is determined by the first electronic device from at least two preset transmission powers according to states of the first electronic device, the at least two preset transmission powers are different, the states of the first electronic device comprise a pairing state and a reconnection state, the target transmission power determined by the first electronic device in the pairing state is larger than the target transmission power determined by the first electronic device in the reconnection state, the pairing state is used for representing pairing operation to be executed between the first electronic device and the second electronic device, and the reconnection state is used for representing reconnection operation to be executed between the first electronic device and a third electronic device after pairing;
And displaying target information when the received signal strength is greater than a received signal strength threshold.
5. A transmitting apparatus for broadcasting a message, 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 equipment, wherein the at least two preset transmission powers are different in size, the state of the first electronic equipment comprises a pairing state and a reconnection state, the target transmission power determined by the first electronic equipment in the pairing state is larger than the target transmission power determined by the first electronic equipment in the reconnection state, the pairing state is used for representing pairing operation to be performed between the first electronic equipment and the second electronic equipment, and the reconnection state is used for representing reconnection operation to be performed between the first electronic equipment and the third electronic equipment after pairing;
And the broadcast message transmitting module is used for transmitting a broadcast message based on the target transmitting power so as to instruct a second electronic device receiving the broadcast message to display target information when the received signal strength of the broadcast message is determined to be greater than a received signal strength threshold.
6. A receiving apparatus for a broadcast message, the apparatus being adapted for use with a second electronic device, the apparatus comprising:
A received signal strength obtaining module, configured to obtain a received signal strength of a broadcast message transmitted by a received 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 from at least two preset transmission powers according to a state where the first electronic device is located, the at least two preset transmission powers are different, the state where the first electronic device is located includes a pairing state and a reconnection state, the target transmission power determined by the first electronic device in the pairing state is greater than the target transmission power determined by the first electronic device in the reconnection state, and the pairing state is used to characterize a pairing operation to be performed between the first electronic device and the second electronic device, and the reconnection state is used to characterize a reconnection operation to be performed between the first electronic device and a third electronic device after pairing;
And the prompt information display module is used for displaying target information when the received signal strength is greater than a received signal strength threshold value.
7. 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 perform the method of any one of claims 1-3 or claim 4.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for performing the method according to any one of claims 1-3 or 4.
CN202111038917.7A 2021-09-06 2021-09-06 Broadcast message transmitting method and device, electronic equipment and storage medium Active CN115776644B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111038917.7A CN115776644B (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 CN115776644B (en) 2021-09-06 2021-09-06 Broadcast message transmitting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115776644A CN115776644A (en) 2023-03-10
CN115776644B true CN115776644B (en) 2024-07-12

Family

ID=85387421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111038917.7A Active CN115776644B (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) CN115776644B (en)
WO (1) WO2023030071A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860480A (en) * 2009-04-01 2010-10-13 奥迪康有限公司 The method of pair wireless devices
CN113286282A (en) * 2021-05-18 2021-08-20 Oppo广东移动通信有限公司 Prompting method, prompting device, electronic equipment, target equipment, connection system and medium
CN115604801A (en) * 2021-07-07 2023-01-13 Oppo广东移动通信有限公司(Cn) Prompting method, prompting device, target equipment, electronic equipment, connection system and medium

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7174130B2 (en) * 2001-09-12 2007-02-06 Agere Systems Inc. Security apparatus and method during BLUETOOTH pairing
KR101402804B1 (en) * 2007-12-04 2014-06-02 삼성전자주식회사 Terminal and method for bluetooth communication thereof
US9066327B2 (en) * 2013-06-21 2015-06-23 Bose Corporation Low energy wireless proximity pairing
CN104092823A (en) * 2014-07-09 2014-10-08 北京深思数盾科技有限公司 Information safety device and Bluetooth pairing method
CN106936825B (en) * 2017-03-10 2021-07-27 Oppo广东移动通信有限公司 Method and device for controlling broadcast transmission and mobile terminal
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
CN113382397B (en) * 2019-04-18 2023-12-08 华为技术有限公司 Bluetooth connection method, device and system
CN110267358B (en) * 2019-07-01 2021-03-23 张洋 System for establishing Bluetooth connection
CN112449328B (en) * 2019-08-30 2023-08-22 华为技术有限公司 Bluetooth searching method, system and related device
CN112333332B (en) * 2020-10-27 2021-05-28 维沃移动通信有限公司 Prompt message display method and device and electronic equipment
CN112821963B (en) * 2020-12-30 2022-07-22 恒玄科技(上海)股份有限公司 Method and device for reducing interference to loudspeaker and electronic equipment
CN113316082B (en) * 2021-05-26 2022-06-14 Oppo广东移动通信有限公司 Pairing method, pairing device, mobile terminal and storage medium
CN116320859A (en) * 2021-12-08 2023-06-23 Oppo广东移动通信有限公司 State control method and device of earphone device, earphone device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860480A (en) * 2009-04-01 2010-10-13 奥迪康有限公司 The method of pair wireless devices
CN113286282A (en) * 2021-05-18 2021-08-20 Oppo广东移动通信有限公司 Prompting method, prompting device, electronic equipment, target equipment, connection system and medium
CN115604801A (en) * 2021-07-07 2023-01-13 Oppo广东移动通信有限公司(Cn) Prompting method, prompting device, target equipment, electronic equipment, connection system and medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN113783994B (en) Prompt information display method and device, electronic equipment and storage medium
CN108845853B (en) Application program starting method and mobile terminal
CN110430562B (en) Bluetooth communication method and related device
CN113311414B (en) Distance detection method, device, electronic equipment and storage medium
CN106973330B (en) Screen live broadcasting method, device and system
CN108880631B (en) Information receiving and transmitting switching method and terminal
CN109151789B (en) Translation method, device and system and Bluetooth headset
CN111371705B (en) Download task execution method and electronic device
EP3843459A1 (en) Communication system switching method and terminal device
CN111277505A (en) Multi-terminal joint control method, device, equipment and storage medium based on local area network
CN110381200B (en) Screen-off control method and mobile terminal
CN113316222B (en) Data processing method, device, electronic equipment and storage medium
CN111615219B (en) PC5 link establishing method, equipment and system
CN113329391B (en) Prompt information display method and device, electronic equipment and storage medium
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN108540659B (en) Method, terminal and computer readable storage medium for reducing TDD noise influence
CN115776644B (en) Broadcast message transmitting method and device, electronic equipment and storage medium
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN108307048B (en) Message output method and device and mobile terminal
CN108307075B (en) Incoming call processing method and mobile terminal
CN111343591B (en) Session information processing method and electronic equipment
CN110266885B (en) Binding method of terminal and terminal
CN110224732B (en) Antenna switching method and terminal equipment
CN109992430B (en) Data transmission method, first terminal and second terminal
CN110621079B (en) Random access resource selection method and terminal equipment

Legal Events

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