Terminal device status determination method, device, equipment and readable storage medium

By obtaining the balance and usage information of the terminal device, predicting whether the energy is sufficient, and reminding the user to recharge, the problem of energy interruption caused by the user not checking the balance in time is solved, and the convenience and reliability of energy use are improved.

CN114758447BActive Publication Date: 2024-09-03GOLDCARD HIGH TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110032574.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-11
Publication Date
2024-09-03
Estimated Expiration
2041-01-11

AI Technical Summary

Technical Problem

In energy usage scenarios, if the user fails to check the recharge card balance of the terminal device in time, it may easily lead to interruption problems caused by insufficient energy and affect the convenience of use.

Method used

By obtaining the balance information and usage information of the terminal device, including real-time data and historical consumption data, it can predict whether the energy is sufficient, and if it is insufficient, the user will be reminded to recharge.

Benefits of technology

It can promptly determine the balance status of terminal equipment, remind users to recharge at the appropriate time, avoid energy interruption, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114758447B
    Figure CN114758447B
Patent Text Reader

Abstract

The method, apparatus, device and readable storage medium for determining the status of a terminal device provided by the present disclosure include: obtaining balance information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data; determining the balance information status corresponding to the terminal device according to the real-time data and / or the historical consumption data. The method, apparatus, device and readable storage medium for determining the status of a terminal device provided by the present disclosure can timely determine the current balance information status of a terminal device in combination with the actual usage of energy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to reminder technology, and more particularly to a method, apparatus, device and readable storage medium for determining the status of a terminal device. Background Art

[0002] Generally, in energy usage scenarios, terminal devices for metering are set up, such as gas meters in gas pipelines and water meters in water pipelines. Currently, most terminal devices used to count energy consumption are equipped with recharge cards. When the recharge card in the terminal device is insufficient, the user can recharge the recharge card.

[0003] However, the user needs to check the remaining value of the recharge card in the terminal device to know the status of the terminal device. If the balance of the terminal device is not checked in time, it is easy to cause energy unavailability due to insufficient balance. Summary of the invention

[0004] The present disclosure provides a method, apparatus, device and readable storage medium for determining the status of a terminal device, so as to timely determine the status of the terminal device.

[0005] A first aspect of the present disclosure is to provide a method for determining a state of a terminal device, comprising:

[0006] Acquire remaining information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data;

[0007] The balance information status corresponding to the terminal device is determined according to the real-time data and / or the historical consumption data.

[0008] A second aspect of the present disclosure is to provide a device for determining a state of a terminal device, comprising:

[0009] An information acquisition module, used to acquire remaining information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data;

[0010] A status determination module is used to determine the balance information status corresponding to the terminal device based on the real-time data and / or the historical consumption data.

[0011] A third aspect of the present disclosure is to provide a reminder device, comprising:

[0012] Memory;

[0013] Processor; and

[0014] Computer programs;

[0015] The computer program is stored in the memory and is configured to be executed by the processor to implement the method for determining the state of the terminal device as described in the first aspect above.

[0016] A fourth aspect of the present disclosure is to provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method for determining the status of a terminal device as described in the first aspect above.

[0017] The present disclosure also provides a computer program product, including a computer program, which, when executed by a processor, implements the method for determining the state of a terminal device as described in the first aspect above.

[0018] The technical effects of the terminal device status determination method, device, equipment and readable storage medium provided by the present disclosure are:

[0019] The method, apparatus, device and readable storage medium for determining the status of a terminal device provided by the present disclosure include: obtaining balance information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data; determining the balance information status corresponding to the terminal device according to the real-time data and / or the historical consumption data. The method, apparatus, device and readable storage medium for determining the status of a terminal device provided by the present disclosure can timely determine the current balance information status of a terminal device in combination with the actual usage of energy. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a flow chart of a method for determining the state of a terminal device shown in an exemplary embodiment of the present application;

[0021] Figure 2 This is a diagram showing the structure of an instrument table according to an exemplary embodiment of the present application;

[0022] Figure 3 This is a flowchart of a method for determining a state of a terminal device shown in another exemplary embodiment of the present application;

