CN117456629B - Inspection method, system, device, storage medium and computer program product - Google Patents

Inspection method, system, device, storage medium and computer program product Download PDF

Info

Publication number
CN117456629B
CN117456629B CN202311776589.XA CN202311776589A CN117456629B CN 117456629 B CN117456629 B CN 117456629B CN 202311776589 A CN202311776589 A CN 202311776589A CN 117456629 B CN117456629 B CN 117456629B
Authority
CN
China
Prior art keywords
graphic code
server
inspection
encryption parameters
graphic
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.)
Active
Application number
CN202311776589.XA
Other languages
Chinese (zh)
Other versions
CN117456629A (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.)
Trina Energy Storage Solutions Jiangsu Co Ltd
Original Assignee
Trina Energy Storage Solutions Jiangsu 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 Trina Energy Storage Solutions Jiangsu Co Ltd filed Critical Trina Energy Storage Solutions Jiangsu Co Ltd
Priority to CN202311776589.XA priority Critical patent/CN117456629B/en
Publication of CN117456629A publication Critical patent/CN117456629A/en
Application granted granted Critical
Publication of CN117456629B publication Critical patent/CN117456629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/20Checking timed patrols, e.g. of watchman
    • 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/0025Methods 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 consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0863Generation of secret information including derivation or calculation of cryptographic keys or passwords involving passwords or one-time passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0431Key distribution or pre-distribution; Key agreement

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The present application relates to a patrol method, system, device, storage medium and computer program product. The method is applied to graphic code display equipment, and the graphic code display equipment is positioned at the position of the inspected object; the method comprises the following steps: obtaining encryption parameters issued by a server; wherein, the encryption parameters issued by the server each time are different; displaying the graphic code matched with the encryption parameter; after being scanned by the inspection equipment, the graphic code instructs the inspection equipment to decrypt the scanned graphic code based on the encryption parameters issued by the server; and under the condition that decryption is successful, the inspection of the inspected object is completed. By adopting the method, the inspection efficiency can be improved.

Description

