CN116882442A - Method and device for generating two-dimension code of power equipment, electronic equipment and readable medium - Google Patents

Method and device for generating two-dimension code of power equipment, electronic equipment and readable medium Download PDF

Info

Publication number
CN116882442A
CN116882442A CN202311126797.5A CN202311126797A CN116882442A CN 116882442 A CN116882442 A CN 116882442A CN 202311126797 A CN202311126797 A CN 202311126797A CN 116882442 A CN116882442 A CN 116882442A
Authority
CN
China
Prior art keywords
information
access
equipment
power equipment
access right
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.)
Pending
Application number
CN202311126797.5A
Other languages
Chinese (zh)
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.)
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong Network Technology Co Ltd
Original Assignee
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong Network Technology 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 State Grid Information and Telecommunication Co Ltd, Beijing Guodiantong Network Technology Co Ltd filed Critical State Grid Information and Telecommunication Co Ltd
Priority to CN202311126797.5A priority Critical patent/CN116882442A/en
Publication of CN116882442A publication Critical patent/CN116882442A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

The embodiment of the disclosure discloses a method and a device for generating a two-dimensional code of power equipment, electronic equipment and a readable medium. One embodiment of the method comprises the following steps: in response to receiving a communication connection request corresponding to the target power equipment, establishing communication connection with the target power equipment; acquiring equipment information of target power equipment; inputting the equipment use information and the access right information set into a pre-trained information classification model; for each access right information in the set of access right information included in the device information, the following generation step is performed: selecting classified use information corresponding to the access right information from the classified use information set as target use information; generating an access link according to the target use information and the access right information; generating a two-dimensional code of the power equipment; and controlling the associated mobile robot to post the two-dimension code of the power equipment. According to the embodiment, data leakage is avoided, information security is improved, and waste of paper resources is reduced.

Description