[0023] Figure 4 This is a structural diagram of a terminal device state determination device shown as an exemplary embodiment of the present application;

[0024] Figure 5 A structural diagram of a device for determining a state of a terminal device shown in another exemplary embodiment of the present application;

[0025] Figure 6 The figure is a structural diagram of an electronic device shown as an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0026] Generally, it is necessary to set up an instrument meter in energy usage scenarios to count energy consumption. For example, a gas meter can be set up in the gas pipeline at home to count gas usage. A recharge card can be set up in the gas meter, and users can recharge the recharge card in a variety of ways.

[0027] However, if the user does not realize that the recharge card has insufficient funds and does not recharge in time, the funds in the recharge card may be exhausted during energy use, resulting in energy interruption. For example, when a user is cooking at home, the gas supply is interrupted due to the exhaustion of the funds in the card, which will cause great inconvenience to the user.

[0028] In the solution provided in this application, the credential information in the instrument meter, the current energy usage status and the historical energy consumption can be combined to predict whether the energy is sufficient. If the energy is insufficient, the user is reminded to recharge.

[0029] Figure 1 The present invention is a flowchart of a method for determining the status of a terminal device according to an exemplary embodiment of the present application.

[0030] like Figure 1 As shown, the method for determining the status of a terminal device provided in this embodiment includes:

[0031] Step 101, obtaining balance information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data.

[0032] The method provided in the present application can be executed by an electronic device with computing capability, such as a computer, or a background server of a terminal device. In another implementation, the electronic device can also be a processing module in the terminal device.

[0033] Figure 2 This is a structural diagram of a terminal device showing an exemplary embodiment of the present application.

[0034] like Figure 2 As shown, the terminal device 20 can be connected to the server for communication. For example, a communication module 21 can be set in the terminal device 20, and the terminal device 20 can be connected to the server through the communication module 21. The terminal device 20 can also include a control module 22, and the control module 22 can control the communication module 21 to connect to the server.

[0035] Specifically, a recharge card 23 may be provided in the terminal device 20, and the control module 22 may directly or indirectly read the credential information in the recharge card 23, and may also report the read credential information to the server through the communication module 21. The credential information in the recharge card 23 refers to the balance value of the recharge card.

[0036] Among them, the control module 22 in the terminal device 20 can obtain the balance information and the usage information. The balance information can be, for example, the balance of the recharge card in the terminal device 20, and the data in the recharge card can be read. In addition, the balance information can also be data written in the terminal device, for example, a variable value is set in the terminal device to record the balance, and the control module can directly read the balance value. In this implementation, the balance value can be updated by the communication between the terminal device and the server, as well as the energy consumption statistics.

[0037] Specifically, the usage information may include real-time data and / or historical consumption data.

[0038] The real-time data may include, for example, the current usage status of the energy, such as whether it is being used or not being used. If the usage status is being used, the real-time data may also include the flow information of the energy, such as the real-time flow rate.

[0039] The historical consumption data may include energy consumption data in a recent period of time, such as energy consumption data in a month, and may also include energy consumption data corresponding to each moment in a recent period of time, such as energy consumption per hour in a recent month.

[0040] Furthermore, if the method provided in the present application is executed by a server of a terminal device, the terminal device may upload the read balance information to the server, so that the server can obtain the balance information corresponding to the terminal device.

[0041] In addition, if the usage information includes real-time data, the terminal device can also upload the read real-time data to the server. If the usage information includes historical consumption data, the server can also obtain the historical consumption data corresponding to the terminal device.

[0042] In actual application, if the method provided in this application is executed by a terminal device, the terminal device can directly read the internal data to obtain the balance information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data.

[0043] Step 102, determining the balance information status corresponding to the terminal device according to the real-time data and / or the historical consumption data.

[0044] Among them, whether the remaining capacity of the terminal device is sufficient can be determined based on the real-time data and / or historical consumption data included in the usage information.

[0045] Specifically, the energy consumption in the current time period or the next energy consumption cycle can be predicted based on real-time data and / or historical consumption data, so as to determine whether the current surplus of the terminal device is sufficient.