Inspection method, system, device, storage medium and computer program product
Technical Field
The present application relates to the field of computer technology, and in particular, to a method, a system, a device, a storage medium, and a computer program product for inspection.
Background
As technology advances and economic developments push, there are increasing numbers of equipment sites that provide powerful support for the development of various industries. These equipment sites require personnel to perform inspection at regular time to ensure the safety of the equipment sites.
In the traditional technology, after the personnel finish the inspection of the equipment field, the personnel manually register on line to finish the inspection. However, the mode is limited by personnel operation, the authenticity of the inspection cannot be guaranteed, and the inspection efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a patrol method, system, device, storage medium, and computer program product that can improve patrol efficiency.
In a first aspect, the present application provides a method for inspecting, applied to a graphic code display device, where the graphic code display device is located at an inspected object; the method comprises the following steps:
obtaining encryption parameters issued by a server; wherein, the encryption parameters issued by the server each time are different;
Displaying the graphic code matched with the encryption parameter;
after being scanned by the inspection equipment, the graphic code instructs the inspection equipment to decrypt the scanned graphic code based on the encryption parameters issued by the server; and under the condition that decryption is successful, the inspection of the inspected object is completed.
In some embodiments, the exposing the graphics code that matches the encryption parameter includes:
encrypting the stored preset data according to the encryption parameters to obtain encrypted data;
switching the display content format according to a second preset frequency; the second preset frequency is higher than the first preset frequency of the server-side issued encryption parameters;
Carrying out graphical processing on the encrypted data according to the switched display content format to obtain a graphic code;
displaying the graphic code;
And the same encrypted data is subjected to graphical processing according to different display content formats, so that the obtained graphic codes are different.
In some embodiments, after the graphic code is scanned by the inspection device, the inspection device is instructed to decrypt the scanned graphic code based on the encryption parameter issued by the server under the condition that the scanned graphic code is inconsistent with the previous graphic code, and determine that decryption fails under the condition that the scanned graphic code is consistent with the previous graphic code;
the preceding graphic code refers to a graphic code which is successfully decrypted by the inspection equipment in advance.
In some embodiments, the method further comprises:
Under the condition that wireless communication with the server side is abnormal, entering a second communication mode from a first communication mode, and establishing connection with the inspected object so as to interact with the server side based on the inspected object;
and after the wireless communication with the server is recovered, entering the first communication mode from the second communication mode, and interacting with the server based on a wireless network.
In some embodiments, before the presenting the graphic code matching the encryption parameter, further comprising:
and under the condition that wireless communication is abnormal and interaction between the inspected object and the server side cannot be performed, entering a single machine mode from a networking mode, and generating a graphic code for stored preset data.
In some embodiments, the inspected object is an energy storage container; the graphic code display equipment establishes wired connection with a communication switch in the energy storage container; the obtaining the encryption parameters sent by the server side comprises the following steps:
And under the condition of abnormal wireless communication, entering a wired communication mode from a wireless communication mode, and acquiring encryption parameters issued by a server based on the communication switch.
In a second aspect, the application also provides a patrol system, which comprises graphic code display equipment, a server side and patrol equipment;
The server is configured to send encryption parameters to the graphic code display device and the inspection device: wherein, the encryption parameters issued by the server each time are different;
The graphic code display device is used for acquiring the encryption parameters; displaying the graphic code matched with the encryption parameter;
The inspection equipment is used for acquiring the encryption parameters; scanning the graphic code displayed by the graphic code display device and decrypting the scanned graphic code based on the encryption parameter; and under the condition that decryption is successful, the inspection of the inspected object is completed.
In some embodiments, the graphic code display device is configured to encrypt the stored preset data according to the encryption parameter to obtain encrypted data; switching the display content format according to a second preset frequency; the second preset frequency is higher than the first preset frequency of the server-side issued encryption parameters; carrying out graphical processing on the encrypted data according to the switched display content format to obtain a graphic code; displaying the graphic code; and the same encrypted data is subjected to graphical processing according to different display content formats, so that the obtained graphic codes are different.
In some embodiments, the inspection device is configured to decrypt, after the graphic code is scanned, the scanned graphic code based on the encryption parameter issued by the server in a case where the scanned graphic code is inconsistent with the previous graphic code, and determine that decryption fails in a case where the scanned graphic code is consistent with the previous graphic code; the preceding graphic code refers to a graphic code which is successfully decrypted by the inspection equipment in advance.
In some embodiments, the graphic code display device is configured to enter a second communication mode from a first communication mode in a case of abnormal wireless communication with the server, and establish a connection with the inspected object to interact with the server based on the inspected object; and after the wireless communication with the server is recovered, entering the first communication mode from the second communication mode, and interacting with the server based on a wireless network.
In some embodiments, the graphic code display device is configured to enter a stand-alone mode from a networking mode and generate a graphic code for stored preset data when wireless communication is abnormal and interaction with the server based on the inspected object is impossible.
In some embodiments, the inspected object is a storage container; the graphic code display equipment establishes wired connection with a communication switch in the energy storage container; and the graphic code display device is used for entering a wired communication mode from a wireless communication mode under the condition of abnormal wireless communication, and acquiring encryption parameters issued by a server side based on the communication switch.
In a third aspect, the present application also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the above method.
According to the inspection method, the inspection system, the computer equipment, the storage medium and the computer program product, the graphic code display equipment positioned at the inspected object acquires the encryption parameters which are issued by the server, and the encryption parameters issued each time are different. The graphic code display device generates graphic codes matched with the encryption parameters, the graphic codes are continuously changed due to the fact that the encryption parameters issued each time are different, and the previous graphic codes are not matched with the encryption parameters currently received by the inspection device, so that decryption cannot be successfully performed when the previous graphic codes are used for cheating. And the inspection equipment scans the graphic code displayed by the graphic code display equipment and decrypts the scanned graphic code based on the encryption parameter issued by the server, and under the condition that decryption is successful, inspection of the inspected object is completed, the authenticity of inspection is ensured, and the inspection efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is an application environment diagram of a patrol method according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a patrol method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a graphic code display device according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a graphic code display device according to an embodiment of the present application.
Fig. 5 is a simple flow chart of a patrol method according to an embodiment of the present application.
Fig. 6 is a block diagram of a patrol system according to an embodiment of the present application.
Fig. 7 is an internal structure diagram of a server according to an embodiment of the present application.
Fig. 8 is an internal structure diagram of a graphic code display device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The inspection method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the graphic code display device 102 is located at the inspected object. The graphic code display device 102 and the inspection device 104 communicate with the server 106 over a network. The data storage system may store data that the server 106 needs to process. The data storage system may be integrated on the server 106 or may be located on a cloud or other network server.
The server 106 may send encryption parameters to the graphic code display device 102 and the patrol device 104: wherein, the encryption parameters issued by the server each time are different;
The graphic code display device 102 may acquire the encryption parameters; displaying the graphic code matched with the encryption parameter;
The patrol device 104 may obtain encryption parameters; scanning the graphic code displayed by the graphic code display device and decrypting the scanned graphic code based on the encryption parameter; and under the condition that decryption is successful, the inspection of the inspected object is completed.
Wherein the graphic code display device and the inspection device may be, but are not limited to, terminals. The terminal can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, and the internet of things equipment can be smart speakers, smart televisions, smart air conditioners, smart vehicle-mounted equipment and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 106 may be implemented as a stand-alone server or as a server cluster comprising a plurality of servers.
In some embodiments, the inspected object may be an energy storage container. The energy storage container may be a universal electrochemical energy storage battery compartment, such as a liquid cooled energy storage battery compartment.
In some embodiments, the inspection device may be, but is not limited to, a handheld code scanning device, such as a mobile phone device with a high definition camera.
In some embodiments, the communication network is implemented based on a wireless router. The wireless router may be a general purpose wireless network providing device.
In some embodiments, the server may be an energy storage power station server. The server can realize the tasks of wireless communication function and key release.
In an exemplary embodiment, as shown in fig. 2, a patrol method is provided, and the method is applied to the graphic code display device 102 in fig. 1 for illustration, and includes the following steps 202 to 204. Wherein:
step 202, obtaining encryption parameters issued by a server; the encryption parameters issued by the server side each time are different.
Illustratively, the server may issue encryption parameters to the graphic code display device and the inspection device. The graphic code display device and the inspection device can acquire different encryption parameters at a first preset frequency. The first preset frequency refers to the number of times of issuing encryption parameters in unit time. For example, the first preset frequency may be used to indicate that the encryption parameter is to be issued once a day.
In some embodiments, the server may issue the encryption parameters multiple times. The encryption parameters for each issue are different.
In some embodiments, the encryption parameters may include an encryption key.
In some embodiments, the inspected object refers to an object in an energy storage power station. And the energy storage power station is provided with a power station wireless local area network through a wireless router, and the service end, the operation and maintenance equipment and the graphic code display equipment are communicated through the wireless network. The server may be, but is not limited to, an energy storage power station server. The energy storage power station server can issue the encryption key at fixed time through the wireless network, and inform the graphic code display device of updating the displayed graphic code, and meanwhile the patrol equipment can also receive the encryption key.
In some embodiments, as shown in FIG. 3, a schematic diagram of a graphical code display device is provided. The graphic code display device includes a device housing 302 and a display screen 304. The device housing 302 may be made of plastic, and may be internally provided with a circuit board and a display screen, and the outer layer is further wrapped with a layer of silica gel material, so as to prevent the device from being damaged due to falling. The plastic may be, but is not limited to, polyvinylchloride (Polyvinyl chloride, PVC). The display 304 may be a general industrial explosion-proof LED screen, which can be adapted to a harsh outdoor environment, and is embedded in the device housing 302 during installation, i.e. the periphery of the display is wrapped by the device housing 302.
In some embodiments, a graphic code display device may include a display screen, a device housing, and a control circuit board. The control circuit board hardware logic is as follows: obtaining encryption parameters through communication between the wireless network unit and the outside; the processor generates encrypted data according to the encryption parameters and then transmits the encrypted data to the display unit; the display unit displays the corresponding graphic code according to the obtained encrypted data, but periodically changes the display scheme according to the display content format, and keeps the pattern displayed for the same encrypted data for three times without repeated pattern; the debugging interface is convenient for installers to enter the graphic code display device, change the wireless network configuration or update related running programs through related tools.
In some embodiments, as shown in fig. 4, a schematic diagram of a graphic code display device is provided. The graphic code display device includes a device housing 402 and an integrated circuit board 404. The integrated circuit board 404 is composed of various general-purpose units including a processor 406, a debug interface 408, a power management unit 410, a display unit 412, and a wireless network unit 414. The integrated circuit board 404 is a customized printed circuit board on which various functional units such as a processor, power management, and the like are mounted. The processor 406 may be an STM32 high performance MCU chip. The debug interface 408 may be a universal 4-pin UART protocol debug interface, facilitating the plugging of external devices and access to a universal debug platform. The power management unit 410 is connected to the circuits on the integrated circuit 404, and is used to supply power to each unit on the whole circuit board, and the input power is preferably a detachable rechargeable lithium battery, so that the graphic code display device can operate independently. The display unit 412 is a general LED screen control chip, and can display the data sent from the processor 406 on a display screen. The wireless network unit is a WiFi communication control chip.
Step 204, displaying the graphic code matched with the encryption parameter; after being scanned by the inspection equipment, the graphic code instructs the inspection equipment to decrypt the scanned graphic code based on the encryption parameters issued by the server; and under the condition that decryption is successful, the inspection of the inspected object is completed.
Illustratively, the encryption parameters refer to parameters required by the encryption algorithm. It will be appreciated that the encryption algorithm corresponds to a function, taking the encryption parameters and the plaintext as inputs, enabling the conversion of plaintext into encrypted data. The graphic code display device may encrypt the preset data according to the encryption algorithm and the encryption parameter to generate encrypted data, and then perform the graphic processing on the encrypted data to obtain the graphic code. And displaying the graphic code.
In some embodiments, the graphic code display device may graphically process the encrypted data in a preset display content format to obtain the graphic code.
In some embodiments, the graphical code may be, but is not limited to, a two-dimensional code or a bar code, or the like.
In some embodiments, the encryption parameters may include algorithm indication information and an encryption key. It will be appreciated that at least one encryption algorithm may be preset in the inspection device and the graphic code display device. The graphic code device may determine a target encryption algorithm from among at least one preset encryption algorithm according to the algorithm indication information. And encrypting the preset data according to the target encryption method and the encryption key to obtain encrypted data. The inspection equipment can also determine a target encryption algorithm designated by the algorithm indication information, and decrypt the scanned graphic code according to the target encryption algorithm and the encryption key to obtain a decryption result.
In some embodiments, the preset data may be, but is not limited to, patrol personnel information. The graphic code display device may use the inspection object information as preset data. It can be understood that the decryption is determined to be successful when the patrol object information in the decryption result is matched with the patrol object information bound by the patrol device. Only the inspection equipment of the inspection object represented by the inspection object information can realize successful decryption, so that the inspection equipment of a non-self party is prevented from replacing the self party to finish inspection, and the authenticity of inspection is ensured. It is understood that the inspected object refers to the party being inspected. The inspection object refers to one party of inspection. The patrol object may be a patrol personnel, and the patrol object may be a patrol device.
In some embodiments, the graphic code display device may present the graphic code on a screen of the home terminal. The inspection equipment can scan the graphic code to obtain encrypted data, and decrypt the encrypted data based on the encryption parameters issued by the server to obtain a decryption result. The decryption result is used to characterize whether decryption was successful.
In some embodiments, the inspection device may upload the decryption result to the server. The server side can determine that the inspection of the inspected object is completed under the condition that the decryption result represents that the decryption is successful.
In some embodiments, the graphical code display device is provided with biometric functionality, such as at least one of fingerprint recognition or face recognition, etc. The graphic code display device can acquire the biological identification result, and display the graphic code under the condition that the biological identification result is matched with the inspection object information. It can be understood that the inspection is completed by the inspection object on site, and the method in the embodiment can avoid the problem that the on-site personnel shoots the graphic code for the inspection object to cheat to complete the inspection, ensure the authenticity of the inspection and improve the inspection efficiency.
In some embodiments, the graphic code display device is internally provided with a light-sensitive resistor. The graphic code display device can adjust the brightness when the graphic code is displayed according to the sensing data of the photoresistor.
In some embodiments, the graphic code display device is provided with energy storage means, such as solar panels and rechargeable batteries. The energy storage device can support the independent operation of the graphic code display device.
In the inspection method, the graphic code display equipment positioned at the inspected object acquires the encryption parameters which are issued by the server, and the encryption parameters issued each time are different. The graphic code display device generates graphic codes matched with the encryption parameters, the graphic codes are continuously changed due to the fact that the encryption parameters issued each time are different, and the previous graphic codes are not matched with the encryption parameters currently received by the inspection device, so that decryption cannot be successfully performed when the previous graphic codes are used for cheating. And the inspection equipment scans the graphic code displayed by the graphic code display equipment and decrypts the scanned graphic code based on the encryption parameter issued by the server to obtain a decryption result, and inspection of the inspected object is completed under the condition that the decryption result represents successful decryption, so that the authenticity of inspection is ensured, and the inspection efficiency is improved.
In some embodiments, displaying a graphics code that matches the encryption parameters includes: encrypting the stored preset data according to the encryption parameters to obtain encrypted data; switching the display content format according to a second preset frequency; the second preset frequency is higher than the first preset frequency of the server-side issued encryption parameters; carrying out graphic processing on the encrypted data according to the switched display content format to obtain a graphic code;
displaying the graphic code; and the graphic codes obtained by carrying out the graphic processing according to different display content formats are different for the same encrypted data.
The second preset frequency refers to the number of times of switching the display content format in unit time.
For example, the graphic code display apparatus may encrypt the stored preset data according to an encryption algorithm and an encryption key to obtain decrypted data. At least two display content formats are preset in the graphic code display device. Each display content format is actually a graphic coding mode. For example, if the graphic code is a two-dimensional code, the display content format may refer to a two-dimensional code algorithm. The graphic code display device may graphically encode the encrypted data using the switched display content format to obtain the graphic code.
In some embodiments, the graphic code successfully decrypted each time can be uploaded to the server by the inspection device, so that traceability is ensured, and the inspection object is prevented from repeatedly using the same graphic code to finish inspection under the condition that new encryption parameters are not issued.
In some embodiments, the graphic code successfully decrypted each time is stored in the inspection device, and the inspection device can determine the decryption failure under the condition that the scanned two-dimensional code is consistent with the two-dimensional code successfully decrypted previously, so that the inspection object is prevented from cheating to finish inspection by repeatedly using the same graphic code.
In this embodiment, the stored preset data is encrypted according to the encryption parameter to obtain encrypted data; switching the display content format according to a second preset frequency; the second preset frequency is higher than the first preset frequency of the server-side issued encryption parameters; and carrying out graphical processing on the encrypted data according to the switched display content format to obtain graphic codes, and displaying different graphic codes even if the same encrypted data, so that the inspection object can be prevented from repeatedly using the same graphic code to finish inspection under the condition of not issuing new encryption parameters, and the authenticity of inspection is ensured.
In some embodiments, after the graphic code is scanned by the inspection device, the inspection device is instructed to decrypt the scanned graphic code based on the encryption parameter issued by the server under the condition that the scanned graphic code is inconsistent with the previous graphic code, and determine that decryption fails under the condition that the scanned graphic code is consistent with the previous graphic code; the previous graphic code refers to the graphic code which is successfully decrypted by the inspection equipment.
For example, the graphic code display device may present graphic codes. In order to save computing resources, the graphic code display device may not upload the graphic code displayed each time to the server, and the server may determine whether the graphic code scanned by the inspection device is consistent with the displayed graphic code. And the inspection equipment is only required to store the graphic code successfully decrypted each time, compares the graphic code scanned at this time with the graphic code scanned last time, and decrypts the scanned graphic code based on the encryption parameters issued by the server side to obtain a decryption result under the condition that the graphic code scanned at this time and the graphic code scanned last time are inconsistent. If the two are consistent, determining that decryption fails, and rescanning the graphic code. Wherein, the last graphic code refers to the graphic code successfully decrypted last time.
In some embodiments, after the graphic code is scanned by the inspection device, the scanned graphic code cannot be compared with the previous graphic code under the condition that the previous graphic code does not exist, and at this time, the inspection device directly decrypts the scanned graphic code based on the encryption parameter issued by the server.
In this embodiment, the graphic code is displayed to instruct the inspection device to scan the graphic code, where the scanned graphic code is not consistent with the previous graphic code, the scanned graphic code is decrypted based on the encryption parameter issued by the server, and the decryption failure is determined under the consistent condition, so that the inspection object can be prevented from using the same graphic code to cheat to finish inspection before issuing the new encryption parameter, and the authenticity of inspection is ensured.
In some embodiments, the method further comprises: under the condition of abnormal wireless communication with the server, entering a second communication mode from the first communication mode, and establishing connection with the inspected object so as to interact with the server based on the inspected object; after the wireless communication with the server is restored, the first communication mode is entered from the second communication mode, and the wireless network is used for interacting with the server.
Illustratively, the graphic code display device has a networking mode. The networking mode includes a first communication mode and a second communication mode. The first communication mode may be, but is not limited to, a wireless communication mode. The second communication mode may be, but is not limited to, a wired communication mode. And under the default condition, the graphic code display equipment is in a first communication mode, and at the moment, the graphic code display equipment and the server side communicate through a wireless network. Under the condition of abnormal wireless communication with the server, for example, under the condition that a wireless network in a station where the inspected object is located fails or the graphic code display device cannot access the wireless network, the graphic code display device can enter a second communication mode, at the moment, the graphic code display device can establish short-distance connection with the inspected object so as to interact with the server based on the inspected object, and the graphic code display device can also interact with the server based on the wired connection established with the inspected object in advance based on the inspected object. After the wireless communication with the server is restored, the graphic code display device can reenter the first communication mode and interact with the server based on the wireless network.
In the embodiment, under the condition that wireless communication with the server side is abnormal, entering a second communication mode from the first communication mode, and establishing connection with the inspected object so as to interact with the server side based on the inspected object; after the wireless communication with the server is recovered, the wireless communication device enters the first communication mode from the second communication mode, the communication stability between the graphic code display device and the server can be ensured based on the interaction between the wireless network and the server, and the graphic code display device is not connected with devices except the server and the inspected object, so that the safety of the graphic code display device can be ensured.
In some embodiments, before the graphic code matching the encryption parameter is displayed, further comprising: under the condition that wireless communication is abnormal and interaction with a server side based on a patrol object is not possible, a single machine mode is entered from a networking mode, and a graphic code is generated for stored preset data.
Illustratively, the graphic code display device includes a networking mode and a stand-alone mode. Under the default condition, the graphic code display equipment is in a networking mode and can normally interact with the server. In the case where the wireless communication is abnormal and the interaction with the server based on the inspected object is impossible, that is, the graphic code display apparatus cannot interact with the server, at this time, the graphic code display apparatus enters the stand-alone mode from the networking mode. In the stand-alone mode, the graphic code display device cannot normally acquire encryption parameters, preset data cannot be encrypted at the moment, and stored preset data can be directly subjected to graphic processing to generate the graphic code. Furthermore, the follow-up inspection equipment can normally identify the graphic code displayed by the scanning graphic code display equipment, so that the normal inspection is ensured, and the inspection efficiency is improved.
In this embodiment, under the condition that wireless communication is abnormal and interaction between the inspected object and the server side is impossible, a single mode is entered from a networking mode, and a graphic code is generated for stored preset data, so that even if the graphic code display device cannot interact with the server side normally, the graphic code which can be identified by the inspection device can be generated, normal inspection is ensured, and inspection efficiency is improved.
In some embodiments, the inspected object is a storage container; the graphic code display equipment establishes wired connection with a communication switch in the energy storage container; obtaining encryption parameters issued by a server, including: under the condition of abnormal wireless communication, the wireless communication mode is switched into a wired communication mode, and encryption parameters issued by a server side are acquired based on a communication switch.
Illustratively, a network communication line exists in the graphic code display device and is connected to the energy storage container, and is connected to the station system including the server through a communication switch inside the energy storage container. When the wireless communication fails, the wireless communication can be switched to a wired communication mode, and as an emergency scheme, the encryption parameters are acquired through the communication switch.
In some embodiments, the graphical code may be, but is not limited to, a two-dimensional code. The inspection device can be two-dimensional code scanning device. The two-dimension code scanning device performs two-dimension code scanning operation near the energy storage container, obtains encrypted data according to the scanned graphic code, then decrypts according to the previously received encryption key, and the decryption is successful, so that the two-dimension code is stored and is convenient to compare with the next two-dimension code, and if the two-dimension codes are identical, the code scanning operation violations are indicated. It can be understood that after the two-dimension code scanning is successful, the area where the energy storage container is located is successfully inspected, and the inspection equipment uploads the inspection success result to the server through the wireless network.
In this embodiment, the inspected object is an energy storage container; the graphic code display equipment establishes wired connection with a communication switch in the energy storage container; under the condition of abnormal wireless communication, the wireless communication mode is adopted to enter a wired communication mode, and encryption parameters issued by the server side are acquired based on the communication switch, so that the communication stability of the graphic code display equipment and the server side can be ensured, and the inspection efficiency of the energy storage container is improved.
In some embodiments, as shown in fig. 5, a simplified flow diagram of a patrol method is provided.
The server may issue an encryption key to the inspection device and the graphic code display device. The graphic code display device and the patrol device may receive the encryption key. The graphic code display device generates encrypted data according to the encryption key, performs graphic processing on the encrypted data to obtain graphic codes, and displays the graphic codes. The inspection equipment can scan the graphic code, and if the scanned two-dimensional code is the same as the previous graphic code, the step of scanning the graphic code is returned; and if the scanned two-dimensional code is different from the last graphic code, decrypting the encrypted data obtained by scanning the graphic code. If the decryption is successful, the inspection equipment server uploads the inspection result, and the server can receive the inspection result; if the decryption fails, the inspection device returns to the step of scanning the graphic code.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a patrol system for realizing the patrol method. The implementation of the solution provided by the system is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the inspection system provided below may be referred to the limitation of the inspection method hereinabove, and will not be repeated herein.
In one exemplary embodiment, as shown in fig. 6, there is provided a patrol system 600 comprising: the system comprises a server 602, a graphic code display device 604 and a patrol device 606, wherein:
the server 602 is configured to send encryption parameters to the graphic code display device 604 and the inspection device 606: wherein, the encryption parameters issued by the server 602 each time are different;
A graphic code display device 604 for acquiring encryption parameters; displaying the graphic code matched with the encryption parameter;
The inspection device 606 is configured to obtain an encryption parameter; the scanned graphic code displayed by the graphic code display device 604 decrypts the scanned graphic code based on the encryption parameter; and under the condition that decryption is successful, the inspection of the inspected object is completed.
In some embodiments, the graphic code display device 604 is configured to encrypt the stored preset data according to the encryption parameter to obtain encrypted data; switching the display content format according to a second preset frequency; the second preset frequency is higher than the first preset frequency of the server-side issued encryption parameters; carrying out graphic processing on the encrypted data according to the switched display content format to obtain a graphic code; displaying the graphic code; and the graphic codes obtained by carrying out the graphic processing according to different display content formats are different for the same encrypted data.
In some embodiments, the inspection device 606 is configured to decrypt the scanned graphic code based on the encryption parameter issued by the server 602 after the graphic code is scanned, if the scanned graphic code is inconsistent with the previous graphic code, and determine that the decryption fails if the scanned graphic code is consistent with the previous graphic code; where the previous graphics code refers to a graphics code that was successfully decrypted by the inspection device 606.
In some embodiments, the graphic code display device 604 is configured to enter a second communication mode from the first communication mode in a case of abnormal wireless communication with the server 602, and establish a connection with the inspected object to interact with the server 602 based on the inspected object; after the wireless communication with the server 602 is restored, the second communication mode is entered into the first communication mode, and the server 602 is interacted based on the wireless network.
In some embodiments, the graphic code display device 604 is configured to enter a stand-alone mode from a networking mode and generate a graphic code for stored preset data in case of abnormal wireless communication and failure to interact with the server 602 based on the inspected object.
In some embodiments, the inspected object is a storage container; the graphic code display device 604 establishes a wired connection with a communication switch in the energy storage container; the graphic code display device 604 is configured to enter a wired communication mode from a wireless communication mode in the case of abnormal wireless communication, and acquire the encryption parameters issued by the server 602 based on the communication switch.
The various modules in the inspection system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In an exemplary embodiment, a server is provided, and an internal structure diagram thereof may be shown in fig. 7. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store encryption parameters. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by the processor, issues encryption parameters to the inspection device and the graphic code display device.
In one exemplary embodiment, a graphic code display apparatus is provided, an internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a patrol method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an exemplary embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor performing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are both information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high density embedded nonvolatile memory, resistive random access memory (ReRAM), magneto-resistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (PHASE CHANGE memory, PCM), graphene memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. The inspection method is characterized by being applied to graphic code display equipment, wherein the graphic code display equipment is positioned at an inspected object; the method comprises the following steps:
Obtaining encryption parameters issued by a server according to a first preset frequency; wherein, the encryption parameters issued by the server each time are different;
encrypting the stored preset data according to the encryption parameters to obtain encrypted data;
switching the display content format according to a second preset frequency; the second preset frequency is higher than the first preset frequency of the server-side issued encryption parameters;
Carrying out graphical processing on the encrypted data according to the switched display content format to obtain a graphic code;
displaying the graphic code; wherein, for the same encrypted data, the graphic codes obtained by the graphic processing according to different display content formats are different;
After the graphic code is scanned by the inspection equipment, the inspection equipment is instructed to determine decryption failure under the condition that the scanned graphic code is consistent with the previous graphic code, and the inspection equipment is instructed to decrypt the scanned graphic code based on encryption parameters issued by the server under the condition that the scanned graphic code is inconsistent with the previous graphic code, and inspection of the inspected object is completed under the condition that decryption is successful; the preceding graphic code refers to a graphic code which is successfully decrypted by the inspection equipment in advance.
2. The method of claim 1, wherein the graphic code display device is internally provided with a light sensitive resistor; the method further comprises the steps of:
And adjusting the brightness when the graphic code is displayed according to the sensing data of the photoresistor.
3. The method according to claim 2, wherein the graphic code display device is provided with energy storage means; the energy storage device is used for supporting the independent operation of the graphic code display equipment.
4. The method according to claim 1, wherein the method further comprises:
Under the condition that wireless communication with the server side is abnormal, entering a second communication mode from a first communication mode, and establishing connection with the inspected object so as to interact with the server side based on the inspected object;
and after the wireless communication with the server is recovered, entering the first communication mode from the second communication mode, and interacting with the server based on a wireless network.
5. The method of claim 1, further comprising, prior to said exposing the graphics code that matches the encryption parameter:
and under the condition that wireless communication is abnormal and interaction between the inspected object and the server side cannot be performed, entering a single machine mode from a networking mode, and generating a graphic code for stored preset data.
6. The method of any one of claims 1 to 5, wherein the inspected object is a storage container; the graphic code display equipment establishes wired connection with a communication switch in the energy storage container; the obtaining the encryption parameters sent by the server side comprises the following steps:
And under the condition of abnormal wireless communication, entering a wired communication mode from a wireless communication mode, and acquiring encryption parameters issued by a server based on the communication switch.
7. The inspection system is characterized by comprising graphic code display equipment, a server side and inspection equipment;
the server side is configured to send encryption parameters to the graphic code display device and the inspection device according to a first preset frequency: wherein, the encryption parameters issued by the server each time are different;
the graphic code display device is used for acquiring the encryption parameters; encrypting the stored preset data according to the encryption parameters to obtain encrypted data; switching the display content format according to a second preset frequency; the second preset frequency is higher than the first preset frequency of the server-side issued encryption parameters; carrying out graphical processing on the encrypted data according to the switched display content format to obtain a graphic code; displaying the graphic code; wherein, for the same encrypted data, the graphic codes obtained by the graphic processing according to different display content formats are different;
The inspection equipment is used for acquiring the encryption parameters; scanning the graphic code displayed by the graphic code display device; determining decryption failure in the case that the scanned graphic code is consistent with the previous graphic code; under the condition that the scanned graphic code is inconsistent with the prior graphic code, decrypting the scanned graphic code based on the encryption parameter issued by the server, and under the condition that decryption is successful, completing inspection of the inspected object; the preceding graphic code refers to a graphic code which is successfully decrypted by the inspection equipment in advance.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311776589.XA 2023-12-22 2023-12-22 Inspection method, system, device, storage medium and computer program product Active CN117456629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311776589.XA CN117456629B (en) 2023-12-22 2023-12-22 Inspection method, system, device, storage medium and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311776589.XA CN117456629B (en) 2023-12-22 2023-12-22 Inspection method, system, device, storage medium and computer program product

