Pop-up function control method and device, and computer readable storage medium
By recording and carrying the number of times the earphone case is opened in the earphone device, the problem of frequent pop-up windows caused by random addresses broadcast by Bluetooth is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GEER TECH CO LTD
- Filing Date
- 2021-12-29
- Publication Date
- 2026-04-17
AI Technical Summary
In existing technologies, Bluetooth broadcasting from headphone devices uses random addresses, causing frequent pop-up windows on mobile phones, which annoys users.
The headphone device records the number of times the case is opened and carries this count in the Bluetooth broadcast. When the user terminal does not match the count, a pop-up window is triggered to avoid frequent pop-ups.
By recording and carrying the case opening count in the headphone device, the frequent pop-up issue caused by random addresses broadcast via Bluetooth was resolved, thus improving the user experience.
Smart Images

Figure CN114401466B_ABST
Abstract
Description
[0001] Counting field
[0002] This invention relates to the field of headphone counting, and more particularly to a pop-up window function control method, device, and computer-readable storage medium.
[0003] Background count
[0004] Most current mobile phone manufacturers' earphones support pop-up windows and quick connection functions. When the earphones enter pairing mode, they periodically send BLE broadcasts. Nearby phones of the same model hear these broadcasts and display a pop-up window, allowing users to quickly connect without searching for the device in the Bluetooth list. However, after the user closes the pop-up by clicking the cancel button, the BLE address changes with each subsequent broadcast, triggering another pop-up on the phone. This requires the user to repeatedly click the close button, causing inconvenience. Summary of the Invention
[0005] The main objective of this invention is to provide a pop-up function control method, device, and computer-readable storage medium, aiming to solve the counting problem of frequent pop-ups caused by the use of random addresses in Bluetooth broadcasts when the mobile phone receives periodically sent Bluetooth broadcasts from the headset, which annoys the user.
[0006] To achieve the above objectives, the present invention provides a pop-up window function control method, which is applied to a headphone device, and the method includes the following steps:
[0007] When an opening event of the headphone case is detected, the opening count recorded in the headphone device is updated;
[0008] When in Bluetooth pairing mode, the currently recorded case opening count in the headphone device is carried and sent in the Bluetooth broadcast. When the user terminal receives the Bluetooth broadcast sent by the headphone device, it will compare the case opening count extracted from the current Bluetooth broadcast with the case opening count recorded based on the historical Bluetooth broadcast. If they are inconsistent, the pop-up function in the user terminal will be triggered.
[0009] Optionally, the step of updating the open case count recorded in the headphone device when an open case event is detected includes:
[0010] When an opening event of the headphone case is detected, increment the opening count currently recorded in the headphone device by 1;
[0011] Check whether the count of open lids after incrementing by 1 exceeds the maximum value in the preset count range;
[0012] If the count is greater than the maximum value, the count of opening the case recorded in the headphone device will be reset to the minimum value in the count range.
[0013] Optionally, before the step of incrementing the currently recorded opening count in the headphone device by 1 when an opening event of the headphone case is detected, the method further includes:
[0014] The device serial number of the headphone device is moduloed according to a preset number to obtain the modulo result;
[0015] The numerical range numbered as the modulus result is set as the counting range. The earphone device sets the preset number of different numerical ranges. When the user terminal receives a Bluetooth broadcast sent by the earphone device, it compares the opening count extracted from this Bluetooth broadcast with the opening count in the same counting range based on historical Bluetooth broadcast records. If the comparison is inconsistent, a pop-up function is triggered in the user terminal.
[0016] Optionally, the method further includes:
[0017] When the opening event of the headphone case of the headphone device is detected, the Bluetooth pairing mode is activated, and Bluetooth broadcasts are periodically sent in the Bluetooth pairing mode;
[0018] When the closing event of the headphone case is detected, the Bluetooth pairing mode is turned off or the current Bluetooth connection is disconnected.
[0019] To achieve the above objectives, the present invention also provides a pop-up window function control method, which is applied to a user terminal and includes the following steps:
[0020] When the opening count is extracted from the received Bluetooth broadcast, the opening count is compared with the opening count recorded based on the historical Bluetooth broadcast. The opening count is updated and recorded by the headphone device when it detects the opening event of the headphone case and is carried in the Bluetooth broadcast sent when in Bluetooth pairing mode.
[0021] If the comparison is inconsistent, a pop-up window function in the user terminal will be triggered.
[0022] Optionally, after comparing the opening count with the opening count based on historical Bluetooth broadcast records, the method further includes:
[0023] If the comparison matches, the pop-up function in the user terminal will not be triggered, or the pop-up will be automatically closed after the pop-up function in the user terminal is triggered, or the pop-up will be hidden after the pop-up function in the user terminal is triggered.
[0024] Optionally, the step of comparing the cap opening count with the cap opening count recorded in historical Bluetooth broadcasts when the cap opening count is extracted from the received Bluetooth broadcast includes:
[0025] When the open cover count is extracted from the received Bluetooth broadcast, the target count range of the open cover count is determined.
[0026] The opening count is compared with the opening count within the target counting range based on historical Bluetooth broadcast records, wherein the opening count recorded in different headphone devices falls within different counting ranges.
[0027] Optionally, after the step of triggering the pop-up function in the user terminal if the comparison is inconsistent, the method further includes:
[0028] When a pairing operation triggered by a pop-up window is received, a connection is established with the headset device that sent the Bluetooth broadcast based on the random address carried in the received Bluetooth broadcast.
[0029] To achieve the above objectives, the present invention also provides a pop-up window function control device, the device being deployed in an earphone device, the device comprising:
[0030] The update module is used to update the open count recorded in the headphone device when an open event of the headphone case of the headphone device is detected.
[0031] The broadcast module is used to send the currently recorded case opening count in the Bluetooth broadcast when in Bluetooth pairing mode. When the user terminal receives the Bluetooth broadcast sent by the headphone device, it will compare the case opening count extracted from the current Bluetooth broadcast with the case opening count recorded based on the historical Bluetooth broadcast. If they are inconsistent, the user terminal will trigger a pop-up function.
[0032] To achieve the above objectives, the present invention also provides a pop-up window function control device, the device being deployed on a user terminal, the device comprising:
[0033] The comparison module is used to compare the opening count with the opening count based on historical Bluetooth broadcast records when the opening count is extracted from the received Bluetooth broadcast. The opening count is updated and recorded by the headphone device when it detects the opening event of the headphone case and is carried in the Bluetooth broadcast sent when in Bluetooth pairing mode.
[0034] The pop-up module is used to trigger the pop-up function in the user terminal if the comparison is inconsistent.
[0035] To achieve the above objectives, the present invention also provides a pop-up function control device, the pop-up function control device comprising: a memory, a processor, and a pop-up function control program stored in the memory and executable on the processor, wherein the pop-up function control program, when executed by the processor, implements the steps of the pop-up function control method as described above.
[0036] Furthermore, to achieve the above objectives, the present invention also proposes a computer-readable storage medium storing a pop-up function control program, wherein the pop-up function control program, when executed by a processor, implements the steps of the pop-up function control method as described above.
[0037] In this invention, when the headphone device detects an opening event of the headphone case, it updates the opening count recorded in the headphone device. When in Bluetooth pairing mode, the currently recorded opening count is sent in the Bluetooth broadcast. When the user terminal receives the Bluetooth broadcast from the headphone device, it compares the opening count extracted from the current Bluetooth broadcast with the opening count recorded in historical Bluetooth broadcasts. If they are inconsistent, a pop-up function is triggered on the user terminal. By adding an opening count to the headphone device, while still using a random address in the Bluetooth broadcast, the opening count is carried in the Bluetooth broadcast. The user terminal is set to display a pop-up when the opening count is inconsistent with the previously recorded count. This ensures that the first Bluetooth broadcast sent after the headphone case is opened triggers a pop-up on the user terminal, avoiding frequent pop-ups caused by the headphone device periodically sending Bluetooth broadcasts, which would require the user to repeatedly click the close button, thus improving the user experience. Attached Figure Description
[0038] Figure 1 This is a flowchart illustrating the first embodiment of the pop-up window function control method of the present invention;
[0039] Figure 2 This is a flowchart illustrating the third embodiment of the pop-up window function control method of the present invention.
[0040] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0041] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0042] Reference Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the pop-up window function control method of the present invention.
[0043] This invention provides an embodiment of a pop-up window function control method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order. In this embodiment, the pop-up window function control method is applied to a headphone device. The headphone device can be a wireless headphone equipped with a Bluetooth module, which can communicate with a user terminal via Bluetooth. The user terminal can be a smartphone, personal computer, server, or other device; no limitation is imposed in this embodiment. In this embodiment, the pop-up window function control method includes:
[0044] Step S10: When an opening event of the headphone case of the headphone device is detected, update the opening count recorded in the headphone device.
[0045] In this embodiment, to address the counting problem that causes frequent pop-ups and annoys users when the mobile phone receives periodically sent Bluetooth broadcasts from the headset due to the random address used in the Bluetooth broadcasts, a solution is proposed whereby the headset device carries an opening count in the Bluetooth broadcast, and the user terminal uses the opening count to determine whether a pop-up will occur.
[0046] Specifically, when the earphone device is placed in the earphone case, it can exchange data with the earphone case. The earphone case can notify the earphone device when it detects an opening event. The earphone case can be equipped with a sensor for detecting the opening event, such as a Hall sensor, but this embodiment is not limited to this specific sensor.
[0047] The headphone device records a case opening count, which can be initialized with a default value, such as 1, without restriction. Whenever the headphone device detects a case opening event, it updates the recorded case opening count. In one embodiment, the headphone device updates the case opening count in a way that makes the updated count different from the previous count; this is not limited in this embodiment. For example, it could add a value, such as 1, to the currently recorded case opening count.
[0048] When no opening event is detected, the opening count recorded in the headphone device remains unchanged. That is, after each opening update, the opening count recorded in the headphone device remains unchanged during the opening and closing of the headphone case lid, until the next time the lid is opened.
[0049] Step S20: When in Bluetooth pairing mode, the currently recorded case opening count in the headphone device is carried in the Bluetooth broadcast and sent. When the user terminal receives the Bluetooth broadcast sent by the headphone device, if the case opening count extracted from the current Bluetooth broadcast is inconsistent with the case opening count recorded based on the historical Bluetooth broadcast, a pop-up function is triggered in the user terminal.
[0050] When the headphone device is in Bluetooth pairing mode, it periodically sends Bluetooth broadcasts, which include a random address to ensure system security. In this embodiment, the headphone device also includes its current case opening count in the Bluetooth broadcast, meaning the user terminal receiving the broadcast can extract the case opening count from it.
[0051] After receiving a Bluetooth broadcast, the user terminal extracts the lid opening count from the broadcast and compares it with the lid opening count recorded in historical Bluetooth broadcasts. If they do not match, a pop-up function is triggered on the user terminal. This pop-up function can display a button on the user terminal for quickly establishing a Bluetooth connection, allowing the user to trigger the button. The user terminal can record the lid opening count extracted from the Bluetooth broadcast as a basis for comparison. In one embodiment, if the lid opening count in the currently received Bluetooth broadcast is inconsistent with the previously recorded count, the currently extracted count can be used to overwrite the previously recorded count; if they match, no changes are made.
[0052] In one embodiment, when the user terminal receives a Bluetooth broadcast for the first time, it can be directly determined that the comparison is inconsistent, thereby triggering the pop-up function; or, an initial count can be set in the user terminal, and when the user terminal receives a Bluetooth broadcast, it compares the count in the Bluetooth broadcast with the initial count. In this case, the initial count can be different from the default value set when the case opening count is initialized in the headphone device.
[0053] It is understandable that if the earphones enter Bluetooth pairing mode after the charging case is opened, and periodically broadcast Bluetooth messages in pairing mode, the opening count carried in the Bluetooth broadcasts sent by the earphones will remain the same as long as the earphones are not placed back into the charging case and the case is not reopened. Only after the earphones are placed back into the charging case and the case is reopened will the opening count change. At this time, because the opening count in the Bluetooth broadcast received by the user terminal is different from before, a pop-up window will appear. Compared with the existing solution where the user terminal will pop up a message as soon as it receives a Bluetooth broadcast, the solution in this embodiment, which pops up a message when the count is inconsistent, will not cause frequent pop-ups on the user terminal due to the earphones periodically sending Bluetooth broadcasts every time the charging case is opened.
[0054] Furthermore, when the user terminal extracts the opening count from the Bluetooth broadcast and compares it with the opening count based on the historical Bluetooth broadcast records, it can either not trigger the pop-up function, or trigger the pop-up function and hide the pop-up, or trigger the pop-up function and automatically close the pop-up. In this embodiment, there is no specific limitation. That is, as long as the user does not need to close the pop-up frequently, it can avoid the situation where the user terminal receives the Bluetooth broadcast periodically sent by the headphone device and the pop-up frequently pops up, requiring the user to keep closing the pop-up.
[0055] Furthermore, in one embodiment, the method further includes:
[0056] Step S30: When the opening event of the headphone case of the headphone device is detected, the Bluetooth pairing mode is turned on, and Bluetooth broadcasts are periodically sent in the Bluetooth pairing mode;
[0057] Step S40: When a closing event of the headphone case of the headphone device is detected, the Bluetooth pairing mode is turned off or the current Bluetooth connection is disconnected.
[0058] The earphones can activate Bluetooth pairing mode each time the charging case is opened, and deactivate it each time the charging case is closed. If Bluetooth pairing mode is already active, it will deactivate upon detecting the charging case being closed; otherwise, it will deactivate the existing Bluetooth connection. Specifically, when the earphones are placed inside the charging case, if the charging case detects a closing event, it can notify the earphones, causing them to deactivate Bluetooth pairing mode.
[0059] In one application scenario, when a user needs to use the headphone device, they open the headphone case lid. The headphone case detects this opening event and notifies the headphone device. The headphone device updates its recorded lid opening count, activates Bluetooth pairing mode, and begins periodically sending Bluetooth broadcasts, including the updated lid opening count. When the user terminal receives this first Bluetooth broadcast from the headphone device after activating Bluetooth pairing mode, it compares the lid opening count extracted from the broadcast with the previously recorded count. Since the headphone device has updated its lid opening count, the comparison result is inconsistent, triggering a pop-up window on the user terminal. The unlock count extracted this time is recorded; after the user terminal receives the second and subsequent Bluetooth broadcasts sent by the headphone device after the Bluetooth pairing mode is enabled, the unlock count extracted from the Bluetooth broadcast is compared with the unlock count recorded when the first Bluetooth broadcast is received. If the results are consistent, the user terminal will not display a pop-up, hide the pop-up, or automatically close the pop-up, so that the user does not need to manually close the pop-up and avoids causing inconvenience to the user; after the user finishes using the headphone device, puts it into the headphone case and closes the lid, the headphone case detects the lid closing event and notifies the headphone device, which then closes the pairing mode or disconnects the current Bluetooth connection.
[0060] In this embodiment, when the headphone device detects an opening event of the headphone case, it updates the opening count recorded in the headphone device. When in Bluetooth pairing mode, the currently recorded opening count is sent in the Bluetooth broadcast. When the user terminal receives the Bluetooth broadcast from the headphone device, it compares the opening count extracted from the current Bluetooth broadcast with the opening count recorded in the historical Bluetooth broadcast. If they are inconsistent, a pop-up function is triggered on the user terminal. By adding an opening count of the headphone case to the headphone device, while the Bluetooth broadcast still uses a random address, the opening count is carried in the Bluetooth broadcast. The user terminal is set to pop up when the opening count is inconsistent with the previously recorded opening count. This ensures that the first Bluetooth broadcast sent after the headphone case is opened will trigger a pop-up on the user terminal, avoiding the situation where the headphone device periodically sends Bluetooth broadcasts, causing frequent pop-ups on the user terminal and requiring the user to repeatedly click the close button, thus improving the user experience of using the headphone device.
[0061] Furthermore, based on the first embodiment described above, a second embodiment of the pop-up window function control method of the present invention is proposed. In this embodiment, step S10 includes:
[0062] Step S101: When an opening event of the headphone case of the headphone device is detected, increment the opening count currently recorded in the headphone device by 1;
[0063] Step S102: Detect whether the count of the opened lid after incrementing by 1 exceeds the maximum value in the preset count range;
[0064] In this embodiment, when the headphone device detects an opening event of the headphone case, it can update the opening count by adding 1 to the currently recorded opening count.
[0065] The headphone device allows you to set a counting range, meaning the count when the case is opened must fall within that range. The counting range can be set as needed, for example, to 1-255, where 1 is the minimum value in the counting range and 255 is the maximum value.
[0066] Specifically, after incrementing the cover opening count by 1, the headphone device can detect whether the updated cover opening count exceeds the maximum value within the counting range.
[0067] Step S103: If the count is greater than the maximum value, then reset the count of opening the case recorded in the headphone device to the minimum value in the count range.
[0068] If the headphone device detects that the unlock count after incrementing by 1 exceeds the maximum value in the counting range, it can reset the unlock count recorded by the headphone device to the minimum value in the counting range. For example, when an unlock event is detected, the currently recorded unlock count is 255. After incrementing by 1, it becomes 256. Since 256 is greater than 255, the headphone device resets the unlock count to 1, and increments it by 1 the next time the unlock event occurs.
[0069] Furthermore, in one embodiment, the method further includes:
[0070] Step S50: Take the device serial number of the headphone device by a preset number to obtain the modulo result;
[0071] In some application scenarios, multiple headphone devices may simultaneously send Bluetooth broadcasts to the user terminal. If the user terminal records a single unlock count, the unlock counts in the Bluetooth broadcasts from multiple headphone devices will be different, resulting in inconsistent detection results for the user terminal each time. Although this situation is unlikely, in this embodiment, to avoid frequent pop-up windows on the user terminal even in this scenario, different headphone devices are proposed to use different counting ranges. The user terminal records unlock counts for different counting ranges separately, thus preventing inconsistent detection results when multiple headphone devices broadcast Bluetooth to the user terminal.
[0072] Specifically, in one embodiment, the headphone device can obtain its own device serial number and take a modulo of the device serial number with a preset quantity to obtain a modulo result. The preset quantity can be set in advance as needed; this preset quantity is a number of multiple numerical ranges set in the headphone device. That is, by taking the device serial number modulo the preset quantity, one of the multiple numerical ranges is selected as the counting range for the device.
[0073] Step S60: Set the numerical range numbered as the modulus result as the counting range. The earphone device sets the preset number of different numerical ranges. When the user terminal receives a Bluetooth broadcast sent by the earphone device, it compares the opening count extracted from the Bluetooth broadcast with the opening count in the same counting range based on historical Bluetooth broadcast records. If the comparison is inconsistent, the pop-up function in the user terminal is triggered.
[0074] The headphone device sets a preset number of different numerical ranges and numbers them. For example, if the preset number is 10, then the headphone device sets 10 different numerical ranges, numbered 0-9, with no overlap between the ranges. The headphone device sets the numerical range numbered according to the modulo result as the counting range. The purpose of this is to reduce the probability that different headphone devices have the same counting range. For example, when the preset number is 10, multiple headphone devices produced may have 10 different counting ranges.
[0075] It is understandable that in other implementations, other methods may be used to make the counting ranges of each headphone device different.
[0076] The user terminal records the lid opening count separately for different counting ranges. That is, after receiving a Bluetooth broadcast and retrieving the lid opening count, the user terminal determines the counting range within which the count falls. It then compares this count with lid opening counts within the same range recorded in historical Bluetooth broadcasts. If the comparison is inconsistent, a pop-up window is triggered. If the preset quantity is 10, the user terminal records lid opening counts corresponding to 10 different counting ranges, and these 10 counts are updated separately.
[0077] Furthermore, to avoid frequent pop-up windows on the user terminal even when multiple headphone devices send Bluetooth broadcasts to the user terminal, in another embodiment, when the user terminal receives the Bluetooth broadcast and extracts the case opening count, if the detected case opening count is different from the previously recorded case opening count, a pop-up window function is triggered. It further checks whether the extracted case opening count minus the previously recorded case opening count is a preset value. This preset value is the value added to the currently recorded case opening count each time the headphone device updates the case opening count. If the extracted case opening count minus the previously recorded case opening count is the preset value, it is not recorded separately; if it is not the preset value, it is... The lid opening count extracted this time is recorded separately. That is, assuming that one lid opening count was recorded before, there will be two lid opening counts after this separate recording. The next time a Bluetooth broadcast is received and the lid opening count is extracted, it will be compared with the multiple lid opening counts recorded previously. The pop-up function will only be triggered if they are all inconsistent. When checking whether the lid opening count extracted this time minus the lid opening count recorded previously is a preset value, as long as the result of the extraction of the lid opening count minus one of the previously recorded lid opening counts is a preset value, it will not be recorded separately. Instead, the lid opening count extracted this time will overwrite the lid opening count that is smaller than the preset value.
[0078] Furthermore, based on the first and / or second embodiments described above, a third embodiment of the pop-up window function control method of the present invention is proposed. (Refer to...) Figure 2 , Figure 2 This is a flowchart illustrating a third embodiment of the pop-up window function control method of the present invention. In this embodiment, the method is applied to a user terminal, and the method includes the following steps:
[0079] Step A10: When the opening count is extracted from the received Bluetooth broadcast, the opening count is compared with the opening count recorded based on the historical Bluetooth broadcast. The opening count is updated and recorded by the headphone device when it detects the opening event of the headphone case and is carried in the Bluetooth broadcast sent when in Bluetooth pairing mode.
[0080] Step A20: If the comparison is inconsistent, the pop-up function in the user terminal is triggered.
[0081] After receiving a Bluetooth broadcast, the user terminal can detect whether the broadcast contains a case opening count. Rules for the headset to carry the case opening count in the Bluetooth broadcast and rules for the user terminal to extract the case opening count from the broadcast can be predefined. The headset and user terminal then carry and extract the case opening count according to these rules.
[0082] If a lid opening count is detected in the Bluetooth broadcast, this count can be extracted and compared with the lid opening count recorded in historical Bluetooth broadcasts. If the comparison is inconsistent, a pop-up function is triggered on the user terminal. Specific implementation details can be found in the first or second embodiment described above, and will not be repeated here.
[0083] Furthermore, in one embodiment, if the user terminal does not extract the case opening count from the Bluetooth broadcast, then the Bluetooth broadcast may not have been sent by the headphone device. In this case, the user terminal may or may not trigger the pop-up function, which can be set according to needs.
[0084] Furthermore, in one embodiment, after step A20, the method further includes:
[0085] Step A30: When a pairing operation triggered by a pop-up window is received, a connection is established with the headphone device that sent the Bluetooth broadcast based on the random address carried in the received Bluetooth broadcast.
[0086] When the user terminal triggers the pop-up function, a pop-up window will be displayed, showing a button for quickly establishing a Bluetooth connection. The user can click the button to trigger the pairing operation. When the user terminal detects the triggered pairing operation, it will establish a Bluetooth connection with the headphone device that sent the Bluetooth broadcast based on the random address carried in the received Bluetooth broadcast. This eliminates the need for the user to search for the device in the Bluetooth list, speeding up the establishment of the Bluetooth connection and improving the convenience of user operation.
[0087] Furthermore, in one embodiment, after step A10, the method further includes:
[0088] Step A40: If the comparison matches, the pop-up function in the user terminal is not triggered, or the pop-up is automatically closed after the pop-up function in the user terminal is triggered, or the pop-up is hidden after the pop-up function in the user terminal is triggered.
[0089] When the user terminal extracts the opening count from the Bluetooth broadcast and compares it with the opening count based on the historical Bluetooth broadcast records, it can either not trigger the pop-up function, or hide the pop-up after triggering the pop-up function, or automatically close the pop-up after triggering the pop-up function, to avoid the situation where the user terminal receives frequent pop-ups due to the Bluetooth broadcasts periodically sent by the headphone device and needs the user to keep closing the pop-ups.
[0090] Further, in one embodiment, step A10 includes:
[0091] Step A101: When the cover opening count is extracted from the received Bluetooth broadcast, determine the target counting range in which the cover opening count is located;
[0092] Step A102: Compare the opening count with the opening count within the target counting range based on historical Bluetooth broadcast records, wherein the opening count recorded in different headphone devices falls within different counting ranges.
[0093] The specific implementation methods of steps A101 and A102 can be referred to the specific implementation methods of steps S50 and S60 in the second embodiment above, and will not be repeated here. Among them, determining the target counting range in which the lid-opening count is located means determining the counting range in which the lid-opening count is located. For ease of distinction, the counting range in which the lid-opening count is located is called the target counting range.
[0094] Furthermore, this embodiment of the invention also proposes a pop-up window function control device, which is deployed in an earphone device, and the device includes:
[0095] The update module is used to update the open count recorded in the headphone device when an open event of the headphone case of the headphone device is detected.
[0096] The broadcast module is used to send the currently recorded case opening count in the Bluetooth broadcast when in Bluetooth pairing mode. When the user terminal receives the Bluetooth broadcast sent by the headphone device, it will compare the case opening count extracted from the current Bluetooth broadcast with the case opening count recorded based on the historical Bluetooth broadcast. If they are inconsistent, the user terminal will trigger a pop-up function.
[0097] Furthermore, the update module is also used for:
[0098] When an opening event of the headphone case is detected, increment the opening count currently recorded in the headphone device by 1;
[0099] Check whether the count of open lids after incrementing by 1 exceeds the maximum value in the preset count range;
[0100] If the count is greater than the maximum value, the count of opening the case recorded in the headphone device will be reset to the minimum value in the count range.
[0101] Furthermore, the device also includes:
[0102] The calculation module is used to take the device serial number of the headphone device modulo a preset number to obtain the modulo result;
[0103] The determination module is used to set the numerical range numbered as the modulus result as the counting range, wherein the earphone device sets the preset number of different numerical ranges, and when the user terminal receives the Bluetooth broadcast sent by the earphone device, it compares the opening count extracted from the current Bluetooth broadcast with the opening count in the same counting range based on the historical Bluetooth broadcast records. If the comparison is inconsistent, the pop-up function in the user terminal is triggered.
[0104] Furthermore, the device also includes:
[0105] The activation module is used to activate the Bluetooth pairing mode when the opening event of the headphone case of the headphone device is detected, and to periodically send Bluetooth broadcasts in the Bluetooth pairing mode;
[0106] The closing module is used to turn off the Bluetooth pairing mode or disconnect the current Bluetooth connection when the closing event of the headphone case of the headphone device is detected.
[0107] To achieve the above objectives, the present invention also provides a pop-up window function control device, the device being deployed on a user terminal, the device comprising:
[0108] The comparison module is used to compare the opening count with the opening count based on historical Bluetooth broadcast records when the opening count is extracted from the received Bluetooth broadcast. The opening count is updated and recorded by the headphone device when it detects the opening event of the headphone case and is carried in the Bluetooth broadcast sent when in Bluetooth pairing mode.
[0109] The pop-up module is used to trigger the pop-up function in the user terminal if the comparison is inconsistent.
[0110] Furthermore, the pop-up module is also used for:
[0111] If the comparison matches, the pop-up function in the user terminal will not be triggered, or the pop-up will be automatically closed after the pop-up function in the user terminal is triggered, or the pop-up will be hidden after the pop-up function in the user terminal is triggered.
[0112] Furthermore, the comparison module is also used for:
[0113] When the open cover count is extracted from the received Bluetooth broadcast, the target count range of the open cover count is determined.
[0114] The opening count is compared with the opening count within the target counting range based on historical Bluetooth broadcast records, wherein the opening count recorded in different headphone devices falls within different counting ranges.
[0115] Furthermore, the device also includes:
[0116] The connection module is used to establish a connection with the headphone device that sent the Bluetooth broadcast based on the random address carried in the received Bluetooth broadcast when a pairing operation triggered by a pop-up window is received.
[0117] The extended content of the specific implementation of the pop-up function control device of the present invention is basically the same as the various embodiments of the pop-up function control method described above, and will not be repeated here.
[0118] In one embodiment, the pop-up function control device of the present invention can be an earphone device, which may include a structural housing, a communication module, a main control module, a speaker, a microphone, a memory, etc. The main control module may include a microprocessor, an audio decoding unit, a power supply and power management unit, sensors required by the system, and other active or passive components (which can be replaced, removed, or added according to actual functions) to realize the wireless audio reception and playback functions. The earphone device can establish a communication connection with the user terminal through the communication module. The earphone device's memory may store a pop-up function control program, and the microprocessor can be used to call the pop-up function control program stored in the memory and perform the following operations:
[0119] When an opening event of the headphone case is detected, the opening count recorded in the headphone device is updated;
[0120] When in Bluetooth pairing mode, the currently recorded case opening count in the headphone device is carried and sent in the Bluetooth broadcast. When the user terminal receives the Bluetooth broadcast sent by the headphone device, it will compare the case opening count extracted from the current Bluetooth broadcast with the case opening count recorded based on the historical Bluetooth broadcast. If they are inconsistent, the pop-up function in the user terminal will be triggered.
[0121] Furthermore, the operation of updating the count of open lids recorded in the headphone device when an open lid event of the headphone device's charging case is detected includes:
[0122] When an opening event of the headphone case is detected, increment the opening count currently recorded in the headphone device by 1;
[0123] Check whether the count of open lids after incrementing by 1 exceeds the maximum value in the preset count range;
[0124] If the count is greater than the maximum value, the count of opening the case recorded in the headphone device will be reset to the minimum value in the count range.
[0125] Furthermore, before incrementing the currently recorded count of open cases in the headphone device by 1 when an open case event is detected, the microprocessor can also call a pop-up function control program stored in memory to perform the following operations:
[0126] The device serial number of the headphone device is moduloed according to a preset number to obtain the modulo result;
[0127] The numerical range numbered as the modulus result is set as the counting range. The earphone device sets the preset number of different numerical ranges. When the user terminal receives a Bluetooth broadcast sent by the earphone device, it compares the opening count extracted from this Bluetooth broadcast with the opening count in the same counting range based on historical Bluetooth broadcast records. If the comparison is inconsistent, a pop-up function is triggered in the user terminal.
[0128] Furthermore, the microprocessor can also be used to call the pop-up function control program stored in memory to perform the following operations:
[0129] When the opening event of the headphone case of the headphone device is detected, the Bluetooth pairing mode is activated, and Bluetooth broadcasts are periodically sent in the Bluetooth pairing mode;
[0130] When the closing event of the headphone case is detected, the Bluetooth pairing mode is turned off or the current Bluetooth connection is disconnected.
[0131] In one embodiment, the pop-up function control device of the present invention can be a user terminal, which can be a smartphone, personal computer, server, or other similar device, without specific limitations. In this embodiment, the pop-up function control device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; a communication bus 1002; and a communication module 1006. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard. Optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM or a stable, non-volatile memory, such as a disk storage device. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0132] The memory 1005, serving as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a pop-up function control program. The operating system is a program that manages and controls the device's hardware and software resources, supporting the operation of the pop-up function control program and other software or programs. The user interface 1003 is primarily used for data communication with the client; the network interface 1004 is primarily used for establishing a communication connection with the server. The pop-up function control device can establish a communication connection with the headphone device through the communication module 1006. The processor 1001 can be used to call the pop-up function control program stored in the memory 1005 and perform the following operations:
[0133] When the opening count is extracted from the received Bluetooth broadcast, the opening count is compared with the opening count recorded based on the historical Bluetooth broadcast. The opening count is updated and recorded by the headphone device when it detects the opening event of the headphone case and is carried in the Bluetooth broadcast sent when in Bluetooth pairing mode.
[0134] If the comparison is inconsistent, a pop-up window function in the user terminal will be triggered.
[0135] Furthermore, after comparing the opening count with the opening count based on historical Bluetooth broadcast records, the processor 1001 can also call the pop-up function control program stored in the memory 1005 to perform the following operations:
[0136] If the comparison matches, the pop-up function in the user terminal will not be triggered, or the pop-up will be automatically closed after the pop-up function in the user terminal is triggered, or the pop-up will be hidden after the pop-up function in the user terminal is triggered.
[0137] Furthermore, the operation of comparing the cap opening count with the cap opening count recorded in historical Bluetooth broadcasts when the cap opening count is extracted from the received Bluetooth broadcast includes:
[0138] When the open cover count is extracted from the received Bluetooth broadcast, the target count range of the open cover count is determined.
[0139] The opening count is compared with the opening count within the target counting range based on historical Bluetooth broadcast records, wherein the opening count recorded in different headphone devices falls within different counting ranges.
[0140] Furthermore, after triggering the pop-up function in the user terminal if the comparison is inconsistent, the processor 1001 can also call the pop-up function control program stored in the memory 1005 to perform the following operations:
[0141] When a pairing operation triggered by a pop-up window is received, a connection is established with the headset device that sent the Bluetooth broadcast based on the random address carried in the received Bluetooth broadcast.
[0142] Furthermore, this embodiment of the invention also proposes a computer-readable storage medium storing a pop-up function control program, which, when executed by a processor, implements the steps of the pop-up function control method as described above.
[0143] The various embodiments of the pop-up function control device and computer-readable storage medium of the present invention can be referred to the various embodiments of the pop-up function control method of the present invention, and will not be repeated here.
[0144] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0145] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0146] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on this understanding, the counting scheme of the present invention, in essence, or the part that contributes to existing counting, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0147] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention’s specification and drawings, or direct or indirect applications in other related counting fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A method for controlling pop-up window functionality, characterized in that, The method is applied to an earphone device, and the method includes the following steps: When an opening event of the headphone case of the headphone device is detected, the device serial number of the headphone device is moduloed according to a preset number to obtain the modulo result; The range of values numbered as the modulus result is set as the counting range, wherein the earphone device is configured with the preset number of different value ranges; When it is detected that the headphone device is put into the headphone case and the case is reopened, add 1 to the currently recorded case opening count in the headphone device; Check whether the count of open lids after incrementing by 1 exceeds the maximum value in the preset count range; If the count is greater than the maximum value, the count of opening the case recorded in the headphone device will be reset to the minimum value in the count range. When in Bluetooth pairing mode, the currently recorded case opening count in the earphone device is carried and sent in the Bluetooth broadcast. When the user terminal receives the Bluetooth broadcast sent by the earphone device, it determines the target counting range of the case opening count and compares the case opening count with the case opening counts within the target counting range based on historical Bluetooth broadcast records. If the comparison is inconsistent, a pop-up function in the user terminal is triggered; if the comparison is consistent, the pop-up function in the user terminal is not triggered, or the pop-up function is triggered and then automatically closed, or the pop-up function is triggered and then hidden. The count range for opening the case varies across different headphone devices.
2. The pop-up window function control method as described in claim 1, characterized in that, The method further includes: When the opening event of the headphone case of the headphone device is detected, the Bluetooth pairing mode is activated, and Bluetooth broadcasts are periodically sent in the Bluetooth pairing mode; When the closing event of the headphone case is detected, the Bluetooth pairing mode is turned off or the current Bluetooth connection is disconnected.
3. A method for controlling pop-up window functionality, characterized in that, The method is applied to a user terminal, and the method includes the following steps: When the open cover count is extracted from the received Bluetooth broadcast, the target count range of the open cover count is determined. The opening count is compared with the opening count within the target counting range based on historical Bluetooth broadcast records. The opening count recorded in different headphone devices is in a different counting range. The counting range is the numerical range corresponding to the modulo result obtained by taking the device serial number of the headphone device by a preset number. The opening count is updated and recorded by the headphone device when it detects that the headphone device is put into the headphone case and the case is reopened, and is carried in the Bluetooth broadcast sent when in Bluetooth pairing mode. If the comparison is inconsistent, a pop-up function in the user terminal will be triggered; If the comparison matches, the pop-up function in the user terminal will not be triggered, or the pop-up will be automatically closed after the pop-up function in the user terminal is triggered, or the pop-up will be hidden after the pop-up function in the user terminal is triggered.
4. The pop-up window function control method as described in claim 3, characterized in that, After the step of triggering the pop-up function in the user terminal if the comparison is inconsistent, the method further includes: When a pairing operation triggered by a pop-up window is received, a connection is established with the headset device that sent the Bluetooth broadcast based on the random address carried in the received Bluetooth broadcast.
5. A pop-up window function control device, characterized in that, The pop-up function control device includes: a memory, a processor, and a pop-up function control program stored in the memory and executable on the processor. When the pop-up function control program is executed by the processor, it implements the steps of the pop-up function control method as described in any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a pop-up function control program, which, when executed by a processor, implements the steps of the pop-up function control method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Prompting method, electronic equipment, Bluetooth headset and computer storage medium
CN113691939A