[0046] For example, if real-time data indicates that energy is being used, the energy consumption A for the current usage cycle can be predicted based on historical consumption data. The remaining amount B of the terminal device can be compared with A to determine whether the remaining amount of the terminal device is sufficient for the current usage cycle.

[0047] For another example, the possible energy consumption in the current time period can be predicted based on historical consumption data, and then compared with the remaining energy of the terminal device to determine the status of the remaining energy information of the terminal device.

[0048] Furthermore, the state of the remaining battery information may represent an insufficient state or a sufficient state. If the remaining battery of the terminal device is sufficient for the current time period or the next usage cycle, it may be determined that the remaining battery state of the terminal device is sufficient. If the remaining battery of the terminal device is insufficient for the current time period or the next usage cycle, it may be determined that the remaining battery information state of the terminal device is insufficient.

[0049] Furthermore, when the balance information status representation corresponding to the terminal device is insufficient, the user of the user terminal can be reminded. In this implementation, it is possible to determine whether the balance of the terminal device is sufficient for use in combination with the user's energy usage habits, so that the user can be reminded to recharge at an appropriate time.

[0050] The method for determining the status of a terminal device provided in this embodiment includes: obtaining balance information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data; determining the balance information status corresponding to the terminal device according to the real-time data and / or historical consumption data. In the method provided in this application, it is possible to determine whether the balance of the terminal device is sufficient in combination with the energy usage information. Furthermore, a personalized reminder service can be provided to the user based on the determination result, and a recharge reminder can be provided to the user at an appropriate time.

[0051] Figure 3 The present invention is a flowchart of a method for determining a status of a terminal device according to another exemplary embodiment of the present invention.

[0052] like Figure 3 As shown, the method for determining the status of a terminal device provided in this embodiment includes:

[0053] Step 301, obtaining balance information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data.

[0054] The specific principle and implementation method of step 301 are similar to those of step 101 and will not be repeated here.

[0055] Step 302: predict energy usage information based on real-time data and / or historical consumption data.

[0056] Step 303: Determine whether the remaining information of the terminal device is sufficient based on the predicted energy usage information.

[0057] In the method provided in the present application, after the usage information corresponding to the terminal device is obtained, the energy usage information can be predicted based on the obtained usage information.

[0058] Specifically, the forecast can be made based on real-time data and / or historical consumption data.

[0059] After obtaining the predicted energy usage information, it can be determined whether the remaining information of the terminal device is sufficient based on the prediction result.

[0060] In an optional implementation, when energy is used, the real-time data may include real-time traffic. If the usage information includes real-time data or historical consumption data, the energy available time can be determined based on the real-time traffic or historical consumption data included in the real-time data, as well as the remaining information.

[0061] For example, if the usage information includes real-time data, then when energy is used, the available time of the remaining information can be predicted based on the remaining information and real-time traffic of the terminal device. For example, the ratio of the remaining information to the real-time traffic can be determined as the available time of energy.

[0062] For another example, if the usage information includes historical consumption data, the consumable time of the remaining energy information of the terminal device can be predicted based on the cumulative energy consumption within a preset time period and / or the instantaneous consumption in the historical consumption data.

[0063] For example, the energy usage time period can be determined based on historical consumption data, and the energy usage time period can be used as a preset time period. The remaining consumable time of the current terminal device can be predicted based on the accumulated energy consumption in each preset time period. For example, the energy usage in each preset time period of the previous day can be accumulated, and the ratio of the remaining information to the accumulated value can be used as the consumable time.

[0064] For another example, the consumable duration of the current remaining information of the terminal device can be determined based on the instantaneous energy consumption in the preset time period in the historical consumption data. For example, the ratio of the remaining information and the instantaneous consumption corresponding to the current moment in the historical data can be used as the consumable duration corresponding to the current moment.

[0065] If the available time of energy is less than the preset time, it can be considered that the remaining information of the terminal device is insufficient. The preset time can be set according to demand, such as one hour, 90 minutes, etc.

[0066] In another optional embodiment, the energy consumption in a future target period can be predicted based on the cumulative energy consumption and / or instantaneous energy consumption in a preset time period; or, the energy usage corresponding to the next energy usage cycle can be predicted based on the cumulative energy consumption and / or instantaneous energy consumption in a preset time period.

