Disclosure of Invention
The invention aims to solve the technical problems, namely an air conditioner charging method and device, and solves the problem that the air conditioner charging method in the prior art is inaccurate.
In a first aspect, the present invention provides a billing method for an air conditioner, where the air conditioner at least includes an indoor unit, and the method includes the following steps:
acquiring the actual operation time of each indoor unit in a preset charging period;
taking the indoor unit with the actual running time length larger than zero as the indoor unit to be charged;
and respectively calculating the electricity charge of each indoor unit to be charged in the preset charging period according to the actual operation time length of each indoor unit to be charged and the number of matched air conditioners.
In one technical solution of the air conditioner billing method, the specific step of "calculating the electricity charge of each indoor unit to be billed in the preset billing period respectively" includes:
respectively calculating the electric charge of each indoor unit to be charged in the preset charging period according to a method shown by the following formula:
wherein, the PiThe electricity charge of the ith indoor unit to be charged in the preset charging period T is shown, and siRepresenting the number of the air conditioners of the ith indoor unit to be charged, wherein p represents the preset electricity price, and tiAnd representing the actual running time of the ith indoor unit to be charged in the preset charging period T.
In one technical solution of the air conditioner billing method, before the step of "taking the indoor unit with the actual operation time length greater than zero as the indoor unit to be billed", the method further includes:
acquiring the working mode of each indoor unit;
selecting an indoor unit with the actual operation time length larger than zero in the indoor units with the working modes belonging to the preset working modes to be charged as an indoor unit to be charged;
the preset working modes to be charged at least comprise a cooling mode and a heating mode;
and/or the like and/or,
after the step of "calculating the electricity charge of each indoor unit to be billed in the preset billing period respectively", the method further includes:
acquiring a charge payment mode of each indoor unit to be charged;
if the charge payment mode is a prepayment mode, respectively executing charge deduction operation on the account of the indoor unit corresponding to each indoor unit to be charged according to the electric charge of each indoor unit to be charged in the preset charging period and the account balance in the account of the indoor unit corresponding to each indoor unit to be charged;
and if the fee payment mode is a later-stage fee payment mode, generating fee payment reminding information according to the electric fee of each indoor unit to be charged in the preset charging period.
In one technical solution of the air conditioner charging method, after the step of "performing a fee deduction operation on an indoor unit account corresponding to each indoor unit to be charged" respectively, the method further includes:
acquiring the latest account balance of each indoor unit account after each indoor unit account is respectively subjected to fee deduction operation;
calculating the total account balance of all indoor units to be charged according to the latest account balance;
and distributing the total account balance to the indoor unit account of each indoor unit to be charged so as to obtain the final account balance of the indoor unit account of each indoor unit to be charged.
In one technical solution of the air conditioner charging method, after the step of "obtaining a final account balance of an account of each indoor unit to be charged", the method further includes:
judging whether an indoor unit with a final account balance less than or equal to a first balance threshold exists;
if yes, balance reminding information is generated according to indoor unit information of the indoor unit;
and/or the presence of a gas in the gas,
judging whether an indoor unit with the final account balance less than or equal to a second balance threshold exists;
if yes, locking the indoor unit;
wherein the first balance threshold is greater than the second balance threshold.
In a second aspect, the present invention provides an air conditioner billing device, comprising:
the running time acquisition module is configured to acquire the actual running time of each indoor unit in a preset charging period;
the charging indoor unit determining module is configured to take the indoor unit with the actual running time length larger than zero as the indoor unit to be charged;
and the electric charge determining module is configured to respectively calculate the electric charge of each indoor unit to be charged in the preset charging period according to the actual operation time length of each indoor unit to be charged and the matching number of air conditioners.
In one aspect of the air conditioner billing device, the electricity fee determining module is further configured to execute the following steps:
respectively calculating the electric charge of each indoor unit to be charged in the preset charging period according to a method shown by the following formula:
wherein, the PiThe electricity charge of the ith indoor unit to be charged in the preset charging period T is shown, and siRepresenting the number of the air conditioners of the ith indoor unit to be charged, wherein p represents the preset electricity price, and tiAnd representing the actual running time of the ith indoor unit to be charged in the preset charging period T.
In an aspect of the air conditioner billing device, the billing indoor unit determining module is further configured to perform the following operations:
acquiring the working mode of each indoor unit;
selecting an indoor unit with the actual operation time length larger than zero in the indoor units with the working modes belonging to the preset working modes to be charged as an indoor unit to be charged;
the preset working modes to be charged at least comprise a cooling mode and a heating mode;
and/or the electricity rate determination module is further configured to perform the following operations:
acquiring a charge payment mode of each indoor unit to be charged;
if the charge payment mode is a prepayment mode, respectively executing charge deduction operation on the account of the indoor unit corresponding to each indoor unit to be charged according to the electric charge of each indoor unit to be charged in the preset charging period and the account balance in the account of the indoor unit corresponding to each indoor unit to be charged;
and if the fee payment mode is a later-stage fee payment mode, generating fee payment reminding information according to the electric fee of each indoor unit to be charged in the preset charging period.
In one aspect of the air conditioner billing device, the electric charge determining module is further configured to perform the following operations:
acquiring the latest account balance of each indoor unit account after each indoor unit account is respectively subjected to fee deduction operation;
calculating the total account balance of all indoor units to be charged according to the latest account balance;
and distributing the total account balance to the indoor unit account of each indoor unit to be charged so as to obtain the final account balance of the indoor unit account of each indoor unit to be charged.
In one aspect of the air conditioner billing device, the electric charge determining module is further configured to perform the following operations:
judging whether an indoor unit with a final account balance less than or equal to a first balance threshold exists;
if yes, balance reminding information is generated according to indoor unit information of the indoor unit;
and/or judging whether an indoor unit with the final account balance less than or equal to a second balance threshold exists;
if yes, locking the indoor unit;
wherein the first balance threshold is greater than the second balance threshold.
Under the condition of adopting the technical scheme, the method can acquire the actual operation time length of the indoor units participating in operation in the preset charging period, then calculate the electric charge in the preset charging period according to the actual operation time length and the air conditioner number of each indoor unit actually participating in operation in the preset charging period, and can count the use charge for the user according to the air conditioner number and the use condition of different users close to the actual condition due to the fact that the electric charge is calculated according to the air conditioner number and the actual operation time of the user, so that the charging method is more accurate and fair.
Detailed Description
Some embodiments of the invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and are not intended to limit the scope of the present invention.
In the description of the present invention, a "module" or "processor" may include hardware, software, or a combination of both. A module may comprise hardware circuitry, various suitable sensors, communication ports, memory, may comprise software components such as program code, or may be a combination of software and hardware. The processor may be a central processing unit, a microprocessor, a digital signal processor, or any other suitable processor. The processor has data and/or signal processing functionality. The processor may be implemented in software, hardware, or a combination thereof. Non-transitory computer readable storage media include any suitable medium that can store program code, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random-access memory, and the like. The term "a and/or B" denotes all possible combinations of a and B, such as a alone, B alone or a and B. The term "at least one A or B" or "at least one of A and B" means similar to "A and/or B" and may include only A, only B, or both A and B. The singular forms "a", "an" and "the" may include the plural forms as well.
At present, most of traditional air conditioner charging methods charge according to the running time of an air conditioner or an air volume monitoring module added at an air outlet, and the methods have the defects that unit prices of all air conditioners are consistent, and meanwhile, the working modes of the air conditioners and the like are not considered. In practical situations, there may be differences in the energy consumption or the number of air conditioners, so that charging by simply depending on the operation time of the air conditioners is not accurate, and is not fair for users using air conditioners with small number of air conditioners.
In the embodiment of the invention, the actual operation time of the indoor units participating in operation in the preset charging period is obtained, and then the electricity charge is calculated according to the actual operation time of each indoor unit in the preset charging period and the air conditioner matching number, so that the charging method is more accurate, and the fairness among different users is improved.
In an example of an application scenario of the present invention, a central air conditioner is installed in a certain store, 3 indoor units (an indoor unit 1, an indoor unit 2, and an indoor unit 3) are installed in the store of a user a, the user a opens the indoor units 1 and 2 between 10 am and 11 am of a certain day, wherein the indoor unit 1 is opened for 20 minutes, and the indoor unit 2 is opened for 30 minutes, after a charging period is completed (assuming that 10 am to 11 am is a charging period), first, an actual operation duration (i.e., an opening duration) of each indoor unit of the user a from 10 am to 11 am is obtained, since the actual operation durations of the indoor units 1 and 2 are greater than zero, the indoor units 1 and 2 are used as indoor units to be charged, and then, the actual operation durations of the indoor units 1 and 2 (i.e., the actual operation duration of the indoor unit 1 is 30 minutes, and the actual operation duration of the indoor unit 2 is 20 minutes) and a matching number of the air conditioners are calculated according to the actual operation durations of the indoor units 1 and 2 An electricity rate between 10 and 11 points.
Referring to fig. 1, fig. 1 is a flow chart illustrating main steps of an air conditioner billing method according to an embodiment of the present invention. As shown in fig. 1, the air conditioner billing method in the embodiment of the present invention mainly includes the following steps S101 to S103.
Step S101: and acquiring the actual operation time of each indoor unit in a preset charging period.
In an implementation manner of this embodiment, the preset charging period represents a certain charging period, for example, a certain fixed time period or a certain duration. It should be noted that the charging period in this embodiment may be set or adjusted, for example, the charging period may be 1 hour, 4 hours, 6 hours, 8 hours, 12 hours, and so on.
Step S102: and taking the indoor unit with the actual running time length larger than zero as the indoor unit to be charged.
In an implementation manner of this embodiment, step S102 may further include, as shown in fig. 2, step S201 to step S202:
s201: and acquiring the working mode of each indoor unit.
S202: and selecting the indoor unit with the actual operation time length larger than zero in the indoor units with the working modes belonging to the preset working modes to be charged as the indoor unit to be charged.
The preset working modes to be charged at least comprise a cooling mode and a heating mode.
For example, a user uses 3 indoor units (the indoor unit 1, the indoor unit 2, and the indoor unit 3) in total, and in a charging period from 10 to 11 points, the actual operation duration of the indoor units 1 and 2 is greater than zero, the operation modes of the indoor units 1 and 2 are refrigeration, and the actual operation duration of the indoor unit 3 is zero, so that the indoor units 1 and 2 can be used as indoor units to be charged.
For another example, a user uses 3 indoor units (the indoor unit 1, the indoor unit 2, and the indoor unit 3) in total, and in a charging period from 10 to 11 points, the actual operation durations of the indoor units 1, 2, and 3 are all greater than zero, but the operation modes of the indoor units 1 and 2 are cooling, and the operation mode of the indoor unit 3 is air supply (i.e., only air is blown into the room, and no cooling or heating operation is performed), so that the indoor units 1 and 2 can be used as the indoor units to be charged.
It should be noted that the preset working mode to be charged can be adjusted, and since the consumption of part of the working modes of the air conditioner is extremely low, the working mode with extremely low consumption can not be used as the indoor unit to be charged, and a person skilled in the art can select any working mode according to the actual situation and use it as the preset working mode to be charged, and similarly, can select any working mode and exclude it from the preset working mode to be charged.
Through the steps S201 to S202, whether the charging is carried out or not can be determined according to the actual working condition of the indoor unit, the charging is not carried out on the working mode with extremely low part consumption, and the charging mode can be more humanized.
Step S103: and respectively calculating the electric charge of each indoor unit to be charged in a preset charging period according to the actual operation time length of each indoor unit to be charged and the number of the air conditioners.
In an embodiment of this embodiment, the electric charge of each indoor unit to be charged in the preset charging period may be calculated by the following method (1):
wherein, PiRepresenting the electricity charge, s, of the ith indoor unit to be charged in the preset charging period TiRepresenting the air conditioner number of the ith indoor unit to be charged, p representing the preset electricity price, tiAnd the actual running time of the ith indoor unit to be charged in the preset charging period T is represented.
With continued reference to the foregoing embodiment, assuming that the preset charging period T is 1 (unit: hour), the actual operation time T of the indoor unit 1 between 10 and 11 points is the actual operation time T10.5 (unit: hour), the air conditioning capacity s of the indoor unit 11The electricity charge P of the indoor unit 1 in the preset charging period is calculated according to the equation (1) because the preset electricity price P is 30 (unit: element/(hour x P)), which is 3 (here, only by way of example, the number of air conditioners can be determined according to the actual situation), and the electricity price P is calculated according to the equation (1)1Comprises the following steps:
namely, the electricity charge of the indoor unit 1 between 10 and 11 points is 45 yuan.
In one embodiment of the present embodiment, after step S103, the user may also be settled the electricity fee according to steps S301 to S303 as shown in fig. 3:
step S301: and acquiring a charge payment mode of each indoor unit to be charged, if the charge payment mode is a prepayment mode, executing step S302, and if the charge payment mode is a later-stage payment mode, executing step S303.
Step S302: and respectively executing fee deduction operation on the account of the indoor unit corresponding to each indoor unit to be charged according to the electric charge of each indoor unit to be charged in a preset charging period and the account balance in the account of the indoor unit corresponding to each indoor unit to be charged.
Step S303: and generating payment reminding information according to the electric charge of each indoor unit to be charged in a preset charging period.
With reference to the foregoing embodiment, assuming that the electric charge of the indoor unit 2 between 10 th and 11 th points is 30 yuan, assuming that the charge payment method of the indoor units 1 and 2 is a prepaid payment method, the account balances of the indoor units 1 and 2 are deducted, assuming that the account balances of the indoor units 1 and 2 are both 100 yuan, the account balance of the indoor unit after deduction is 55 yuan, and the account balance of the indoor unit 2 is 70 yuan. Assuming that the payment mode of the indoor units 1 and 2 is the late-stage payment mode, payment reminding information that 45 yuan of payment is required by the indoor units 1 and 30 yuan of payment is required by the indoor units 2 can be generated for the user.
Through the steps S301 to S303, different electric charge calculation modes can be provided for the user, multiple choices can be provided for the user, and the use scenes of the user are enriched.
In an embodiment of this embodiment, after step S302, the account balance of the indoor unit to be charged may be further reallocated through steps S401 to S403 shown in fig. 4:
step S401: and acquiring the latest account balance of each indoor unit account after the deduction operation is respectively executed on each indoor unit account.
Step S402: and calculating the total account balance of all the indoor units to be charged according to the latest account balance.
Step S403: and (4) uniformly distributing the total account balance to the indoor unit account of each indoor unit to be charged so as to obtain the final account balance of the indoor unit account of each indoor unit to be charged.
With reference to the foregoing embodiment, if the latest account balance of the indoor unit 1 is 55 yuan and the latest account balance of the indoor unit 2 is 70 yuan, the total account balance of the indoor units 1 and 2 may be 125 yuan according to the latest account balances of the indoor units 1 and 2, and then the 125 yuan may be equally divided into the indoor units 1 and 2, that is, the final account balances of the indoor units 1 and 2 after reallocation are both 62.5 yuan.
In practical situations, there may be a case where the current account balance cannot be divided completely due to the actual amount of the latest account balance and the number of the indoor units to be charged, so for such a case, the remainder of the incomplete division may be accumulated to the final account balance of the indoor unit that consumes the most electricity at this time. For example, assuming that the total account balance is 100 yuan, and the indoor units to be billed are the indoor units 1, 2, and 3, respectively, at this time, 100 yuan may be equally divided to the indoor units 1, 2, and 3, and in the calculation process of the average division, division to an integer level, that is, 100 ÷ 3 ÷ 33 … … 1 (unit: yuan) may be set, at this time, the electric charges of the indoor units 1, 2, and 3 may be acquired, and assuming that the electric charges of the indoor units 1, 2, and 3 are 45 yuan, 30 yuan, and 10 yuan, respectively, at this time, 1 yuan that cannot be divisionally added to the final account balance of the indoor unit 1, that is, the final account balances of the indoor units 1, 2, and 3 are 34 yuan, 33 yuan, and 33 yuan, respectively.
After the deduction is completed and the final account balance is determined, a deduction log and an account balance reminding log can be generated.
Through the steps S401 to S403, the latest account balance of the indoor unit to be charged after the deduction can be redistributed, and under the condition that the user does not replenish the account balance, the electricity charge is replenished to a part of indoor units with higher electricity charge, so that the frequency of paying the electricity charge by the user is reduced, and the use experience of the user is improved.
In an embodiment of this embodiment, after step S403, steps S501 to S505 shown in fig. 5 may be further included:
step S501: and judging whether the indoor unit with the final account balance less than or equal to the second balance threshold exists, if so, executing step S502, and if not, executing step S503.
Step S502: and locking the indoor unit of which the final account balance is less than or equal to the second balance threshold value.
Step S503: and judging whether the indoor unit with the final account balance less than or equal to the first balance threshold exists, if so, executing step S504, and if not, executing step S505.
Step S504: and generating balance reminding information according to the indoor unit information of the indoor unit of which the final account balance is less than or equal to the first balance threshold value.
Step S505: no alert is issued.
Wherein the first balance threshold is greater than the second balance threshold.
In another implementation manner of this embodiment, the user may be reminded when the balance of the indoor unit of the user is low by the following steps:
and judging whether the indoor unit with the final account balance less than or equal to the first balance threshold exists.
And if so, generating balance reminding information according to the indoor unit information of the indoor unit of which the final account balance is less than or equal to the first balance threshold value.
If not, no prompt is sent.
In another embodiment of this embodiment, the indoor unit with insufficient balance of the user may be stopped by the following steps:
and judging whether the indoor unit with the final account balance less than or equal to the second balance threshold exists.
And if so, locking the indoor unit of which the final account balance is less than or equal to the second balance threshold value.
And if not, the indoor unit is not locked.
With reference to the foregoing embodiment, assuming that the first balance threshold is set to be 50 yuan of account balance of a single indoor unit, the second balance threshold is set to be 10 yuan of account balance of the single indoor unit, and the final account balances of the indoor units 1, 2, and 3 are 34 yuan, 33 yuan, and 33 yuan, respectively, it is obvious that the final account balances of the indoor units 1, 2, and 3 are less than the first balance threshold but greater than the second balance threshold, so that the balance reminding information is generated at this time.
Through the steps S501 to S505, when the account balance of the indoor unit of the user is insufficient, a prompt can be sent to the user in time, so that the normal use of the user is prevented from being influenced, and meanwhile, when the balance is too low, the machine can be stopped, so that the condition of arrearage is prevented.
Based on the steps S101 to S103, the actual operation time of the indoor units participating in operation in the preset charging period can be obtained, and then the electricity charges in the preset charging period can be calculated according to the actual operation time and the number of air conditioners of each indoor unit actually participating in operation in the preset charging period.
It should be noted that, although the foregoing embodiments describe each step in a specific sequence, those skilled in the art will understand that, in order to achieve the effect of the present invention, different steps do not necessarily need to be executed in such a sequence, and they may be executed simultaneously (in parallel) or in other sequences, and these changes are all within the protection scope of the present invention.
Furthermore, the invention also provides an air conditioner billing device.
Referring to fig. 6, fig. 6 is a main structural block diagram of an air conditioner according to an embodiment of the present invention. As shown in fig. 6, the air conditioner billing device in the embodiment of the present invention mainly includes an operation duration obtaining module 61, a billing indoor unit determining module 62, and an electric charge determining module 63. In some embodiments, one or more of the operation duration obtaining module 61, the charging indoor unit determining module 62 and the electricity charge determining module 63 may be combined together into one module. In some embodiments, the running time length obtaining module 61 may be configured to obtain an actual running time length of each indoor unit in a preset billing period. The charging indoor unit determining module 62 may be configured to use an indoor unit with an actual operation time length greater than zero as the indoor unit to be charged. The electric charge determining module 63 may be configured to calculate the electric charge of each indoor unit to be charged in the preset charging period according to the actual operation time length of each indoor unit to be charged and the matching number of the air conditioners. In one embodiment, the description of the specific implementation function may refer to the description of step S101 to step S103.
In one embodiment, the electricity rate determination module is further configured to perform the steps of:
respectively calculating the electric charge of each indoor unit to be charged in a preset charging period according to a method shown in the following formula:
wherein, PiRepresenting the electricity charge, s, of the ith indoor unit to be charged in the preset charging period TiRepresenting the air conditioner number of the ith indoor unit to be charged, p representing the preset electricity price, tiAnd the actual running time of the ith indoor unit to be charged in the preset charging period T is represented. In one embodiment, the specific implementation functions can be described in formula (1) above.
In one embodiment, the charging indoor unit determining module is further configured to:
acquiring the working mode of each indoor unit;
selecting an indoor unit with the actual operation time length larger than zero in the indoor units with the working modes belonging to the preset working modes to be charged as an indoor unit to be charged;
the preset working modes to be charged at least comprise a cooling mode and a heating mode. In one embodiment, the description of the specific implementation function may refer to the description of step S201 to step S202.
In one embodiment, the electricity rate determination module is further configured to perform the following operations:
acquiring a charge payment mode of each indoor unit to be charged;
if the charge payment mode is a prepayment mode, respectively executing charge deduction operation on the account of the indoor unit corresponding to each indoor unit to be charged according to the electric charge of each indoor unit to be charged in a preset charging period and the account balance in the account of the indoor unit corresponding to each indoor unit to be charged;
and if the charge payment mode is a later-stage charge mode, generating charge payment reminding information according to the electric charge of each indoor unit to be charged in a preset charging period. In one embodiment, the description of the specific implementation function may refer to the description of step S301 to step S303.
In one embodiment, the electricity rate determination module is further configured to perform the following operations:
acquiring the latest account balance of each indoor unit account after the deduction operation is respectively executed on each indoor unit account;
calculating the total account balance of all the indoor units to be charged according to the latest account balance;
and (4) uniformly distributing the total account balance to the indoor unit account of each indoor unit to be charged so as to obtain the final account balance of the indoor unit account of each indoor unit to be charged. In one embodiment, the description of the specific implementation function may refer to the descriptions of step S401 to step S403.
In one embodiment, the electricity rate determination module is further configured to perform the following operations:
judging whether an indoor unit with a final account balance less than or equal to a first balance threshold exists;
if yes, balance reminding information is generated according to the indoor unit information of the indoor unit of which the final account balance is less than or equal to the first balance threshold value;
and/or judging whether an indoor unit with the final account balance less than or equal to a second balance threshold exists;
if yes, locking the indoor unit of which the final account balance is less than or equal to a second balance threshold value;
wherein the first balance threshold is greater than the second balance threshold. In one embodiment, the description of the specific implementation function may refer to the description of step S501 to step S505.
The air conditioner billing device is used to execute the embodiment of the air conditioner billing method shown in fig. 1, and the technical principles, the solved technical problems, and the generated technical effects of the two are similar, and it can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process and related descriptions of the air conditioner billing device may refer to the contents described in the embodiment of the air conditioner billing method, and are not repeated herein.
It will be understood by those skilled in the art that all or part of the flow of the method according to the above-described embodiment may be implemented by a computer program, which may be stored in a computer-readable storage medium and used to implement the steps of the above-described embodiments of the method when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying said computer program code, media, usb disk, removable hard disk, magnetic diskette, optical disk, computer memory, read-only memory, random access memory, electrical carrier wave signals, telecommunication signals, software distribution media, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
Further, it should be understood that, since the configuration of each module is only for explaining the functional units of the apparatus of the present invention, the corresponding physical devices of the modules may be the processor itself, or a part of software, a part of hardware, or a part of a combination of software and hardware in the processor. Thus, the number of individual modules in the figures is merely illustrative.
Those skilled in the art will appreciate that the various modules in the apparatus may be adaptively split or combined. Such splitting or combining of specific modules does not cause the technical solutions to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or combining will fall within the protection scope of the present invention.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.