Method and device for generating two-dimension code of power equipment, electronic equipment and readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for generating two-dimensional codes of power equipment, electronic equipment and a readable medium.
Background
In the use process of the power equipment, different terminals are generally required to acquire different equipment information of the power equipment so as to manage the power equipment. At present, when different terminals acquire equipment information of power equipment, the following modes are generally adopted: and the different terminals access a database storing all the equipment information, or acquire different equipment information by scanning a plurality of two-dimensional codes of the surface of the power equipment, which characterize the different equipment information.
However, when the device information of the power device is acquired in the above manner, there are often the following technical problems:
firstly, different terminals access a database storing all equipment information, and the same terminal can access all the equipment information, so that the information security of the equipment information is poor and data leakage is caused; when a plurality of two-dimensional codes representing different equipment information on the surface of the power equipment are scanned, the two-dimensional codes are required to be printed, and waste of paper resources is caused.
Second, when the content of the two-dimensional code storage is large, the generated two-dimensional code is too complex, so that the two-dimensional code cannot be scanned, and the equipment information cannot be acquired.
Third, due to the influence of environmental factors (e.g., temperature and humidity), the two-dimensional code posted on the surface of the device may be corroded or stained, so that the two-dimensional code cannot be scanned, and thus the device information cannot be obtained.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a method, an apparatus, an electronic device, and a computer readable medium for generating a two-dimensional code of an electric device, to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method for generating a two-dimensional code of an electrical device, the method including: in response to receiving a communication connection request corresponding to a target power device, establishing communication connection with the target power device; acquiring device information of the target power device, wherein the device information comprises device use information and an access right information set; inputting the equipment use information and the access right information set into a pre-trained information classification model to obtain a classification use information set; for each access right information in the set of access right information included in the above-mentioned device information, the following generation step is performed: selecting classified usage information corresponding to the access right information from the classified usage information set as target usage information; generating an access link according to the target use information and the access right information; generating a two-dimensional code of the power equipment according to each generated access link; and controlling the associated mobile robot to post the two-dimension code of the power equipment.
In a second aspect, some embodiments of the present disclosure provide a two-dimensional code generating apparatus for an electrical device, the apparatus including: an establishing unit configured to establish a communication connection with a target power device in response to receiving a communication connection request corresponding to the target power device; an acquisition unit configured to acquire device information of the target power device, wherein the device information includes device usage information and an access right information set; an input unit configured to input the device usage information and the access right information set into a pre-trained information classification model to obtain a classification usage information set; an execution unit configured to execute, for each access right information in the set of access right information included in the device information, the following generation step: selecting classified usage information corresponding to the access right information from the classified usage information set as target usage information; generating an access link according to the target use information and the access right information; a generation unit configured to generate a power device two-dimensional code according to the generated access links; and the control unit is configured to control the associated mobile robot to post the two-dimension code of the power equipment.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantages: according to the two-dimensional code generation method for the power equipment, disclosed by the embodiment of the invention, the data leakage can be avoided, the information security is improved, and the waste of paper resources is reduced. Specifically, the reasons for the data leakage, the low information security, and the waste of paper resources are: different terminals access the database storing all the equipment information, and the same terminal can access all the equipment information, so that the information security of the equipment information is poor and the data is leaked; when a plurality of two-dimensional codes representing different equipment information on the surface of the power equipment are scanned, the two-dimensional codes are required to be printed, and waste of paper resources is caused. Based on this, the power device two-dimensional code generating method of some embodiments of the present disclosure first establishes a communication connection with a target power device in response to receiving a communication connection request corresponding to the target power device. Thereby, a communication connection can be established with the above-mentioned power equipment when a new power equipment is detected. Next, device information of the target power device is acquired. Thereby, all the device information of the power device can be acquired. And then, inputting the equipment use information and the access right information set into a pre-trained information classification model to obtain a classification use information set. All the acquired device information can be classified according to the rights. Then, for each access right information in the set of access right information included in the above-mentioned device information, the following generation step is performed: first, the classification information corresponding to the access right information is selected from the classification information set as target information. Thereby, the device information corresponding to the access right information can be selected. Second, an access link is generated based on the target usage information and the access right information. Therefore, the access right and the equipment information can be bound, so that the equipment information accessed by different terminals can be limited, the information security of the equipment information can be improved, and the data leakage is avoided. And then, generating the two-dimension code of the power equipment according to each generated access link. Therefore, access links of different device information can be combined into the same two-dimensional code, so that only one two-dimensional code can be printed for posting, and waste of paper resources is reduced. And finally, controlling the associated mobile robot to post the two-dimension code of the power equipment. Therefore, data leakage is avoided, information security is improved, and waste of paper resources is reduced.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of a power device two-dimensional code generation method according to the present disclosure;
fig. 2 is a schematic structural diagram of some embodiments of a power device two-dimensional code generation apparatus according to the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates a flow 100 of some embodiments of a power device two-dimensional code generation method according to the present disclosure. The method for generating the two-dimensional code of the power equipment comprises the following steps:
Step 101, in response to receiving a communication connection request corresponding to the target power device, establishing a communication connection with the target power device.
In some embodiments, an execution subject (e.g., a server) of the power device two-dimensional code generation method may establish a communication connection with a target power device in response to receiving a communication connection request corresponding to the target power device. The communication connection request may be request information for establishing a communication connection with the execution body. The target power device may be a power device that transmits a communication connection request to the execution body.
In practice, a communication connection may be established with the above-mentioned target power device by:
and the first step is to respond to the received communication connection request corresponding to the target power equipment and analyze the communication connection request to generate analysis information. The analysis processing may be to analyze communication information of the target power device. The communication information may include, but is not limited to: a network protocol address (Internet Protocol Address) and a MAC (Media Access Control, medium access control) address.
And secondly, establishing communication connection with the target power equipment according to the analysis information. In practice, the communication connection may be established by means of the TCP (Transmission Control Protocol) protocol, according to the network protocol address (Internet Protocol Address) of the above-mentioned target power equipment.
Step 102, obtaining device information of the target power device.
In some embodiments, the executing body may acquire device information of the target power device. In practice, the execution subject may acquire the device information of the target power device in various ways. As an example, the execution subject may acquire the device information of the target power device from a database storing the device information of the target power device.
And step 103, inputting the equipment use information and the access right information set into a pre-trained information classification model to obtain a classification use information set.
In some embodiments, the executing entity may input the device usage information and the access right information set into a pre-trained information classification model to obtain a classification usage information set. The information classification model may be a neural network model that takes device usage information and an access right information set as inputs and takes a classification usage information set as an output. For example, the information classification model may be a convolution model.
Step 104, for each access right information in the access right information set included in the device information, performing the following generation steps:
Step 1041, selecting the classified usage information corresponding to the access right information from the classified usage information set as the target usage information.
In some embodiments, the executing entity may select the classification usage information corresponding to the access right information from the classification usage information set as the target usage information.
Step 1042, generating an access link according to the target usage information and the access right information.
In some embodiments, the execution body may generate an access link according to the target usage information and the access right information.
And 105, generating a two-dimensional code of the power equipment according to each generated access link.
In some embodiments, the execution subject may generate the two-dimensional code of the power device according to each generated access link.
In practice, the execution subject may generate the two-dimensional code of the electrical device by:
first, an information display interface template is obtained. The information display interface template may be a template stored in advance for filling in the information display interface of each access link.
And step two, adding the access links into the information display interface template to update the information display interface, thereby obtaining an updated display interface.
And thirdly, generating a display interface link according to the updated display interface. In practice, a link for jumping to the updated display interface described above may be generated as the display interface link.
And fourthly, generating the two-dimensional code of the power equipment according to the display interface link. In practice, the display interface can be linked and input into a preset two-dimensional code generator to obtain the two-dimensional code of the power equipment.
In some optional implementations of some embodiments, first, the executing entity may perform a combination process on each access link and a corresponding access right in each access link to generate a right access link, so as to obtain a right access link set. Second, a combined access link may be generated that corresponds to the set of access rights links described above. Thirdly, the combined access link can be input into the two-dimension code generator to obtain the two-dimension code of the power equipment. Wherein, the above-mentioned combination process may be a merging process.
In other optional implementations of some embodiments, the foregoing execution body may further perform the following simplified steps:
a first simplified step of converting the access links to generate converted links for each of the access links. The conversion process may be converting the access link into a short link. In practice, the execution subject may convert the access links into short links by various methods. As an example, the above access link may be converted into a short link by a preset short link conversion tool.
And a second simplification step, wherein each converted link in the generated converted links and the corresponding access right are combined to generate converted right links, so as to obtain a converted right link set.
And a third simplified step of generating jump links corresponding to the converted authority link set.
And a fourth simplified step of converting the jump link to generate a converted jump link.
And fifthly, simplifying the step to obtain the configuration information of the two-dimension code. The two-dimensional code configuration information comprises a two-dimensional code fault tolerance rate. The two-dimensional code fault tolerance may be a preset two-dimensional code fault tolerance. For example, the two-dimensional code fault tolerance may be 30%.
And a sixth simplification step, according to the two-dimension code fault tolerance rate included in the two-dimension code configuration information, generating the two-dimension code corresponding to the jump link after conversion as the two-dimension code of the power equipment.
The related content in the first simplified step-the sixth simplified step, in combination with the following step "step 106", is an invention point of the present disclosure, and solves the second technical problem mentioned in the background art, that "when the content of the two-dimensional code stored is more, the generated two-dimensional code is too complex, so that the two-dimensional code cannot be scanned, and thus, the device information cannot be obtained. Factors that cause the failure to acquire the device information are often as follows: when the content of the two-dimensional code storage is more, the generated two-dimensional code is too complex, so that the two-dimensional code cannot be scanned, and the equipment information cannot be acquired. If the above factors are solved, the effect of avoiding the failure to acquire the equipment information can be achieved. To achieve this effect, first, for each of the individual access links, the above access links are subjected to conversion processing to generate converted links. The conversion process may be converting the access link into a short link. Thus, the length of the access link can be shortened, and the complexity of the generated two-dimensional code can be reduced. And secondly, carrying out combination processing on each converted link in the generated converted links and the corresponding access right to generate converted right links, and obtaining a converted right link set. Thus, the access link can be combined with the access right. Then, a jump link corresponding to the converted authority link set is generated. Thus, the individual access links can be combined into one jump link. And then, converting the jump link to generate a converted jump link. Therefore, the length of the jump link can be shortened, and the complexity of the generated two-dimensional code can be further reduced. Finally, acquiring two-dimensional code configuration information; and generating the two-dimensional code corresponding to the jump link after conversion as the two-dimensional code of the power equipment according to the two-dimensional code fault tolerance included in the two-dimensional code configuration information. Therefore, the fault tolerance of the two-dimensional code can be improved, and the success rate of scanning the two-dimensional code can be improved. The length of the access link and the jump link is shortened, so that the content of the two-dimensional code storage is reduced, and meanwhile, the fault tolerance of the two-dimensional code is increased, and the situation that equipment information cannot be acquired due to the fact that the two-dimensional code cannot be scanned is avoided.
And 106, controlling the associated mobile robot to post the two-dimension code of the power equipment.
In some embodiments, the executing entity may control the associated mobile robot to post the power device two-dimensional code.
In practice, the execution subject may control the associated mobile robot to post the two-dimensional code of the electrical device by:
and controlling the associated mobile robot to print the two-dimension code of the power equipment. The mobile robot may have a printing function by being connected to the execution body by a wire or by being connected to the execution body by a wireless.
And secondly, positioning the target power equipment to generate equipment position information. Here, the device position information may be obtained by transmitting a positioning signal to the target power device to position the target power device.
And thirdly, controlling the mobile robot to move to the position represented by the equipment position information.
And fourthly, controlling the mobile robot to post the two-dimension code of the power equipment to a preset posting area on the surface of the target power equipment. The preset posting area may be a preset area for posting a two-dimensional code of the electrical device.
Optionally, in response to detecting the scanning operation for the two-dimensional code of the power device, determining terminal information corresponding to the access request terminal.
In some embodiments, the executing body may determine the terminal information corresponding to the access request terminal in response to detecting the scanning operation for the two-dimensional code of the power device. The skirt may be configured to scan the two-dimensional code of the power device. The access request terminal may be a terminal for scanning the two-dimensional code of the power device. The terminal information includes terminal authority information. The terminal authority information may characterize an access authority of the access request terminal to the device information.
Optionally, determining the access right corresponding to the access request terminal according to the terminal information.
In some embodiments, the executing body may determine the access right corresponding to the access request terminal according to the terminal information. In practice, the access right corresponding to the access request terminal can be determined through the terminal right information included in the terminal information.
Optionally, in response to the access rights indicating that the access request terminal does not have the access rights, prohibiting the access request terminal from accessing.
In some embodiments, the access request terminal is prohibited from accessing in response to the access rights indicating that the access request terminal does not have access rights.
Optionally, in response to the access rights characterizing that the access request terminal has access rights to at least one piece of classification usage information, each rights access link corresponding to each piece of classification usage information in the at least one piece of classification usage information is displayed on the access request terminal.
In some embodiments, the executing entity may display, on the access request terminal, each rights access link corresponding to each of the at least one classification usage information in response to the access rights characterizing that the access request terminal has access rights to the at least one classification usage information.
Optionally, in response to detecting a selection operation of the access request terminal for any one of the displayed access links, skipping the selected access link to display classification usage information corresponding to the selected access link in the access request terminal.
Optionally, the above execution body may further execute the following steps:
The method comprises the steps of firstly, responding to the current time as a preset acquisition time, and controlling an associated shooting device to shoot the two-dimension code of the power equipment posted by the target power equipment so as to generate a two-dimension code photo of the power equipment.
In some embodiments, the executing body may control the associated photographing device to perform photographing processing on the two-dimensional code of the power device posted by the target power device in response to the current time being a preset acquisition time, so as to generate a two-dimensional code photograph of the power device. The associated photographing apparatus may be a photographing apparatus connected to the execution body by a wired connection or a wireless connection. For example, the photographing apparatus may be a camera. The photographing apparatus may be installed at a position where the two-dimensional code of the power apparatus can be completely photographed. The preset collection time may be a preset time for photographing the two-dimension code of the power device posted by the target power device. For example, the preset acquisition time may be nine am every day.
And secondly, performing offset recognition processing on the two-dimensional code photo of the power equipment to generate a recognition result.
In some embodiments, the executing body may perform the contamination identification process on the two-dimensional code photograph of the electrical device to generate an identification result. The contamination identification processing may be to input a two-dimensional code photo of the electric power equipment into a pre-trained contamination identification model to obtain an identification result. Here, the two-dimensional code displayed in the two-dimensional code photo of the power equipment can be subjected to code scanning processing to generate a code scanning result as an identification result.
And thirdly, controlling the mobile robot to replace the two-dimension code of the power equipment posted by the target power equipment according to the identification result.
In some embodiments, the execution body may control the mobile robot to perform replacement processing on the two-dimensional code of the power device posted by the target power device according to the identification result.
In practice, the execution subject may replace the two-dimensional code of the power device posted by the target power device through the following substeps:
a first sub-step of, for each of the individual access links described above, performing the following processing steps:
a first processing step of determining whether update information exists in the corresponding classified usage information of the access link. Here, it is possible to determine whether the update information exists in the corresponding classified usage information of the above access link by reading a database storing the update information.
And a second processing step of updating, in response to the presence of the update information, whether the update information exists in the corresponding classified usage information of the access link. In practice, the corresponding classified usage information of the access link may be replaced with the above-described update information.
And a third processing step of determining whether the access link is invalid.
And a fourth processing step of updating the access link according to the classified usage information corresponding to the access link in response to the failure of the access link. In practice, a new access link may be regenerated as an access link according to the classified usage information corresponding to the access link.
And a second sub-step of controlling the mobile robot to replace the two-dimension code of the power equipment posted by the target power equipment in response to the completion of the access link processing or the indication of the contamination of the two-dimension code of the power equipment by the identification result. The replacement process may be to control the mobile robot to print a new two-dimensional code of the power equipment to replace the two-dimensional code of the power equipment posted by the target power equipment.
The related content in the first step to the third step is taken as an invention point of the present disclosure, which solves the third technical problem mentioned in the background art, namely, the two-dimensional code posted on the surface of the device may be corroded or stained due to the influence of environmental factors (such as temperature and humidity), so that the two-dimensional code cannot be scanned, and thus the device information cannot be obtained. Factors that cause the failure to acquire the device information are often as follows: due to the influence of environmental factors (such as temperature and humidity), the two-dimensional code posted on the surface of the device may be corroded or stained, so that the two-dimensional code cannot be scanned, and thus the device information cannot be acquired. If the above factors are solved, the effect of avoiding the failure to acquire the equipment information can be achieved. In order to achieve the effect, firstly, in response to the current time being a preset acquisition time, the associated shooting equipment is controlled to shoot the two-dimension code of the power equipment posted by the target power equipment, so that a two-dimension code photo of the power equipment is generated. Therefore, a complete picture of the posted two-dimension code of the power equipment can be acquired. And secondly, performing offset recognition processing on the two-dimensional code photo of the power equipment to generate a recognition result. Thus, whether the two-dimensional code needs to be replaced or not can be determined through the identification result. Thirdly, according to the identification result, controlling the mobile robot to replace the two-dimension code of the electric power equipment posted by the target electric power equipment, including: first, for each of the above-described individual access links, the following processing steps are performed: and determining whether the corresponding classified usage information of the access link exists updated information. Thus, it can be determined whether the classification usage information is updated. Secondly, in response to the presence update information, updating whether the corresponding classified usage information of the access link exists or not. Therefore, the classification use information can be updated, and the acquired information is prevented from being invalid information. Then, determining whether the access link is invalid; and in response to the failure of the access link, updating the access link according to the classified use information corresponding to the access link. Therefore, the invalid access link can be updated, and the situation that the classified use information cannot be accessed is avoided. And finally, in response to the completion of the access link processing or the indication of the dirty of the two-dimension code of the power equipment by the identification result, controlling the mobile robot to replace the two-dimension code of the power equipment posted by the target power equipment. Therefore, the two-dimensional code stained or updated with the access link can be replaced, and the situation that the two-dimensional code cannot be scanned due to stain is avoided, so that equipment information cannot be obtained.
The above embodiments of the present disclosure have the following advantages: according to the two-dimensional code generation method for the power equipment, disclosed by the embodiment of the invention, the data leakage can be avoided, the information security is improved, and the waste of paper resources is reduced. Specifically, the reasons for the data leakage, the low information security, and the waste of paper resources are: different terminals access the database storing all the equipment information, and the same terminal can access all the equipment information, so that the information security of the equipment information is poor and the data is leaked; when a plurality of two-dimensional codes representing different equipment information on the surface of the power equipment are scanned, the two-dimensional codes are required to be printed, and waste of paper resources is caused. Based on this, the power device two-dimensional code generating method of some embodiments of the present disclosure first establishes a communication connection with a target power device in response to receiving a communication connection request corresponding to the target power device. Thereby, a communication connection can be established with the above-mentioned power equipment when a new power equipment is detected. Next, device information of the target power device is acquired. Thereby, all the device information of the power device can be acquired. And then, inputting the equipment use information and the access right information set into a pre-trained information classification model to obtain a classification use information set. All the acquired device information can be classified according to the rights. Then, for each access right information in the set of access right information included in the above-mentioned device information, the following generation step is performed: first, the classification information corresponding to the access right information is selected from the classification information set as target information. Thereby, the device information corresponding to the access right information can be selected. Second, an access link is generated based on the target usage information and the access right information. Therefore, the access right and the equipment information can be bound, so that the equipment information accessed by different terminals can be limited, the information security of the equipment information can be improved, and the data leakage is avoided. And then, generating the two-dimension code of the power equipment according to each generated access link. Therefore, access links of different device information can be combined into the same two-dimensional code, so that only one two-dimensional code can be printed for posting, and waste of paper resources is reduced. And finally, controlling the associated mobile robot to post the two-dimension code of the power equipment. Therefore, data leakage is avoided, information security is improved, and waste of paper resources is reduced.
With further reference to fig. 2, as an implementation of the method shown in the foregoing figures, the present disclosure provides some embodiments of a two-dimensional code generating apparatus for electric power equipment, which corresponds to those method embodiments shown in fig. 1, and may be applied to various electronic devices in particular.
As shown in fig. 2, the power device two-dimensional code generating apparatus 200 of some embodiments includes: a setup unit 201, an acquisition unit 202, an input unit 203, an execution unit 204, a generation unit 205, and a control unit 206. Wherein the establishing unit 201 is configured to establish a communication connection with a target power device in response to receiving a communication connection request corresponding to the target power device; the acquisition unit 202 is configured to acquire device information of the above-described target power device, wherein the above-described device information includes device usage information and an access right information set; the input unit 203 is configured to input the above-mentioned device usage information and the above-mentioned access right information set into a pre-trained information classification model, resulting in a classification usage information set; the execution unit 204 is configured to execute, for each access right information in the set of access right information included in the above-described device information, the following generation steps: selecting classified usage information corresponding to the access right information from the classified usage information set as target usage information; generating an access link according to the target use information and the access right information; the generating unit 205 is configured to generate a two-dimensional code of the power device according to the generated access links; the control unit 206 is configured to control the associated mobile robot to post the above-described power device two-dimensional code.
It will be appreciated that the elements described in the power device two-dimensional code generation apparatus 200 correspond to the respective steps in the method described with reference to fig. 1. Thus, the operations, features and the beneficial effects described above for the method are equally applicable to the power device two-dimensional code generating apparatus 200 and the units contained therein, and are not described herein again.
Referring now to fig. 3, a schematic diagram of an electronic device 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means 301 (e.g., a central processing unit, a graphics processor, etc.) that may perform various suitable actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 shows an electronic device 300 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 3 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 309, or from storage device 308, or from ROM 302. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing means 301.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving a communication connection request corresponding to a target power device, establishing communication connection with the target power device; acquiring device information of the target power device, wherein the device information comprises device use information and an access right information set; inputting the equipment use information and the access right information set into a pre-trained information classification model to obtain a classification use information set; for each access right information in the set of access right information included in the above-mentioned device information, the following generation step is performed: selecting classified usage information corresponding to the access right information from the classified usage information set as target usage information; generating an access link according to the target use information and the access right information; generating a two-dimensional code of the power equipment according to each generated access link; and controlling the associated mobile robot to post the two-dimension code of the power equipment.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a setup unit, an acquisition unit, an input unit, an execution unit, a generation unit, and a control unit. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the establishing unit may also be described as "a unit that establishes a communication connection with a target power device in response to receiving a communication connection request corresponding to the target power device".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (8)