[0067] For example, when predicting the energy consumption in the future target period based on the accumulated energy consumption in the preset time period, the energy consumption in the next day can be predicted based on the accumulated energy consumption in the last month. For example, the accumulated energy consumption in the last month can be allocated to each day to obtain the energy consumption in the next day.

[0068] For another example, when predicting the energy consumption in a future target period based on the instantaneous consumption in a preset time period, the corresponding time period can be determined in the preset time period based on the current time. For example, if the current time is 12:16, at least one time period including 12:16 can be determined in the historical data, and the time period can be a period of time extending from 12:16. The energy consumption in the future target period can be predicted based on the instantaneous consumption in the time period, and the time length of the future target period can be the same as the time length determined in the historical data.

[0069] When predicting the energy usage corresponding to the next energy usage cycle based on the cumulative energy consumption in a preset time period, the daily energy consumption can be calculated based on the cumulative energy consumption in the preset time period. The energy consumption corresponding to each meal can also be determined based on the daily energy consumption. For example, the daily energy consumption can be evenly allocated to each meal, or the daily energy consumption can be weighted and allocated to each meal.

[0070] Furthermore, the next energy consumption cycle, such as the breakfast cycle, lunch cycle or dinner cycle, can be predicted based on the current moment, and the energy consumption required for the next cycle can be predicted based on the energy consumption corresponding to each meal.

[0071] When predicting the energy usage corresponding to the next energy usage cycle based on the instantaneous energy consumption in a preset time period, the energy usage patterns of users at different times can be analyzed. For example, it can be analyzed at which time of the day energy is used, thereby analyzing multiple usage cycles. The average usage corresponding to each usage cycle can also be determined based on the instantaneous energy consumption.

[0072] Furthermore, the next energy consumption cycle can be predicted based on the current moment, and the energy usage required for the next cycle can be predicted based on the energy consumption corresponding to each usage cycle.

[0073] In actual application, the predicted energy consumption can be compared with the remaining capacity information of the terminal device, and whether the remaining capacity of the terminal device is sufficient can be determined based on the comparison result. For example, if the difference between the remaining capacity information of the terminal device and the predicted energy consumption is less than a threshold, it is determined that the remaining capacity of the terminal device is insufficient. For example, the difference between the remaining capacity information and the predicted energy consumption can be calculated, and if the difference is smaller than a preset threshold, it can be considered that the remaining capacity is insufficient.

[0074] In another optional embodiment, if the usage information includes real-time data and historical consumption data, the available time of energy can be determined based on the real-time flow and remaining information included in the real-time data; wherein, when energy is used, the real-time data includes real-time flow; and the historical energy usage time corresponding to the current moment is determined based on the cumulative energy consumption and / or instantaneous consumption within a preset time period.

[0075] Among them, the energy available time can be determined based on the real-time flow and remaining information of the energy. For example, the ratio of the remaining information to the real-time flow of energy can be used as the energy available time, thereby predicting the time that the remaining remaining energy in the terminal device can be used.

[0076] It is also possible to determine the energy history duration corresponding to the current moment based on the instantaneous consumption within a preset time period. For example, multiple energy use cycles can be determined based on the instantaneous consumption within a preset time period, including the length of the use cycle at the current moment, which is the energy history usage duration corresponding to the current moment. For example, the energy use cycle of each day can be counted based on the instantaneous energy consumption of the past 30 days. Each use cycle can have a start and end time, including the use cycle at the current moment, which is the energy use cycle corresponding to the current moment, and the length of the use cycle is the energy history usage duration.

[0077] Specifically, the determined energy available time may be compared with the energy historical usage time. If the energy available time is less than the energy historical usage time corresponding to the current moment, it is determined that the remaining information of the terminal device is insufficient.

[0078] Step 304: If the balance information status of the terminal device is insufficient, a user corresponding to the terminal device is reminded according to the attribute information of the terminal device.

