Power bank control method and system, storage medium and intelligent terminal
By using a historical database to store the electrical parameters of the device in the power bank, it can determine the device authorization status and send an alarm, which solves the problem of the power bank being easily stolen and improves the security and charging efficiency of the device.
Patent Information
- Application Number
- CN202410771842.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-15
- Publication Date
- 2024-09-27
AI Technical Summary
Power banks are easily missed or stolen, resulting in property losses for users, and it is difficult to effectively prevent theft with existing technology.
By using a historical database to store the relationship between the device's instantaneous charging rate and maximum capacitance in the power bank, it can determine whether the device is authorized and update the data after receiving the authorization signal. If it is not authorized, the device location will be sent to remind the user that the device has been stolen.
It effectively prevents the power bank from being stolen, reduces the risk of user property loss, and improves charging efficiency.
Smart Images

Figure CN118713247A
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging equipment, and in particular to a power bank control method, system, storage medium and intelligent terminal. Background Art
[0002] A power bank is a portable charger that can be carried by an individual and can store electrical energy. It is mainly used to charge handheld mobile devices and other consumer electronic products (such as wireless phones and laptops). It is especially used in situations where there is no external power supply.
[0003] The main function of a power bank is to provide instant charging for mobile phones, tablets and other devices, solving the problem of insufficient battery power during long-term outings or travel. It usually has a large battery capacity and can provide multiple charges for the device to meet the needs of users for long-term use. In addition, the power bank also has multiple safety protection mechanisms, such as overcharge protection, over-discharge protection, over-current protection, etc., to ensure that no damage is caused to the device or the user during use.
[0004] The prior art has the following problems: the power bank is small in size and is easily missed or forgotten, and thus taken away or stolen by other persons, and often cannot be recovered, resulting in property loss to the owner. There is still room for improvement. Summary of the invention
[0005] In order to improve the problem that power banks are easily taken away or stolen, causing property losses to the owners, the present application provides a power bank control method, system, storage medium and intelligent terminal.
[0006] In the first aspect, the present application provides a power bank control method, which adopts the following technical solution: A power bank control method, comprising: When the interface is connected and powered on, the instantaneous charging rate and the maximum capacitance of the device being charged are obtained; Searching a stored historical mapping relationship from a preset historical database, wherein the historical mapping relationship is an association relationship between a historical instantaneous charging rate and a historical maximum capacitance; Calculating based on the historical instantaneous charging rate and the instantaneous charging rate in any one of the historical mapping relationships to obtain a charging rate difference; Calculating based on the historical maximum capacitance and the maximum capacitance in the same historical mapping relationship to obtain the capacitance difference; When there is a charging rate difference less than a preset rate deviation range and a capacitance difference less than a preset capacitance deviation range, charging is allowed and the maximum capacitance replaces the corresponding historical maximum capacitance, and the instantaneous charging rate replaces the corresponding historical instantaneous charging rate; Outputting a preset authorization-required signal to a preset master mobile device when the charging rate difference is greater than the rate deviation range and / or the capacitance difference is greater than the capacitance deviation range; When receiving a preset authorization confirmation signal, charging is allowed and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in a historical database; When a preset authorization denial signal is received, charging is not performed, the device location is obtained, and the device location and preset estimated theft information are output to the main mobile device.
[0007] By adopting the above technical solution, by determining whether the current and capacitance are previously authorized devices, combined with the result of whether it is authorized by the main mobile device, it is determined whether charging is allowed. If it is determined that it is neither an authorized device nor allowed to charge, it is very likely that it has been stolen. Therefore, the location of the power bank is sent to the main mobile device to remind the user that the device has been stolen, thereby protecting the user's property safety.
[0008] Optionally, a method for determining whether the power bank is charging when the authorization confirmation signal and the authorization denial signal are not received is also included, and the method includes: Get the sending duration of the authorization signal output required; When the sending duration is less than the preset busy critical duration, continue to receive the authorization confirmation signal or the authorization denial signal; When the sending time is equal to the busy critical time, a preset password input prompt is displayed on the power bank; When the correct password is received, charging is allowed and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in the historical database; If the correct password is not received, charging will not be performed, the device location will be obtained, and the device location and expected theft information will be output to the main mobile device.
[0009] By adopting the above technical solution, when the authorization signal is not received for a long time, one possibility is that the owner does not have it temporarily, and the other possibility is that the device with authorization qualifications is damaged and cannot be authorized. Therefore, another password input method is used for authorization at this time, reducing the possibility of misjudgment of power bank anti-theft.
[0010] Optionally, a confirmation method of the main mobile device is also included, the method comprising: When there is no historical mapping relationship in the historical database and the instantaneous charging rate and the maximum capacitance are obtained, a preset authorization binding signal is sent to the mobile device corresponding to the instantaneous charging rate and the maximum capacitance; Upon receiving a preset authorization binding confirmation signal, the mobile device is defined as the main mobile device, and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in a historical database, and a communication binding connection is established, and the power bank outputs an authorization-required signal to the main mobile device through the communication binding connection; When receiving a preset authorization binding denial signal, the communication binding connection is not established, and the instantaneous charging rate and maximum capacitance obtained are not stored in the history database as the historical maximum capacitance and the historical instantaneous charging rate; When a preset cancellation authorization signal output by the main mobile device through the communication binding connection is received, the communication binding connection is released and the historical database is cleared.
[0011] Optionally, a method for releasing a communication binding connection when no authorization binding denial signal is received or authorization is cancelled includes: When the correct password is entered, the number of repetitions of the historical mapping relationship is accumulated; When the number of repetitions is less than the preset frequent critical number, the communication binding connection is maintained until an authorization confirmation signal and an authorization denial signal of the main mobile device are received or the number of repetitions is greater than the frequent critical number; When receiving the authorization confirmation signal and the authorization denial signal from the main mobile device, the number of repetitions is reset to zero, and then the number of repetitions of the historical mapping relationship is accumulated again; When the number of repetitions is greater than the critical number of frequent times and the authorization confirmation signal and the authorization denial signal of the main mobile device are not received, the mobile device corresponding to the number of repetitions greater than the critical number of frequent times is defined as a pre-replacement mobile device, and an authorization binding signal is sent to the pre-replacement mobile device; When receiving the authorization binding confirmation signal of the pre-replacement mobile device, the pre-replacement mobile device replaces the main mobile device to establish a communication binding connection, and releases the communication binding connection of the main mobile device before the replacement; When receiving the authorization binding denial signal from the pre-replacement mobile device, the communication binding connection is maintained, and the repetition times of the pre-replacement mobile device are reset to zero and accumulated again.
[0012] By adopting the above technical solution, when the password is entered multiple times, it means that the main authorized mobile device may be damaged and cannot be authorized for a long time. Therefore, the data in the database is removed at this time, and then the device with the most times is replaced as the authorized device, which improves the flexibility of power bank authorization.
[0013] Optionally, the method further includes a method in which the power bank outputs the device location to the main mobile device, the method comprising: Obtain device positioning demand signal; When receiving a device positioning demand signal, analyzing the transmitting device based on the device positioning demand signal; When the transmitting device is a primary mobile device or a mobile device corresponding to a historical mapping relationship, outputting the device location to the transmitting device; When the transmitting device is not the main mobile device or the mobile device corresponding to the historical mapping relationship, the device location is not output.
[0014] By adopting the above technical solution, when a request for feedback on the device location is received, it is checked whether the device has been authorized. If it is an authorized device, the device location can be directly transmitted to the mobile device that has been authorized to charge, so that the authorized device can quickly find the power bank for charging, thereby improving the charging efficiency of the power bank.
[0015] Optionally, the method further includes defining a mobile device other than the main mobile device or the mobile device corresponding to the historical mapping relationship as an unfamiliar mobile device, and the power bank outputting the device location to the unfamiliar mobile device, the method comprising: When the transmitting device is an unfamiliar mobile device, obtaining unfamiliar positioning, maximum standby capacitance and instantaneous standby charging rate; Calculate the relative distance based on the stranger's location and the device's location; Filter out the power bank with the shortest relative distance, find the corresponding main mobile device, and define the main mobile device as the expected main mobile device; outputting an authorization-required signal to the intended master mobile device; When receiving the authorization confirmation signal, the device location is sent to the unfamiliar mobile device, and the maximum capacitance on standby is updated to the historical maximum capacitance, and the instantaneous charging rate on standby is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in the historical database; The device location is not sent when a negative authorization signal is received.
[0016] By adopting the above technical solution, when an unauthorized mobile device needs to be charged, a signal for searching for the mobile device can be output on the mobile device, and then the nearest power bank will send the authorization request to the user of the power bank. After the user of the power bank authorizes it, the device location can be sent to the mobile device. On the one hand, unauthorized mobile devices can also be charged quickly. On the other hand, after authorization, there is no need to judge whether to authorize based on the capacitance and instantaneous charging rate of the unfamiliar device, and it can be charged directly, thereby improving the charging efficiency of the power bank.
[0017] Optionally, the method of selecting the power bank with the shortest relative distance includes: Get the power bank ID and working status of the power bank; Sorting the power bank numbers based on the relative distance to obtain the order of the power bank numbers from near to far relative distance; Determine the current power bank number with the smallest relative distance in the power bank number sequence based on the power bank number sequence, and define the power bank working state corresponding to the current power bank number as the current power bank working state; When the current working state of the power bank is a preset idle state, the power bank corresponding to the current power bank number is screened out, and the current working state of the power bank is defined as a pre-charging state, and the corresponding strange device is defined as a pre-charging strange device; When the current working state of the power bank is the preset positive charging state, the current power bank number is deleted from the power bank number sequence and the current power bank number is updated; When the current working state of the power bank is the pre-charging state, determining the corresponding pre-charging strange device based on the pre-charging state and the current power bank number, defining the pre-charging strange device as a conflicting strange device, and defining the relative distance corresponding to the conflicting strange device as a conflicting relative distance; When the relative distance is greater than the conflicting relative distance, the current power bank number is deleted from the power bank number sequence and the current power bank number is updated; When the relative distance is less than the conflicting relative distance, the power bank corresponding to the current power bank number is screened out, the working state of the current power bank is defined as a pre-charging state, the corresponding unfamiliar device is defined as a pre-charging unfamiliar device, and the current power bank number is deleted from the current power bank number sequence corresponding to the conflicting unfamiliar device.
[0018] By adopting the above technical solution, by judging whether someone is using the power bank or reaching the location of the power bank for charging faster, it is avoided that the same power bank sends the device location to multiple people, resulting in failure to charge quickly, thereby improving the smoothness of the power bank charging.
[0019] In the second aspect, the present application provides a power bank control system, which adopts the following technical solution: A power bank control system, comprising: The acquisition module is used to obtain the instantaneous charging rate, maximum capacitance, device location, transmission duration, number of repetitions, device location demand signal, unfamiliar location, maximum capacitance on standby, instantaneous charging rate on standby, power bank number and power bank working status; A memory, used to store a program of any of the above-mentioned power bank control methods; The program in the processor and the memory can be loaded and executed by the processor to implement any of the above-mentioned power bank control methods.
[0020] By adopting the above technical solution, by determining whether the current and capacitance are previously authorized devices, combined with the result of whether it is authorized by the main mobile device, it is determined whether charging is allowed. If it is determined that it is neither an authorized device nor allowed to charge, it is very likely that it has been stolen. Therefore, the location of the power bank is sent to the main mobile device to remind the user that the device has been stolen, thereby protecting the user's property safety.
[0021] In the third aspect, the present application provides a smart terminal, which adopts the following technical solution: The intelligent terminal comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute any one of the above-mentioned power bank control methods.
[0022] By adopting the above technical solution, by determining whether the current and capacitance are previously authorized devices, combined with the result of whether it is authorized by the main mobile device, it is determined whether charging is allowed. If it is determined that it is neither an authorized device nor allowed to charge, it is very likely that it has been stolen. Therefore, the location of the power bank is sent to the main mobile device to remind the user that the device has been stolen, thereby protecting the user's property safety.
[0023] Fourthly, the present application provides a computer storage medium that can store corresponding programs and has the characteristics of fast interaction with memory big data.
[0024] Computer readable storage medium, using the following technical solution: A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned power bank control methods.
[0025] By adopting the above technical solution, by determining whether the current and capacitance are previously authorized devices, combined with the result of whether it is authorized by the main mobile device, it is determined whether charging is allowed. If it is determined that it is neither an authorized device nor allowed to charge, it is very likely that it has been stolen. Therefore, the location of the power bank is sent to the main mobile device to remind the user that the device has been stolen, thereby protecting the user's property safety.
[0026] In summary, the present application includes at least the following beneficial technical effects: 1. Determine whether charging is allowed by determining whether it is a previously authorized device. If not, the location of the power bank is sent to the main mobile device to remind the user that the device has been stolen, thus protecting the user's property safety; 2. When the authorization signal is not received for a long time, it may be that the device with authorization qualifications is damaged and cannot be authorized. Therefore, the password input method is used for authorization at this time, which reduces the possibility of misjudgment of power bank anti-theft; 3. By directly transmitting the device location to the mobile devices that have been authorized to charge, the authorized devices can quickly find the power bank for charging, thereby improving the charging efficiency of the power bank. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of a power bank control method in an embodiment of the present application.
[0028] Figure 2 It is a flow chart of a method for determining whether the power bank should be charged when no authorization confirmation signal and authorization denial signal are received in an embodiment of the present application.
[0029] Figure 3 It is a flowchart of the confirmation method of the main mobile device in an embodiment of the present application.
[0030] Figure 4 It is a flowchart of a method for releasing a communication binding connection when no authorization binding denial signal is received or authorization is canceled in an embodiment of the present application.
[0031] Figure 5 It is a flow chart of a method for a power bank in an embodiment of the present application to output a device location to a main mobile device.
[0032] Figure 6 It is a flowchart of a method for a power bank in an embodiment of the present application to output a device location to an unfamiliar mobile device.
[0033] Figure 7 It is a flow chart of the method for screening out the power bank with the shortest relative distance in an embodiment of the present application.
[0034] Figure 8 It is a system module diagram of a power bank control method in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-Figure 8 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] The present application embodiment discloses a power bank control method. Figure 1 , a power bank control method includes: Step 100: Obtain the instantaneous charging rate and the maximum capacitance of the device being charged when the interface is connected and powered on.
[0037] The instantaneous charging rate is the charging rate at the beginning of the charging process of the power bank after it is turned on. It can be converted when the corresponding current and voltage are obtained by the built-in ammeter and voltmeter of the power bank. The maximum capacitance is the maximum capacity. The charged device is a device that is charged by the power bank. For convenience and clarity, the device can be exemplified as a mobile phone, but it does not mean that it is only applicable to mobile phones. Other devices that can be charged and have similar functions to mobile phones are also feasible. Here, the power bank can send a signal to obtain it, and then the mobile phone can get it back. When the interface is connected and powered on, it means that the external device has been connected to the power bank and is charging. At this time, in order to be able to identify the device, it will be turned on instantly. During the turn-on process, the instantaneous charging rate and maximum capacitance will be obtained.
[0038] Here, since the instantaneous charging rate of each device is different, the category can be identified by the instantaneous charging rate. Then, because the maximum internal capacity of the same mobile phone will gradually decrease over time, even if the category is the same, the maximum capacitance can be used to identify whether it is the same mobile phone.
[0039] Step 101: Searching for a stored historical mapping relationship from a preset historical database.
[0040] The historical database is a database that stores historical mapping relationships, that is, the historical mapping relationships are automatically stored each time for easy search. The historical database can be regarded as the memory space of the corresponding power bank. The historical mapping relationship is the correlation between the historical instantaneous charging rate and the historical maximum capacitance. In fact, it means that the mobile phone that has been stored in the historical database can be charged. The purpose is to determine whether the mobile phone that is allowed to be charged is plugged in.
[0041] Step 102: Calculate based on the historical instantaneous charging rate and the instantaneous charging rate in any historical mapping relationship to obtain a charging rate difference.
[0042] The charging rate difference is the difference between the historical instantaneous charging rate and the instantaneous charging rate in any historical mapping relationship, and is calculated by subtracting the two.
[0043] Step 103: Calculate based on the historical maximum capacitance and the maximum capacitance in the same historical mapping relationship to obtain a capacitance difference.
[0044] The capacitance difference is the difference between the historical maximum capacitance and the maximum capacitance corresponding to the historical instantaneous charging rate used to calculate the charging rate difference. The calculation method is to subtract the two.
[0045] Step 104: When there is a charging rate difference smaller than a preset rate deviation range and a capacitance difference smaller than a preset capacitance deviation range, charging is allowed and the maximum capacitance replaces the corresponding historical maximum capacitance, and the instantaneous charging rate replaces the corresponding historical instantaneous charging rate.
[0046] The rate deviation range is the range of rate deviation allowed during normal wear and tear. The capacitance deviation range is the range of rate deviation allowed during normal wear and tear. When there is a charging rate difference that is smaller than the rate deviation range and a capacitance difference that is smaller than the capacitance deviation range, it means that the mobile phone being charged and the authorized mobile phone saved in the historical database are almost the same. At this time, they can be determined to be the same, so charging is allowed. Then, in order to update the data in the historical database, the maximum capacitance replaces the corresponding historical maximum capacitance, and the instantaneous charging rate replaces the corresponding historical instantaneous charging rate.
[0047] Step 105: When the charging rate difference is greater than the rate deviation range and / or the capacitance difference is greater than the capacitance deviation range, output a preset authorization-required signal to a preset master mobile device.
[0048] The main mobile device is the main mobile device, which specifically refers to the mobile phone that has the authority to authorize the power bank to charge other devices. The main mobile device can be set at the beginning or according to subsequent operations. The authorization signal is a signal sent by the power bank to the main mobile device, requiring the main mobile device to agree to charge the unfamiliar device.
[0049] When the charging rate difference is greater than the rate deviation range and / or the capacitance difference is greater than the capacitance deviation range, it means that the mobile phone is not authorized for charging. The main mobile device needs to authorize and allow it to charge through the power bank.
[0050] Step 106: upon receiving a preset authorization confirmation signal, charging is allowed and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in a historical database.
[0051] The authorization confirmation signal is a confirmation signal that the main mobile device agrees that the power bank can charge the unfamiliar device. When received, it means that charging is allowed and the owner of the power bank trusts the owner of the unfamiliar device. Therefore, in order to avoid the need to apply for authorization next time, the unfamiliar device can be directly changed to an authorized device, that is, the corresponding historical maximum capacitance and historical instantaneous charging rate are stored in the historical database.
[0052] Step 107: When a preset authorization denial signal is received, charging is not performed, and the device location is obtained, and the device location and preset estimated theft information are output to the main mobile device.
[0053] The authorization denial signal is a confirmation signal that the main mobile device does not agree with the power bank to charge the unfamiliar device. The device location is the location of the power bank. The acquisition method is obtained by the GPS positioning system built into the power bank. The expected theft information is information that may indicate that the power bank has been stolen based on the current situation. This information includes text information and time node information. When the authorization denial signal is received, it means that the main mobile device does not allow charging, but the unfamiliar device has been connected with a data cable, so it means that it is a hard connection, and it is likely to be stolen, so the expected theft information is output, and in order to facilitate the person corresponding to the main mobile device to find the power bank, the device location is also sent to the main mobile device.
[0054] Reference Figure 2 , and also includes a method for determining whether the power bank is charging when the authorization confirmation signal and the authorization denial signal are not received, the method comprising: Step 200: Obtain the sending duration required for outputting the authorization signal.
[0055] The sending duration is the accumulated time after the power bank sends out the authorization signal. The acquisition method can be to use a timer to count.
[0056] Step 201: Continue to receive the authorization confirmation signal or the authorization denial signal when the sending duration is less than the preset busy critical duration.
[0057] The busy critical time is the time when the person corresponding to the main mobile device is busy and cannot contact the main mobile device and send the authorization message. This time is set manually, for example: 5 minutes. If it is less than 5 minutes, it is impossible to determine whether the person corresponding to the main mobile device is busy. In order to avoid missing the authorization information, the authorization confirmation signal or the authorization denial signal will continue to be received.
[0058] Step 202: When the sending time is equal to the busy critical time, a preset password input prompt is displayed on the power bank.
[0059] The password input prompt is to remind the user of the current unfamiliar device that he can turn on the power bank by entering the password to charge. It can be displayed in text form.
[0060] When it is equal, it means that the default user is busy and cannot reply. However, if the user of an unfamiliar device needs to charge and needs it urgently, another method can be used, that is, the password input method.
[0061] Step 203: When the correct password is received, charging is allowed and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in the historical database.
[0062] The correct password is the password for correctly opening the power bank. Here, the password is manually set, and can be further set by the hot user corresponding to the main mobile device. If the correct password is received, it means that the user corresponding to the inserted mode device is legally borrowed and has asked the user corresponding to the main mobile device, so the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, and then stored in the historical database.
[0063] Step 204: If the correct password is not received, charging is not performed, the device location is obtained, and the device location and estimated theft information are output to the main mobile device.
[0064] If the correct password is not received, it means that the device is a completely unfamiliar device from a stranger, and charging is not required. The device location is obtained, and the device location and expected theft information are output to the main mobile device.
[0065] Reference Figure 3 , and also includes a confirmation method of the main mobile device, the method comprising: Step 300: When there is no historical mapping relationship in the historical database and the instantaneous charging rate and the maximum capacitance are obtained, a preset authorization binding signal is sent to a mobile device corresponding to the instantaneous charging rate and the maximum capacitance.
[0066] The authorization binding signal is a signal indicating whether the connected device is bound to the power bank to authorize other devices as the main mobile device. The purpose of sending it is to subjectively confirm the user's intention in case the user only wants to charge but does not want to buy or use it as the main mobile device.
[0067] The absence of any historical mapping relationship in the historical database indicates that the power bank has not been charged once and is a brand new power bank. Therefore, the first mobile device is most likely the device of the purchasing user, so an authorization binding signal is sent.
[0068] Step 301: When a preset authorization binding confirmation signal is received, the mobile device is defined as the main mobile device, and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate to form a historical mapping relationship, which is then stored in the historical database and a communication binding connection is established.
[0069] The authorization binding confirmation signal is a signal for the corresponding mobile phone to determine that it becomes the main mobile device. When the authorization binding confirmation signal is received, it means that the user agrees to use the connected mobile phone as the main mobile device, and the authorization is performed. Therefore, the mobile device can be defined as the main mobile device, and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in the historical database.
[0070] The communication binding connection is a connection protocol between the authorized mobile phone and the power bank, similar to Bluetooth, but relatively more far-reaching and extensive, including the information of both parties and the record of the connection signed in the middle. Therefore, when connected, the power bank can send information to the main mobile device through the communication binding connection.
[0071] Step 302: when a preset authorization binding denial signal is received, a communication binding connection is not established, and the acquired instantaneous charging rate and maximum capacitance are not stored in a history database as the historical maximum capacitance and the historical instantaneous charging rate.
[0072] The authorization binding denial signal is a signal that the corresponding mobile phone determines not to become the main mobile device. When the authorization binding denial signal is received, it means that although it is connected, it is unwilling to be the main mobile device. Therefore, in order to reduce unnecessary trouble, the mobile phone will not be recorded in the database. Therefore, it is necessary to store the obtained instantaneous charging rate and maximum capacitance not as the historical maximum capacitance and historical instantaneous charging rate in the historical database.
[0073] Step 303: upon receiving a preset cancellation authorization signal outputted by the master mobile device through the communication binding connection, the communication binding connection is released, and the history database is cleared.
[0074] The deauthorization signal is a signal generated when the main mobile device no longer wants to be the main mobile device. When the deauthorization signal is received, the main mobile device and the power bank need to be unbound, so the communication binding connection is released. Then, since all the internal data are the data of the main mobile device or other mobile devices authorized by the main mobile device, these authorizations are no longer valid at this time, so they need to be cleared.
[0075] Reference Figure 4 , and also includes a method for releasing the communication binding connection when no authorization binding denial signal is received or the authorization is cancelled, the method comprising: Step 400: When a correct password is entered, the number of repetitions of the historical mapping relationship is accumulated.
[0076] The number of repetitions is the number of mobile phone connections corresponding to the same historical mapping relationship, which can be obtained by the internal counter.
[0077] Step 401: When the number of repetitions is less than the preset frequency critical number, the communication binding connection is maintained until an authorization confirmation signal and an authorization denial signal are received from the main mobile device or the number of repetitions is greater than the frequency critical number.
[0078] The critical frequency number is set manually. If it exceeds this number, it is considered too frequent and can be assumed to be a new authorized device, that is, the power bank has been handed over to the user of this mobile phone. When the number of repetitions is less than the critical frequency number, it is still impossible to determine whether to hand it over, so the number of repetitions continues to accumulate.
[0079] Step 402: upon receiving the authorization confirmation signal and the authorization denial signal from the master mobile device, the number of repetitions is reset to zero, and then the number of repetitions of the historical mapping relationship is accumulated again.
[0080] When the authorization confirmation signal and authorization denial signal of the main mobile device are received, it means that the connection stability between the main mobile device and the power bank has been re-stabilized, so it means that the main mobile device is still in use and is still the main authorized device. Therefore, the previous accumulated times cannot be counted, so it is reset.
[0081] Step 403: When the number of repetitions is greater than the critical number of frequent times and no authorization confirmation signal or authorization denial signal is received from the main mobile device, the mobile device corresponding to the number of repetitions greater than the critical number of frequent times is defined as a pre-replacement mobile device, and an authorization binding signal is sent to the pre-replacement mobile device.
[0082] When the number of repetitions exceeds the frequent critical number, the primary mobile device is assumed to be damaged or no longer bound, and the mobile device with the most usage times is used as a replacement for the primary mobile device. At this time, a temporary communication binding connection is established to send an authorization binding signal to the pre-replacement mobile device.
[0083] Step 404: upon receiving the authorization binding confirmation signal of the pre-replacement mobile device, the pre-replacement mobile device replaces the main mobile device to establish a communication binding connection, and releases the communication binding connection of the main mobile device before the replacement.
[0084] When the authorization binding confirmation signal of the pre-replacement mobile device is received, it means that the user of the pre-replacement mobile device agrees to be the main mobile device, so a communication binding connection is established. In order to avoid previous interference, the communication binding connection of the main mobile device before replacement is released.
[0085] Step 405: When receiving the authorization binding denial signal from the pre-replacement mobile device, the communication binding connection is maintained, and the repetition count of the pre-replacement mobile device is reset to zero and accumulated again.
[0086] When receiving the authorization binding denial signal from the pre-replacement mobile device, it means that the user of the pre-replacement mobile device does not agree to be the main mobile device, so the communication binding connection is still maintained. In order to prevent the repetition number of the pre-replacement mobile device from being the highest in the next accumulation, it is reset to zero and accumulated again.
[0087] Reference Figure 5, and also includes a method for the power bank to output the device location to the main mobile device, the method comprising: Step 500: Obtain a device positioning requirement signal.
[0088] The device positioning demand signal is a signal sent by the mobile phone that requires device positioning information to find the power bank. The method of obtaining the signal here can be a method of wirelessly receiving the signal.
[0089] Step 501: When receiving a device positioning request signal, analyze the transmitting device based on the device positioning request signal.
[0090] The transmitting device is a device that sends out a device positioning demand signal. The analysis method here can also be a direct reading method, that is, when sending out the device positioning demand signal, the model and the unique number of the mobile phone are sent out, and then compared with the mobile phone number that has been recorded. Here, the historical database can also record the corresponding mobile phone number when charging, and correspond one to one with the historical mapping relationship.
[0091] Step 502: Output the device location to the transmitting device when the transmitting device is the primary mobile device or the mobile device corresponding to the historical mapping relationship.
[0092] When the transmitting device is the main mobile device or the mobile device corresponding to the historical mapping relationship, it means that the authorized device is looking for a power bank for charging, so the device location can be output.
[0093] Step 503: When the transmitting device is not the main mobile device or the mobile device corresponding to the historical mapping relationship, the device location is not output.
[0094] If not, it means it is an unfamiliar device, so there is no need to output the device location.
[0095] Reference Figure 6 , further comprising defining a mobile device other than the main mobile device or the mobile device corresponding to the historical mapping relationship as a strange mobile device, and a method in which the power bank outputs a device location to the strange mobile device, the method comprising: Step 600: When the transmitting device is an unfamiliar mobile device, obtain the unfamiliar positioning, the maximum standby capacitance and the instantaneous standby charging rate.
[0096] The unfamiliar positioning is the positioning of the unfamiliar mobile device. The maximum capacitance on standby is the maximum capacitance of the unfamiliar mobile device. The instantaneous charging rate on standby is the instantaneous charging rate of the unfamiliar mobile device. The three can be measured by sensors in the mobile phone. Here, the three can be data included in the signal of the device positioning requirement when the unfamiliar mobile device transmits, and then the power bank automatically reads it when it receives it.
[0097] Step 601: Calculate the relative distance based on the unfamiliar location and the device location.
[0098] The relative distance is the distance between the location corresponding to the unknown location and the location corresponding to the device location. The calculation method is to calculate the sum of the squares of the differences between the longitude and latitude of the two.
[0099] Step 602: Filter out the power bank with the shortest relative distance, search for the corresponding master mobile device, and define the master mobile device as the expected master mobile device.
[0100] The screening method is a method of directly comparing the numerical values of relative distances.
[0101] Step 603: Output an authorization-required signal to the intended master mobile device.
[0102] Here, the measurement of reading the maximum capacitance and the instantaneous charging rate is skipped, and the maximum capacitance and the instantaneous charging rate are directly read, and then an authorization-required signal is output to the expected master mobile device.
[0103] Step 604: When the authorization confirmation signal is received, the device location is sent to the unfamiliar mobile device, and the maximum capacitance to be connected is updated to the historical maximum capacitance, and the instantaneous charging rate to be connected is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in the historical database.
[0104] When the authorization confirmation signal is received, it indicates that the unfamiliar device is allowed to charge at this time, so the device location is sent to the unfamiliar mobile device. The maximum capacitance to be connected is updated to the historical maximum capacitance, and the instantaneous charging rate to be connected is updated to the historical instantaneous charging rate, forming a historical mapping relationship, and then storing it in the historical database. The purpose is that after finding the power bank, the unfamiliar mobile device can directly connect to the power bank for charging without re-authorizing charging according to steps 100-107.
[0105] Step 605: Do not send device location when receiving the authorization denial signal.
[0106] When a denial of authorization signal is received, it indicates that the strange device is not allowed to charge. In order to avoid being found by the strange device, the device location is not sent.
[0107] Reference Figure 7 ,The method of selecting the power bank with the shortest relative distance includes: Step 700: Obtain the power bank ID and power bank working status.
[0108] The power bank number is the number on the power bank. This can be all power banks using the same system. The power bank working status is whether the power bank is currently in use or about to be used.
[0109] Step 701: sort the power bank numbers based on the relative distance to obtain the power bank number sequence from near to far relative distance.
[0110] The order of power bank numbers is based on certain rules, and here is the order from near to far relative distance.
[0111] Step 702: Determine the current power bank number with the smallest relative distance in the power bank number sequence based on the power bank number sequence, and define the power bank working state corresponding to the current power bank number as the current power bank working state.
[0112] The current power bank number is the number of the currently selected power bank, which is determined by selecting the one with a relatively smaller distance in the power bank number sequence, that is, the power bank number of the power bank closest to the transmitting device.
[0113] Step 703: When the current working state of the power bank is a preset idle state, the power bank corresponding to the current power bank number is screened out, and the current working state of the power bank is defined as a pre-charging state, and the corresponding strange device is defined as a pre-charging strange device.
[0114] The idle state is a state where no mobile device is being charged, and no mobile device is ready to be charged by the power bank. The pre-charge state is a state where the power bank is ready to be charged. When the current power bank working state is idle, it means that if the corresponding main mobile device allows charging, you can directly find the power bank corresponding to the current power bank number to charge.
[0115] Step 704: When the current working state of the power bank is the preset positive charging state, the current power bank number is deleted from the power bank number sequence and the current power bank number is updated.
[0116] When the current power bank is in the positive charging state, it means that although it is the closest, it has been used. Therefore, it is necessary to exclude the current power bank number and then find the one with the shortest relative distance.
[0117] Step 705: When the current working state of the power bank is the pre-charging state, determine the corresponding pre-charging strange device based on the pre-charging state and the current power bank number, define the pre-charging strange device as a conflicting strange device, and define the relative distance corresponding to the conflicting strange device as a conflicting relative distance.
[0118] The unfamiliar device is a device that causes the power bank to enter a pre-charging state. That is, if multiple unfamiliar devices are closest to the power bank and there is no device that is already charging, multiple unfamiliar devices can be charged at the power bank.
[0119] Step 706: When the relative distance is greater than the conflicting relative distance, the current power bank number is deleted from the power bank number sequence and the current power bank number is updated.
[0120] When the relative distance is greater than the conflicting relative distance, it means that there is no conflicting unfamiliar device closer. Therefore, in order to reduce energy waste, it is necessary to find a new power bank. Therefore, the current power bank number is deleted from the power bank number sequence and the current power bank number is updated.
[0121] Step 707: When the relative distance is less than the conflicting relative distance, the power bank corresponding to the current power bank number is selected, and the working state of the current power bank is defined as the pre-charging state, the corresponding strange device is defined as the pre-charging strange device, and the current power bank number is deleted from the current power bank number sequence corresponding to the conflicting strange device.
[0122] When the relative distance is less than the conflicting relative distance, it means that it is closer than the conflicting unfamiliar device, and the power bank corresponding to the current power bank number will be given priority.
[0123] Based on the same inventive concept, an embodiment of the present invention provides a power bank control system.
[0124] Reference Figure 8 , a power bank control system, comprising: The acquisition module is used to obtain the instantaneous charging rate, maximum capacitance, device location, transmission duration, number of repetitions, device location demand signal, unfamiliar location, maximum capacitance on standby, instantaneous charging rate on standby, power bank number and power bank working status; A memory, used to store a program of a power bank control method; The program in the processor and the memory can be loaded and executed by the processor to implement a power bank control method.
[0125] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0126] An embodiment of the present invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executed by a power bank control method.
[0127] Computer storage media include, for example, various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0128] Based on the same inventive concept, an embodiment of the present invention provides an intelligent terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes a power bank control method.
[0129] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. A power bank control method, characterized in that: include: When the interface is connected and powered on, the instantaneous charging rate and the maximum capacitance of the device being charged are obtained; Searching a stored historical mapping relationship from a preset historical database, wherein the historical mapping relationship is an association relationship between a historical instantaneous charging rate and a historical maximum capacitance; Calculating based on the historical instantaneous charging rate and the instantaneous charging rate in any one of the historical mapping relationships to obtain a charging rate difference; Calculating based on the historical maximum capacitance and the maximum capacitance in the same historical mapping relationship to obtain the capacitance difference; When there is a charging rate difference less than a preset rate deviation range and a capacitance difference less than a preset capacitance deviation range, charging is allowed and the maximum capacitance replaces the corresponding historical maximum capacitance, and the instantaneous charging rate replaces the corresponding historical instantaneous charging rate; Outputting a preset authorization-required signal to a preset master mobile device when the charging rate difference is greater than the rate deviation range and / or the capacitance difference is greater than the capacitance deviation range; When receiving a preset authorization confirmation signal, charging is allowed and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in a historical database; When a preset authorization denial signal is received, charging is not performed, the device location is obtained, and the device location and preset estimated theft information are output to the main mobile device.
2. A power bank control method according to claim 1, characterized in that: Also included is a method for determining whether the power bank is charging when the authorization confirmation signal and the authorization denial signal are not received, the method comprising: Get the sending duration of the authorization signal output required; When the sending duration is less than the preset busy critical duration, continue to receive the authorization confirmation signal or the authorization denial signal; When the sending time is equal to the busy critical time, a preset password input prompt is displayed on the power bank; When the correct password is received, charging is allowed and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in the historical database; If the correct password is not received, charging will not be performed, the device location will be obtained, and the device location and expected theft information will be output to the main mobile device.
3. A power bank control method according to claim 2, characterized in that: Also included is a confirmation method of a master mobile device, the method comprising: When there is no historical mapping relationship in the historical database and the instantaneous charging rate and the maximum capacitance are obtained, a preset authorization binding signal is sent to the mobile device corresponding to the instantaneous charging rate and the maximum capacitance; Upon receiving a preset authorization binding confirmation signal, the mobile device is defined as the main mobile device, and the maximum capacitance is updated to the historical maximum capacitance, and the instantaneous charging rate is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in a historical database, and a communication binding connection is established, and the power bank outputs an authorization-required signal to the main mobile device through the communication binding connection; When receiving a preset authorization binding denial signal, the communication binding connection is not established, and the instantaneous charging rate and maximum capacitance obtained are not stored in the history database as the historical maximum capacitance and the historical instantaneous charging rate; When a preset cancellation authorization signal output by the main mobile device through the communication binding connection is received, the communication binding connection is released and the historical database is cleared.
4. A power bank control method according to claim 3, characterized in that: Also included is a method for releasing the communication binding connection when no authorization binding denial signal is received or the authorization is cancelled, the method comprising: When the correct password is entered, the number of repetitions of the historical mapping relationship is accumulated; When the number of repetitions is less than the preset frequent critical number, the communication binding connection is maintained until an authorization confirmation signal and an authorization denial signal of the main mobile device are received or the number of repetitions is greater than the frequent critical number; When receiving the authorization confirmation signal and the authorization denial signal from the main mobile device, the number of repetitions is reset to zero, and then the number of repetitions of the historical mapping relationship is accumulated again; When the number of repetitions is greater than the critical number of frequent times and the authorization confirmation signal and the authorization denial signal of the main mobile device are not received, the mobile device corresponding to the number of repetitions greater than the critical number of frequent times is defined as a pre-replacement mobile device, and an authorization binding signal is sent to the pre-replacement mobile device; When receiving the authorization binding confirmation signal of the pre-replacement mobile device, the pre-replacement mobile device replaces the main mobile device to establish a communication binding connection, and releases the communication binding connection of the main mobile device before the replacement; When receiving the authorization binding denial signal from the pre-replacement mobile device, the communication binding connection is maintained, and the repetition times of the pre-replacement mobile device are reset to zero and accumulated again.
5. A power bank control method according to claim 1, characterized in that: Also included is a method for the power bank to output the device location to the main mobile device, the method comprising: Obtain device positioning demand signal; When receiving a device positioning demand signal, analyzing the transmitting device based on the device positioning demand signal; When the transmitting device is a primary mobile device or a mobile device corresponding to a historical mapping relationship, outputting the device location to the transmitting device; When the transmitting device is not the main mobile device or the mobile device corresponding to the historical mapping relationship, the device location is not output.
6. A power bank control method according to claim 5, characterized in that: The method also includes defining a mobile device other than the main mobile device or the mobile device corresponding to the historical mapping relationship as a strange mobile device, and the power bank outputting the device location to the strange mobile device, the method comprising: When the transmitting device is an unfamiliar mobile device, obtaining unfamiliar positioning, maximum standby capacitance and instantaneous standby charging rate; Calculate the relative distance based on the stranger's location and the device's location; Filter out the power bank with the shortest relative distance, find the corresponding main mobile device, and define the main mobile device as the expected main mobile device; outputting an authorization-required signal to the intended master mobile device; When receiving the authorization confirmation signal, the device location is sent to the unfamiliar mobile device, and the maximum capacitance on standby is updated to the historical maximum capacitance, and the instantaneous charging rate on standby is updated to the historical instantaneous charging rate, forming a historical mapping relationship, which is then stored in the historical database; The device location is not sent when a negative authorization signal is received.
7. A power bank control method according to claim 6, characterized in that: Methods for selecting the power bank with the shortest relative distance include: Get the power bank ID and working status of the power bank; Sorting the power bank numbers based on the relative distance to obtain the order of the power bank numbers from near to far relative distance; Determine the current power bank number with the smallest relative distance in the power bank number sequence based on the power bank number sequence, and define the power bank working state corresponding to the current power bank number as the current power bank working state; When the current working state of the power bank is a preset idle state, the power bank corresponding to the current power bank number is screened out, and the current working state of the power bank is defined as a pre-charging state, and the corresponding strange device is defined as a pre-charging strange device; When the current working state of the power bank is the preset positive charging state, the current power bank number is deleted from the power bank number sequence and the current power bank number is updated; When the current working state of the power bank is the pre-charging state, determining the corresponding pre-charging strange device based on the pre-charging state and the current power bank number, defining the pre-charging strange device as a conflicting strange device, and defining the relative distance corresponding to the conflicting strange device as a conflicting relative distance; When the relative distance is greater than the conflicting relative distance, the current power bank number is deleted from the power bank number sequence and the current power bank number is updated; When the relative distance is less than the conflicting relative distance, the power bank corresponding to the current power bank number is screened out, the working state of the current power bank is defined as a pre-charging state, the corresponding unfamiliar device is defined as a pre-charging unfamiliar device, and the current power bank number is deleted from the current power bank number sequence corresponding to the conflicting unfamiliar device.
8. A power bank control system, characterized in that: include: The acquisition module is used to obtain the instantaneous charging rate, maximum capacitance, device location, transmission duration, number of repetitions, device location demand signal, unfamiliar location, maximum capacitance on standby, instantaneous charging rate on standby, power bank number and power bank working status; A memory, used to store a program of a power bank control method according to any one of claims 1 to 7; The program in the memory can be loaded and executed by the processor to implement a power bank control method as described in any one of claims 1 to 7.
9. Intelligent terminal, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes a power bank control method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that A computer program is stored which can be loaded by a processor and execute a power bank control method as claimed in any one of claims 1 to 7.