1. A method for generating a two-dimensional code of power equipment comprises the following steps:
in response to receiving a communication connection request corresponding to a target power device, establishing communication connection with the target power device;
acquiring equipment information of the target power equipment, wherein the equipment information comprises equipment use information and an access right information set;
inputting the equipment use information and the access right information set into a pre-trained information classification model to obtain a classification use information set;
for each access right information in the set of access right information included in the device information, performing the generating step of:
selecting classified usage information corresponding to the access right information from the classified usage information set as target usage information;
generating an access link according to the target use information and the access right information;
generating a two-dimensional code of the power equipment according to each generated access link;
and controlling the associated mobile robot to post the two-dimension code of the power equipment.
2. The method of claim 1, wherein the establishing a communication connection with the target power device in response to receiving a communication connection request corresponding to the target power device comprises:
Responding to a received communication connection request corresponding to the target power equipment, and analyzing the communication connection request to generate analysis information;
and establishing communication connection with the target power equipment according to the analysis information.
3. The method of claim 1, wherein the generating the power device two-dimensional code from the generated access links comprises:
acquiring an information display interface template;
adding each access link into the information display interface template to update the information display interface, thereby obtaining an updated display interface;
generating a display interface link according to the updated display interface;
and generating the two-dimension code of the power equipment according to the display interface link.
4. The method of claim 1, wherein the controlling the associated mobile robot to post the power device two-dimensional code comprises:
controlling the associated mobile robot to print the two-dimensional code of the power equipment;
positioning the target power equipment to generate equipment position information;
controlling the mobile robot to move to the position represented by the equipment position information;
And controlling the mobile robot to post the two-dimension code of the power equipment to a preset posting area on the surface of the target power equipment.
5. The method of claim 1, wherein the method further comprises:
determining terminal information corresponding to an access request terminal in response to detection of a scanning operation for the two-dimension code of the power equipment;
determining the access right corresponding to the access request terminal according to the terminal information;
and responding to the access permission to indicate that the access request terminal does not have the access permission, and prohibiting the access request terminal from accessing.
6. An electrical equipment two-dimensional code generating device, comprising:
an establishing unit configured to establish a communication connection with a target power device in response to receiving a communication connection request corresponding to the target power device;
an acquisition unit configured to acquire device information of the target power device, wherein the device information includes device usage information and an access right information set;
an input unit configured to input the device usage information and the access right information set into a pre-trained information classification model, resulting in a classification usage information set;
An execution unit configured to execute, for each access right information in the set of access right information included in the device information, the following generation step: selecting classified usage information corresponding to the access right information from the classified usage information set as target usage information; generating an access link according to the target use information and the access right information;
a generation unit configured to generate a power device two-dimensional code according to the generated access links;
and the control unit is configured to control the associated mobile robot to post the two-dimension code of the power equipment.
7. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1 to 5.
8. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1 to 5.
CN202311126797.5A 2023-09-04 2023-09-04 Method and device for generating two-dimension code of power equipment, electronic equipment and readable medium Pending CN116882442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311126797.5A CN116882442A (en) 2023-09-04 2023-09-04 Method and device for generating two-dimension code of power equipment, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311126797.5A CN116882442A (en) 2023-09-04 2023-09-04 Method and device for generating two-dimension code of power equipment, electronic equipment and readable medium

Publications (1)

Publication Number Publication Date
CN116882442A true CN116882442A (en) 2023-10-13

Family

ID=88270365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311126797.5A Pending CN116882442A (en) 2023-09-04 2023-09-04 Method and device for generating two-dimension code of power equipment, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN116882442A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103390258A (en) * 2013-06-28 2013-11-13 环境保护部华南环境科学研究所 Updating and inquiring method and management system of laboratory object information and based on information code
CN105353662A (en) * 2015-12-04 2016-02-24 上海金禾实业发展有限公司 Intelligent cake sale device, working method and monitoring method of intelligent cake sale device
CN107194588A (en) * 2017-05-24 2017-09-22 中铁建设投资集团有限公司 A kind of bridge construction management system and method based on Quick Response Code and BIM technology
CN108052663A (en) * 2017-01-17 2018-05-18 海南亚元防伪技术研究所(普通合伙) A kind of application process and device of shared Quick Response Code
CN112288064A (en) * 2020-11-24 2021-01-29 汕头东风印刷股份有限公司 Dynamic two-dimensional code management system for cargo management and cargo management method
CN114039844A (en) * 2021-10-26 2022-02-11 深圳毅芯半导体有限公司 Internet of things equipment management method, system and device
KR20220077232A (en) * 2020-11-30 2022-06-09 주식회사 티엠솔루션스 Power plant maintenance system using smart device
CN115238923A (en) * 2022-07-19 2022-10-25 聂永云 Equipment management system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103390258A (en) * 2013-06-28 2013-11-13 环境保护部华南环境科学研究所 Updating and inquiring method and management system of laboratory object information and based on information code
CN105353662A (en) * 2015-12-04 2016-02-24 上海金禾实业发展有限公司 Intelligent cake sale device, working method and monitoring method of intelligent cake sale device
CN108052663A (en) * 2017-01-17 2018-05-18 海南亚元防伪技术研究所(普通合伙) A kind of application process and device of shared Quick Response Code
CN107194588A (en) * 2017-05-24 2017-09-22 中铁建设投资集团有限公司 A kind of bridge construction management system and method based on Quick Response Code and BIM technology
CN112288064A (en) * 2020-11-24 2021-01-29 汕头东风印刷股份有限公司 Dynamic two-dimensional code management system for cargo management and cargo management method
KR20220077232A (en) * 2020-11-30 2022-06-09 주식회사 티엠솔루션스 Power plant maintenance system using smart device
CN114039844A (en) * 2021-10-26 2022-02-11 深圳毅芯半导体有限公司 Internet of things equipment management method, system and device
CN115238923A (en) * 2022-07-19 2022-10-25 聂永云 Equipment management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
草料二维码官方账号: "怎么将网址链接生成二维码", pages 1 - 3, Retrieved from the Internet <URL:https://baijiahao.baidu.com/s?id=1760223665787389268&wfr=spider&for=pc> *