[0079] Furthermore, if it is determined that the status of the balance information of the terminal device is insufficient, it can be considered that the balance in the card of the terminal device is insufficient and the user needs to recharge, so the user can be reminded.

[0080] In actual application, if the method provided by this application is executed by a server, the server can determine the user terminal identifier based on the attribute information of the terminal device, and then send a reminder message to the user terminal.

[0081] In this implementation, the server may store user terminal identifiers corresponding to each terminal device. For example, the terminal device may have an identifier, and the correspondence between the terminal device identifier and the user terminal identifier may be recorded. When it is determined that the balance information of the terminal device is insufficient, the user terminal identifier corresponding to the terminal device may be obtained, and a preset reminder message may be sent according to the user terminal identifier.

[0082] If the method provided by this embodiment is executed by the terminal device, the terminal device may send insufficient balance information status information to the server, and the insufficient balance information status information is used to remind the user. After receiving the insufficient balance information status information, the server may send a reminder message to the user terminal corresponding to the terminal device.

[0083] The reminder information may be preset according to the demand, and the server may obtain the preset reminder information and send it. The sending method may include WeChat, SMS, etc., which may specifically correspond to the stored user terminal identifier.

[0084] Step 305: If the balance information status of the terminal device is insufficient, then after a preset interval, the real-time balance information of the terminal device is obtained at a preset frequency.

[0085] Step 306: If the real-time remaining information obtained within the preset waiting time is greater than the preset threshold, stop obtaining the real-time remaining information.

[0086] Step 307: If the real-time remaining information obtained within the preset waiting time is less than the preset lower limit, the terminal device is controlled to close the valve.

[0087] In an optional implementation, if the balance information status of the terminal device is insufficient, the real-time balance information of the terminal device can be obtained at a preset frequency after a preset interval. For example, if executed by the server, the terminal device can report the real-time balance information at a preset frequency; if executed by the terminal device, the terminal device can read the balance information at a preset frequency.

[0088] In this implementation, after the user is reminded of insufficient balance, the balance of the terminal device may be monitored.

[0089] If the real-time remaining information obtained within the preset waiting time is greater than a preset threshold, the monitoring of the remaining information of the terminal device can be stopped. The preset threshold can be, for example, an upper limit for monitoring. When the remaining information is greater than the preset threshold, it is considered that the remaining capacity of the terminal device is sufficient.

[0090] If the real-time remaining information obtained within the preset waiting time is less than the preset lower limit value, the terminal device is controlled to close the valve.

[0091] Specifically, a preset lower limit value may be set. If the real-time balance information obtained within the preset waiting time is less than the preset lower limit value, it can be considered that the user has not recharged in time and the balance is seriously insufficient. Therefore, the terminal device may be controlled to close the valve.

[0092] Furthermore, the preset lower limit value may be an overdraft value, such as -50 liters, indicating that the user can overdraft 50 liters of energy at most.

[0093] Step 308: When the remaining amount information or the real-time remaining amount information is greater than a preset threshold, the terminal device is controlled to open the valve.

[0094] After the valve is closed due to insufficient margin, the real-time margin information of the terminal device can continue to be obtained at the preset frequency, or the margin information of the terminal device can be obtained periodically. When the obtained margin information or real-time margin information is greater than the preset threshold, the terminal device development can be controlled.

[0095] Furthermore, the early warning information of the terminal device can also be obtained. When the valve of the terminal device is opened, if the early warning information does not include a preset alarm, the valve of the terminal device can be opened.

[0096] Figure 4 This is a structural diagram of a device for determining a state of a terminal device according to an exemplary embodiment of the present application.

[0097] like Figure 4 As shown, the terminal device status determination device 40 provided in this embodiment includes:

[0098] An information acquisition module 41 is used to acquire remaining information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data;

[0099] The status determination module 42 is used to determine the balance information status corresponding to the terminal device according to the real-time data and / or the historical consumption data.

[0100] The specific principle and implementation method of the device for reminding that the instrument meter credential information is insufficient provided in this embodiment are similar to Figure 1 The embodiments shown are similar and will not be described again here.

[0101] Figure 5 This is a structural diagram of a device for determining a state of a terminal device according to another exemplary embodiment of the present application.