Publications (2)

Publication Number Publication Date
CN117456629A CN117456629A (en) 2024-01-26
CN117456629B true CN117456629B (en) 2024-04-19

Family

ID=89591533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311776589.XA Active CN117456629B (en) 2023-12-22 2023-12-22 Inspection method, system, device, storage medium and computer program product

Country Status (1)

Country Link
CN (1) CN117456629B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097470A (en) * 2016-06-03 2016-11-09 桂林驰讯科技有限公司 The high secrecy intelligence inspection system of a kind of anti-cheating and method
CN107633567A (en) * 2017-09-08 2018-01-26 上海梅迪优物联科技有限公司 A kind of intelligent night watching method
CN109255497A (en) * 2018-10-12 2019-01-22 方泽宇 One kind being based on satellite dynamic two-dimension code intelligent patrol examination and repair system
CN109461227A (en) * 2018-11-08 2019-03-12 国网北京市电力公司 The method and device of inspection device
CN110070637A (en) * 2019-04-16 2019-07-30 苏州浪潮智能科技有限公司 A kind of mobile method for inspecting of data center's total management system
CN112419535A (en) * 2020-11-26 2021-02-26 深圳市中研安创科技发展有限公司 Patrol management and control method, system, device, computer equipment and storage medium
CN113469311A (en) * 2021-07-27 2021-10-01 卢笙 Variable two-dimensional code-based non-patrol point-prevention inspection method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097470A (en) * 2016-06-03 2016-11-09 桂林驰讯科技有限公司 The high secrecy intelligence inspection system of a kind of anti-cheating and method
CN107633567A (en) * 2017-09-08 2018-01-26 上海梅迪优物联科技有限公司 A kind of intelligent night watching method
CN109255497A (en) * 2018-10-12 2019-01-22 方泽宇 One kind being based on satellite dynamic two-dimension code intelligent patrol examination and repair system
CN109461227A (en) * 2018-11-08 2019-03-12 国网北京市电力公司 The method and device of inspection device
CN110070637A (en) * 2019-04-16 2019-07-30 苏州浪潮智能科技有限公司 A kind of mobile method for inspecting of data center's total management system
CN112419535A (en) * 2020-11-26 2021-02-26 深圳市中研安创科技发展有限公司 Patrol management and control method, system, device, computer equipment and storage medium
CN113469311A (en) * 2021-07-27 2021-10-01 卢笙 Variable two-dimensional code-based non-patrol point-prevention inspection method

