CN110942398A - Electricity charge statistical method and device - Google Patents

Electricity charge statistical method and device Download PDF

Info

Publication number
CN110942398A
CN110942398A CN201910981398.4A CN201910981398A CN110942398A CN 110942398 A CN110942398 A CN 110942398A CN 201910981398 A CN201910981398 A CN 201910981398A CN 110942398 A CN110942398 A CN 110942398A
Authority
CN
China
Prior art keywords
machine
internal
owner
internal machine
power consumption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910981398.4A
Other languages
Chinese (zh)
Inventor
毛立祥
田野
李磊
周严
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Zmvision Technology Co Ltd
Original Assignee
Wuhan Zmvision Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Zmvision Technology Co Ltd filed Critical Wuhan Zmvision Technology Co Ltd
Priority to CN201910981398.4A priority Critical patent/CN110942398A/en
Publication of CN110942398A publication Critical patent/CN110942398A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • G01R22/06Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
    • G01R22/10Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods using digital techniques
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Water Supply & Treatment (AREA)
  • Public Health (AREA)
  • Power Engineering (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an electric charge statistical method and a device, wherein the method is applied to a back end, the back end comprises a read thread and a write thread, and the method comprises the following steps of; the reading thread receives the internal machine information and the external machine information, and counts the running time and the power consumption of the external machine according to the received external machine information after the synchronous signal is detected; according to the power consumption of the external machine and the received internal machine information, the power charge of each distributed internal machine is counted; calculating the electricity charge balance of each owner according to the electricity charge of each distributed internal machine; and when detecting that the target owner with the electricity charge balance lower than the preset value exists, the writing thread sends a shutdown control instruction to the internal machine owned by the target owner, so that the internal machine owned by the target owner is shut down according to the shutdown control instruction. By applying the embodiment of the invention, the rationality and the efficiency of the electricity charge statistics are improved.

Description

Electricity charge statistical method and device
Technical Field
The invention relates to the technical field of electric energy statistics, in particular to an electric charge statistical method and device.
Background
Along with the improvement of the living standard of people, the air conditioning units are more and more widely applied, for example, one or more sets of air conditioning units are deployed in commercial occasions such as markets, hotels, office buildings and the like and residential living places, different internal units of one set of air conditioning units can be used for different merchants or owners, and at the moment, the internal units need to be subjected to electricity charge statistics, so that electricity charges consumed by the different internal units are counted, and the air conditioning electricity charges of the owners are settled.
At present, the electricity charge statistics method needs to perform electricity charge statistics on each air conditioner internal unit, and because some internal units are not distributed to an owner, the electricity charge statistics is often not reasonable enough when the electricity charge statistics is performed, inconvenience is brought to property and the owner easily, and unnecessary electricity charge statistics also affects electricity charge statistics efficiency.
Therefore, it is necessary to design a new electricity rate statistical method to overcome the above problems.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a device for counting electric charges so as to improve the rationality and efficiency of electric charge counting.
The invention is realized by the following steps:
in a first aspect, the present invention provides an electricity charge statistics method, which is applied to a back end, where the back end includes a read thread and a write thread, and the method includes;
the reading thread receives the internal machine information and the external machine information, and counts the running time and the power consumption of the external machine according to the received external machine information after the synchronous signal is detected; according to the power consumption of the external machine and the received internal machine information, the power charge of each distributed internal machine is counted; calculating the electricity charge balance of each owner according to the electricity charge of each distributed internal machine;
and when detecting that a target owner with the electricity charge balance lower than a preset value exists, the write thread sends a shutdown control instruction to the internal machine owned by the target owner, so that the internal machine owned by the target owner is shut down according to the shutdown control instruction.
Optionally, the method further includes:
and after receiving the control command sent by the front end, the write thread controls the internal machine to run according to the received control command.
Optionally, the method further includes:
and after the preset time point is reached, the write thread sets the state value of the internal machine acted by the preset state setting condition as the preset state value according to the preset state setting condition.
Optionally, the step of counting, by the read thread, the power charge of each allocated internal machine according to the power consumption of the external machine and the received internal machine message includes:
the reading thread determines whether the distributed internal machines exist in a working state or not according to the received internal machine information;
if the distributed internal machines have the internal machines in the working state, calculating the running cost of each internal machine in the working state in the distributed internal machines according to the power consumption of the external machines;
if the distributed internal machines do not have the internal machines in the working state, calculating the standby cost of each distributed internal machine according to the power consumption of the external machine;
and for each allocated internal machine, taking the calculated running cost or standby cost of the allocated internal machine as the electric charge of the allocated internal machine.
Optionally, the calculating, by the read thread, the running cost of each internal machine in a working state among the allocated internal machines according to the power consumption of the external machine includes:
counting the number of the internal machines in the working state in the distributed internal machines based on the received internal machine messages;
dividing the power consumption of the external machine by the number of the internal machines in the working state in the distributed internal machines to be used as the power consumption of each internal machine in the working state in the distributed internal machines; and substituting the power consumption of each internal machine in the working state in the distributed internal machines into a preset power charge calculation formula to obtain the running cost of each internal machine in the working state in the distributed internal machines.
Optionally, the step of calculating, by the read thread, the standby cost of each allocated internal unit according to the power consumption of the external unit includes:
counting the number of distributed indoor units based on the received indoor unit messages; determining the current charging mode;
if the current charging mode is a basic charge mode or an average distribution mode, dividing the power consumption of the external unit by the number of the distributed internal units to be used as the power consumption of each distributed internal unit; substituting the power consumption of each distributed internal machine into a preset power charge calculation formula to serve as the standby charge of each distributed internal machine;
if the current charging mode is a time distribution mode, determining the running time of each distributed internal machine and the total running time of all distributed internal machines; for each allocated indoor unit, dividing the running time of the allocated indoor unit by the total running time to obtain the occupation ratio of the allocated indoor unit; multiplying the power consumption of the allocated indoor unit by the power consumption of the outdoor unit to obtain the power consumption of the allocated indoor unit; and substituting the power consumption of the distributed internal machine into a preset power charge calculation formula to be used as the standby charge of the distributed internal machine.
Optionally, the step of calculating, by the reading thread, the electricity fee balance of each owner according to the electricity fee of each allocated internal machine includes:
for the internal machine of which the electric charge comes from the standby charge, if the current charging mode is the basic charge mode, keeping the balance of the electric charge of each owner unchanged; if the current charging mode is an average distribution mode or a time distribution mode, taking the sum of the standby fees of the indoor units owned by the same owner as the current electricity fee of the owner; for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner;
for the internal machines of which the electricity charges are derived from the operation charges, taking the sum of the operation charges of the internal machines owned by the same owner as the current electricity charge of the owner; and for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner.
Optionally, the method further includes:
the reading thread respectively determines inner machine alarm information and outer machine alarm information based on the received inner machine message and outer machine message, and records the inner machine alarm information and the outer machine alarm information;
and after receiving the alarm query instruction sent by the front end, the write thread sends the inner machine alarm information and the outer machine alarm information to the front end.
In a second aspect, the present invention provides an electric charge statistics apparatus, which is applied to a back end, where the back end includes a read thread and a write thread: the device comprises:
the counting module is used for receiving the internal machine information and the external machine information through the reading thread, and counting the running time of the external machine and the power consumption of the external machine according to the received external machine information after the synchronous signal is detected; according to the power consumption of the external machine and the received internal machine information, the power charge of each distributed internal machine is counted; calculating the electricity charge balance of each owner according to the electricity charge of each distributed internal machine;
and the sending module is used for sending a shutdown control instruction to the internal machine owned by the target owner when the write thread detects that the target owner with the electricity charge balance lower than the preset value exists, so that the internal machine owned by the target owner is shut down according to the shutdown control instruction.
Optionally, the apparatus further includes a receiving module, configured to:
and after receiving the control command sent by the front end through the write thread, controlling the internal machine to run according to the received control command.
Optionally, the apparatus further includes a setting module, configured to:
and after the preset time point is reached, setting the state value of the internal machine acted by the preset state setting condition as the preset state value according to the preset state setting condition through the write thread.
Optionally, the counting module counts the power fee of each allocated internal machine according to the power consumption of the external machine and the received internal machine message through a reading thread, and specifically includes:
determining whether the internal machine in the working state exists in the distributed internal machines according to the received internal machine information through the reading thread;
if the distributed internal machines have the internal machines in the working state, calculating the running cost of each internal machine in the working state in the distributed internal machines according to the power consumption of the external machines;
if the distributed internal machines do not have the internal machines in the working state, calculating the standby cost of each distributed internal machine according to the power consumption of the external machine;
and for each allocated internal machine, taking the calculated running cost or standby cost of the allocated internal machine as the electric charge of the allocated internal machine.
Optionally, the statistical module calculates, through the read thread, the operating cost of each of the allocated internal machines in the operating state according to the power consumption of the external machine, specifically:
counting the number of the internal machines in the working state in the distributed internal machines based on the received internal machine information through the reading thread;
dividing the power consumption of the external machine by the number of the internal machines in the working state in the distributed internal machines to be used as the power consumption of each internal machine in the working state in the distributed internal machines; and substituting the power consumption of each internal machine in the working state in the distributed internal machines into a preset power charge calculation formula to obtain the running cost of each internal machine in the working state in the distributed internal machines.
Optionally, the counting module calculates the standby cost of each allocated internal unit according to the power consumption of the external unit through the reading thread, specifically:
counting the number of distributed indoor units based on the received indoor unit messages through the reading thread; determining the current charging mode;
if the current charging mode is a basic charge mode or an average distribution mode, dividing the power consumption of the external unit by the number of the distributed internal units to be used as the power consumption of each distributed internal unit; substituting the power consumption of each distributed internal machine into a preset power charge calculation formula to serve as the standby charge of each distributed internal machine;
if the current charging mode is a time distribution mode, determining the running time of each distributed internal machine and the total running time of all distributed internal machines; for each allocated indoor unit, dividing the running time of the allocated indoor unit by the total running time to obtain the occupation ratio of the allocated indoor unit; multiplying the power consumption of the allocated indoor unit by the power consumption of the outdoor unit to obtain the power consumption of the allocated indoor unit; and substituting the power consumption of the distributed internal machine into a preset power charge calculation formula to be used as the standby charge of the distributed internal machine.
Optionally, the counting module calculates the electricity fee balance of each owner according to the electricity fee of each allocated internal machine through the reading thread, and specifically includes:
for the internal machine of which the electric charge comes from the standby charge, if the current charging mode is the basic charge mode, keeping the balance of the electric charge of each owner unchanged; if the current charging mode is an average distribution mode or a time distribution mode, taking the sum of the standby fees of the indoor units owned by the same owner as the current electricity fee of the owner; for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner;
for the internal machines of which the electricity charges are derived from the operation charges, taking the sum of the operation charges of the internal machines owned by the same owner as the current electricity charge of the owner; and for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner.
Optionally, the apparatus further comprises an alarm module, configured to:
respectively determining inner machine alarm information and outer machine alarm information based on the received inner machine information and outer machine information through the reading thread, and recording the inner machine alarm information and the outer machine alarm information;
and after receiving an alarm query instruction sent by the front end through the write thread, sending the inner machine alarm information and the outer machine alarm information to the front end.
The invention has the following beneficial effects: by applying the embodiment of the invention, the rear end realizes the centralized control of the internal machine and the external machine, can quickly count the electric quantity of the internal machine and the electricity charge balance of an owner, further controls the shutdown of the internal machine owned by a target owner with the electricity charge balance lower than a preset value, and realizes the reasonable control of the internal machine; because the electricity charge statistics is only carried out on the distributed internal machines, the electricity charge statistics is not required to be carried out on the internal machines which are not distributed, the unnecessary electricity charge statistics times are reduced, and the electricity charge statistics efficiency is improved; the reading thread can read the information of the internal machine and the external machine and carry out relevant electricity charge statistical operation, the writing thread can send instructions to the internal machine to control the running state of the internal machine, and the statistical efficiency is further improved through the division and cooperation of the reading thread and the writing thread; in addition, the reading thread carries out statistical operation only after detecting the synchronous signal, thereby avoiding influencing the statistical efficiency due to continuous statistics.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an electric charge statistics method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electric charge statistics apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems of low reasonability and low efficiency of electric charge statistics in the prior art, the embodiment of the invention discloses an electric charge statistics method and device. It should be noted that the electricity charge statistical method provided by the embodiment of the present invention may be applied to a back end, and in a specific application, the back end may be a device capable of receiving an internal message and an external message and processing data, such as a centralized controller, a server, a mobile phone, a tablet computer, and a personal computer.
Fig. 1 is a schematic flow chart of an electric charge statistics method according to an embodiment of the present invention. As shown in fig. 1, the method for calculating an electricity charge provided by the embodiment of the present invention may be applied to a back end, where the back end may include a read thread and a write thread, and may include the following steps:
s101, the reading thread receives an internal machine message and an external machine message, and after a synchronous signal is detected, the running time of an external machine and the power consumption of the external machine are counted according to the received external machine message; according to the power consumption of the external machine and the received internal machine information, the power charge of each distributed internal machine is counted; calculating the electricity charge balance of each owner according to the electricity charge of each distributed internal machine;
s102, when detecting that a target owner with the electricity charge balance lower than a preset value exists, the write thread sends a shutdown control instruction to the internal machine owned by the target owner, so that the internal machine owned by the target owner is shut down according to the shutdown control instruction.
The internal machine message may include a power consumption of the external machine, an alarm message, and the like. The rear end can be the equipment that centralized control ware etc. was used for controlling interior machine, outer machine, and the rear end can receive interior machine message and outer machine message to information such as the charges of electricity of statistics interior machine, operating duration, the number of times of starting up also can count outer machine operating duration and outer quick-witted power consumption, can also record interior machine alarm information and outer quick-witted alarm information, thereby the warning inquiry instruction of response front end realizes the management and control to interior machine and outer machine.
The back end can comprise two threads, namely a read thread and a write thread, wherein the read thread can read information of internal and external machines and carry out related operation, the write thread can receive the issue of a front-end control instruction, and when the control instruction is received, the drive layer interface can be called to complete the setting specified by the control instruction. By adopting the mode, through the division and cooperation of the reading thread and the writing thread, even for the operation of the database, which is cpu intensive, and under the condition that the number of the internal and external machines is more (not less than 500), the phenomenon of obvious blockage (2-3s) can not occur, and the control instruction of the front end to the internal and external machines and other self-defined instructions can be responded in time.
The synchronous signal can be generated once every 2 minutes, before the synchronous signal arrives, a reading thread at the rear end can always receive the internal machine message and the external machine message, and after the synchronous signal is detected, the state information of the internal machine and the external machine can be counted; and the internal machine information and the external machine information received 2 minutes before can be discarded every time the internal machine state information and the external machine state information are counted, so that the reading thread can start to receive the next internal machine information and the next external machine information.
If the synchronous signal is generated once every 2 minutes, the electricity charge of the internal machine can be counted once every two minutes, all the information of the internal machine and the information of the external machine at the current moment can be recorded by using the info _ from _ drive _ now variable, the information of the internal machine and the information of the external machine before two minutes can be recorded by using the info _ from _ drive _ pre variable, and the electricity consumption, the running time and the starting times of the internal machine with two minutes can be obtained by comparing the information of the internal machine and the external machine before and after two times. The coll _ message _ turn _ round variable may be used to record the electricity charge statistics of the internal unit after the power is turned on.
For convenience of program maintenance, if some new functional modules are added, the functional modules are mainly used for sending or receiving instructions, if the functional modules are related to the sending instructions, the functional modules can be placed in a writing thread, if the functional modules are related to the receiving instructions, the functional modules can be placed in a reading thread, if the functional modules are not related, the functional modules can be set independently by considering the actual situation.
The rear end can carry out centralized control on an inner machine and an outer machine of the air conditioning unit, and the counted electricity charge of the inner machine can be distributed to an owner of the inner machine. An air conditioning unit may have at least one outdoor unit and at least one indoor unit, and each outdoor unit may provide heating or cooling for the plurality of indoor units. If at least one distributed internal machine is in a working state under one air conditioning unit, the power consumption of the external machine is distributed by each distributed internal machine in the working state.
In addition, the scanning period of the reading line of the rear end to the internal unit and the external unit can be 2 minutes, namely the centralized controller can receive the information of the internal unit and the information of the external unit once every 2 minutes, and the running time and the power consumption of the external unit can be counted by comparing and calculating the currently received information of the external unit and the information of the external unit received last time; the running time of the indoor unit can be counted by comparing and calculating the currently received indoor unit information and the indoor unit information received last time; according to the power consumption of the external machine, the running time of the internal machine, the working state of the internal machine and the distribution condition, the power consumption condition of the internal machine in the scanning period can be obtained.
The statistics on the number of times of starting and the running time of the internal machine may be: after the information of each internal machine is read, the on-off state of each internal machine is recorded, and after two minutes, the on-off state of each internal machine is also obtained and compared, wherein the four conditions are as follows:
starting up and starting up: the startup times are not changed, and the running time is increased by two minutes;
starting up and shutting down: the startup times are not changed, and the running time is increased by one minute by default, namely, a half of the statistical period;
shutdown and startup: the starting time is increased by one, and the running time is defaulted to be increased by one minute, namely, a half of the counting period;
shutdown and shutdown: the number of times of starting up is not changed, and the running time is not changed.
The same manner can be adopted to count the startup times and the running time of the external unit, and details are not described herein.
Because one outdoor unit can mount a large number of indoor units, if the number of the indoor units is too large, the query speed of the front end to the database is easily influenced, and the user experience is influenced. For example, when an external machine is fully loaded to support 4096 internal machines, 4096 pieces of internal machine information are generated by each statistic, and the number of newly generated data in one day of the database can be calculated as follows: 4096 × 30 × 24 ═ 2949120. Millions of data are fatal to an embedded database every day, because in the process of balancing data volume and sql access speed, the database can only bear millions of data at most in the life cycle of a system on an embedded platform. In order to solve the problem, the access speed of each storage medium can be fully optimized, and the data can be statistically optimized at the same time, wherein the specific data statistical optimization mode is as follows:
after the reading program receives the information of the internal machine and the information of the external machine, the electricity charge of the internal machine in the scanning period (2 minutes) can be calculated, after the electricity charge of one internal machine is calculated, the current hour within one day at the current moment is firstly inquired, if the internal machine has no electricity charge record in the current hour, the current record is inserted into an electricity charge detail table, and if the electricity charge record exists, the record value is added with the currently calculated electricity charge to update the record value; if the current time is in an hour transition period, namely the current calculation period is not in the same hour as the previous calculation period, firstly inquiring the day of Greenwich mean time of the current time, if the internal unit has no electricity charge record on the current day, inserting the current record into an electricity charge statistical table, and if the electricity charge record exists, adding the record value with the currently calculated electricity charge to update the record value; and exporting the electric charge detail table to the SD card for storage after entering the next day, and emptying the data in the local table.
The electric charge detail table and the electric charge statistical table are respectively used for storing the electric charge detail of the current day and the statistical condition of the electric charge of the current day; by adopting the mode, only one database data is generated by the machine every day, the size stability of the database is ensured, and the access response speed is high.
When a user inquires the electricity charge of a certain time period at the front end, the attention to the time is coarse granularity, for example, electricity charge inquiry of 5 month 1 to 5 month 15 days can occur with high probability, and inquiry of 12 to 15 points is a small probability event.
In addition, when the database files are stored on different storage media, the database can show different access speeds, specifically, the memory is more than NAND flash and more than SD card.
Firstly, the configuration of a database layer about data cache is carried out, when a database is accessed by using sql statements, in order to improve the access speed, a database interface function can cache partial data into a back-end memory, the size of a database page can be set to be 4KB, the maximum cache page number is 8000 pages, and when the related sql statements are executed, the back end can fully utilize the memory to improve the access speed. The whole database file of the back end can be stored in the NAND flash, but the capacity is limited, and as the electricity charge statistical table in the database is a table which continuously increases along with time, when the running time of the back end exceeds 200 days, the NANDflash can be exhausted in capacity under the condition that an internal machine is fully loaded, so that part of the file in the database can be transferred to the SD card.
In order to further improve the access speed, only data which is 200 days away from the current time can be stored in the local NAND flash, when the back-end running time is less than 200 days, the electricity charge statistical table can be stored in the NAND flash, meanwhile, an identical backup is provided on the SD, when the back-end running time is more than 200 days, every time a piece of data is inserted into the electricity charge statistical table, electricity charge data which is 200 days away is deleted, the data in the NAND flash is kept within 200 days, and the data in the SD card is continuously backed up according to the statistical condition of the current day, so that a complete database file is always kept on the SD card, and when the query time is more than 200 days, the database file on the SD card can be used.
In order to distribute the internal machine to the owner and then count the electricity charge balance of the owner according to the electricity consumption condition of the internal machine, a database charging distribution relation table can be preset. Specifically, the database charging distribution relation table may be set in advance in the following manner: establishing an owner key information table by using the owner key information; establishing an electric charge statistical information table by using the electric charge statistical information of the internal machine; and establishing a database charging distribution relation table according to the owner key information table and the electric charge statistical information table.
For example, the owner key information table may be as shown in table 1 below, the electricity rate statistics information table may be as shown in table 2 below, and the database billing allocation relationship table may be as shown in table 3 below:
TABLE 1
Figure BDA0002235298860000131
TABLE 2
id iac_id exe_time open_times kwh_open cost_open
Unique orderColumn number Inner machine serial number Execution time Number of times of starting up Power consumption Amount of electricity consumed
TABLE 3
id iac_id user_id start_day end_day status
Unique serial number Inner machine serial number Owner's serial number Starting time End time Whether or not it is effective
Key information of the owner is recorded in table 1, including a unique serial number, an owner name, an owner telephone, a floor, a state, a remark, an electric charge balance and the like; the counted internal machine state information including the unique serial number, the internal machine serial number, the execution time, the startup times, the power consumption amount (electricity charge), and the like is recorded in table 2; when the internal machine is to be allocated to the owner, at least three pieces of information can be determined, namely the binding relationship between the internal machine and the owner, the existence time of the binding relationship, and whether the binding relationship is valid or not. The binding relationship between the internal machines and the proprietor is complex, the database charging distribution relationship table can keep the historical data of the internal machine distribution relationship, so that the historical power utilization condition of the proprietor can be counted only by query operation, and accordingly, the distribution relationship table shown in the table 3 can be established.
Whether the distribution relation is valid or not is marked to indicate whether the distribution relation is valid at the current moment, if the distribution relation is valid, the electricity charge statistics is carried out on the internal machine, and if the distribution relation is invalid, the internal machine is distributed to other owners.
Through the database charging distribution relation table, the read thread at the rear end can determine the distribution condition of each internal machine, and further can count the currently distributed internal machines, so that invalid data is reduced; when the front end inquires about the electricity consumption condition of the owner in a period of time, all distribution relations related to the owner in the period of time can be found, then the total electricity consumption of the owner can be calculated by accumulating the electricity consumption and the electricity consumption amount of the electricity charge statistical table in the time range of each internal machine corresponding to the distribution relations, and further the electricity charge balance of each owner can be calculated.
Because the distribution relation between the owner and the internal machine may change, if only one field is directly added in the internal machine table to explain the distribution condition of the internal machine, and the start time and the end time field are not added, when the internal machine is redistributed, the attribution condition of the internal machine in different time periods cannot be distinguished, so when determining that the internal machine belongs to a certain owner, the start time and the end time can be recorded. Therefore, in a certain time period, when the attribution of a certain internal machine is changed, the internal machine can be removed when the industry main electricity is counted. In addition, when a business owner is deleted, his historical bills may be kept for 2 or 3 years for inquiry.
When data storage is considered, in order to improve the utilization rate of storage space and the access efficiency, the invention can use a sub-library storage mode, which specifically comprises the following steps: a database is newly built on an SD card to store an electric charge statistical table, the electric charge statistical table is used for storing data generated in the back-end operation process, namely electric charge data to be reserved, the electric charge data which is 1 year away from the current time in the card is read into a memory file system when power is on and started, the memory database is only required to be inquired when the current end requests the electric charge data within 1 year, and the data in the SD card is required to be inquired when the inquiry time exceeds one year, so that the scheme not only stores the space utilization rate and the access efficiency, but also improves the electric charge inquiry efficiency,
if the target owner with the electricity charge balance lower than the preset value exists, the target owner indicates that the electricity charge balance of the target owner is lower, the internal machine owned by the owner cannot be maintained to continue to operate, and therefore a shutdown control instruction can be sent to the internal machine owned by the target owner, and the internal machine owned by the target owner is shut down according to the shutdown control instruction. The preset value may be set in advance according to requirements, and may be 0, for example.
By applying the embodiment of the invention, the centralized control of the internal machine and the external machine is realized, the electric quantity of the internal machine and the electricity charge balance of an owner can be rapidly counted, the internal machine owned by the target owner with the electricity charge balance lower than the preset value is controlled to be powered off, and the reasonable management and control of the internal machine are realized.
In one implementation, the method may further include:
and after receiving the control command sent by the front end, the write thread controls the internal machine to run according to the received control command.
The front end may be a device capable of communicating with the back end, may send control commands to the back end, and may also receive information fed back by the back end for the control commands. The control commands may include commands for modifying the status of the internal machine, commands for locking the remote controller, commands for clearing the external machine electricity meter reading, commands for modifying the configuration information related to the running of the background program, and the like.
For example, the front end may send form data using a get/post method, the back end writes the form data into a relevant environment variable after receiving the form data, and the back end may first parse the form data and store the form data into a relevant structure in a form of value. Establishing a callback function lookup table in a local service program, corresponding to the relationship between the character string and the callback function, and finding processing functions under different links in a table lookup mode so as to provide corresponding services for the front end, wherein the method comprises the following two aspects: firstly, accessing the database to provide basic operations such as related addition, deletion, modification, check and the like, and secondly, completing control or reading related states of the internal machine and the external machine.
The back end can finish centralized control and management of the air conditioner indoor unit and the air conditioner outdoor unit, perform power charge statistics on the distributed indoor units, interact with a front-end user in a web mode, and respond to a front-end request to feed back a processing result immediately.
When the requester logs in with the administrator, the backend can create a cookie "name _ sha 1" in the front-end browser under the condition that the login is correct, and the subsequent communication completes the verification of the login state, the authority and the hash value by means of the cookie.
In one implementation, to implement schedule management of an internal machine, the method may further include:
and after the preset time point is reached, the write thread sets the state value of the internal machine acted by the preset state setting condition as the preset state value according to the preset state setting condition.
The preset state setting conditions may include state values of states of an operation mode, a wind speed setting, a temperature setting, whether to swing, an identifier of a locked remote controller, an identifier of an internal unit in the operation mode, and the like. The preset time point may be set in advance according to the requirement, for example, may be 8:00/10:00 per day, and so on. The user may set the preset time point with the front end, or the back end may pre-store a default preset time point.
For example, the operation mode, the wind speed setting, the temperature setting, whether to swing, whether to lock the remote controller, and the state values of the indoor unit identifier in the operation mode are respectively the refrigeration mode, the low speed, 24 ℃, no swing, and the remote controller locking, the indoor unit identifier in the operation mode includes an indoor unit a and an indoor unit b, the preset time point is 8:00 every day, and after the 8:00 every day is reached, the write thread sets the operation mode, the wind speed setting, the temperature setting, whether to swing, whether to lock the remote controller, respectively, as the refrigeration mode, the low speed, 24 ℃, no swing, and the remote controller locking.
By applying the embodiment of the invention, the schedule management can be carried out on the internal machine, and the further reasonable management and control of the internal machine are realized.
In one implementation, the counting, by the reading thread, the power rate of each allocated internal machine according to the power consumption of the external machine and the received internal machine message may include:
the reading thread determines whether the distributed internal machines exist in a working state or not according to the received internal machine information;
if the distributed internal machines have the internal machines in the working state, calculating the running cost of each internal machine in the working state in the distributed internal machines according to the power consumption of the external machines;
if the distributed internal machines do not have the internal machines in the working state, calculating the standby cost of each distributed internal machine according to the power consumption of the external machine;
and for each allocated internal machine, taking the calculated running cost or standby cost of the allocated internal machine as the electric charge of the allocated internal machine.
When the electricity consumption of each distributed internal machine is counted, the following two types of mutually exclusive logic at the same time are mainly analyzed: one is that the allocated internal machines are in working state, that is, under a certain machine set, there are internal machines allocated to the owner, and at least one of the allocated internal machines is in working state, and the electricity charge of the internal machine in working state among the allocated internal machines can be called as running charge; in another case, none of the allocated internal machines is in an operating state, and in this case, the electricity charge of the allocated internal machines may be referred to as standby charge. For the internal machine which is not allocated, the invention does not calculate the electricity fee.
The calculation of the standby cost is divided into three calculation modes, including: a basal cost mode, a mean distribution mode, and a time distribution mode. The standby fee in the basic fee mode can be borne by the property owner and is not involved in the calculation of the electricity fee of the owner, and the average distribution mode and the time distribution mode can be borne by the owner and are involved in the calculation of the electricity fee of the owner.
In one implementation, the calculating, by the read thread, the running cost of each of the allocated internal units in the operating state according to the power consumption of the external unit may include:
counting the number of the internal machines in the working state in the distributed internal machines based on the received internal machine messages;
dividing the power consumption of the external machine by the number of the internal machines in the working state in the distributed internal machines to be used as the power consumption of each internal machine in the working state in the distributed internal machines; and substituting the power consumption of each internal machine in the working state in the distributed internal machines into a preset power charge calculation formula to obtain the running cost of each internal machine in the working state in the distributed internal machines.
For example, assuming that there are 15 internal machines under a unit and 1 external machine provides cooling/heating of the internal machine, if in a synchronization signal, it can be determined from the received internal machine message that 8 internal machines are in working state, and 1 of the 8 internal machines is allocated to owner a and 3 of the 8 internal machines are allocated to owner B, then the power consumption of the external machine under the unit is only allocated by the four internal machines in working state and allocated to the owner, and the rest of the four internal machines which are not allocated consume the power of the external machine, but do not share the power, so the power consumption of the internal machine in working state of owner a is: 1/4, power consumption of the outdoor unit; the total power consumption of the three internal machines in the working state of the owner B is as follows: 3/4, and power consumption.
The step of calculating, by the read thread, the standby cost of each allocated internal unit according to the power consumption of the external unit may include:
counting the number of distributed indoor units based on the received indoor unit messages; determining the current charging mode;
if the current charging mode is a basic charge mode or an average distribution mode, dividing the power consumption of the external unit by the number of the distributed internal units to be used as the power consumption of each distributed internal unit; substituting the power consumption of each distributed internal machine into a preset power charge calculation formula to serve as the standby charge of each distributed internal machine;
if the current charging mode is a time distribution mode, determining the running time of each distributed internal machine and the total running time of all distributed internal machines; for each allocated indoor unit, dividing the running time of the allocated indoor unit by the total running time to obtain the occupation ratio of the allocated indoor unit; multiplying the power consumption of the allocated indoor unit by the power consumption of the outdoor unit to obtain the power consumption of the allocated indoor unit; and substituting the power consumption of the distributed internal machine into a preset power charge calculation formula to be used as the standby charge of the distributed internal machine.
The user can select the current charging mode through the front end, so that the back end can determine the charging mode selected by the user as the current charging mode. The standby charge calculation modes in different current charging modes are different, and the current charging mode may also be designed with other charging modes besides the above-mentioned basic charge mode, average distribution mode and time distribution mode, which is not limited in the present invention. The preset electricity charge calculation formula can be preset according to the actual situation, and the invention is not limited to this.
For example, when there are two allocated internal machines, it is determined at the current time that none of the two allocated internal machines is in the working state in the currently received internal machine message, and before that, one of the allocated internal machines works for 5 hours, and the other allocated internal machine works for 6 hours, then according to the time allocation mode, the power consumption of the first internal machine is: 5/(5+6) times of the power consumption of the external machine, and the power consumption of the other internal machine is as follows: 6/(5+6) times of the power consumption of the outdoor unit; according to the basic charge mode or the average distribution mode, the power consumption of the two distributed internal machines is as follows: 1/2 times of the power consumption of the outdoor unit.
In one implementation, the calculating, by the reading thread, an electricity fee balance of each owner according to an electricity fee of each allocated internal machine includes:
for the internal machine of which the electric charge comes from the standby charge, if the current charging mode is the basic charge mode, keeping the balance of the electric charge of each owner unchanged; if the current charging mode is an average distribution mode or a time distribution mode, taking the sum of the standby fees of the indoor units owned by the same owner as the current electricity fee of the owner; for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner;
for the internal machines of which the electricity charges are derived from the operation charges, taking the sum of the operation charges of the internal machines owned by the same owner as the current electricity charge of the owner; and for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner.
For example, 3 internal machines are allocated to the owner B, the running cost of each internal machine is 50 yuan, the electricity fee amount prestored by the owner is 200 yuan, and the electricity fee balance of the owner B is: 200- (50 x 3) ═ 50 yuan.
In order to facilitate the consulting of the alarm conditions of each internal unit and each external unit, the method further comprises the following steps:
the reading thread respectively determines inner machine alarm information and outer machine alarm information based on the received inner machine message and outer machine message, and records the inner machine alarm information and the outer machine alarm information;
and after receiving the alarm query instruction sent by the front end, the write thread sends the inner machine alarm information and the outer machine alarm information to the front end.
The inner machine message and the outer machine message can respectively comprise inner machine alarm information and outer machine alarm information, and the reading thread can directly extract the inner machine alarm information and the outer machine alarm information after receiving the inner machine message and the outer machine message, so that the inner machine alarm information and the outer machine alarm information can be recorded.
The user can send the alarm query instruction through the front end, for example, the front end can send the alarm query instruction to the rear end after detecting that the user clicks the alarm query button, and then the write thread of the rear end can send the inner alarm information and the outer alarm information to the front end after receiving the alarm query instruction sent by the front end.
By applying the embodiment of the invention, a user can conveniently look up the inner machine alarm information and the outer machine alarm information.
In another implementation, the line reading process may further perform a drop-off detection on the internal machine, and if it is detected that there is an internal machine in a drop-off state, generate drop-off alarm information based on the internal machine in the drop-off state.
The disconnection detection mode can be as follows: for each indoor unit, judging whether the currently received indoor unit information of the indoor unit and the indoor unit information of the indoor unit received last time are both in an offline state; if the indoor unit is in the off-line state, the indoor unit is judged to be in the off-line state, otherwise, the indoor unit is judged not to be in the off-line state. In addition, for each indoor unit serial number in the database, if the received indoor unit information does not include the indoor unit serial number, the indoor unit with the indoor unit serial number is determined to be in an offline state.
In one implementation, the reading process may further generate an electric bill, and the electric bill may include all internal machine historical power consumption details distributed by the owner. In the basic charge mode or the average distribution mode, the electricity bill and the owner's balance may be updated once per hour, and in the time distribution mode, the electricity bill may be updated once per hour and the owner's balance may be updated once per day. By applying the embodiment of the invention, the electric bill and the balance of the owner can be updated in time, and different updating modes are adopted in different modes, so that the user requirements are better met.
Corresponding to the method embodiment, the embodiment of the invention also provides an electric charge statistics device, which is applied to a back end, wherein the back end comprises a read thread and a write thread.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an electric charge statistics apparatus according to an embodiment of the present invention, the apparatus includes:
the counting module is used for receiving the internal machine information and the external machine information through the reading thread, and counting the running time of the external machine and the power consumption of the external machine according to the received external machine information after the synchronous signal is detected; according to the power consumption of the external machine and the received internal machine information, the power charge of each distributed internal machine is counted; calculating the electricity charge balance of each owner according to the electricity charge of each distributed internal machine;
and the sending module is used for sending a shutdown control instruction to the internal machine owned by the target owner when the write thread detects that the target owner with the electricity charge balance lower than the preset value exists, so that the internal machine owned by the target owner is shut down according to the shutdown control instruction.
By applying the embodiment of the invention, the rear end realizes the centralized control of the internal machine and the external machine, can quickly count the electric quantity of the internal machine and the electricity charge balance of an owner, further controls the shutdown of the internal machine owned by a target owner with the electricity charge balance lower than a preset value, and realizes the reasonable control of the internal machine; because the electricity charge statistics is only carried out on the distributed internal machines, the electricity charge statistics is not required to be carried out on the internal machines which are not distributed, the unnecessary electricity charge statistics times are reduced, and the electricity charge statistics efficiency is improved; the reading thread can read the information of the internal machine and the external machine and carry out relevant electricity charge statistical operation, the writing thread can send instructions to the internal machine to control the running state of the internal machine, and the statistical efficiency is further improved through the division and cooperation of the reading thread and the writing thread; in addition, the reading thread carries out statistical operation only after detecting the synchronous signal, thereby avoiding influencing the statistical efficiency due to continuous statistics.
Optionally, the apparatus further includes a receiving module, configured to:
and after receiving the control command sent by the front end through the write thread, controlling the internal machine to run according to the received control command.
Optionally, the apparatus further includes a setting module, configured to:
and after the preset time point is reached, setting the state value of the internal machine acted by the preset state setting condition as the preset state value according to the preset state setting condition through the write thread.
Optionally, the counting module counts the power fee of each allocated internal machine according to the power consumption of the external machine and the received internal machine message through a reading thread, and specifically includes:
determining whether the internal machine in the working state exists in the distributed internal machines according to the received internal machine information through the reading thread;
if the distributed internal machines have the internal machines in the working state, calculating the running cost of each internal machine in the working state in the distributed internal machines according to the power consumption of the external machines;
if the distributed internal machines do not have the internal machines in the working state, calculating the standby cost of each distributed internal machine according to the power consumption of the external machine;
and for each allocated internal machine, taking the calculated running cost or standby cost of the allocated internal machine as the electric charge of the allocated internal machine.
Optionally, the statistical module calculates, through the read thread, the operating cost of each of the allocated internal machines in the operating state according to the power consumption of the external machine, specifically:
counting the number of the internal machines in the working state in the distributed internal machines based on the received internal machine information through the reading thread;
dividing the power consumption of the external machine by the number of the internal machines in the working state in the distributed internal machines to be used as the power consumption of each internal machine in the working state in the distributed internal machines; and substituting the power consumption of each internal machine in the working state in the distributed internal machines into a preset power charge calculation formula to obtain the running cost of each internal machine in the working state in the distributed internal machines.
Optionally, the counting module calculates the standby cost of each allocated internal unit according to the power consumption of the external unit through the reading thread, specifically:
counting the number of distributed indoor units based on the received indoor unit messages through the reading thread; determining the current charging mode;
if the current charging mode is a basic charge mode or an average distribution mode, dividing the power consumption of the external unit by the number of the distributed internal units to be used as the power consumption of each distributed internal unit; substituting the power consumption of each distributed internal machine into a preset power charge calculation formula to serve as the standby charge of each distributed internal machine;
if the current charging mode is a time distribution mode, determining the running time of each distributed internal machine and the total running time of all distributed internal machines; for each allocated indoor unit, dividing the running time of the allocated indoor unit by the total running time to obtain the occupation ratio of the allocated indoor unit; multiplying the power consumption of the allocated indoor unit by the power consumption of the outdoor unit to obtain the power consumption of the allocated indoor unit; and substituting the power consumption of the distributed internal machine into a preset power charge calculation formula to be used as the standby charge of the distributed internal machine.
Optionally, the counting module calculates the electricity fee balance of each owner according to the electricity fee of each allocated internal machine through the reading thread, and specifically includes:
for the internal machine of which the electric charge comes from the standby charge, if the current charging mode is the basic charge mode, keeping the balance of the electric charge of each owner unchanged; if the current charging mode is an average distribution mode or a time distribution mode, taking the sum of the standby fees of the indoor units owned by the same owner as the current electricity fee of the owner; for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner;
for the internal machines of which the electricity charges are derived from the operation charges, taking the sum of the operation charges of the internal machines owned by the same owner as the current electricity charge of the owner; and for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner.
Optionally, the apparatus further comprises an alarm module, configured to:
respectively determining inner machine alarm information and outer machine alarm information based on the received inner machine information and outer machine information through the reading thread, and recording the inner machine alarm information and the outer machine alarm information;
and after receiving an alarm query instruction sent by the front end through the write thread, sending the inner machine alarm information and the outer machine alarm information to the front end.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An electric charge statistical method is applied to a back end, wherein the back end comprises a reading thread and a writing thread, and the method comprises the following steps;
the reading thread receives the internal machine information and the external machine information, and counts the running time and the power consumption of the external machine according to the received external machine information after the synchronous signal is detected; according to the power consumption of the external machine and the received internal machine information, the power charge of each distributed internal machine is counted; calculating the electricity charge balance of each owner according to the electricity charge of each distributed internal machine;
and when detecting that a target owner with the electricity charge balance lower than a preset value exists, the write thread sends a shutdown control instruction to the internal machine owned by the target owner, so that the internal machine owned by the target owner is shut down according to the shutdown control instruction.
2. The method of claim 1, further comprising:
and after receiving the control command sent by the front end, the write thread controls the internal machine to run according to the received control command.
3. The method of claim 1, further comprising:
and after the preset time point is reached, the write thread sets the state value of the internal machine acted by the preset state setting condition as the preset state value according to the preset state setting condition.
4. The method of claim 1, wherein the reading thread counts the power charge of each allocated indoor unit according to the power consumption of the outdoor unit and the received indoor unit message, and comprises the following steps:
the reading thread determines whether the distributed internal machines exist in a working state or not according to the received internal machine information;
if the distributed internal machines have the internal machines in the working state, calculating the running cost of each internal machine in the working state in the distributed internal machines according to the power consumption of the external machines;
if the distributed internal machines do not have the internal machines in the working state, calculating the standby cost of each distributed internal machine according to the power consumption of the external machine;
and for each allocated internal machine, taking the calculated running cost or standby cost of the allocated internal machine as the electric charge of the allocated internal machine.
5. The method according to claim 4, wherein the reading thread calculates the running cost of each of the allocated internal units in the working state according to the power consumption of the external unit, and the method comprises the following steps:
counting the number of the internal machines in the working state in the distributed internal machines based on the received internal machine messages;
dividing the power consumption of the external machine by the number of the internal machines in the working state in the distributed internal machines to be used as the power consumption of each internal machine in the working state in the distributed internal machines; and substituting the power consumption of each internal machine in the working state in the distributed internal machines into a preset power charge calculation formula to obtain the running cost of each internal machine in the working state in the distributed internal machines.
6. The method of claim 4, wherein the read thread calculates the standby cost of each allocated indoor unit according to the power consumption of the outdoor unit, and comprises:
counting the number of distributed indoor units based on the received indoor unit messages; determining the current charging mode;
if the current charging mode is a basic charge mode or an average distribution mode, dividing the power consumption of the external unit by the number of the distributed internal units to be used as the power consumption of each distributed internal unit; substituting the power consumption of each distributed internal machine into a preset power charge calculation formula to serve as the standby charge of each distributed internal machine;
if the current charging mode is a time distribution mode, determining the running time of each distributed internal machine and the total running time of all distributed internal machines; for each allocated indoor unit, dividing the running time of the allocated indoor unit by the total running time to obtain the occupation ratio of the allocated indoor unit; multiplying the power consumption of the allocated indoor unit by the power consumption of the outdoor unit to obtain the power consumption of the allocated indoor unit; and substituting the power consumption of the distributed internal machine into a preset power charge calculation formula to be used as the standby charge of the distributed internal machine.
7. The method of claim 6, wherein the reading thread calculates an electricity fee balance for each owner based on the electricity fee for each allocated internal machine, comprising:
for the internal machine of which the electric charge comes from the standby charge, if the current charging mode is the basic charge mode, keeping the balance of the electric charge of each owner unchanged; if the current charging mode is an average distribution mode or a time distribution mode, taking the sum of the standby fees of the indoor units owned by the same owner as the current electricity fee of the owner; for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner;
for the internal machines of which the electricity charges are derived from the operation charges, taking the sum of the operation charges of the internal machines owned by the same owner as the current electricity charge of the owner; and for each owner, subtracting the current electric charge of the owner from the pre-stored electric charge amount of the owner to obtain the electric charge balance of the owner.
8. The method of claim 1, further comprising:
the reading thread respectively determines inner machine alarm information and outer machine alarm information based on the received inner machine message and outer machine message, and records the inner machine alarm information and the outer machine alarm information;
and after receiving the alarm query instruction sent by the front end, the write thread sends the inner machine alarm information and the outer machine alarm information to the front end.
9. An electricity charge statistics apparatus, wherein the apparatus is applied to a back end, and the back end comprises a read thread and a write thread: the device comprises:
the counting module is used for receiving the internal machine information and the external machine information through the reading thread, and counting the running time and the power consumption of the external machine according to the received external machine information after the synchronous signal is detected; according to the power consumption of the external machine and the received internal machine information, the power charge of each distributed internal machine is counted; calculating the electricity charge balance of each owner according to the electricity charge of each distributed internal machine;
and the sending module is used for sending a shutdown control instruction to the internal machine owned by the target owner when the write thread detects that the target owner with the electricity charge balance lower than the preset value exists, so that the internal machine owned by the target owner is shut down according to the shutdown control instruction.
10. The apparatus of claim 9, further comprising a receiving module configured to:
and after receiving the control command sent by the front end through the write thread, controlling the internal machine to run according to the received control command.
CN201910981398.4A 2019-10-16 2019-10-16 Electricity charge statistical method and device Pending CN110942398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910981398.4A CN110942398A (en) 2019-10-16 2019-10-16 Electricity charge statistical method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910981398.4A CN110942398A (en) 2019-10-16 2019-10-16 Electricity charge statistical method and device

Publications (1)

Publication Number Publication Date
CN110942398A true CN110942398A (en) 2020-03-31

Family

ID=69905820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910981398.4A Pending CN110942398A (en) 2019-10-16 2019-10-16 Electricity charge statistical method and device

Country Status (1)

Country Link
CN (1) CN110942398A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130030127A (en) * 2011-09-16 2013-03-26 엘지전자 주식회사 A power distributer, operating method of the same, and multi air conditioner system having the same
CN105299837A (en) * 2015-11-06 2016-02-03 武汉鸿图节能技术有限公司 Central air conditioner charging and monitoring device, system and method
CN105354933A (en) * 2015-12-03 2016-02-24 珠海格力电器股份有限公司 Method, device and system for household charging of multi-split air conditioner
CN106771566A (en) * 2016-12-09 2017-05-31 珠海格力电器股份有限公司 Multi-split air conditioner household charging method, device and system
CN109285058A (en) * 2018-10-09 2019-01-29 青岛海信日立空调***有限公司 Multi-connected machine central air-conditioning electricity shares system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130030127A (en) * 2011-09-16 2013-03-26 엘지전자 주식회사 A power distributer, operating method of the same, and multi air conditioner system having the same
CN105299837A (en) * 2015-11-06 2016-02-03 武汉鸿图节能技术有限公司 Central air conditioner charging and monitoring device, system and method
CN105354933A (en) * 2015-12-03 2016-02-24 珠海格力电器股份有限公司 Method, device and system for household charging of multi-split air conditioner
CN106771566A (en) * 2016-12-09 2017-05-31 珠海格力电器股份有限公司 Multi-split air conditioner household charging method, device and system
CN109285058A (en) * 2018-10-09 2019-01-29 青岛海信日立空调***有限公司 Multi-connected machine central air-conditioning electricity shares system and method

Similar Documents

Publication Publication Date Title
CN110906517B (en) Central air-conditioning centralized control system
US11676079B2 (en) System and method for generating and providing dispatchable operating reserve energy capacity through use of active load management
WO2022077588A1 (en) Method, system and apparatus for calling adjustable load to participate in demand response
US20170250567A1 (en) System and method for estimating and providing dispatchable operating reserve energy capacity through use of active load management
US9069337B2 (en) System and method for estimating and providing dispatchable operating reserve energy capacity through use of active load management
US10295969B2 (en) System and method for generating and providing dispatchable operating reserve energy capacity through use of active load management
MX2013008835A (en) System and method for estimating and providing dispatchable operating reserve energy capacity through use of active load management.
US20110246987A1 (en) Energy Efficient Scheduling System and Method
US20160370819A1 (en) System and method for estimating and providing dispatchable operating reserve energy capacity through use of active load management
CN108804294A (en) Method, apparatus, equipment and the computer readable storage medium that electricity is reminded
CN106403186A (en) Household air conditioner energy consumption comparison system based on social platform
CN105698483A (en) Refrigerator control method and refrigerator controller
CN103513099A (en) Air conditioner power consumption processing method and device
CN114820227A (en) Energy storage method and device
CN115173407A (en) Intelligent power distribution method, device and equipment based on wind power generation and storage medium
KR102471511B1 (en) Apparatus and method for operating shared ESS for apartment houses and shopping malls
CN202870163U (en) Air conditioner power consumption processing device and system
CN110942398A (en) Electricity charge statistical method and device
JP2005250823A (en) Multiple computer operation system
CN102932465A (en) Method for monitoring user interaction characteristics of efficient smart phone
CN111246549B (en) Method and device for providing node dormancy and wakeup time
CN112325459A (en) Energy-saving control method, device, equipment and storage medium
CN102681650A (en) Power supply control energy-saving method and corresponding storage system thereof
CN105183130A (en) Electric energy saving method and apparatus for physical machine under cloud platform
CN201606985U (en) Energy-saving air conditioner with card management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200331