[0102] like Figure 5 As shown, based on the above embodiment, in the terminal device state determination device 50 provided in this embodiment, the state determination module 42 includes:

[0103] A prediction unit 421, configured to predict energy usage information based on the real-time data and / or the historical consumption data;

[0104] The determination unit 422 is used to determine whether the remaining information of the terminal device is sufficient according to the predicted energy usage information.

[0105] The prediction unit 421 is specifically used for:

[0106] Determine the available time of energy according to the real-time flow included in the real-time data or the historical consumption data, and the remaining information; wherein, when energy is used, the real-time data includes the real-time flow;

[0107] Accordingly, the determining unit 422 is specifically configured to:

[0108] If the energy available time is less than the preset time, it is determined that the remaining information of the terminal device is insufficient.

[0109] The prediction unit 421 is specifically used for:

[0110] The consumable time of the remaining energy information is predicted based on the accumulated energy consumption and / or instantaneous energy consumption within a preset time period.

[0111] The prediction unit 421 is specifically used for:

[0112] Predicting the energy consumption in a future target period based on the cumulative energy consumption and / or instantaneous energy consumption in a preset time period; or predicting the energy consumption corresponding to the next energy use cycle based on the cumulative energy consumption and / or instantaneous energy consumption in a preset time period;

[0113] Correspondingly, the determination unit 422 is specifically used to: if the difference between the remaining capacity information of the terminal device and the predicted energy consumption is less than a threshold, determine that the remaining capacity of the terminal device is insufficient.

[0114] The prediction unit 421 is specifically used for:

[0115] Determine the available time of energy according to the real-time flow included in the real-time data and the remaining information; wherein, when energy is used, the real-time data includes the real-time flow;

[0116] Determine the historical energy usage duration corresponding to the current moment based on the instantaneous consumption within a preset time period;

[0117] Accordingly, the determining unit 422 is specifically configured to:

[0118] If the energy available time is less than the energy historical usage time corresponding to the current moment, it is determined that the remaining information of the terminal device is insufficient.

[0119] Optionally, the apparatus further comprises a reminder module 42, which is used to remind a user corresponding to the terminal device according to attribute information of the terminal device if the balance information status of the terminal device is insufficient.

[0120] Optionally, the device further includes a control module 43, configured to:

[0121] If the balance information state of the terminal device is insufficient, obtaining the real-time balance information of the terminal device at a preset frequency after a preset interval;

[0122] If the real-time remaining information obtained within the preset waiting time is greater than a preset threshold, the acquisition of the real-time remaining information is stopped.

[0123] The control module 43 is also used for:

[0124] If the real-time remaining information obtained within the preset waiting time is less than the preset lower limit value, the terminal device is controlled to close the valve.

[0125] The control module 43 is also used for:

[0126] When the remaining amount information or the real-time remaining amount information is greater than a preset threshold, the terminal device is controlled to open a valve.

[0127] The specific principle and implementation method of the device for reminding that the instrument meter credential information is insufficient provided in this embodiment are similar to Figure 3 The embodiments shown are similar and will not be described again here.

[0128] Figure 6 The figure is a structural diagram of an electronic device shown as an exemplary embodiment of the present application.

[0129] like Figure 6 As shown, the electronic device provided in this embodiment includes:

[0130] Memory 61;

[0131] Processor 62; and

[0132] Computer programs;

[0133] The computer program is stored in the memory 61 and is configured to be executed by the processor 62 to implement any of the terminal device status determination methods described above.

[0134] This embodiment also provides a computer-readable storage medium having a computer program stored thereon.

[0135] The computer program is executed by a processor to implement any of the terminal device status determination methods described above.

[0136] This embodiment also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the methods for determining the state of a terminal device as described above.

