Invention content
The purpose of the present invention is intended to solve above-mentioned one of technical problem at least to a certain extent.
For this purpose, first purpose of the present invention is to propose a kind of Expenditure Levels appraisal procedure of magnesium stick in electric heater.
This method provides the Expenditure Levels of magnesium stick in electric heater to the user, facilitates the use feelings that user checks magnesium stick in electric heater
Condition, after magnesium stick is depleted, user can replace magnesium stick in time, and so as to reduce, liner is corroded and the hair of water leakage situation occurs
It is raw.
Second object of the present invention is to propose a kind of Expenditure Levels assessment system of magnesium stick in electric heater.
Third object of the present invention is to propose a kind of server.
To achieve the goals above, in the electric heater of first aspect present invention embodiment magnesium stick Expenditure Levels assessment side
Method, including:Server obtains the cell-phone number or location information of mobile terminal;The server is according to the mobile phone of the mobile terminal
Number or location information obtain the area where the user of the mobile terminal;The server obtains the area where the user
Water quality information, and determine according to the water quality information service life of magnesium stick in electric heater;Described in the server obtains
The current time of magnesium stick and time started in electric heater, and the electricity is calculated according to the current time and the time started
The usage time of magnesium stick in water heater;And the server is according to described in the determination of the service life and usage time of the magnesium stick
The remaining time of magnesium stick, and push to the mobile terminal.
The Expenditure Levels appraisal procedure of magnesium stick in electric heater according to the ... of the embodiment of the present invention, server is according to mobile terminal
Cell-phone number or location information determine the area where user, then obtain user where area water quality information, and according to
Water quality information determines the service life of magnesium stick in electric heater, then server obtain electric heater in magnesium stick current time and
Time started, and the usage time of magnesium stick in electric heater is calculated according to current time and time started, and made according to magnesium stick
The remaining time of magnesium stick is determined with service life and usage time, and pushes to mobile terminal, is provided to the user in electric heater as a result,
The Expenditure Levels of magnesium stick facilitate the service condition that user checks magnesium stick in electric heater, after magnesium stick is depleted, Yong Huke
Magnesium stick is replaced in time, and so as to reduce, liner is corroded and the generation of water leakage situation occurs.
Wherein, in one embodiment of the invention, the usage time of the magnesium stick, T are calculated by the following formulaused=
TNow-Tb, wherein TusedFor usage time, TNowFor current time, TbAt the beginning of magnesium stick in the electric heater.
Wherein, in one embodiment of the invention, the mobile terminal is mobile phone or palm PC.
According to one embodiment of present invention, the Expenditure Levels appraisal procedure of magnesium stick further includes in the electric heater:When
When the usage time of the magnesium stick is greater than or equal to the service life of the magnesium stick, is sent to the mobile terminal and replace prompt.
To achieve the goals above, the Expenditure Levels assessment of magnesium stick is in the electric heater of second aspect of the present invention embodiment
System, including mobile terminal and server, wherein:The server, cell-phone number or location information for obtaining mobile terminal, and
The area where the user of the mobile terminal is obtained according to the cell-phone number of the mobile terminal or location information, then obtains institute
The water quality information in the area where user is stated, and determines the service life of magnesium stick in electric heater according to the water quality information, is obtained
Preceding time and time started when magnesium stick in the electric heater are taken, and is calculated according to the current time and the time started
The usage time of magnesium stick in the electric heater, and the magnesium stick is determined according to the service life and usage time of the magnesium stick
Remaining time, and push to the mobile terminal.
The Expenditure Levels assessment system of magnesium stick in electric heater according to the ... of the embodiment of the present invention, server is according to mobile terminal
Cell-phone number or location information determine the area where user, then obtain user where area water quality information, and according to
Water quality information determines the service life of magnesium stick in electric heater, then server obtain electric heater in magnesium stick current time and
Time started, and the usage time of magnesium stick in electric heater is calculated according to current time and time started, and made according to magnesium stick
The remaining time of magnesium stick is determined with service life and usage time, and pushes to mobile terminal, is provided to the user in electric heater as a result,
The Expenditure Levels of magnesium stick facilitate the service condition that user checks magnesium stick in electric heater, after magnesium stick is depleted, Yong Huke
Magnesium stick is replaced in time, and so as to reduce, liner is corroded and the generation of water leakage situation occurs.
Wherein, in one embodiment of the invention, the usage time of the magnesium stick, T are calculated by the following formulaused=
TNow-Tb, wherein TusedFor usage time, TNowFor current time, TbAt the beginning of magnesium stick in the electric heater.
Wherein, in one embodiment of the invention, the mobile terminal is mobile phone or palm PC.
According to one embodiment of present invention, the server is additionally operable to:When the usage time of the magnesium stick is more than or waits
When the service life of the magnesium stick, is sent to the mobile terminal and replace prompt.
To achieve the goals above, the server of third aspect present invention embodiment, including:First acquisition module, is used for
Obtain the cell-phone number or location information of mobile terminal;Second acquisition module is used for the cell-phone number according to the mobile terminal or position
Set the area where the user of mobile terminal described in acquisition of information;Determining module, for obtaining the area where the user
Water quality information, and determine according to the water quality information service life of magnesium stick in electric heater;Computing module, it is described for obtaining
The current time of magnesium stick and time started in electric heater, and the electricity is calculated according to the current time and the time started
The usage time of magnesium stick in water heater;And processing module, according to the service life of the magnesium stick and make for the server
The remaining time of the magnesium stick is determined with the time, and pushes to the mobile terminal.
Server according to the ... of the embodiment of the present invention obtains the cell-phone number of mobile terminal by the first acquisition module or position is believed
Breath, the second acquisition module determine the area where user according to the cell-phone number or location information of mobile terminal, then confirmation module
The water quality information in the area where user is obtained, and determines the service life of magnesium stick in electric heater according to water quality information, is calculated
Module obtains the current time of magnesium stick and time started in electric heater, and calculates electric hot water according to current time and time started
When the usage time and processing module of magnesium stick determine the residue of magnesium stick according to the service life and usage time of magnesium stick in device
Between, and mobile terminal is pushed to, it provides the Expenditure Levels of magnesium stick in electric heater to the user as a result, facilitates user and check electricity
The service condition of magnesium stick in water heater, after magnesium stick is depleted, user can replace magnesium stick in time, rotten so as to reduce liner
It loses and the generation of water leakage situation occurs.
Wherein, in one embodiment of the invention, the usage time of the magnesium stick, T are calculated by the following formulaused=
TNow-Tb, wherein TusedFor usage time, TNowFor current time, TbAt the beginning of magnesium stick in the electric heater.
Wherein, in one embodiment of the invention, the mobile terminal is mobile phone or palm PC.
According to one embodiment of present invention, the server further includes:Reminding module, for the use when the magnesium stick
When time is greater than or equal to the service life of the magnesium stick, is sent to the mobile terminal and replace prompt.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obviously, or practice through the invention is recognized.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings describe the Expenditure Levels appraisal procedure of magnesium stick in the electric heater of the embodiment of the present invention, system and
Server.
Fig. 1 is the flow chart of the Expenditure Levels appraisal procedure of magnesium stick in electric heater according to an embodiment of the invention.
As shown in Figure 1, the Expenditure Levels appraisal procedure of magnesium stick may include in the electric heater:
S101, server obtain the cell-phone number or location information of mobile terminal.
Wherein, above-mentioned mobile terminal can be mobile phone or palm PC.
Specifically, user can control electric heater by the application APP (APPlication) in mobile terminal
System, after user confirms using the electric heater newly bought, server obtain user phone number or location information (such as
Fengtai district of Beijing), and the cell-phone number of user or location information are preserved in the server, and start timing in the server,
It records in electric heater at the beginning of magnesium stick (time point that magnesium stick is started).
S102, server obtain the ground where the user of mobile terminal according to the cell-phone number or location information of mobile terminal
Area.
S103, server obtain the water quality information in the area where user, and are determined in electric heater according to water quality information
The service life of magnesium stick.
Specifically, the area where obtaining the user of mobile terminal according to the cell-phone number of mobile terminal or location information
Afterwards, server obtains the water quality information in the area where user, and according to the water quality information pre-saved in server and magnesium stick
The correspondence of service life determine the service life of magnesium stick in the regional electric heater where user.
Wherein, it should be noted that the service life of magnesium stick is server previously according to differently in above-mentioned correspondence
The corrosion condition of magnesium stick is calculated in area's water quality, and the service life of magnesium stick refers to needed for the magnesium stick in electric heater is consumed
The time wanted.In addition, when the water quality in some area changes, the service life of the magnesium stick of this area will also occur therewith
Correspondingly change.
S104, server obtains the current time of magnesium stick and time started in electric heater, and according to current time and opens
Time beginning calculates the usage time of magnesium stick in electric heater.
Specifically, server obtains opening for the electric heater magnesium stick recorded in server according to the user information of active user
Begin time TbAnd the current time T of electric heater magnesium stickNow, and it is calculated by the following formula the use of magnesium stick in electric heater
Time Tused,
Tused=TNow-Tb
S105, server determine the remaining time of magnesium stick according to the service life and usage time of magnesium stick, and push to shifting
Dynamic terminal.
Specifically, it is assumed that the service life of magnesium stick is indicated with Tf, server is in the usage time T for obtaining magnesium stickusedAnd magnesium
After the service life Tf of stick, server can determine whether the usage time T of magnesium stickusedWhether the service life of magnesium stick is more than or equal to
Tf, if so, server is sent to mobile terminal replaces prompt, so that user can prompt to replace electric heater in time according to replacing
Magnesium stick, protect the liner of electric heater not to be corroded, the liner to reduce electric heater is corroded and leak feelings occurs
The generation of condition.
If server judges the usage time T of magnesium stickusedLess than the service life Tf of magnesium stick, then server is according to magnesium stick
Usage time TusedThe remaining time of magnesium stick is determined with the service life Tf of magnesium stick, wherein the remaining time of magnesium stick is equal to magnesium
The service life Tf of the stick and usage time T of magnesium stickusedDifference.
For example, user A after buying electric heater device, logs in the APP in mobile phone (APP is for controlling electric heater)
Afterwards, if user, which determines, uses electric heater, at the beginning of magnesium stick is by the time in server record electric heater, and according to user
Cell-phone number and the corresponding service life of location information acquisition this area magnesium stick, and determining that the usage time of magnesium stick reaches
When service life corresponding to this area's magnesium stick, to user's active push, " magnesium stick has been exhausted, and please replaces electric heater in time
The replacement prompt message of magnesium stick " returns to the usage time of current magnesium stick to user and the residue of current magnesium stick can be used if not having
Time.
The Expenditure Levels appraisal procedure of magnesium stick in electric heater according to the ... of the embodiment of the present invention, server is according to mobile terminal
Cell-phone number or location information determine the area where user, then obtain user where area water quality information, and according to
Water quality information determines the service life of magnesium stick in electric heater, then server obtain electric heater in magnesium stick current time and
Time started, and the usage time of magnesium stick in electric heater is calculated according to current time and time started, and made according to magnesium stick
The remaining time of magnesium stick is determined with service life and usage time, and pushes to mobile terminal, is provided to the user in electric heater as a result,
The Expenditure Levels of magnesium stick facilitate the service condition that user checks magnesium stick in electric heater, after magnesium stick is depleted, Yong Huke
Magnesium stick is replaced in time, and so as to reduce, liner is corroded and the generation of water leakage situation occurs.
Fig. 2 is the flow of the Expenditure Levels appraisal procedure of magnesium stick in electric heater accord to a specific embodiment of that present invention
Figure.
As shown in Fig. 2, the Expenditure Levels appraisal procedure of magnesium stick includes in the electric heater:
S201, server obtain the cell-phone number or location information of mobile terminal.
S202, server obtain the ground where the user of mobile terminal according to the cell-phone number or location information of mobile terminal
Area.
S203, server obtain the water quality information in the area where user, and are determined in electric heater according to water quality information
The service life Tf of magnesium stick.
S204, server obtain the current time T of magnesium stick in electric heaterNowWith time started Tb, and according to current time
The usage time T of magnesium stick in electric heater is calculated with the time startedused。
Wherein, Tused=TNow-Tb。
S205, server judge the usage time T of magnesium stickusedWhether the service life Tf of magnesium stick is more than or equal to, if
It is to then follow the steps S206, if it is not, thening follow the steps S207.
S206, server send " magnesium stick has been exhausted, and please replaces electric heater magnesium stick in time " more to mobile terminal
Change prompt.
S207, server send the usage time T of magnesium stick to mobile terminalusedWith the remaining time of magnesium stick.
Wherein, when the remaining time of magnesium stick is use of the remaining time of magnesium stick equal to the service life Tf and magnesium stick of magnesium stick
Between TusedDifference.
The Expenditure Levels appraisal procedure of magnesium stick in electric heater according to the ... of the embodiment of the present invention, server is according to mobile terminal
The water quality in the area at place determines the service life of magnesium stick in electric heater, and according to the magnesium stick recorded in server at the beginning of
Between and current time calculate magnesium stick usage time, when determining the residue of magnesium stick according to the usage time of magnesium stick and service life
Between, mobile terminal is pushed to, the service condition that user understands magnesium stick is facilitated, and when magnesium stick runs out of, to mobile terminal
It sends and replaces prompt so that user can replace magnesium stick in time according to prompt, and liner is corroded and leak feelings occurs so as to reduce
The generation of condition.
In order to realize above-described embodiment, the invention also provides a kind of Expenditure Levels of magnesium stick in electric heater to assess system
System.
Fig. 3 is the structural representation of the Expenditure Levels assessment system of magnesium stick in electric heater according to an embodiment of the invention
Figure.
As shown in figure 3, the Expenditure Levels assessment system of magnesium stick may include server 10 and mobile terminal in the electric heater
20, wherein:
Server 20 is used to obtain the cell-phone number or location information of mobile terminal 10, and according to the cell-phone number of mobile terminal 10
Or location information obtains the area where the user of mobile terminal 10, then obtains the water quality information in the area where user, and
It determines the service life of magnesium stick in electric heater (not shown) according to water quality information, obtains the current of magnesium stick in electric heater
Time and time started, and according to the usage time of magnesium stick in current time and time started calculating electric heater, and according to
The service life and usage time of magnesium stick determine the remaining time of magnesium stick, and push to mobile terminal 10.
Wherein, above-mentioned server 10 can be calculated by the following formula the usage time of magnesium stick:
Tused=TNow-Tb
Wherein, the T in formulausedFor the usage time of magnesium stick, TNowFor current time, TbIt is opened for magnesium stick in electric heater
Begin the time.
Wherein, above-mentioned mobile terminal 20 can be mobile phone or palm PC.
In one embodiment of the invention, above-mentioned server 10 is additionally operable to:When the usage time of magnesium stick is greater than or equal to
When the service life of magnesium stick, is sent to mobile terminal and replace prompt.
For example, user A after buying electric heater device, logs in the APP in mobile phone (APP is for controlling electric heater)
Afterwards, if user determine use electric heater, server 10 record electric heater in magnesium stick by the time at the beginning of, and according to
The cell-phone number and the corresponding service life of location information acquisition this area magnesium stick at family, and determining that the usage time of magnesium stick reaches
When to service life corresponding to this area's magnesium stick, to user's active push, " magnesium stick has been exhausted, and please replaces electric hot water in time
The replacement prompt message of the magnesium stick of device " returns to the residue of the usage time and current magnesium stick of current magnesium stick to user if not having
Pot life.
It should be noted that the aforementioned explanation to the Expenditure Levels appraisal procedure embodiment of magnesium stick in electric heater
The Expenditure Levels assessment system of magnesium stick suitable for the electric heater of the embodiment, details are not described herein again.
The Expenditure Levels assessment system of magnesium stick in electric heater according to the ... of the embodiment of the present invention, server is according to mobile terminal
Cell-phone number or location information determine the area where user, then obtain user where area water quality information, and according to
Water quality information determines the service life of magnesium stick in electric heater, then server obtain electric heater in magnesium stick current time and
Time started, and the usage time of magnesium stick in electric heater is calculated according to current time and time started, and made according to magnesium stick
The remaining time of magnesium stick is determined with service life and usage time, and pushes to mobile terminal, is provided to the user in electric heater as a result,
The Expenditure Levels of magnesium stick facilitate the service condition that user checks magnesium stick in electric heater, after magnesium stick is depleted, Yong Huke
Magnesium stick is replaced in time, and so as to reduce, liner is corroded and the generation of water leakage situation occurs.
In order to realize above-described embodiment, the invention also provides a kind of servers.
Fig. 4 is the structural schematic diagram of server according to an embodiment of the invention.
As shown in figure 4, the server may include the first acquisition module 110, the second acquisition module 120, determining module
130, computing module 140 and processing module 150, wherein:
First acquisition module 110 is used to obtain the cell-phone number or location information of mobile terminal;Second acquisition module 120 is used for
The area where the user of mobile terminal is obtained according to the cell-phone number of mobile terminal or location information;Determining module 130 is for obtaining
The water quality information in the area where family is taken, and determines the service life of magnesium stick in electric heater according to water quality information;Calculate mould
Block 140 is calculated for obtaining the current time of magnesium stick and time started in electric heater, and according to current time and time started
The usage time of magnesium stick in electric heater;And processing module 150 for server according to service life and the use of magnesium stick when
Between determine the remaining time of magnesium stick, and push to mobile terminal.
Wherein, above-mentioned mobile terminal can be mobile phone or palm PC.
Specifically, the second acquisition module 120 is obtaining mobile terminal according to the cell-phone number or location information of mobile terminal
Behind area where user, determining module 130 obtains the water quality information in the area where user, and according to being protected in advance in server
The water quality information deposited and the correspondence of the service life of magnesium stick determine the use of magnesium stick in the regional electric heater where user
Service life.
Wherein, it should be noted that the service life of magnesium stick is server previously according to differently in above-mentioned correspondence
The corrosion condition of magnesium stick is calculated in area's water quality, and the service life of magnesium stick refers to needed for the magnesium stick in electric heater is consumed
The time wanted.In addition, when the water quality in some area changes, the service life of the magnesium stick of this area will also occur therewith
Correspondingly change.
Above-mentioned computing module 140 obtains T at the beginning of the electric heater magnesium stick recorded in serverbAnd server
The current time T of the electric heater magnesium stick of device recordNow, and it is calculated by the following formula the usage time of magnesium stick in electric heater
Tused,
Tused=TNow-Tb
As shown in figure 5, can also include reminding module 160 in above-mentioned server, which be used for when magnesium stick
When usage time is greater than or equal to the service life of magnesium stick, is sent to mobile terminal and replace prompt, so that user can be according to replacement
The magnesium stick of electric heater is replaced in prompt in time, protects the liner of electric heater not to be corroded, to reduce in electric heater
Courage is corroded and the generation of water leakage situation occurs.
Specifically, it is assumed that the service life of magnesium stick is indicated with Tf, processing module 150 is in the usage time T for obtaining magnesium stickused
After the service life Tf of magnesium stick, processing module 150 can determine whether the usage time T of magnesium stickusedWhether magnesium stick is more than or equal to
Service life Tf, if it is not, then processing module 150 can be according to the usage time T of magnesium stickusedIt is determined with the service life Tf of magnesium stick
The remaining time of magnesium stick, wherein the remaining time of magnesium stick is equal to the usage time T of the service life Tf and magnesium stick of magnesium stickusedIt
Difference.
Server according to the ... of the embodiment of the present invention obtains the cell-phone number of mobile terminal by the first acquisition module or position is believed
Breath, the second acquisition module determine the area where user according to the cell-phone number or location information of mobile terminal, then confirmation module
The water quality information in the area where user is obtained, and determines the service life of magnesium stick in electric heater according to water quality information, is calculated
Module obtains the current time of magnesium stick and time started in electric heater, and calculates electric hot water according to current time and time started
When the usage time and processing module of magnesium stick determine the residue of magnesium stick according to the service life and usage time of magnesium stick in device
Between, and mobile terminal is pushed to, it provides the Expenditure Levels of magnesium stick in electric heater to the user as a result, facilitates user and check electricity
The service condition of magnesium stick in water heater, after magnesium stick is depleted, user can replace magnesium stick in time, rotten so as to reduce liner
It loses and the generation of water leakage situation occurs.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also
That each unit physically exists alone, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and when sold or used as an independent product, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the present invention
System, those skilled in the art can be changed above-described embodiment, change, replace and become within the scope of the invention
Type.