Summary of the invention
The technical problem that the present invention mainly solves provides a kind of electronic scale long-distance maintenance method, and the embodiment of the invention also provides corresponding device thereof and system; Can in time detect electronic scale through method provided by the invention goes wrong.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is:
A kind of electronic scale long-distance maintenance method is provided, comprises:
Obtain successively according to the predefined time and to be kept at not online record of local electronic scale, said not online record is for detecting the not number of times of online accumulative total of the electronic scale of registering on the net;
More said not online record and the size that is preset in local threshold value are judged whether fault of said electronic scale;
If said not online record, is then judged the corresponding electronic scale fault of said not online record, the alarm of sending said electronic scale fault greater than pre-set threshold.
For solving the problems of the technologies described above, another technical scheme that the present invention adopts is:
A kind of electronic scale remote maintenance device is provided, comprises:
First acquisition module is used for obtaining successively according to the predefined time and is kept at not online record of local electronic scale, and said not online record is for detecting the not number of times of online accumulative total of the electronic scale of registering on the net;
Judge module is used for more said not online record and the size that is preset in local threshold value and judges whether fault of said electronic scale;
Alarm module is used for working as said not online record greater than pre-set threshold, when judging the electronic scale fault of said not online record correspondence, and the alarm of sending said electronic scale fault.
The invention has the beneficial effects as follows: be different from the situation of prior art, the present invention is through obtaining not online record, and according to this not online record judge whether fault of corresponding electronic scale, if fault is then sent alarm, point out this electronic scale fault, need to safeguard; Through the method that present embodiment provides, can make server in time detect the electronic scale of registering on the net and break down, recognize that in time it needs to safeguard, thereby can in time, rationally arrange maintenance, improve user experience.
Embodiment
In each embodiment of the present invention, the electronic scale of each market of farm produce is connected with server through wireless networks such as wifi, 3G; A plurality of electronic scales of each market of farm produce are formed the small wireless network, and the small wireless network of each market of farm produce connects into a big wireless network again.
See also Fig. 1, first embodiment of electronic scale long-distance maintenance method comprises in the embodiment of the invention:
101, obtain successively according to the predefined time and be kept at not online record of local electronic scale;
The electronic scale that networks all can have registration at server end, at server end, has preserved the file that writes down each electronic scale of registering on the net; At server end; Also preestablished the time of the electronic scale of registering on the net being scanned detection; According to this preset time; From the file that writes down each electronic scale of registering on the net, obtain successively and be kept at not online record of local electronic scale, wherein, online record is not for detecting the not number of times of online accumulative total of the electronic scale of registering on the net;
102, judge whether fault of corresponding electronic scale according to online record not;
Judge whether fault of this electronic scale that online record is corresponding according to the not online record that obtains in the step 101, concrete:
Be provided with a threshold value in this locality in advance,, then judge this not corresponding electronic scale fault of online record if the not online number of times of online record demonstration is not greater than this threshold value;
If 103 fault, the alarm of sending this electronic scale fault;
If judge the electronic scale fault in the step 102, then send alarm, point out this electronic scale fault, need to safeguard.
In the present embodiment, through obtaining not online record, and according to this not online record judge whether fault of corresponding electronic scale, if fault is then sent alarm, point out this electronic scale fault, need to safeguard; Through the method that present embodiment provides, can make server in time detect the electronic scale of registering on the net and break down, need to safeguard, thereby can in time, rationally arrange maintenance, improve user experience.
See also Fig. 2, second embodiment of electronic scale long-distance maintenance method comprises in the embodiment of the invention:
201, obtain successively according to the predefined time and be kept at not online record of local electronic scale;
The electronic scale that networks all can have registration at server end; At server end; Preserved the file that writes down each electronic scale of registering on the net; This document has write down the ID, electronic scale address of the electronic scale of registering on the net and online record not at least, and wherein, online record is not for detecting the not number of times of online accumulative total of the electronic scale of registering on the net; This document can be preserved with forms such as table, texts, do not limit here, below be that example describes with the table:
Table 1
Electronic scale ID |
The address |
Online record not |
a1 |
No. 2, a market |
0 |
a2 |
No. 5, a market |
4 |
a3 |
No. 6, a market |
2 |
...... |
...... |
...... |
b4 |
No. 3, b market |
0 |
b5 |
No. 5, b market |
1 |
b6 |
No. 6, b market |
4 |
...... |
...... |
...... |
f50 |
No. 5, b market |
1 |
Wherein, the not online record of table 1 is to be come out according to electronic scale login situation each time by server, and is concrete:
Preestablish detected electrons scale whether not online time and frequency at server end, for example, every morning 9 detections once, perhaps each detects once or the like every mornings 8 point, at 11 at noon and 6 pm, does not do qualification here;
Detect each time, if it is not online to have detected electronic scale, the not online record that this electronic scale is corresponding adds 1, and is online if detect this electronic scale next time, then that this electronic scale is corresponding not online record zero clearing; For example, in table 1, the not online record of electronic scale a3 is 2, if when detecting next time, electronic scale a3 is online, so, changes the not online record of correspondence into 0;
At server end; Also preestablished the time of the not online record of the electronic scale of registering on the net being scanned detection; For example detect for beginning 10 of every days, server obtains from the file that writes down each electronic scale of registering on the net successively and is kept at not online record of local electronic scale;
202, judge whether fault of corresponding electronic scale according to online record not;
Judge whether fault of this electronic scale that online record is corresponding according to the not online record that obtains in the step 201, concrete:
Be provided with a threshold value in this locality in advance,, then judge this not corresponding electronic scale fault of online record if the not online number of times of online record demonstration is not greater than this threshold value; For example:
Threshold value is 3, and the not online record of electronic scale a2 is 4 in the table 1, and the not online record of electronic scale b6 is 4, all surpass threshold value 3, draw electronic scale a2 and electronic scale b6 fault so server is judged;
If 203 do not have fault, obtain not online record of the next one;
Do not have fault if judge the electronic scale that online record is not corresponding in the step 202, then obtain the not online record of next electronic scale;
204, judge this not online record whether be empty;
In step 203, obtained the next one not behind the online record, judge whether this record is empty,, explained then that all not online records have all detected to have accomplished execution in step 206 if be sky;
If 205 fault, the alarm of sending this electronic scale fault;
If judge the electronic scale fault in the step 202, then send alarm, point out this electronic scale fault, need to safeguard; Concrete, can send an alarm by fault electronic scale of every judgement:
The dialog box that shows the information of electronic scale fault to the user; Perhaps, obtain earlier and be kept at local keeper's mailbox and/or phone number, the alarm with the electronic scale fault sends to said keeper's mailbox and/or phone number then;
After can also having detected all electronic scales of registering on the net; Send the alarm of all fault electronic scales: at first; This fault electronic scale of a fault electronic scale record of every judgement; When having detected all electronic scales not behind the online record, carry out the step of the alarm of sending said electronic scale fault, promptly show the dialog box of the information of electronic scale fault to the user; Perhaps, obtain earlier and be kept at local keeper's mailbox and/or phone number, the alarm with the electronic scale fault sends to said keeper's mailbox and/or phone number then;
206, process ends.
Further, in another embodiment, this method also comprises the self check wrong step that receives the electronic scale transmission; Wherein, the mistake of finding when the self check mistake is the electronic scale self check, for example electronic scale carries out self check in when start or other stages of being in operation; If discovery mistake; And just often can this self check mistake be sent to server in communication, server receives this self check mistake, and the alarm of sending this electronic scale fault according to this self check mistake;
If the fault of the error analysis electronic scale that reports from electronic scale is a software fault; And local system and the communication of this electronic scale is normal; So, the technical staff can be at server end through being remotely logged into this electronic scale, this electronic scale further diagnosed with fault got rid of; And the scene of need not arriving is diagnosed and the fault eliminating, has improved operating efficiency greatly.
In the present embodiment, through obtaining not online record, and according to this not online record judge whether fault of corresponding electronic scale, if fault is then sent alarm, point out this electronic scale fault, need to safeguard; Through the method that present embodiment provides, can make server in time detect the electronic scale of registering on the net and break down and need to safeguard, thereby can in time, rationally arrange maintenance, raising user experience.
See also Fig. 3, the embodiment of electronic scale remote maintenance device comprises in the embodiment of the invention:
First acquisition module 301 is used for obtaining successively according to the predefined time and is kept at not online record of local electronic scale, and wherein, online record is not for detecting the not number of times of online accumulative total of the electronic scale of registering on the net;
Judge module 302 is used for judging whether fault of the corresponding electronic scale of online record according to the not online record that first acquisition module 301 obtains;
Alarm module 303 is used for when judge module 302 is judged this electronic scale fault the alarm of sending the electronic scale fault.
See also Fig. 4, in another embodiment, this device also comprises:
Second acquisition module 304; Be used for when judge module 302 is judged said electronic scale and do not had fault; Then obtain not online record of the next one; And judge whether fault of the corresponding electronic scale of not online record that second acquisition module 304 obtains by judge module 302, until having detected not online record of all electronic scales;
Logging modle 305 is used for when judge module 302 is judged said electronic scale fault, writing down this fault;
Receiver module 306 is used to receive the self check mistake that electronic scale sends, wherein, and the mistake of finding when this self check mistake is the electronic scale self check.
In another embodiment, alarm module 303 comprises:
Display unit is used to show the dialog box of the information of electronic scale fault; Perhaps
Acquiring unit is used to obtain the keeper's mailbox and/or the phone number that are kept at this locality; With
Transmitting element is used for the alarm of electronic scale fault is sent to said keeper's mailbox and/or phone number.
In the present embodiment, through obtaining not online record, and according to this not online record judge whether fault of corresponding electronic scale, if fault is then sent alarm, point out this electronic scale fault, need to safeguard; Through the method that present embodiment provides, can make server in time detect the electronic scale of registering on the net and break down and need to safeguard, thereby can in time, rationally arrange maintenance, raising user experience.
The above is merely embodiments of the invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.