Also Published As

Publication number Publication date
CN117456629A (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN104495545B (en) Electronic elevator maintenance supervision and management system and method for elevator maintenance based on dynamic two-dimensional codes
CN111275122B (en) Label labeling method, device, equipment and readable storage medium
CN105760778A (en) Method and device for improving security of private picture and electronic equipment
US10747489B2 (en) Method for displaying content and electronic device therefor
CN117456629B (en) Inspection method, system, device, storage medium and computer program product
CN110769050A (en) Data processing method, data processing system, computer device, and storage medium
JP7225973B2 (en) Server device, information processing system, information processing method, and computer program
CN203911931U (en) Server terminal and client terminal for information exchange, and information exchange system
CN116401222A (en) File synchronization method, device, system, equipment and storage medium
CN115062178A (en) Method and device for arranging inspection images of unmanned aerial vehicle equipment and computer equipment
CN114236458A (en) Method and device for positioning fault of double-core intelligent ammeter based on test data stream
KR101611932B1 (en) Apparatus and method for controlling name plate
CN114726613B (en) Micro-grid and terminal data communication encryption method and device and computer equipment
CN114495462B (en) Alarm message processing method, device, computer equipment and storage medium
CN117062037B (en) RFID tag data processing method, device, base station, computer equipment and medium
CN113162927B (en) Data transmission method, sending terminal, receiving terminal and electronic equipment
CN116978377A (en) Data processing method, apparatus, computer device, storage medium, and program product
CN115619408A (en) Service processing method, device, equipment, storage medium and program product
CN117915416A (en) Communication method, base station and system of intelligent household cleaning equipment and target base station
CN206516323U (en) A kind of signal generation apparatus
CN117171098A (en) Document sorting method, device, computer equipment and storage medium
CN117857883A (en) Intelligent glasses control method, device, equipment, storage medium and computer product
CN116170054A (en) Data transmission method and device based on satellite navigation system and computer equipment
CN118068263A (en) Positioning label test method and device for pumped storage foundation engineering and computer equipment
CN115865450A (en) Power data encryption transmission system, method and device

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