Disclosure of Invention
In order to solve the defects in the prior art, the application provides a device management method, a server and a storage medium based on an ultrahigh frequency read-write technology, which use a device beacon integrating the ultrahigh frequency read-write technology and a wireless transmission technology, can concentrate the information from delivery to scrapping of devices to the device beacon through the high frequency read-write technology, can conveniently and effectively transfer the device state in a changeable environment through the wireless transmission technology, and can finish reliable transmission of data through a complete retransmission mechanism and a heartbeat mechanism.
The technical effects to be achieved by the application are realized by the following scheme:
according to a first aspect of the present application, there is provided an apparatus management method based on an ultrahigh frequency read-write technology, comprising the steps of:
step 1: acquiring equipment information, and sending equipment verification information to the electronic tag, wherein the sending verification information is specifically heartbeat sending;
step 2: judging whether the electronic tag meets a first condition, and if so, performing the next step;
step 3: receiving feedback information of the electronic tag, analyzing the feedback information and judging whether the analyzed feedback information is normal or not;
step 4: if the analyzed feedback information is normal, an operation instruction is sent, and if the analyzed feedback information is abnormal, a message retransmission mechanism is started.
Preferably, in step 2, if the first condition is not satisfied, it is determined that the device is offline, and a message retransmission mechanism is started.
Preferably, in step 1, the first condition is that the electronic tag sends heartbeat feedback, and if the heartbeat feedback is not received, the first condition is not satisfied.
Preferably, if the first condition is not satisfied, the heartbeat is retransmitted and whether the second condition is satisfied is judged, if the second condition is satisfied, the message retransmission mechanism is restarted, and if the second condition is not satisfied, the heartbeat is continuously transmitted.
Preferably, the criterion for whether the second condition is satisfied is: whether the number of resending heartbeats reaches a threshold value or not, and if so, satisfying a second condition.
Preferably, when the message retransmission mechanism is started under the condition that the current device is offline, the method specifically comprises the following steps: and storing the operation instruction, and retransmitting the stored operation instruction after the current equipment is on line.
Preferably, in step 4, if the electronic tag is normal, an operation instruction is sent to the electronic tag, the electronic tag returns a message receipt, and if the message receipt is received, the electronic tag determines that the sending is normal; if the message receipt is not received, starting the message resending mechanism; the message resending mechanism resends the operation instruction until receiving a message receipt.
Preferably, in step 3, the analyzing and judging the feedback information specifically includes: analyzing the feedback information according to the appointed format through CRC check, judging that the data are normal, and if the data are normal, judging that the result is normal;
wherein the feedback information includes at least maintenance information, repair information, and handover information.
According to a second aspect of the present application, there is provided a server comprising: a memory and at least one processor;
the memory stores a computer program, and the at least one processor executes the computer program stored in the memory to implement the above-mentioned device management method based on the ultrahigh frequency read-write technology.
According to a third aspect of the present application, there is provided a computer-readable storage medium having stored therein a computer program which, when executed, implements the above-described ultrahigh frequency read-write technology-based device management method.
By adopting the device management method based on the ultrahigh frequency read-write technology, the device on-line condition is confirmed by establishing the heartbeat mechanism, and the message retransmission mechanism is established, so that successful information receiving is ensured, the problem of unreliability of the narrowband wireless communication technology in a non-excellent environment is solved, and the contact reliability between wireless communication devices is enhanced.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As shown in fig. 1, the device management method based on the uhf read-write technology in an embodiment of the application includes the following steps:
step 1: acquiring equipment information and sending equipment verification information to an electronic tag;
in the step, the reader reads the content in the electronic tag to acquire equipment information, wherein the equipment information at least comprises equipment number, equipment model, equipment delivery date, equipment validity period, scrappage and the like.
In this embodiment or other embodiments, after the reader reads the device information, the content of the device information is compared, and whether the device is a device that needs to be operated is determined, if yes, the device authentication information is sent to the electronic tag.
The device verification information is specifically a heartbeat, and the electronic tag and the device communicate in a manner similar to a long link through the heartbeat, wherein the content comprises information such as time, device state, tag information and the like.
Step 2: judging whether the electronic tag meets a first condition, and if so, performing the next step;
in the step, the first condition is that the electronic tag sends heartbeat feedback to the reader, if the reader cannot receive the heartbeat feedback, the first condition is not met, and the heartbeat feedback is information such as time, equipment state, tag information and the like; if the first condition is not met, resending the heartbeat and judging whether a second condition is met, if the second condition is met, judging that the equipment is offline, and starting a message resending mechanism, wherein the message resending mechanism specifically comprises: and storing the operation instruction, and retransmitting the stored operation instruction after the current equipment is on line. And if the second condition is not met, continuing to send the heartbeat.
The off-line device may be, for example, off-line of an electronic tag, or off-line of a device (such as a memory, a communication device, etc.) connected to the electronic tag, so that the reader can only read the content of the electronic tag, but cannot send an operation instruction to the electronic tag to complete a corresponding action.
Wherein, whether the second condition is satisfied or not is determined as follows: whether the number of resending heartbeats reaches a threshold value or not, and if so, satisfying a second condition. And if the threshold is preset, if the threshold is set to be three times, and when the number of times of accumulatively sending the heartbeat exceeds three times and the heartbeat feedback is not received, judging that the current equipment is offline.
If the number of times of retransmitting the heartbeat does not exceed the set threshold, the second condition is not met, the heartbeat is continuously transmitted until the feedback information of the electronic tag is received, and then the next step is carried out.
Step 3: receiving and analyzing feedback information of the electronic tag, and judging whether the analyzed feedback information is normal or not;
in this step, the feedback information is analyzed and judged specifically as: carrying out multiple calculations on the data, attaching the obtained result to the back of the frame, verifying according to the same algorithm after receiving the feedback information, analyzing the feedback information according to the agreed format, and judging that the data is normal if the data is normal;
wherein the feedback information includes at least maintenance information, repair information, and handover information.
Step 4: if the analyzed feedback information is normal, an operation instruction is sent, and if the analyzed feedback information is abnormal, a message retransmission mechanism is started.
In the step, the feedback information normally indicates that the communication environment in the current environment is good, and the communication between the devices can be normally carried out; if the electronic tag is abnormal, the abnormal conditions such as electromagnetic interference and the like in the current environment are indicated, and if the operation instruction is still transmitted, the electronic tag can receive an error instruction or an incomplete instruction due to signal interference, so that the normal management of the equipment is affected.
If the electronic tag is normal, an operation instruction is sent to the electronic tag, the electronic tag returns a message receipt, and if the message receipt is received, the electronic tag judges that the sending is normal; if the message receipt is not received, starting a message resending mechanism; the message resending mechanism in this step specifically resends the operation instruction until a message receipt is received.
The operation instruction is, for example, a start instruction, a reset instruction, or the like, and the instruction is encoded to form a device language and transmitted in a binary manner.
In an embodiment of the present application, a threshold of the number of sending operation instructions may be set, and when the number of sending operation instructions reaches the threshold because the message receipt is not received, the operation instructions may be stored, and the operation instructions stored currently may be resent next time; or sending out an alarm signal to remind an operator to check whether the equipment has a problem, and selecting to store the current operation instruction by the operator, and manually inputting or retransmitting the operation instruction next time.
When the equipment is initialized or the equipment fails and the like and the log needs to be updated, an information change instruction is sent to the electronic tag, and information in the electronic tag is refreshed.
The specific application is as follows:
1. the device should be shipped with a unique device beacon and relevant information of the device is recorded in the beacon to the device beacon, such as a device number, a device model number, a device shipment date, a device expiration date, a discard date, and the like.
2. In daily maintenance of the device, maintenance information of the device should be recorded to a device beacon, such as a device maintenance date, a device maintenance condition, a maintenance person, and the like.
3. In the damaged maintenance of the equipment, maintenance information of the equipment should be recorded to an equipment beacon, such as equipment maintenance date, equipment maintenance condition, maintenance person, maintenance parts, etc.
4. At the time of the handover, the handover information of the device should be recorded in the device beacon, for example, the pre-use unit, the pre-use person, the current use unit, the current use person, the handover status of the device, etc.
5. When the equipment is scrapped, the equipment beacon is recovered, so that the scrapped state of the equipment is ensured.
Through the maintenance of the equipment information, the equipment provided with the equipment beacon can be checked at any time.
Device fight time rush repair implementation
At present, equipment maintenance is divided into two stages, namely, first, equipment is first overhauled after a first-aid repair team follows a large army, a small amount of equipment with less serious damage can be repaired, the equipment which cannot be repaired can be continuously used after being repaired, the record is made, the reasons for the incapability of maintenance, such as lack of equipment, complete scrapping of the equipment, damage to important parts of the equipment and the like, are transmitted to the rear, the transmitted information comprises equipment position information, equipment damage information and the like, and the rear is used for independently processing the equipment.
As shown in fig. 2, in one embodiment of the present application, a server is provided, including: a memory 201 and at least one processor 202;
the memory 201 stores a computer program, and the at least one processor 202 executes the computer program stored in the memory 201 to implement the above-described device management method based on the ultrahigh frequency read-write technology.
According to a third aspect of the present application, there is provided a computer-readable storage medium having stored therein a computer program which, when executed, implements the above-described ultrahigh frequency read-write technology-based device management method.
By adopting the device management method based on the ultrahigh frequency read-write technology, the device on-line condition is confirmed by establishing the heartbeat mechanism, and the message retransmission mechanism is established, so that successful information receiving is ensured, the problem of unreliability of the narrowband wireless communication technology in a non-excellent environment is solved, and the contact reliability between wireless communication devices is enhanced.
It should be noted that the foregoing detailed description is exemplary and is intended to provide further explanation of the application. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present application. As used herein, the singular is intended to include the plural unless the context clearly indicates otherwise. Furthermore, it will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, steps, operations, devices, components, and/or groups thereof.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or otherwise described herein.
Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Spatially relative terms, such as "above … …," "above … …," "upper surface at … …," "above," and the like, may be used herein for ease of description to describe one device or feature's spatial location relative to another device or feature as illustrated in the figures. It will be understood that the spatially relative terms are intended to encompass different orientations in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements described as "above" or "over" other devices or structures would then be oriented "below" or "beneath" the other devices or structures. Thus, the exemplary term "above … …" may include both orientations of "above … …" and "below … …". The device may also be positioned in other different ways, such as rotated 90 degrees or at other orientations, and the spatially relative descriptors used herein interpreted accordingly.
In the above detailed description, reference is made to the accompanying drawings, which form a part hereof. In the drawings, like numerals typically identify like components unless context indicates otherwise. The illustrated embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be utilized, and other changes may be made, without departing from the spirit or scope of the subject matter presented herein.
The above is only a preferred embodiment of the present application, and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.