Summary of the invention
The technical problem that the present invention mainly solves is to provide a kind of electronic scale long-distance maintenance method, and the embodiment of the present invention additionally provides corresponding device and system; Can detect that electronic scale goes wrong in time by method provided by the invention.
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 time preset and be kept at local electronic scale not online record, described not online record is detect the not accumulative online number of times of the electronic scale of registering on the net, wherein, detect that electronic scale is not online, not online record corresponding for this electronic scale is added 1, if it is online that next time detects this electronic scale, then not online record corresponding for this electronic scale is reset;
Relatively, online record and the size that is preset in local threshold value do not judge described electronic scale whether fault;
If described not online record is greater than the threshold value preset, then the electronic scale fault that described in judging, online record is not corresponding, sends the alarm of described electronic scale fault.
For solving the problems of the technologies described above, another technical solution used in the present invention is:
A kind of electronic scale remote maintenance device is provided, comprises:
First acquisition module, local electronic scale not online record is kept at for obtaining successively according to the time preset, described not online record is detect the not accumulative online number of times of the electronic scale of registering on the net, wherein, detect that electronic scale is not online, not online record corresponding for this electronic scale is added 1, if it is online to detect this electronic scale next time, then not online record corresponding for this electronic scale is reset;
Judge module, for online record and the size that is preset in local threshold value do not judge described electronic scale whether fault described in relatively;
Alarm module, for being greater than when described not online record the threshold value preset, during the electronic scale fault that described in judging, online record is not corresponding, sends the alarm of described electronic scale fault.
The invention has the beneficial effects as follows: the situation being different from prior art, the present invention by obtaining not online record, and according to this not online record judge corresponding electronic scale whether fault, if fault, then send alarm, point out this electronic scale fault, need to safeguard; By the method that the present embodiment provides, server can be made to detect in time, and the electronic scale of registering on the net breaks down, recognize in time its need safeguard, thus can in time, reasonable arrangement maintenance, raising Consumer's Experience.
Embodiment
In each embodiment of the present invention, the electronic scale of each market of farm produce is connected with server by wireless networks such as wifi, 3G; The multiple electronic scales composition small wireless networks of each market of farm produce, the small wireless network of each market of farm produce connects into a large wireless network again.
Refer to Fig. 1, in the embodiment of the present invention, the first embodiment of electronic scale long-distance maintenance method comprises:
101, the electronic scale not online record being kept at this locality is obtained successively according to the time preset;
The electronic scale networked all can have registration at server end, at server end, saves the file recording the electronic scale that each is registered on the net; At server end, also preset the time of electronic scale of registering on the net being carried out to Scanning Detction, according to this predetermined time, obtain from the file recording the electronic scale that each is registered on the net successively and be kept at local electronic scale not online record, wherein, online record is not detect the not accumulative online number of times of the electronic scale of registering on the net;
102, judge the electronic scale whether fault of correspondence according to not online record;
This electronic scale that online record is not corresponding whether fault is judged according to the not online record obtained in step 101, concrete:
Be previously provided with a threshold value in this locality, if the not online number of times of not online record display is greater than this threshold value, then judge this electronic scale fault that online record is not corresponding;
If 103 faults, send the alarm of this electronic scale fault;
If judge electronic scale fault in step 102, then send alarm, point out this electronic scale fault, need to safeguard.
In the present embodiment, by obtaining not online record, and according to this not online record judge corresponding electronic scale whether fault, if fault, then send alarm, point out this electronic scale fault, need to safeguard; By the method that the present embodiment provides, server can be made to detect in time, and the electronic scale of registering on the net breaks down, need safeguard, thus can in time, reasonable arrangement maintenance, raising Consumer's Experience.
Refer to Fig. 2, in the embodiment of the present invention, the second embodiment of electronic scale long-distance maintenance method comprises:
201, the electronic scale not online record being kept at this locality is obtained successively according to the time preset;
The electronic scale networked all can have registration at server end, at server end, save the file recording the electronic scale that each is registered on the net, this file at least have recorded the ID of the electronic scale of registering on the net, electronic scale address and not online record, wherein, online record is not detect the not accumulative online number of times of the electronic scale of registering on the net; This file can be preserved with forms such as table, texts, does not limit herein, is described below for table:
Table 1
Electronic scale ID |
Address |
Not online record |
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 come out according to electronic scale login situation each time by server, concrete:
Preset detected electrons scale whether not online time and frequency at server end, such as, every morning 9 is detected once, or every morning 8 point, at 11 at noon and 6 pm respectively detect once etc., do not limit herein;
Detect each time, if detected that electronic scale is not online, not online record corresponding for this electronic scale is added 1, if it is online to detect this electronic scale next time, then not online record corresponding for this electronic scale has been reset; Such as, in Table 1, the not online record of electronic scale a3 is 2, if upper once detect time, electronic scale a3 is online, so, changes the not online record of correspondence into 0;
At server end, also preset the time of the not online record of electronic scale of registering on the net being carried out to Scanning Detction, such as detect for starting every day 10, server obtains successively and is kept at local electronic scale not online record from the file recording the electronic scale that each is registered on the net;
202, judge the electronic scale whether fault of correspondence according to not online record;
This electronic scale that online record is not corresponding whether fault is judged according to the not online record obtained in step 201, concrete:
Be previously provided with a threshold value in this locality, if the not online number of times of not online record display is greater than this threshold value, then judge this electronic scale fault that online record is not corresponding; Such as:
Threshold value is 3, and in table 1, the not online record of electronic scale a2 is 4, and the not online record of electronic scale b6 is 4, the threshold value 3 all exceeded, so server judges to draw electronic scale a2 and electronic scale b6 fault;
If 203 do not have fault, obtain the next one not online record;
If judge in step 202 that the electronic scale that online record is not corresponding does not have fault, then obtain the not online record of next electronic scale;
204, judge this not online record be whether empty;
Obtain the next one in step 203 not after online record, judge whether this record is empty, if be empty, then illustrates that all not online records all complete after testing, execution step 206;
If 205 faults, send the alarm of this electronic scale fault;
If judge electronic scale fault in step 202, then send alarm, point out this electronic scale fault, need to safeguard; Concrete, often can judge that a fault electronic scale sends an alarm:
The dialog box of the information of electronic scale fault is shown to user; Or, first obtain and be kept at local keeper's mailbox and/or phone number, then the alarm of electronic scale fault is sent to described keeper's mailbox and/or phone number;
After all electronic scales of registering on the net can also have been detected, send the alarm of all fault electronic scales: first, often judge this fault electronic scale of fault electronic scale record, when having detected all electronic scales not after online record, perform the step sending the alarm of described electronic scale fault, namely show the dialog box of the information of electronic scale fault to user; Or, first obtain and be kept at local keeper's mailbox and/or phone number, then the alarm of electronic scale fault is sent to described keeper's mailbox and/or phone number;
206, process ends.
Further, in another embodiment, this method also comprises the self-inspection wrong step receiving electronic scale and send, wherein, the mistake found when self-inspection mistake is electronic scale self-inspection, such as electronic scale when starting shooting or other stages of being in operation carry out self-inspection, if discovery mistake, and this self-inspection mistake can be sent to server when communication is normal, server receives this self-inspection mistake, and sends the alarm of this electronic scale fault according to this self-inspection mistake;
If the fault of the error analysis electronic scale reported from electronic scale is software fault, and the system of this electronic scale this locality and communication are normal, so, technical staff can at server end by being remotely logged into this electronic scale, this electronic scale is further diagnosed and failture evacuation, and do not need to carry out to scene diagnosing and failture evacuation, substantially increase operating efficiency.
In the present embodiment, by obtaining not online record, and according to this not online record judge corresponding electronic scale whether fault, if fault, then send alarm, point out this electronic scale fault, need to safeguard; By the method that the present embodiment provides, can make server detect in time the electronic scale of registering on the net break down need safeguard, thus can in time, reasonable arrangement maintenance, raising Consumer's Experience.
Refer to Fig. 3, in the embodiment of the present invention, the embodiment of electronic scale remote maintenance device comprises:
First acquisition module 301, is kept at local electronic scale not online record for obtaining successively according to time of presetting, and wherein, online record is not detect the not accumulative online number of times of the electronic scale of registering on the net;
Judge module 302, the not online record for obtaining according to the first acquisition module 301 judges electronic scale that online record is not corresponding whether fault;
Alarm module 303, during for judging this electronic scale fault when judge module 302, sends the alarm of electronic scale fault.
Refer to Fig. 4, in another embodiment, this device also comprises:
Second acquisition module 304, during for judging that when judge module 302 described electronic scale does not have a fault, then obtain the next one not online record, and judge electronic scale that not online record that the second acquisition module 304 obtains is corresponding whether fault, until detected all electronic scales not online record by judge module 302;
Logging modle 305, for when judge module 302 judges described electronic scale fault, records this fault;
Receiver module 306, for receiving the self-inspection mistake that electronic scale sends, wherein, the mistake found when this self-inspection mistake is electronic scale self-inspection.
In another embodiment, alarm module 303 comprises:
Display unit, for showing the dialog box of the information of electronic scale fault; Or
Acquiring unit, is kept at local keeper's mailbox and/or phone number for obtaining; With
Transmitting element, for sending to described keeper's mailbox and/or phone number by the alarm of electronic scale fault.
In the present embodiment, by obtaining not online record, and according to this not online record judge corresponding electronic scale whether fault, if fault, then send alarm, point out this electronic scale fault, need to safeguard; By the method that the present embodiment provides, can make server detect in time the electronic scale of registering on the net break down need safeguard, thus can in time, reasonable arrangement maintenance, raising Consumer's Experience.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.