[0137] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for determining the state of a terminal device, It is characterized in that include: Acquire remaining information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data; Predicting the energy usage corresponding to the next energy usage cycle based on the accumulated energy consumption and / or instantaneous energy consumption within a preset time period; wherein the energy usage cycle includes a breakfast usage cycle, a lunch usage cycle and a dinner usage cycle, and predicting the energy usage required for the next cycle based on the determined energy consumption corresponding to each meal; if the difference between the remaining energy information of the terminal device and the predicted energy usage is less than a threshold, determining that the remaining energy of the terminal device is insufficient; Alternatively, the energy available time is determined according to the real-time traffic included in the real-time data and the balance information; wherein, when the energy is used, the real-time data includes the real-time traffic; according to the instantaneous consumption in the preset time period, the energy historical usage time corresponding to the current moment is determined, wherein the energy historical usage time is the duration of the energy usage cycle corresponding to the current moment, wherein the energy usage cycle includes a breakfast usage cycle, a lunch usage cycle and a dinner usage cycle, and the energy usage required for the next cycle is predicted according to the determined energy consumption corresponding to each meal; if the energy available time is less than the energy historical usage time corresponding to the current moment, it is determined that the balance information of the terminal device is insufficient; If the balance information status of the terminal device is insufficient, a user corresponding to the terminal device is reminded according to the attribute information of the terminal device, and real-time balance information of the terminal device is obtained at a preset frequency after a preset interval; If the real-time remaining information obtained within the preset waiting time is greater than a preset threshold, stop obtaining the real-time remaining information; If the real-time remaining information obtained within the preset waiting time is less than the preset lower limit, the terminal device is controlled to close the valve; When the remaining amount information or the real-time remaining amount information is greater than a preset threshold, the terminal device is controlled to open a valve.

2. A device for determining the state of a terminal device, It is characterized in that include: An information acquisition module, used to acquire remaining information and usage information corresponding to the terminal device, wherein the usage information includes real-time data and / or historical consumption data; A state determination module, used to determine the balance information state corresponding to the terminal device according to the real-time data and / or the historical consumption data; The device further includes a reminder module, which is used to remind a user corresponding to the terminal device according to the attribute information of the terminal device if the balance information status of the terminal device is insufficient; The device also includes a control module, which is used to: If the balance information state of the terminal device is insufficient, obtaining the real-time balance information of the terminal device at a preset frequency after a preset interval; If the real-time remaining information obtained within the preset waiting time is greater than a preset threshold, stop obtaining the real-time remaining information; If the real-time remaining information obtained within the preset waiting time is less than the preset lower limit, the terminal device is controlled to close the valve; When the remaining amount information or the real-time remaining amount information is greater than a preset threshold, controlling the terminal device to open a valve; The state determination module comprises: A prediction unit, configured to predict energy usage information based on the real-time data and / or the historical consumption data; A determination unit, configured to determine whether the remaining energy information of the terminal device is sufficient according to the predicted energy usage information; The prediction unit is specifically used for: Predicting the energy usage corresponding to the next energy usage cycle based on the cumulative energy consumption and / or instantaneous energy consumption within a preset time period; wherein the energy usage cycle includes a breakfast usage cycle, a lunch usage cycle and a dinner usage cycle, and predicting the energy usage required for the next cycle based on the determined energy consumption corresponding to each meal; Accordingly, the determining unit is specifically configured to: determine that the remaining capacity of the terminal device is insufficient if the difference between the remaining capacity information of the terminal device and the predicted energy usage is less than a threshold; Alternatively, the prediction unit is specifically used for: Determine the available time of energy according to the real-time flow included in the real-time data and the remaining information; wherein, when energy is used, the real-time data includes the real-time flow; According to the instantaneous consumption in the preset time period, the historical energy usage duration corresponding to the current moment is determined, wherein the historical energy usage duration is the duration of the energy usage cycle corresponding to the current moment; wherein the energy usage cycle includes a breakfast usage cycle, a lunch usage cycle and a dinner usage cycle, and the energy usage required for the next cycle is predicted based on the determined energy consumption corresponding to each meal; Accordingly, the determining unit is specifically configured to: If the energy available time is less than the energy historical usage time corresponding to the current moment, it is determined that the remaining information of the terminal device is insufficient.

3. An electronic device, It is characterized in that include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and configured to be executed by the processor to implement the method according to claim 1.

4. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, The computer program is executed by a processor to implement the method according to claim 1.

5. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method of claim 1 when being executed by a processor.