CN112819115A - Equipment identifier verification method and device, storage medium and electronic device - Google Patents

Equipment identifier verification method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112819115A
CN112819115A CN202011639483.1A CN202011639483A CN112819115A CN 112819115 A CN112819115 A CN 112819115A CN 202011639483 A CN202011639483 A CN 202011639483A CN 112819115 A CN112819115 A CN 112819115A
Authority
CN
China
Prior art keywords
identifier
equipment
target
abnormal
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011639483.1A
Other languages
Chinese (zh)
Other versions
CN112819115B (en
Inventor
李阅苗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011639483.1A priority Critical patent/CN112819115B/en
Publication of CN112819115A publication Critical patent/CN112819115A/en
Application granted granted Critical
Publication of CN112819115B publication Critical patent/CN112819115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0029Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0032Apparatus for automatic testing and analysing marked record carriers, used for examinations of the multiple choice answer type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a device for verifying equipment identification, a storage medium and an electronic device. Wherein, the method comprises the following steps: when a first device identifier and a second device identifier of a target device are obtained, a target trigger instruction carrying the first device identifier is sent to the target device through a near field communication device, so that the target device feeds back a third device identifier through the near field communication device based on the received target trigger instruction; and judging whether the second equipment identifier is an abnormal equipment identifier or not based on the received matching result of the third equipment identifier and the second equipment identifier. The invention solves the technical problem that the equipment identification cannot be ensured to be correct.

Description

Equipment identifier verification method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a method and a device for verifying equipment identification, a storage medium and an electronic device.
Background
In the existing production and testing link of the household appliance production process, in the verification link of the equipment at the tail end of a production line, a graphic code scanner automatically scans a machine-coded graphic code and a Mac graphic code pasted on a net machine body, and then transmits the scanned machine-coded code and the Mac code into a verification system, and the verification system directly writes a scanning result into a database.
Above several kinds of problems's emergence all can lead to the machine to compile and mac relation mistake, for example machine code and the circumstances such as Wifi module mac that the fuselage inserted are inconsistent, perhaps a mac corresponds a plurality of machine compiles, and the machine is compiled and is only pasted on the equipment surface, and not write into in the fuselage firmware, leads to equipment to lack unique identification, and then current equipment can only report mac, if change a Wifi module after sale, the identity of equipment has just been changed, historical data can't be traceed back. In the prior art, an effective device identifier verification means is lacked to ensure that the device identifier is correct in the face of the technical problems, so that the problem occurrence probability that historical data cannot be traced is reduced.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for verifying equipment identification, a storage medium and an electronic device, which at least solve the technical problem that the equipment identification cannot be ensured to be correct.
According to an aspect of the embodiments of the present invention, there is provided a method for verifying a device identifier, including: when a first device identifier and a second device identifier of a target device are obtained, a target trigger instruction carrying the first device identifier is sent to the target device through a near field communication device, so that the target device feeds back a third device identifier through the near field communication device based on the received target trigger instruction; and judging whether the second equipment identifier is an abnormal equipment identifier or not based on the received matching result of the third equipment identifier and the second equipment identifier.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for verifying an equipment identifier, including: the sending unit is used for sending a target trigger instruction carrying a first equipment identifier to the target equipment through the near field communication device when the first equipment identifier and a second equipment identifier of the target equipment are obtained, so that the target equipment can feed back a third equipment identifier through the near field communication device based on the received target trigger instruction; and the judging unit is used for judging whether the second equipment identifier is an abnormal equipment identifier or not based on the received matching result of the third equipment identifier and the second equipment identifier.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the method for verifying the device identifier when the computer program runs.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for checking the device identifier through the computer program.
In the embodiment of the invention, when a first device identifier and a second device identifier of a target device are obtained, a target trigger instruction carrying the first device identifier is sent to the target device through a near field communication device, so that the target device feeds back a third device identifier through the near field communication device based on the received target trigger instruction; judging whether the second device identifier is an abnormal device identifier or not based on the received matching result of the third device identifier and the second device identifier, acquiring a first device identifier and a second device identifier by using a near field communication device as an intermediate carrier, wherein, because the first device identifier and the second device identifier may have a risk of inconsistency, further, a correct address identifier (i.e. a third device identifier) returned by the target device needs to be obtained, and the second device identifier is matched with the third device identifier to determine whether the second device identifier is an abnormal device identifier, thereby achieving the technical purpose of timely and accurately verifying whether the equipment identifier is abnormal or not, further realizing the improvement of the verification accuracy of the equipment identifier, the effect of ensuring the equipment identification to be correct is achieved, and the technical problem that the equipment identification cannot be guaranteed to be correct is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of an application environment of an optional device identifier verification method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a flow chart of an alternative method for verifying a device identifier according to an embodiment of the invention;
fig. 3 is a schematic diagram of an alternative method for verifying a device identifier according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative method for verifying device identification, according to an embodiment of the invention;
FIG. 5 is a schematic diagram of an alternative method for verifying device identification, according to an embodiment of the invention;
FIG. 6 is a schematic diagram of an alternative apparatus identifier verification device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, a method for verifying a device identifier is provided, and optionally, as an optional implementation manner, the method for verifying a device identifier may be applied, but not limited to, in an environment as shown in fig. 1. The system may include, but is not limited to, a user device 102, a network 110, and a server 112, where the user device 102 may include, but is not limited to, a display 108, a processor 106, and a memory 104, and optionally, the user device 102 may be, but is not limited to, an associated device of the scanner 1008, and may also be, but is not limited to, an associated device for receiving scanning information from the scanner 1008.
The specific process comprises the following steps:
step S102, the user device 102 obtains a scanning result of the device identifier 1006 (including the first device identifier and the second device identifier sss) on the target device 1004 on the pipeline 1002, where the scanning result may be, but is not limited to be, obtained by the scanner 1008;
step S104-S106, the user equipment 102 sends the first equipment identification to the server 112 through the network 110;
step S108-S114, the server 112 processes the first device identifier through the processing engine 116, so as to generate a target trigger instruction carrying the device identifier 1006; sending the target trigger instruction to the near field communication device, acquiring a third equipment identifier returned by the near field communication device corresponding to the target trigger instruction, and generating a judgment result based on the acquired matching result of the third equipment identifier and the second equipment identifier so as to determine whether the second equipment identifier has an abnormal state;
the server 112 sends the determination result to the user equipment 102 through the network 110, the processor 106 in the user equipment 102 processes the determination result into a displayable format, displays the processed determination result in the display 108, and stores the determination result ss in the memory 104, steps S116-S118.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for verifying the device identifier includes:
s202, when a first device identifier and a second device identifier of a target device are obtained, a target trigger instruction carrying the first device identifier is sent to the target device through a near field communication device, so that the target device can feed back a third device identifier through the near field communication device based on the received target trigger instruction;
and S204, judging whether the second equipment identifier is an abnormal equipment identifier or not based on the received matching result of the third equipment identifier and the second equipment identifier.
Optionally, in this embodiment, the method for verifying the device identifier may be, but is not limited to, applied in a scenario of performing identity identifier verification on a device on a pipeline. Compared with the prior art, the equipment identification is pasted on the equipment, the equipment identification is scanned through the scanner to determine the unique identity identification of the equipment, in the verification method of the equipment identification, the near field communication module is configured for the target equipment to establish a near field communication channel between the target equipment and the near field communication device, and then the accurate equipment identification is obtained through the near field communication channel under the condition that the equipment identification possibly with errors is obtained through scanning, so that the equipment identification possibly with errors and the accurate equipment identification are verified or compared, an error detection result is generated, and if the verification result indicates that the equipment identification is abnormal, abnormal prompt information is generated and sent to improve the prompt timeliness of the abnormal equipment identification.
Optionally, in this embodiment, the first device identifier/the second device identifier may be, but is not limited to, determining a mechanical code of the device, and the mechanical code may be, but is not limited to, determining a production number of the corresponding device on the production line. This is for illustrative purposes only and is not intended to be limiting.
Optionally, in this embodiment, the first device identifier/the second device identifier may be, but is not limited to, used to determine a unique identifier of the device, such as a Media Access Control (MAC) Address (MAC) identifier, a machine number (machine code) identifier, and the like, where the MAC identifier may be, but is not limited to, used to confirm an Address of a location of the network device. This is for illustrative purposes only and is not intended to be limiting.
Optionally, in this embodiment, the Near Field Communication (NFC) device may, but is not limited to, utilize an NFC technology, where the NFC technology may, but is not limited to, perform data exchange when a proximity distance between at least two devices is smaller than a distance threshold, and is integrated and evolved from a non-contact Radio Frequency Identification (RFID) and an interconnection technology, and integrates functions of an inductive card reader, an inductive card, and a point-to-point Communication on a single chip. In addition, the target device may also be configured with a near field communication module, but not limited to, using NFC technology, and establish a near field communication channel with the NFC apparatus, where the near field communication channel is used to transfer the device identifier.
Optionally, in this embodiment, the target device may be but is not limited to one of the devices to be checked on the pipeline, for example, as shown in fig. 3, a plurality of devices 302 to be checked are placed on the pipeline, the device identifier checking method may be but is not limited to be used for checking whether the device identifier of the device 302 to be checked is abnormal, and the device identifier checking method may be but is not limited to be executed by the graphic code scanner 304, the checking system 308, and the near field communication device 306;
further, it is assumed that a bar (figure) shape code (such as a machine-coded bar code, an MAC bar code, etc.) is attached to a front standard height position (such as 100CM above the ground) of the device to be verified 302, and an NFC module is installed in the middle of the rear of the body of the device to be verified 302;
furthermore, after entering the pipeline, the device to be verified 302 is in a powered-on state, the NFC module is powered on and enters a peer-to-peer (P2P) mode, wherein optionally, at the end of the pipeline, a graphic code scanner 304 and a near field communication device 306 are respectively installed at positions 10 centimeters away from the edge of the pipeline, and further, in the process of advancing the device to be verified 302, the device to be verified 302 first passes through the graphic code scanner 304 and then passes through the near field communication device 306, and when the device to be verified 302 is checked for abnormality by the near field communication device 306 and the checking system 308, the device to be verified 302 needs to be taken off-line or pass through the graphic code scanner 304 again.
It should be noted that when the first device identifier and the second device identifier of the target device are obtained, the target trigger instruction carrying the first device identifier is sent to the target device through the near field communication apparatus, so that the target device feeds back the third device identifier through the near field communication apparatus based on the received target trigger instruction; and judging whether the second equipment identifier is an abnormal equipment identifier or not based on the received matching result of the third equipment identifier and the second equipment identifier, for example, sending abnormal prompt information to the target terminal when the second equipment identifier is not consistent with the third equipment identifier after verification, wherein the abnormal prompt information is used for prompting that the equipment identifier of the target equipment is abnormal, and the target terminal is associated with the target equipment and/or the near field communication device.
For further example, an application scenario of the optional device identifier checking method is shown in fig. 4, where the device identifier checking method may be, but is not limited to, be used to check whether the device identifier of the target device 402 is abnormal, and the device identifier checking method may be, but is not limited to, executed by the scanner 404, the checking system 406, and the near field communication device 408;
specifically, when the whole target device 402 passes through the scanner 304, the scanner 304 automatically scans the machine-coded bar (graphic code) and the MAC bar (graphic code) attached to the body of the target device 402, and optionally, for a device with an irregular body, the scanner may manually scan the body twice, as in steps S1 and S2;
S3-S4, the graphic code scanner 304 obtains the machine-coded graphic code and the MAC graphic code, transmits the machine-coded graphic code and the MAC graphic code into the checking system 406, writes the machine-coded graphic code and the MAC graphic code into a database after the checking system 406 receives the machine-coded graphic code and the MAC graphic code, and simultaneously sends a trigger instruction carrying the machine-coded graphic code and the MAC graphic code to the near field communication device 408 so as to trigger the near field communication device 408 to work;
step S5-S6, the NFC device 408 starts entering the P2P mode after receiving the machine-coded graphic code and the MAC graphic code transmitted from the verification system 406, and the NFC device 408 establishes a connection with the NFC module of the machine body within 0.1 second to start transmitting data; in addition, after the NFC module receives the machine-coded data, the electric control board is called to write the machine-coded data into a flash memory; after writing, the NFC module returns accurate MAC data to the near field communication device 408 through Wifi, indicating that the writing is successful.
Step S7-S7, the nfc device 408 writes the machine-coded data and the MAC data back to the verification system 406 for verification; and if the written machine coding data and the MAC data are not consistent with the scanned machine coding graphic code and the MAC graphic code, determining that the checking result is abnormal, and triggering a red light to alarm. But if the alarm is not given, the device normally writes the machine-coded data, and the MAC graphic code of the machine body sticker is consistent with the Wifi module inserted in the machine.
According to the embodiment provided by the application, when the first equipment identifier and the second equipment identifier of the target equipment are obtained, the target trigger instruction carrying the first equipment identifier is sent to the target equipment through the near field communication device, so that the target equipment can feed back the third equipment identifier through the near field communication device based on the received target trigger instruction; whether the second equipment identification is abnormal equipment identification is judged based on a received matching result of the third equipment identification and the second equipment identification, the first equipment identification and the second equipment identification are firstly obtained by using the near field communication device as an intermediate carrier, wherein the first equipment identification and the second equipment identification possibly have inconsistent risks, and then a correct address identification (namely the third equipment identification) returned by the target equipment is required to be obtained, the second equipment identification is matched with the third equipment identification to judge whether the second equipment identification is abnormal equipment identification, and the technical purpose of timely and accurately verifying whether the equipment identification is abnormal is achieved, so that the verification accuracy of the equipment identification is improved, and the effect of ensuring that the equipment identification is correct is achieved.
As an optional scheme, before sending the target trigger instruction carrying the first device identifier to the target device through the near field communication apparatus, the method includes:
s1, acquiring a target machine code identification and a first address identification acquired by scanning a target graphic code on target equipment, wherein the target machine code identification is acquired by scanning the machine code graphic code on the target equipment, and the first address identification is acquired by scanning the address graphic code on the target equipment;
and S2, determining the target machine identifier as a first device identifier, and determining the first address identifier as a second device identifier.
It should be noted that, a target machine code identifier and a first address identifier, which are obtained by scanning a target graphic code on target equipment, are obtained, where the target machine code identifier is obtained by scanning a machine code graphic code on the target equipment, and the first address identifier is obtained by scanning an address graphic code on the target equipment; and determining the target machine-coded identifier as a first device identifier, and determining the first address identifier as a second device identifier. Optionally, in this embodiment, the target machine identifier may be, but is not limited to, a machine identifier obtained by scanning, and the first address identifier may be, but is not limited to, a MAC identifier.
For further illustration, optionally, as shown in fig. 3, a graphic code (e.g., a machine-coded graphic code, a MAC graphic code, etc.) is attached to a front standard height position (e.g., 100CM above the ground) of the device to be verified 302, and an NFC module is installed in the middle of the rear of the body of the device to be verified 302.
According to the embodiment provided by the application, the target machine code identification and the first address identification which are obtained by scanning the target graphic code on the target equipment are obtained, wherein the target machine code identification is obtained by scanning the machine code graphic code on the target equipment, and the first address identification is obtained by scanning the address graphic code on the target equipment; the target machine-coded identifier is determined as the first equipment identifier, and the first address identifier is determined as the second equipment identifier, so that the purpose of completing the information of the equipment identifier is achieved, and the effect of improving the information integrity of the equipment identifier is realized.
As an optional scheme, after sending the target trigger instruction carrying the first device identifier to the target device through the near field communication apparatus, the method includes:
s1, acquiring a second address identifier fed back by the target device through the near field communication device based on the received target trigger instruction, wherein the second address is represented as the address identifier of the target device;
s2, determining the second address identity as the third device identity.
Optionally, in this embodiment, since the device module of the target device stores a correct address identifier (second address identifier) of the target device in advance, for example, the second address identifier is pre-stored in the WIFI module of the target device, and then the second address identifier may be used to check the first address identifier, so as to determine whether the device identifier corresponding to the first address identifier is abnormal.
It should be noted that, a second address identifier fed back by the target device through the near field communication apparatus based on the received target trigger instruction is obtained, where the second address is represented as an address identifier of the target device; the second address identity is determined to be a third device identity.
According to the embodiment provided by the application, a second address identifier fed back by the target equipment through the near field communication device based on the received target trigger instruction is obtained, wherein the second address is represented as the address identifier of the target equipment; the second address identifier is determined as the third device identifier, so that the technical purpose of taking the accurate address identifier as the device identifier for verification reference is achieved, and the technical effect of improving the verification accuracy of the device identifier is achieved.
As an optional scheme, after sending the target trigger instruction carrying the first device identifier to the target device through the near field communication apparatus, the method includes:
judging whether the second device identifier is an abnormal device identifier based on the received matching result of the third device identifier and the second device identifier, including:
s1, judging whether the first address mark is an abnormal address mark based on the matching result of the first address mark and the second address mark;
s2, determining the second device identifier as the abnormal device identifier under the condition that the first address identifier is judged to be the abnormal address identifier;
s3, when the first address identifier is determined to be not an abnormal address identifier, determining that the second device identifier is not an abnormal device identifier.
Optionally, in this embodiment, since the second address identifier obtained from the target device is higher in accuracy, the purpose of checking whether the scanned first address identifier is accurate can be achieved by comparing the second address identifier with the first address identifier.
It should be noted that, based on the matching result of the first address identifier and the second address identifier, whether the first address identifier is an abnormal address identifier is judged; under the condition that the first address identifier is judged to be an abnormal address identifier, determining that the second equipment identifier is an abnormal equipment identifier; and under the condition that the first address identification is judged to be not the abnormal address identification, determining that the second equipment identification is not the abnormal equipment identification.
According to the embodiment provided by the application, whether the first address identifier is an abnormal address identifier is judged based on the matching result of the first address identifier and the second address identifier; under the condition that the first address identifier is judged to be an abnormal address identifier, determining that the second equipment identifier is an abnormal equipment identifier; under the condition that the first address identification is judged to be not the abnormal address identification, the second equipment identification is determined to be not the abnormal equipment identification, the aim of checking whether the scanned first address identification is accurate is achieved, and the effect of improving the checking accuracy of the scanned address identification is achieved.
As an optional scheme, sending the target trigger instruction carrying the first device identifier to the target device through the near field communication apparatus, further includes:
and sending the target trigger instruction which also carries the second equipment identifier to the target equipment through the near field communication device so that the target equipment can store the second equipment identifier.
Optionally, in this embodiment, because the machine-coded identifier in the conventional technology is usually only attached to the surface of the device, but is not written into the body firmware, and further, when the machine-coded identifier is wrong, the real device identity of the device may be lost, which may result in that the user cannot query the historical data.
It should be noted that the target trigger instruction further carrying the second device identifier is sent to the target device through the near field communication apparatus, so that the target device stores the second device identifier.
According to the embodiment provided by the application, the target trigger instruction which still carries the second equipment identifier is sent to the target equipment through the near field communication device so that the target equipment can store the second equipment identifier, the purpose of reducing the loss probability of the equipment identity information is achieved, and the effect of improving the storage accuracy of the equipment identity information is achieved.
As an optional scheme, determining whether the second device identifier is an abnormal device identifier based on a matching result of the received third device identifier and the second device identifier includes:
judging whether the third device identifier and the second device identifier meet an abnormal condition or not based on a received matching result of the third device identifier and the second device identifier, wherein the abnormal condition comprises at least one of the following conditions: the interval duration between the sending of the target trigger instruction and the receiving of the third equipment identifier is greater than or equal to the preset duration, and the similarity between the third equipment identifier and the second equipment identifier is less than or equal to the preset threshold.
It should be noted that, based on the received matching result between the third device identifier and the second device identifier, it is determined whether the third device identifier and the second device identifier satisfy an abnormal condition, where the abnormal condition includes at least one of the following: the interval duration between the sending of the target trigger instruction and the receiving of the third equipment identifier is greater than or equal to the preset duration, and the similarity between the third equipment identifier and the second equipment identifier is less than or equal to the preset threshold.
To further illustrate, optionally, such as shown in FIG. 5, the execution logic in the table structure of FIG. 5 is executed in verification system 502, with the table encoded as a primary key with a scanner. When the scanner scans the code, the code (bar code) of the scanner is written in, the MAC (bar code) code is scanned, and the scanning time is shortened. When the near field communication device writes back, the write-back MAC code and the write-back time are written back again. And when the scanning MAC code is inconsistent with the write-back MAC, triggering an alarm.
By the embodiment provided by the application, whether the third device identifier and the second device identifier meet the abnormal condition is judged based on the received matching result of the third device identifier and the second device identifier, wherein the abnormal condition includes at least one of the following conditions: the interval time between the sending of the target trigger instruction and the receiving of the third equipment identifier is greater than or equal to the preset time, and the similarity between the third equipment identifier and the second equipment identifier is less than or equal to the preset threshold, so that the aim of accurately verifying the equipment identifier is fulfilled, and the effect of improving the verification accuracy of the equipment identifier is realized.
As an optional scheme, after determining whether the second device identifier is an abnormal device identifier based on a matching result of the received third device identifier and the second device identifier, the method includes:
and sending abnormal prompt information under the condition that the second equipment identifier is detected to be an abnormal equipment identifier, wherein the abnormal prompt information is used for prompting that the second equipment identifier is abnormal.
Optionally, in this embodiment, when it is checked that the device identifier currently scanned by the target device is abnormal, in addition to sending the abnormal prompt information, the scanning may be performed after, but not limited to, readjusting the device identifier until the scanning result is normal (or not abnormal).
It should be noted that, when it is detected that the second device identifier is an abnormal device identifier, an abnormality prompting message is sent, where the abnormality prompting message is used to prompt that the second device identifier is abnormal.
Through the embodiment provided by the application, the abnormal prompt information is sent when the second equipment identification is detected to be the abnormal equipment identification, wherein the abnormal prompt information is used for prompting the abnormality of the second equipment identification, the purpose of timely prompting under the condition that the equipment identification is abnormal is achieved, and the effect of improving the prompt timeliness of the abnormality of the equipment identification is achieved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the present invention, there is also provided an apparatus for verifying an equipment identifier, which is used for implementing the method for verifying an equipment identifier. As shown in fig. 6, the apparatus includes:
a sending unit 602, configured to send a target trigger instruction carrying a first device identifier to a target device through a near field communication apparatus when a first device identifier and a second device identifier of the target device are obtained, so that the target device feeds back a third device identifier through the near field communication apparatus based on the received target trigger instruction;
a determining unit 604, configured to determine whether the second device identifier is an abnormal device identifier based on a matching result of the received third device identifier and the second device identifier.
Optionally, in this embodiment, the device identifier verification apparatus may be applied, but not limited to, in a scenario of performing identity identifier verification on a device on a pipeline. Compared with the prior art, the equipment identification is pasted on the equipment, the equipment identification is scanned through the scanner to determine the unique identity identification of the equipment, in the checking device of the equipment identification, the near field communication module is configured for the target equipment to establish a near field communication channel between the target equipment and the near field communication device, and then the accurate equipment identification is obtained through the near field communication channel under the condition that the equipment identification possibly with errors is obtained through scanning, so that the equipment identification possibly with errors and the accurate equipment identification are checked or compared, an error detection result is generated, and if the checking result indicates that the equipment identification is abnormal, abnormal prompt information is generated and sent to improve the prompt timeliness of the abnormal equipment identification.
Optionally, in this embodiment, the first device identifier/the second device identifier may be, but is not limited to, determining a mechanical code of the device, and the mechanical code may be, but is not limited to, determining a production number of the corresponding device on the production line. This is for illustrative purposes only and is not intended to be limiting.
Optionally, in this embodiment, the first device identifier/the second device identifier may be, but is not limited to, used to determine a unique identifier of the device, such as a Media Access Control (MAC) Address (MAC) identifier, a machine number (machine code) identifier, and the like, where the MAC identifier may be, but is not limited to, used to confirm an Address of a location of the network device. This is for illustrative purposes only and is not intended to be limiting.
Optionally, in this embodiment, the Near Field Communication (NFC) device may, but is not limited to, utilize an NFC technology, where the NFC technology may, but is not limited to, perform data exchange when a proximity distance between at least two devices is smaller than a distance threshold, and is integrated and evolved from a non-contact Radio Frequency Identification (RFID) and an interconnection technology, and integrates functions of an inductive card reader, an inductive card, and a point-to-point Communication on a single chip. In addition, the target device may also be configured with a near field communication module, but not limited to, using NFC technology, and establish a near field communication channel with the NFC apparatus, where the near field communication channel is used to transfer the device identifier.
It should be noted that when the first device identifier and the second device identifier of the target device are obtained, the target trigger instruction carrying the first device identifier is sent to the target device through the near field communication apparatus, so that the target device feeds back the third device identifier through the near field communication apparatus based on the received target trigger instruction; and judging whether the second equipment identifier is an abnormal equipment identifier or not based on the received matching result of the third equipment identifier and the second equipment identifier, for example, sending abnormal prompt information to the target terminal when the second equipment identifier is not consistent with the third equipment identifier after verification, wherein the abnormal prompt information is used for prompting that the equipment identifier of the target equipment is abnormal, and the target terminal is associated with the target equipment and/or the near field communication device.
For a specific embodiment, reference may be made to an example shown in the foregoing method for checking a device identifier, which is not described herein again in this example.
According to the embodiment provided by the application, when the first equipment identifier and the second equipment identifier of the target equipment are obtained, the target trigger instruction carrying the first equipment identifier is sent to the target equipment through the near field communication device, so that the target equipment can feed back the third equipment identifier through the near field communication device based on the received target trigger instruction; whether the second equipment identification is abnormal equipment identification is judged based on a received matching result of the third equipment identification and the second equipment identification, the first equipment identification and the second equipment identification are firstly obtained by using the near field communication device as an intermediate carrier, wherein the first equipment identification and the second equipment identification possibly have inconsistent risks, and then a correct address identification (namely the third equipment identification) returned by the target equipment is required to be obtained, the second equipment identification is matched with the third equipment identification to judge whether the second equipment identification is abnormal equipment identification, and the technical purpose of timely and accurately verifying whether the equipment identification is abnormal is achieved, so that the verification accuracy of the equipment identification is improved, and the effect of ensuring that the equipment identification is correct is achieved.
As an alternative, the first step includes:
the near field communication device comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a target machine code identification and a first address identification which are obtained by scanning a target graphic code on target equipment before a target trigger instruction carrying a first equipment identification is sent to the target equipment through the near field communication device;
the first determining unit is configured to determine the target machine identifier as the first device identifier and determine the first address identifier as the second device identifier before sending the target trigger instruction carrying the first device identifier to the target device through the near field communication apparatus.
For a specific embodiment, reference may be made to an example shown in the foregoing method for checking a device identifier, which is not described herein again in this example.
As an alternative, the method comprises the following steps:
the second obtaining unit is used for obtaining a second address identifier fed back by the target equipment through the near field communication device based on the received target trigger instruction after the target trigger instruction carrying the first equipment identifier is sent to the target equipment through the near field communication device, wherein the second address is represented as the address identifier of the target equipment;
and secondly, after the target trigger instruction carrying the first equipment identifier is sent to the target equipment through the near field communication device, determining the second address identifier as a third equipment identifier.
For a specific embodiment, reference may be made to an example shown in the foregoing method for checking a device identifier, which is not described herein again in this example.
As an optional solution, the determining unit 604 includes:
the first judging module is used for judging whether the first address identifier is an abnormal address identifier or not based on the matching result of the first address identifier and the second address identifier;
the first determining module is used for determining that the second equipment identifier is an abnormal equipment identifier under the condition that the first address identifier is judged to be the abnormal address identifier;
and the second determining module is used for determining the second equipment identifier which is not the abnormal equipment identifier under the condition of judging that the first address identifier is not the abnormal address identifier.
For a specific embodiment, reference may be made to an example shown in the foregoing method for checking a device identifier, which is not described herein again in this example.
As an optional scheme, the sending unit 602 further includes:
and the sending module is used for sending the target trigger instruction which also carries the second equipment identifier to the target equipment through the near field communication device so that the target equipment can store the second equipment identifier.
For a specific embodiment, reference may be made to an example shown in the foregoing method for checking a device identifier, which is not described herein again in this example.
As an optional solution, the determining unit 604 includes:
a second determining module, configured to determine, based on a matching result of the received third device identifier and the second device identifier, whether the third device identifier and the second device identifier satisfy an abnormal condition, where the abnormal condition includes at least one of the following: the interval duration between the sending of the target trigger instruction and the receiving of the third equipment identifier is greater than or equal to the preset duration, and the similarity between the third equipment identifier and the second equipment identifier is less than or equal to the preset threshold.
For a specific embodiment, reference may be made to an example shown in the foregoing method for checking a device identifier, which is not described herein again in this example.
As an alternative, the method comprises the following steps:
and the prompting unit is used for sending abnormal prompting information under the condition that the second equipment identifier is detected to be the abnormal equipment identifier after judging whether the second equipment identifier is the abnormal equipment identifier or not based on the received matching result of the third equipment identifier and the second equipment identifier, wherein the abnormal prompting information is used for prompting the abnormality of the second equipment identifier.
For a specific embodiment, reference may be made to an example shown in the foregoing method for checking a device identifier, which is not described herein again in this example.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus for implementing the method for verifying the device identifier, as shown in fig. 7, the electronic apparatus includes a memory 702 and a processor 704, the memory 702 stores a computer program, and the processor 704 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, when a first device identifier and a second device identifier of a target device are obtained, sending a target trigger instruction carrying the first device identifier to the target device through the near field communication device, so that the target device can feed back a third device identifier through the near field communication device based on the received target trigger instruction;
s2, determining whether the second device identifier is an abnormal device identifier based on the matching result between the received third device identifier and the second device identifier.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 7 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 702 may be used to store software programs and modules, such as program instructions/modules corresponding to the device identifier verification method and apparatus in the embodiments of the present invention, and the processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, implements the device identifier verification method described above. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 702 can further include memory located remotely from the processor 704, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 702 may be specifically, but not limited to, used to store information such as a first device identifier, a second device identifier, and a matching result. As an example, as shown in fig. 7, the memory 702 may include, but is not limited to, a sending unit 602 and a determining unit 604 in the verification apparatus including the device identifier. In addition, the device identifier may further include, but is not limited to, other module units in the checking apparatus for the device identifier, which is not described in this example again.
Optionally, the transmitting device 706 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 706 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 708 for displaying the information such as the first device identifier, the second device identifier, and the matching result; and a connection bus 710 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, when a first device identifier and a second device identifier of a target device are obtained, sending a target trigger instruction carrying the first device identifier to the target device through the near field communication device, so that the target device can feed back a third device identifier through the near field communication device based on the received target trigger instruction;
s2, determining whether the second device identifier is an abnormal device identifier based on the matching result between the received third device identifier and the second device identifier.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. The method for verifying the equipment identifier is characterized by comprising the following steps:
when a first device identifier and a second device identifier of a target device are obtained, a target trigger instruction carrying the first device identifier is sent to the target device through a near field communication device, so that the target device can feed back a third device identifier through the near field communication device based on the received target trigger instruction;
and judging whether the second equipment identifier is an abnormal equipment identifier or not based on the received matching result of the third equipment identifier and the second equipment identifier.
2. The method according to claim 1, wherein before sending the target trigger instruction carrying the first device identifier to the target device by the near field communication apparatus, the method comprises:
acquiring a target machine code identification and a first address identification, wherein the target machine code identification is acquired by scanning a machine code graphic code on the target equipment, and the first address identification is acquired by scanning an address graphic code on the target equipment;
and determining the target machine-coded identifier as the first equipment identifier, and determining the first address identifier as the second equipment identifier.
3. The method according to claim 2, wherein after sending the target trigger instruction carrying the first device identifier to the target device by the near field communication apparatus, the method comprises:
acquiring a second address identifier fed back by the target equipment through a near field communication device based on the received target trigger instruction, wherein the second address is represented as the address identifier of the target equipment;
determining the second address identification as the third device identification.
4. The method according to claim 3, wherein the determining whether the second device identifier is an abnormal device identifier based on the received matching result between the third device identifier and the second device identifier includes:
judging whether the first address identifier is an abnormal address identifier or not based on a matching result of the first address identifier and the second address identifier;
determining that the second device identifier is the abnormal device identifier under the condition that the first address identifier is judged to be the abnormal address identifier;
and under the condition that the first address identification is judged not to be the abnormal address identification, determining that the second equipment identification is not the abnormal equipment identification.
5. The method according to any one of claims 1 to 4, wherein the sending, by a near field communication device, the target trigger instruction carrying the first device identifier to the target device further comprises:
and sending the target trigger instruction which also carries the second equipment identifier to the target equipment through a near field communication device so that the target equipment can store the second equipment identifier.
6. The method according to any one of claims 1 to 4, wherein the determining whether the second device identifier is an abnormal device identifier based on the received matching result between the third device identifier and the second device identifier includes:
judging whether the third device identifier and the second device identifier meet an abnormal condition or not based on the received matching result of the third device identifier and the second device identifier, wherein the abnormal condition comprises at least one of the following conditions: the interval duration between the sending of the target trigger instruction and the receiving of the third equipment identifier is greater than or equal to a preset duration, and the similarity between the third equipment identifier and the second equipment identifier is less than or equal to a preset threshold.
7. The method according to any one of claims 1 to 4, wherein after the determining whether the second device identifier is an abnormal device identifier based on the received matching result between the third device identifier and the second device identifier, the method comprises:
and sending abnormal prompt information when the second equipment identifier is verified to be an abnormal equipment identifier, wherein the abnormal prompt information is used for prompting that the second equipment identifier is abnormal.
8. The verifying device of equipment sign, its characterized in that includes:
the sending unit is used for sending a target trigger instruction carrying a first equipment identifier to the target equipment through the near field communication device when the first equipment identifier and a second equipment identifier of the target equipment are obtained, so that the target equipment can feed back a third equipment identifier through the near field communication device based on the received target trigger instruction;
and the judging unit is used for judging whether the second equipment identifier is an abnormal equipment identifier or not based on the received matching result of the third equipment identifier and the second equipment identifier.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202011639483.1A 2020-12-31 2020-12-31 Equipment identifier verification method and device, storage medium and electronic device Active CN112819115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011639483.1A CN112819115B (en) 2020-12-31 2020-12-31 Equipment identifier verification method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011639483.1A CN112819115B (en) 2020-12-31 2020-12-31 Equipment identifier verification method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112819115A true CN112819115A (en) 2021-05-18
CN112819115B CN112819115B (en) 2022-12-30

Family

ID=75858076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011639483.1A Active CN112819115B (en) 2020-12-31 2020-12-31 Equipment identifier verification method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112819115B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268500A (en) * 2014-10-11 2015-01-07 合肥华凌股份有限公司 Method for writing electronic barcode information of product
CN104598950A (en) * 2015-01-08 2015-05-06 深圳创维数字技术有限公司 Information write-in method and device
CN205092870U (en) * 2015-09-18 2016-03-16 合肥美菱股份有限公司 Automatic check detecting system of refrigerator wiFi domain name
CN111130837A (en) * 2019-09-09 2020-05-08 上海钧正网络科技有限公司 Initialization method and device of equipment information, computer equipment and storage medium
CN111626621A (en) * 2020-05-28 2020-09-04 海尔优家智能科技(北京)有限公司 Intelligent equipment production test method and device and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268500A (en) * 2014-10-11 2015-01-07 合肥华凌股份有限公司 Method for writing electronic barcode information of product
CN104598950A (en) * 2015-01-08 2015-05-06 深圳创维数字技术有限公司 Information write-in method and device
CN205092870U (en) * 2015-09-18 2016-03-16 合肥美菱股份有限公司 Automatic check detecting system of refrigerator wiFi domain name
CN111130837A (en) * 2019-09-09 2020-05-08 上海钧正网络科技有限公司 Initialization method and device of equipment information, computer equipment and storage medium
CN111626621A (en) * 2020-05-28 2020-09-04 海尔优家智能科技(北京)有限公司 Intelligent equipment production test method and device and electronic device

Also Published As

Publication number Publication date
CN112819115B (en) 2022-12-30

Similar Documents

Publication Publication Date Title
CN107451077B (en) Test head, chip processing device and method for displaying chip type
US20140201260A1 (en) Efficient access to connectivity information using cable identification
US10152878B2 (en) Hazard detector, test device for hazard detector, hazard monitoring system and method for testing a hazard detector
CN112232454A (en) Data writing method and system, terminal, household appliance and computer device
CN107078806A (en) Optical transceiver apparatus and method
CN104111709A (en) Server systems
CN113596832A (en) Network connection establishing method and device, storage medium and electronic device
CN110781701A (en) Equipment anti-channel conflict activation system and activation method
CN111756858A (en) Remote development processing system, method and device of embedded equipment
CN111159659A (en) Multi-system software registration method and terminal equipment
CN107766185A (en) Test system and method
CN104155882A (en) Method and system for refreshing automatic transmission control unit
CN112819115B (en) Equipment identifier verification method and device, storage medium and electronic device
CN113259942A (en) Connection method, connection device, electronic equipment, connection system and computer-readable storage medium
CN103577964A (en) Method and system for acquiring product circulation regional information and verifying authenticity of product
CN106028326B (en) WiFi configuration method and device of smart watch
CN103458030B (en) welding machine control program upgrading system and upgrading method
CN111258625A (en) Software flashing detection method and device, storage medium and electronic equipment
CN105242939A (en) Connector for programming firmware to main board and method for programming firmware by using connector
CN112085431B (en) Method for confirming equipment goods receiving
CN115374490A (en) Device and method for writing equipment identifier, storage medium and terminal
CN107006061B (en) Method and device for acquiring identification code of terminal
CN103332075B (en) Setting tool for tire pressure induction system
CN110958122A (en) Network equipment rapid production system and production method
CN104933453A (en) Information management system and method of ring main unit (RMU)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant