Monitoring system and monitoring method of intelligent tool cabinetTechnical Field
The invention relates to the technical field of tool cabinets, in particular to a monitoring system and a monitoring method of an intelligent tool cabinet.
Background
The tool cabinet is designed for scientific management of tools, measuring tools, clamps, cutters, parts and the like in a production field in cooperation with a factory, and is convenient for enterprises to carry out classification management and visual management. The storage device has the characteristics of large storage capacity, good bearing capacity, safety and convenience, so that accurate and efficient storage and taking are realized, and the management level of an enterprise is improved.
Along with the progress of intellectualization, tool cabinets are increasingly introduced to intellectualized management, and in the intellectualized management, a type of intellectualized management aiming at tools in the tool cabinet is to read and write corresponding RFID tags on the tools through RFID equipment and read and write corresponding tool models and identification information in the RFID tags, so that the condition of storing and taking out the tools in the tool cabinet can be mastered when the tools are put in and taken out of the tool cabinet.
However, in practical applications, if the user mistakenly takes the tool in the tool cabinet and the corresponding RFID device does not have any error correction processing method, the safety of using the tool may be insufficient.
In addition, the RFID device has tool information, and in order to prevent the tool information from being simply stored locally insecure, a backup is often performed, the existing backup method widely adopts a WIFI method to transmit the tool information updated locally from time to a backup platform in the WLAN for backup, and during the transmission of the tool information to the backup platform in the WLAN, a non-handshake process under a bandwidth for transmitting the tool information is generally used to transmit an information message of the tool information; the non-handshake procedure gives an uncomplicated but insecure transfer of information; therefore, when the message of the tool information is transmitted, the defect of losing the message often occurs; if the number of the lost messages is not small, the backup platform will lose the information messages of the working information when receiving the tool information, which is not beneficial to backup, so the correct evaluation of the loss rate is very critical to the transmission performance of the controller.
Disclosure of Invention
In order to solve the problems, the invention provides a monitoring system of an intelligent tool cabinet and a monitoring method thereof, which effectively avoid the defect that the use safety of tools is not enough due to the fact that a user mistakenly takes the state of the tools in the tool cabinet and corresponding RFID equipment does not have any error correction processing mode in the prior art, and can also correctly evaluate the loss rate of tool information.
In order to overcome the defects in the prior art, the invention provides a monitoring system of an intelligent tool cabinet and a solution of a monitoring method thereof, which specifically comprise the following steps:
a monitoring system for an intelligent tool cabinet, comprising:
the tool cabinet comprises a plurality of sub tool cabinets and a control box, wherein the sub tool cabinets are sequentially arranged from high to low in an overlapping mode, tools with specified numbers and models are placed in each sub tool cabinet, a corresponding RFID tag is attached to each tool, and the RFID tag comprises model information and identification information of the corresponding tool;
each sub tool cabinet is internally provided with an RFID antenna and an RFID reader-writer connected with the RFID antenna through an RFID cable, a controller is arranged in the control box, all the RFID reader-writers are electrically connected with the controller, the controller is connected with a WIFI module, and the controller is in communication connection with a backup platform in a WLAN through the WIFI module;
the front side of each sub-tool cabinet is provided with a cabinet door with an intelligent electronic lock, and the intelligent electronic lock is electrically connected with the controller;
the controller is further connected with the storage and the alarm, user information, tool information and statistical information are stored in the storage, the tool information comprises an identifier of each sub tool cabinet and model information and identifier information of tools in each sub tool cabinet, the statistical information is the models of the tools in all the sub tool cabinets and the total number of the tools corresponding to the models, the user information comprises a user ID and a right corresponding to the user ID, and the identifiers of the sub tool cabinets are further marked on the outer wall of a cabinet door of the sub tool cabinet;
an input module and a state display module run on the touch screen;
the input module is used for displaying an input interface on the touch screen, so that when a user needs to take out tools in the tool cabinet, the input user ID and the model number and the number of the tools needing to be taken out are confirmed on the input interface displayed on the touch screen;
the state display module is used for displaying a state interface to display the state of the tool removing;
a judging module, a traversing module, a first transmission module, a control module and a comparison module run on the controller;
the judging module is used for comparing the received user ID and the model of the tool to be taken out with the user information in the storage connected with the user ID, and judging whether the user ID has the authority of taking out the tool of the model;
the traversing module is used for traversing the model information of the tools in each sub-tool cabinet in the tool information in the memory connected with the traversing module after judging that the user ID has the authority of taking out the tools of the model, and then selecting the identification of the sub-tool cabinet where the tools with the same model and number as the received tools to be taken out are located;
the transmission module I is used for transmitting the model of the tool to be taken out, the selected identification of the sub tool cabinets and the value of the counter corresponding to the sub tool cabinets to the touch screen;
the control module is used for controlling the RFID reader-writer arranged in the sub-tool cabinet to read the model information and the identification information of the tools in the RFID labels on all the tools in the sub-tool cabinet through the RFID antenna connected with the RFID reader-writer after the controller receives the locking success signal;
the comparison module is used for comparing the received identification of the sub-tool cabinets, the model information of the tools and the identification information according to the tool information in the memory so as to judge whether the user takes out the tools mistakenly;
a second transmission module runs on the intelligent electronic lock;
the transmission module II is used for giving a lock closing success signal to the controller;
a third transmission module runs on the RFID reader-writer;
the transmission module III is used for transmitting the identification of the sub-tool cabinet, the read model information and the identification information of the tools in the RFID labels on all the tools in the sub-tool cabinet to the controller;
the controller is also provided with a transmission module IV, a receiving module, a leading-out module I, an obtaining module I and a changing module I in operation;
the transmission module is used for transmitting the information messages of the tool information with the appointed number to the backup platform within the appointed time interval by means of the bandwidth for transmitting the information messages;
the receiving module is used for receiving the initial amount of the bandwidth and the loss rate which are responded by the backup platform and used for receiving the information message within the specified time interval; the initial quantity of the loss rate is 100% - (the number of the received information messages in the specified time interval size ÷ the specified number);
the derivation module is used for deriving bandwidth coefficients; the bandwidth coefficient is 100% - (the bandwidth for receiving the information message/the bandwidth for transferring the information message);
the obtaining module is used for obtaining the result of the loss rate by means of the initial amount of the loss rate and the bandwidth coefficient;
the change module is used for transmitting the bandwidth of the information message according to the result change of the loss rate.
Further, a second export module, a second acquisition module and a second change module are operated on the controller;
the second derivation module is used for deriving the average of S bandwidth coefficients and the average of S initial quantities of loss rates, wherein S is a natural number greater than one;
the obtaining module is used for respectively executing combination coefficient multiplication and addition by means of the average number of the S bandwidth coefficients and the average number of the initial quantity of the S loss rates to obtain the result of the loss rate;
the change module is used for transmitting the bandwidth of the information message by means of the result change of the loss rate.
A monitoring method of a monitoring system of an intelligent tool cabinet comprises the following processes:
SA-1: when a user needs to take out the tools in the tool cabinet, confirming the input user ID and the model and the number of the tools needing to be taken out on an input interface displayed on a touch screen;
and SA-2: the controller firstly compares the received user ID and the model of the tool to be taken out with the user information in the storage connected with the user ID, and judges whether the user ID has the authority to take out the tool of the model;
and SA-3: after judging that the user ID has the authority of taking out the tools of the type, the controller traverses the type information of the tools in each sub-tool cabinet in the tool information in the memory connected with the controller, and then selects the identifier of the sub-tool cabinet where the tools with the same type and number as the received tools to be taken out are located;
SA-4: then the controller transmits the model of the tool to be taken out, the selected identification of the sub tool cabinets and the value of the counter corresponding to the sub tool cabinets to the touch screen and opens the intelligent electronic lock of the cabinet door on the sub tool cabinet corresponding to the selected identification of the sub tool cabinet to enable the user to take out the tool in the tool cabinet, and the touch screen displays a state interface to display the state of the tool to be taken out;
SA-5: a user opens the opened cabinet door of the intelligent electronic lock to open the sub-tool cabinet, and closes the cabinet door of the sub-tool cabinet after taking out the tool from the opened sub-tool cabinet;
SA-6: after the cabinet door of the sub tool cabinet is closed, the intelligent electronic lock is normally locked, the intelligent electronic lock gives a successful locking signal to the controller, and the controller receives the successful locking signal and controls the RFID reader-writer arranged in the sub tool cabinet to read the model information and the identification information of the tools in the RFID tags on all the tools in the sub tool cabinet through the RFID antenna connected with the RFID reader-writer;
SA-7: then the RFID reader-writer in the sub-tool cabinet transmits the identifier of the sub-tool cabinet, the read model information and the identification information of the tools in the RFID labels on all the tools in the sub-tool cabinet to a controller, and the controller compares the received identifier of the sub-tool cabinet, the model information and the identification information of the tools according to the tool information in the memory so as to judge whether the tool is taken out by a user to be wrong;
SA-8: after all the yellow-filled boxes on the state interface displayed by the touch screen are changed into green-filled boxes, a return button is displayed on the state interface, and the state interface can be returned to the SA-1 for execution by clicking the return button;
in addition, after the received model information and identification information of the tools in the RFID tags of all the tools in the sub-tool cabinet replace the model information and identification information of the tool in the latest sub-tool cabinet in the memory, respectively, the controller needs to transmit the tool information in the memory to the backup platform in the form of a message for backup;
the method for transmitting the tool information in the memory to the backup platform in the form of messages by the controller comprises the following procedures:
SB-1: transmitting the information messages of the tool information of the designated number to a backup platform in the designated time interval by means of the bandwidth for transmitting the information messages;
SB-2: receiving the initial amount of the bandwidth and the loss rate which are responded by the backup platform and used for receiving the information message within the specified time interval; the initial quantity of the loss rate is 100% - (the number of the received information messages in the specified time interval size ÷ the specified number);
SB-3: deriving a bandwidth coefficient; the bandwidth coefficient is 100% - (the bandwidth for receiving the information message/the bandwidth for transferring the information message);
SB-4: obtaining a result of the loss rate by means of the initial amount of the loss rate and the bandwidth coefficient;
SB-5: and transmitting the bandwidth of the information message by means of the result change of the loss rate.
Further, the input interface is provided with an edit box for inputting a user ID, a first drop-down box for selecting a model of a tool, a second drop-down box for selecting a number of tools, and a confirmation button, so that clicking the first drop-down box displays models of all tools in the tool cabinet on a drop-down menu item pulled down by the first drop-down box, clicking a model of a tool displayed on the drop-down menu item, thereby inputting a model of a tool to be taken out in the first drop-down box, clicking the second drop-down box displays an integer from 1 to a total number of tools corresponding to the model of the tool to be taken out input in the tool cabinet on the drop-down menu item, clicking an integer displayed on the drop-down menu item, thereby inputting a number of tools to be taken out in the second drop-down box, and then inputting a user ID of the user in the edit box for inputting a user ID, and then clicks a confirm button to transfer the input user ID, the model number and the number of tools to be taken out to the controller.
Further, the method for the controller to first determine whether the user ID has the authority to take out the tool of the model by comparing the received user ID and the model of the tool to be taken out with the user information in the memory connected to the user ID includes:
firstly, the controller searches the user information in the memory to judge whether a user ID same as the received user ID exists, and if the user ID same as the received user ID does not exist, the controller returns to the SA-1 for execution; if the user ID identical to the received user ID exists, searching in the user authority corresponding to the user ID according to the received model of the tool needing to be taken out to judge whether the tool with the authority to use the model exists, namely searching whether the model of the tool needing to be taken out exists in the user authority, and if the model of the tool needing to be taken out exists, judging that the user ID has the authority to take out the tool with the model; if not, the user ID is judged to have no authority of taking out the tool of the model, and the operation is returned to the SA-1 for execution.
Further, the method for the controller to traverse the model information of the tools in each sub-tool cabinet in the tool information in the memory connected with the controller and then select the identification of the sub-tool cabinet where the tools are located, wherein the identification is consistent with the received models and the number of the tools to be taken out, comprises the following steps:
and setting a counter with an initial value of 0 and a total counter with an initial value of 0 for each sub-tool cabinet in a one-to-one correspondence manner, traversing in the tool information, adding one to the counter corresponding to the sub-tool cabinet and adding one to the total counter if the model information of the tools in the sub-tool cabinet is the same as the model of the tools to be taken out, comparing with the number of the tools to be taken out, selecting the identifier of the sub-tool cabinet if the value of the total counter is less than the number of the tools to be taken out, and selecting the identifier of the sub-tool cabinet and terminating the traversal if the value of the total counter is equal to the number of the tools to be taken out.
Further, the method for displaying the state interface by the touch screen to display the state of the tool removal comprises the following steps:
the state interface displayed by the touch screen comprises a plurality of frames which are overlapped from high to low, the number of the frames is consistent with that of the sub-tool cabinets, and the frames correspond to the sub-tool cabinets one by one according to the sequence from high to low, namely one frame represents the corresponding sub-tool cabinet, and each frame is provided with the identifier of the corresponding sub-tool cabinet;
when the controller opens the intelligent electronic lock of the upper cabinet door of the sub-tool cabinet corresponding to the selected identifier of the sub-tool cabinet, the square frames corresponding to the sub-tool cabinets are filled with yellow, and the received value of the counter corresponding to the sub-tool cabinet and the model of the tool to be taken out are displayed beside the square frames.
Further, the method for judging whether the user takes out the tool by mistake by comparing the controller with the received identification of the sub-tool cabinet, the model information of the tool and the identification information according to the tool information in the memory comprises the following steps:
firstly, the controller classifies the received type information of the tools, namely classifying the same type information of the tools into one type, and then counting the number one of the type information of each type of tool, so that the number one of the tools of each type in the sub-tool cabinet is obtained; the controller reads the model information of the nearest tool in the sub-tool cabinet corresponding to the identifier of the sub-tool cabinet in the tool information in the memory, which is the same as the received identifier of the sub-tool cabinet, and classifies the model information, namely, the model information of the nearest tool in the sub-tool cabinet in the tool information is classified into one class, and then the number two of the model information of each type of tool in the sub-tool cabinet in the tool information is counted, so that the number two of the tools of each type in the sub-tool cabinet in the tool information is obtained;
then, subtracting the first number of tools of the type in the tool division cabinet from the second number of tools of the type in the tool division cabinet in the tool information of the same type as the tools to be taken out to obtain the actual number of the tools to be taken out, if the actual number is different from the value of a counter corresponding to the tool division cabinet, indicating that the number of the tools to be taken out is incorrect, displaying the wrong information of the taken out tools on a touch screen, filling a square frame corresponding to the tool division cabinet into red, opening an intelligent electronic lock on a cabinet door of the tool division cabinet, starting an alarm to send a voice message to prompt that the tools of the tool division cabinet are taken wrong, and returning to SA-5 for execution; if the actual number is the same as the value of the counter corresponding to the sub-tool cabinet, it is indicated that the number of the tools to be taken out is correct, then the number of the tools of other types in the sub-tool cabinet is compared with the number of the tools of the same type with the same size in the sub-tool cabinet one by one, if the actual number is the same as the value of the counter corresponding to the sub-tool cabinet, the number of the tools of the same type in the sub-tool cabinet is compared with the number of the tools of the same type with the size in the sub-tool cabinet one by one, at the moment, the square frame corresponding to the sub-tool cabinet is filled to be green, and the received type information and identification information of the tools in the RFID labels on all the tools in the sub-tool cabinet replace the latest type information and identification information of the tools in the sub-tool cabinet in the memory respectively, so as to serve as the; if the tools are different, displaying the information that the taken tools have errors on the touch screen, filling the square frame corresponding to the sub-tool cabinet with red color, opening an intelligent electronic lock on a cabinet door of the sub-tool cabinet, starting an alarm to send out a voice message to alarm that the tools of the sub-tool cabinet are taken by errors, and returning to the SA-5 for execution.
Further, the derived equation of I1 can also be: i1 ═ 100% - (K2 ÷ C)
(H1-L1)), H1 is the sequence code of the information packet with the longest length to be transmitted within the specified time interval size P, and L1 is the sequence code of the information packet with the shortest length.
Further, the method for obtaining the result of the dropout rate by using the starting amount of the dropout rate and the bandwidth factor comprises: the loss rate result Z1 is derived by using a coefficient statistical model through C2 and I1, and the detailed equation is:
z1 (Y1 × I1) + (Y2 × C2), where Y1 and Y2 are preset coefficients one and two, and Y1+ Y2 (100%) can make Y1 and Y2 both take on 50%.
The method for transmitting the tool information in the memory to the backup platform in the form of messages by the controller comprises the following procedures:
SC-1: transmitting the information messages of the tool information of the designated number to a backup platform in the designated time interval size by means of the bandwidth for transmitting the information messages;
SC-2: receiving the initial amount of the bandwidth and the loss rate which are responded by the backup platform and used for receiving the information message within the specified time interval; the initial quantity of the loss rate is 100% - (the number of the received information messages in the specified time interval size ÷ the specified number);
SC-3: deriving a bandwidth coefficient; the bandwidth coefficient is 100% - (the bandwidth for receiving the information message/the bandwidth for transferring the information message);
SC-4: deriving the average of S bandwidth coefficients and the average of S initial loss rates, wherein S is a natural number greater than one;
SC-5: respectively multiplying and adding the combination coefficients by the average number of the S bandwidth coefficients and the average number of the initial amount of the S loss rates to obtain a result of the loss rate;
the initial amount and bandwidth factor for the loss rate are still given by I1 and C2: by deriving by performing the multiplication and the addition of the combination coefficients respectively for the average of the S bandwidth coefficients and the average of the starting amount of the S loss rates, the result of obtaining the loss rate can be: obtaining S I1 and C2 through S runs and obtaining their average numbers I1Q and C2Q for I1 and C2, respectively, the result Z1 of the loss rate is obtained by the following equation:
z1 (Y1 × I1Q) + (Y2 × C2Q), where Y1+ Y2 are 100%, which allows both Y1 and Y2 to take on 50%.
SC-6: and transmitting the bandwidth of the information message by means of the result change of the loss rate.
Further, changing the bandwidth used for transmitting the information packet according to the result of the loss rate further includes comparing the result of the loss rate with a preset critical number, and if the result of the loss rate is higher than the preset critical number, reducing the bandwidth used for transmitting the information packet according to the result of the loss rate for a long time.
The invention has the beneficial effects that:
in the state that the user mistakenly takes the tool in the tool cabinet, the corresponding filling red color in the corresponding frame on the state interface and the voice message alarm prompt are sent out for error correction, so that the use safety of the tool is enhanced, and the defect of insufficient use safety of the tool caused by the fact that the user mistakenly takes the state of the tool in the tool cabinet and the corresponding RFID equipment does not have any error correction processing mode in the prior art is effectively avoided; the invention obtains the result of the loss rate by the bandwidth coefficient and the initial amount of the loss rate, and the result is absorbed by the bandwidth coefficient and then is derived from the loss rate, thereby being beneficial to balancing the error of the loss rate evaluation in the current mode and improving the accuracy of the loss rate evaluation; the result of the loss rate is obtained by the average of the bandwidth coefficients and the average of the initial amount of the loss rate, and the derivation is performed by the average, so that the effect of random conditions suffered by information collected at one time is prevented, and the accuracy of the loss rate evaluation can be improved.
Drawings
Fig. 1 is a flowchart of SA-1 to SA-3 stages of a monitoring method of the monitoring system of the intelligent tool cabinet of the present invention.
Fig. 2 is a flowchart of the SA-4 to SA-6 stages of the monitoring method of the monitoring system of the intelligent tool cabinet of the present invention.
Fig. 3 is a flowchart of the SA-7 to SA-8 stages of the monitoring method of the monitoring system of the intelligent tool cabinet of the present invention.
Detailed Description
The invention will be further described with reference to the following figures and examples.
As shown in fig. 1 and 3, the monitoring system of the intelligent tool cabinet comprises:
the tool cabinet comprises a plurality of sub tool cabinets and a control box, wherein the sub tool cabinets are sequentially arranged from high to low in an overlapping mode, tools with specified numbers and models are placed in each sub tool cabinet, a corresponding RFID tag is attached to each tool, and the RFID tag comprises model information and identification information of the corresponding tool; just as, the tool corresponding to the RFID tag is a wire stripper of MT-5021 model, then the model information of the corresponding tool in the RFID tag is a wire stripper of MT-5021, and then the identification information of the corresponding tool in the RFID tag is an identifier uniquely identifying the wire stripper of MT-5021 model, which may be 911001.
Each sub tool cabinet is internally provided with an RFID antenna and an RFID reader-writer connected with the RFID antenna through an RFID cable, a controller is arranged in the control box, the controller can be a single chip microcomputer, all the RFID reader-writers are electrically connected with the controller, the controller is connected with a WIFI module, and the controller is in communication connection with a backup platform in a WLAN through the WIFI module; the backup platform can be a PC or a notebook.
The front side of each sub-tool cabinet is provided with a cabinet door with an intelligent electronic lock, and the intelligent electronic lock is electrically connected with the controller;
the controller is further connected with the storage and the alarm, user information, tool information and statistical information are stored in the storage, the tool information comprises an identifier of each sub tool cabinet and model information and identifier information of tools in each sub tool cabinet, the statistical information is the models of the tools in all the sub tool cabinets and the total number of the tools corresponding to the models, the user information comprises a user ID and a right corresponding to the user ID, and the identifiers of the sub tool cabinets are further marked on the outer wall of a cabinet door of the sub tool cabinet; the memory can be a flash memory. The alarm can be a horn. The identification of the sub tool cabinet is an identifier for uniquely identifying the sub tool cabinet, and the identifier may be a 1. The user ID is an identifier that uniquely identifies the user, which may be 888001. The authority corresponding to the user ID is the authority of the user ID to use which model of tools.
An input module and a state display module run on the touch screen;
the input module is used for displaying an input interface on the touch screen, so that when a user needs to take out tools in the tool cabinet, the input user ID and the model number and the number of the tools needing to be taken out are confirmed on the input interface displayed on the touch screen;
the state display module is used for displaying a state interface to display the state of the tool removing;
a judging module, a traversing module, a first transmission module, a control module and a comparison module run on the controller;
the judging module is used for comparing the received user ID and the model of the tool to be taken out with the user information in the storage connected with the user ID, and judging whether the user ID has the authority of taking out the tool of the model;
the traversing module is used for traversing the model information of the tools in each sub-tool cabinet in the tool information in the memory connected with the traversing module after judging that the user ID has the authority of taking out the tools of the model, and then selecting the identifier of more than one sub-tool cabinet where the tools with the same model and number as the received tools to be taken out are located;
the transmission module I is used for transmitting the model of the tool to be taken out, the selected identification of the sub tool cabinets and the value of the counter corresponding to the sub tool cabinets to the touch screen;
the control module is used for controlling the RFID reader-writer arranged in the sub-tool cabinet to read the model information and the identification information of the tools in the RFID labels on all the tools in the sub-tool cabinet through the RFID antenna connected with the RFID reader-writer after the controller receives the locking success signal;
the comparison module is used for comparing the received identification of the sub-tool cabinets, the model information of the tools and the identification information according to the tool information in the memory so as to judge whether the user takes out the tools mistakenly;
a second transmission module runs on the intelligent electronic lock;
the transmission module II is used for giving a lock closing success signal to the controller;
a third transmission module runs on the RFID reader-writer;
the transmission module III is used for transmitting the identification of the sub-tool cabinet, the read model information and the identification information of the tools in the RFID labels on all the tools in the sub-tool cabinet to the controller;
the controller is also provided with a transmission module IV, a receiving module, a leading-out module I, an obtaining module I and a changing module I in operation;
the transmission module is used for transmitting the information messages of the tool information with the appointed number to the backup platform within the appointed time interval by means of the bandwidth for transmitting the information messages;
the receiving module is used for receiving the initial amount of the bandwidth and the loss rate which are responded by the backup platform and used for receiving the information message within the specified time interval; the initial quantity of the loss rate is 100% - (the number of the received information messages in the specified time interval size ÷ the specified number);
the derivation module is used for deriving bandwidth coefficients; the bandwidth coefficient is 100% - (the bandwidth for receiving the information message/the bandwidth for transferring the information message);
the obtaining module is used for obtaining the result of the loss rate by means of the initial amount of the loss rate and the bandwidth coefficient;
the change module is used for transmitting the bandwidth of the information message according to the result change of the loss rate.
The controller is also provided with a second export module, a second acquisition module and a second change module;
the second derivation module is used for deriving the average of S bandwidth coefficients and the average of S initial quantities of loss rates, wherein S is a natural number greater than one;
the obtaining module is used for respectively executing combination coefficient multiplication and addition by means of the average number of the S bandwidth coefficients and the average number of the initial quantity of the S loss rates to obtain the result of the loss rate;
the change module is used for transmitting the bandwidth of the information message by means of the result change of the loss rate.
A monitoring method of a monitoring system of an intelligent tool cabinet comprises the following processes:
SA-1: when a user needs to take out the tools in the tool cabinet, confirming the input user ID and the model and the number of the tools needing to be taken out on an input interface displayed on a touch screen;
the input interface is provided with an edit box for inputting a user ID, a first drop-down box for selecting the model number of tools, a second drop-down box for selecting the number of tools and a confirmation button, so that clicking the first drop-down box displays the model numbers of all tools in the tool cabinet on a drop-down menu item pulled down, clicking the model number of a tool displayed on the drop-down menu item, then inputting the model number of the tool to be taken out in the first drop-down box, clicking the second drop-down box displays an integer from the integer 1 to the total number of tools corresponding to the model number of the tool to be taken out input in the tool cabinet on the drop-down menu item pulled down, clicking the integer displayed on the drop-down menu item, then inputting the number of the tools to be taken out in the second drop-down box, and then inputting the user ID of the user in the edit box for inputting the user ID, and then clicking a confirmation button to transmit the input user ID and the model number and the number of the tools to be taken out to the controller, thereby achieving the purpose of confirming the input user ID and the model number and the number of the tools to be taken out on an input interface displayed on the touch screen.
And SA-2: the controller firstly compares the received user ID and the model of the tool to be taken out with the user information in the storage connected with the user ID, and judges whether the user ID has the authority to take out the tool of the model;
the controller firstly compares the received user ID and the model of the tool to be taken out with the user information in the storage connected with the user ID, and judges whether the user ID has the authority of taking out the tool of the model, and the method comprises the following steps:
firstly, the controller searches the user information in the memory to judge whether a user ID same as the received user ID exists, and if the user ID same as the received user ID does not exist, the controller returns to the SA-1 for execution; if the user ID identical to the received user ID exists, searching in the user authority corresponding to the user ID according to the received model of the tool needing to be taken out to judge whether the tool with the authority to use the model exists, namely searching whether the model of the tool needing to be taken out exists in the user authority, and if the model of the tool needing to be taken out exists, judging that the user ID has the authority to take out the tool with the model; if not, the user ID is judged to have no authority of taking out the tool of the model, and the operation is returned to the SA-1 for execution.
And SA-3: after judging that the user ID has the authority of taking out the tools of the model, the controller traverses the model information of the tools in each sub-tool cabinet in the tool information in the memory connected with the controller, and then selects more than one sub-tool cabinet mark where the tools with the same model and number as the received tools to be taken out are located;
the controller traverses the model information of the tools in each sub-tool cabinet in the tool information in the memory connected with the controller, and then selects more than one sub-tool cabinet mark where the tools with the same model and number as the received tools to be taken out are located, the method comprises the following steps:
and setting a counter with an initial value of 0 and a total counter with an initial value of 0 for each sub-tool cabinet in a one-to-one correspondence manner, traversing in the tool information, adding one to the counter corresponding to the sub-tool cabinet and adding one to the total counter if the model information of the tools in the sub-tool cabinet is the same as the model of the tools to be taken out, comparing with the number of the tools to be taken out, selecting the identifier of the sub-tool cabinet if the value of the total counter is less than the number of the tools to be taken out, and selecting the identifier of the sub-tool cabinet and terminating the traversal if the value of the total counter is equal to the number of the tools to be taken out.
SA-4: then the controller transmits the model of the tool to be taken out, the selected identification of the sub tool cabinets and the value of the counter corresponding to the sub tool cabinets to the touch screen and opens the intelligent electronic lock of the cabinet door on the sub tool cabinet corresponding to the selected identification of the sub tool cabinet to enable the user to take out the tool in the tool cabinet, and the touch screen displays a state interface to display the state of the tool to be taken out;
the method for displaying the state interface of the touch screen to display the state of the tool to be taken away comprises the following steps:
the state interface displayed by the touch screen comprises a plurality of frames which are overlapped from high to low, the number of the frames is consistent with that of the sub-tool cabinets, and the frames correspond to the sub-tool cabinets one by one according to the sequence from high to low, namely one frame represents the corresponding sub-tool cabinet, and each frame is provided with the identifier of the corresponding sub-tool cabinet;
when the controller opens the intelligent electronic lock of the upper cabinet door of the sub-tool cabinet corresponding to the selected identifier of the sub-tool cabinet, the square frame corresponding to the sub-tool cabinets is filled with yellow to represent that the sub-tool cabinets are opened and tools can be taken out; and displaying the value of the counter corresponding to the received sub-tool cabinets and the model number of the tools to be taken out beside the square boxes to represent the model number of the tools to be taken out from the sub-tool cabinets represented by the square boxes respectively and the number of the tools to be taken out which is the same as the value of the corresponding counter.
SA-5: a user opens the opened cabinet door of the intelligent electronic lock to open the sub-tool cabinet, and closes the cabinet door of the sub-tool cabinet after taking out the tool from the opened sub-tool cabinet;
SA-6: after the cabinet door of the sub tool cabinet is closed, the intelligent electronic lock is normally locked, the intelligent electronic lock gives a successful locking signal to the controller, and the controller receives the successful locking signal and controls the RFID reader-writer arranged in the sub tool cabinet to read the model information and the identification information of the tools in the RFID tags on all the tools in the sub tool cabinet through the RFID antenna connected with the RFID reader-writer;
SA-7: then the RFID reader-writer in the sub-tool cabinet transmits the identifier of the sub-tool cabinet, the read model information and the identification information of the tools in the RFID labels on all the tools in the sub-tool cabinet to a controller, and the controller compares the received identifier of the sub-tool cabinet, the model information and the identification information of the tools according to the tool information in the memory so as to judge whether the tool is taken out by a user to be wrong;
the controller compares the received identification of the sub-tool cabinets, the model information of the tools and the identification information according to the tool information in the memory so as to judge whether the tool taken out by the user has errors or not, and the method comprises the following steps:
firstly, the controller classifies the received type information of the tools, namely classifying the same type information of the tools into one type, and then counting the number one of the type information of each type of tool, so that the number one of the tools of each type in the sub-tool cabinet is obtained; the controller reads the model information of the nearest tool in the sub-tool cabinet corresponding to the identifier of the sub-tool cabinet in the tool information in the memory, which is the same as the received identifier of the sub-tool cabinet, and classifies the model information, namely, the model information of the nearest tool in the sub-tool cabinet in the tool information is classified into one class, and then the number two of the model information of each type of tool in the sub-tool cabinet in the tool information is counted, so that the number two of the tools of each type in the sub-tool cabinet in the tool information is obtained;
then, subtracting the first number of tools of the type in the tool division cabinet from the second number of tools of the type in the tool division cabinet in the tool information of the same type as the tools to be taken out to obtain the actual number of the tools to be taken out, if the actual number is different from the value of a counter corresponding to the tool division cabinet, indicating that the number of the tools to be taken out is incorrect, displaying the information that the taken out tools are wrong on a touch screen, filling a square frame corresponding to the tool division cabinet into red to indicate that the taken out tools are wrong, opening an intelligent electronic lock on a cabinet door of the tool division cabinet, starting an alarm to send a voice message to alarm that the tools of the tool division cabinet are taken out in a wrong way, and returning to SA-5 for execution; if the actual number is the same as the value of the counter corresponding to the sub-tool cabinet, it indicates that the number of the tools to be taken out is correct, then the number one of the tools of other types in the sub tool cabinet is respectively compared with the number two of the tools of the same type with the same size in the sub tool cabinet in the tool information one by one, if the numbers are the same, the tools of other types are not taken by mistake, at the moment, the square frame corresponding to the sub tool cabinet is filled to be green, thereby showing that the tools taken out from the sub-tool cabinet are correct, and the received model information and the identification information of the tools in the RFID labels of all the tools in the sub-tool cabinet replace the model information and the identification information of the nearest tool in the sub-tool cabinet in the memory respectively, respectively serving as the updated model information and the updated identification information of the tool in the latest sub-tool cabinet; if the tools are different, the fact that the tools of other models are mistakenly taken is indicated, the fact that the taken tools have the wrong information is displayed on the touch screen, the square frame corresponding to the sub-tool cabinet is filled with red, the fact that the taken tools have the errors is indicated, the intelligent electronic lock on the cabinet door of the sub-tool cabinet is opened, the alarm is started to send out a voice message alarm to prompt that the tools of the sub-tool cabinet are taken by the mistake, the operation is returned to SA-5, and therefore the users can perform the operation in the state that the users mistakenly take the tools in the tool cabinet, the red filling in the corresponding square frame on the state interface correspondingly is achieved, the voice message alarm is sent out to prompt for error correction, the use safety of the tools is improved, and the defect that the use safety of the tools is not enough due to the fact that the users mistakenly take the tools in the tool cabinet in the prior art and the corresponding RFID.
SA-8: after all the yellow boxes filled on the state interface displayed by the touch screen are changed into green boxes filled on the state interface, representing that the tool to be taken out is completely and correctly taken out, displaying a return button on the state interface, and returning to the SA-1 for execution by clicking the return button;
in addition, after the received model information and identification information of the tools in the RFID tags of all the tools in the sub-tool cabinet replace the model information and identification information of the tool in the latest sub-tool cabinet in the memory, respectively, the controller needs to transmit the tool information in the memory to the backup platform in the form of a message for backup; the controller transmits the tool information in the memory to the WIFI router in a message form, and the WIFI router receives the tool information and transfers the tool information to the backup platform; the WIFI router is in the WLAN.
The method for the controller to transmit the tool information in the memory to the backup platform in the form of messages is operated on the controller, and comprises the following processes:
the controller transmits an information packet of tool information to the backup platform, and transmits the bandwidth of the information packet by virtue of the change of the loss rate during the period.
SB-1: transmitting the information messages of the tool information of the designated number to a backup platform in the designated time interval by means of the bandwidth for transmitting the information messages;
SB-2: receiving the initial amount of the bandwidth and the loss rate which are responded by the backup platform and used for receiving the information message within the specified time interval; the initial quantity of the loss rate is 100% - (the number of the received information messages in the specified time interval size ÷ the specified number);
SB-3: deriving a bandwidth coefficient; the bandwidth coefficient is 100% - (the bandwidth for receiving the information message/the bandwidth for transferring the information message);
SB-4: obtaining a result of the loss rate by means of the initial amount of the loss rate and the bandwidth coefficient;
SB-5: and transmitting the bandwidth of the information message by means of the result change of the loss rate.
If the controller transmits a specified number of information packets of the tool information C1 to the backup platform in the specified time interval size P, the bandwidth for transmitting the information packets is K1, the number of information packets of the tool information actually received by the backup platform in the specified time interval size P is K2, the bandwidth for receiving the information packets is K3, the backup platform derives the initial amount of the loss rate, obtains the initial amount I1 of the loss rate as 100% - (K2 ÷ C1), then the backup platform transmits the initial amount I1 of the loss rate and the bandwidth K3 for receiving the information packets to the controller, the controller derives the bandwidth coefficient C2 by using the equation C2 ═ 100% - (K3 ÷ K1), then derives the result of the loss rate by using C2 and I1, and the result of the loss rate varies the bandwidth for transmitting the information packets; here, the bandwidth K1 for transmitting the information packet is equal to the byte amount/P of all information packets transmitted in the time interval size P, and the bandwidth K3 for receiving the information packet is equal to the byte amount/P of all information packets received in the time interval size P.
The current approach broadly employs I1 as the last evaluation number for loss rate and as a proof of change in bandwidth used to transfer the information message; the invention absorbs the bandwidth coefficient into the loss rate derivation mode, and the bandwidth coefficient is favorable for balancing the error of the current loss rate evaluation so as to improve the accuracy of the loss rate evaluation; the bandwidth for transmitting the information message and the bandwidth for receiving the information message have direct effects on the loss rate, and when the bandwidth for transmitting the information message is higher than the bandwidth for receiving the information message, the probability of losing the message is not small; when the bandwidth for transmitting the information message is not higher than the bandwidth for receiving the information message, the probability of losing the message is not high; therefore, the ratio of the bandwidth for transmitting the information message to the bandwidth for receiving the information message is used as a coefficient to perform loss rate evaluation, which is beneficial to correctly evaluating the loss rate, thereby reducing the adverse effect of bandwidth variation on the loss rate.
Within the present invention, the derived equation for I1 can also be: i1 is 100% - (K2 ÷ (H1-L1)), H1 is the sequence code of the longest information packet transmitted within a specified time interval size P, and L1 is the sequence code of the shortest information packet.
In the present invention, the method for obtaining the result of the dropout rate by using the starting amount of the dropout rate and the bandwidth factor comprises: the loss rate result Z1 is derived by using a coefficient statistical model through C2 and I1, and the detailed equation is:
z1 (Y1 × I1) + (Y2 × C2), where Y1 and Y2 are preset coefficients one and two, and Y1+ Y2 (100%) can make Y1 and Y2 both take on 50%. The first and second coefficients can also be preset by taking into account such factors as bandwidth.
The method for the controller to transmit the tool information in the memory to the backup platform in the form of messages is operated on the controller, and comprises the following processes:
SC-1: transmitting the information messages of the tool information of the designated number to a backup platform in the designated time interval size by means of the bandwidth for transmitting the information messages;
SC-2: receiving the initial amount of the bandwidth and the loss rate which are responded by the backup platform and used for receiving the information message within the specified time interval; the initial quantity of the loss rate is 100% - (the number of the received information messages in the specified time interval size ÷ the specified number);
SC-3: deriving a bandwidth coefficient; the bandwidth coefficient is 100% - (the bandwidth for receiving the information message/the bandwidth for transferring the information message);
SC-1-SC-3 are the same as SB-1-SB-3, respectively.
SC-4: deriving the average of S bandwidth coefficients and the average of S initial loss rates, wherein S is a natural number greater than one;
SC-5: respectively multiplying and adding the combination coefficients by the average number of the S bandwidth coefficients and the average number of the initial amount of the S loss rates to obtain a result of the loss rate;
in the invention, S bandwidth coefficients and the initial quantity of S loss rates are obtained by repeatedly executing SC-1-SC-3 for S times, and the average of the S bandwidth coefficients and the average of the initial quantity of the S loss rates are derived, so that the result of obtaining the loss rates is derived by the combination of the averages and the coefficients; for example, a total time period is 2500ms, each interval is 500ms, and information messages of a specified number of tool information are transmitted to the backup platform, and five operations are performed, so as to obtain the initial amount of five bandwidth coefficients and five loss rates.
The initial amount and bandwidth factor for the loss rate are still given by I1 and C2: by deriving by performing the multiplication and the addition of the combination coefficients respectively for the average of the S bandwidth coefficients and the average of the starting amount of the S loss rates, the result of obtaining the loss rate can be: obtaining S I1 and C2 through S runs and obtaining their average numbers I1Q and C2Q for I1 and C2, respectively, the result Z1 of the loss rate is obtained by the following equation:
z1 (Y1 × I1Q) + (Y2 × C2Q), where Y1+ Y2 are 100%, which allows both Y1 and Y2 to take on 50%.
SC-6: and transmitting the bandwidth of the information message by means of the result change of the loss rate.
As such, in a state where the bandwidth for receiving the information packet is not changed, the bandwidth for transmitting the information packet is made low, and the ratio of the bandwidth for receiving the information packet to the bandwidth for transmitting the information packet is made high, whereby the bandwidth factor is made low, and the result of the loss rate is made low. Changing the bandwidth for transmitting the information message according to the result of the loss rate further includes comparing the result of the loss rate with a preset critical number, and if the result of the loss rate is higher than the preset critical number, reducing the bandwidth for transmitting the information message according to the result of the loss rate for a long time.
Therefore, the result of the loss rate is obtained by the average of the bandwidth coefficients and the average of the initial amount of the loss rate, and the derivation is performed by the average, so that the error of the information collected at one time under the action of a random condition is prevented, and the accuracy of the loss rate evaluation can be improved.
The present invention has been described in an illustrative manner by the embodiments, and it should be understood by those skilled in the art that the present disclosure is not limited to the embodiments described above, but is capable of various changes, modifications and substitutions without departing from the scope of the present invention.