Similar Documents

Publication Publication Date Title
CN111459364B (en) Icon updating method and device and electronic equipment
CN111598006A (en) Method and device for labeling objects
CN110781437A (en) Method and device for acquiring webpage image loading duration and electronic equipment
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN110765752B (en) Test question generation method and device, electronic equipment and computer readable storage medium
CN111209432A (en) Information acquisition method and device, electronic equipment and computer readable medium
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN111311358B (en) Information processing method and device and electronic equipment
CN111708680A (en) Error reporting information analysis method and device, electronic equipment and storage medium
CN110852242A (en) Watermark identification method, device, equipment and storage medium based on multi-scale network
CN115567937A (en) Short message verification method and device, storage medium and electronic equipment
CN111680754B (en) Image classification method, device, electronic equipment and computer readable storage medium
CN113033552B (en) Text recognition method and device and electronic equipment
CN116882442A (en) Method and device for generating two-dimension code of power equipment, electronic equipment and readable medium
CN110334763B (en) Model data file generation method, model data file generation device, model data file identification device, model data file generation apparatus, model data file identification apparatus, and model data file identification medium
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN113486749A (en) Image data collection method, device, electronic equipment and computer readable medium
CN111240786A (en) Walkthrough method and device, electronic equipment and storage medium
CN110991312A (en) Method, apparatus, electronic device, and medium for generating detection information
CN114125485B (en) Image processing method, device, equipment and medium
CN114359673B (en) Small sample smoke detection method, device and equipment based on metric learning
CN117132245B (en) Method, device, equipment and readable medium for reorganizing online article acquisition business process
CN116561015B (en) Map application testing method, electronic device and computer readable medium
CN117408646B (en) Electronic signature signing method, electronic signature signing device, electronic equipment and computer readable medium
CN117690063B (en) Cable line detection method, device, electronic equipment and computer readable medium

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