[go: up one dir, main page]

CN118172791A - Design drawing detection method and device, electronic equipment, medium and program product - Google Patents

Design drawing detection method and device, electronic equipment, medium and program product Download PDF

Info

Publication number
CN118172791A
CN118172791A CN202310495997.1A CN202310495997A CN118172791A CN 118172791 A CN118172791 A CN 118172791A CN 202310495997 A CN202310495997 A CN 202310495997A CN 118172791 A CN118172791 A CN 118172791A
Authority
CN
China
Prior art keywords
design drawing
attribute information
detection
device attribute
pin
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
CN202310495997.1A
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.)
Guangdong Meichuangxi Technology Co ltd
Original Assignee
Guangdong Meichuangxi 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 Guangdong Meichuangxi Technology Co ltd filed Critical Guangdong Meichuangxi Technology Co ltd
Priority to CN202310495997.1A priority Critical patent/CN118172791A/en
Publication of CN118172791A publication Critical patent/CN118172791A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/42Document-oriented image-based pattern recognition based on the type of document
    • G06V30/422Technical drawings; Geographical maps

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to the field of design drawing processing, and provides a design drawing detection method, a device, electronic equipment, a medium and a program product, wherein the method comprises the following steps: acquiring an identity of an archiving drawing contained in first device attribute information of the design drawing; the design drawing is obtained by adjusting based on the archiving drawing; determining second device attribute information of the archiving drawing according to the identity; and detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result. According to the application, the second device attribute information of the archiving drawing is determined through the identity mark in the first device attribute information of the design drawing, so that the design drawing can be accurately detected according to the first device attribute information and the second device attribute information, the condition of missing detection when the electronic design drawing is manually checked can be avoided, and the defective rate of products produced based on the electronic design drawing is reduced.

Description

Design drawing detection method and device, electronic equipment, medium and program product
Technical Field
The present application relates to the field of design drawing processing, and in particular, to a method and apparatus for detecting a design drawing, an electronic device, a medium, and a program product.
Background
With the electronic design drawings being used in mass production, users often need to refer to the past electronic design drawings when facing product iteration or new product development, and then convert the electronic design drawings into new drawings after modification. After the drawing is modified, a user needs to check all devices on the drawing, and the condition of missing detection easily occurs when the electronic design drawing is manually checked, so that the defective rate of products produced based on the electronic design drawing with errors is high.
Disclosure of Invention
The present application is directed to solving at least one of the technical problems existing in the related art. Therefore, the application provides a design drawing detection method, which can avoid the condition of missing detection when the electronic design drawing is manually checked, and further reduce the defective rate of products produced based on the electronic design drawing.
The application also provides a design drawing detection device, electronic equipment, a medium and a program product.
The design drawing detection method according to the embodiment of the first aspect of the application comprises the following steps:
acquiring an identity of an archiving drawing contained in first device attribute information of the design drawing; the design drawing is obtained by adjusting based on the archiving drawing;
determining second device attribute information of the archiving drawing according to the identity;
and detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result.
According to the design drawing detection method, the second device attribute information of the archiving drawing is determined through the identity in the first device attribute information of the design drawing, so that the design drawing can be accurately detected according to the first device attribute information and the second device attribute information, the condition of missing detection when the electronic design drawing is manually checked can be avoided, and the defective rate of products produced based on the electronic design drawing is reduced.
According to an embodiment of the present application, the first device attribute information includes a position number of each device in the design drawing, a pin connection state of each device in the design drawing, a name of each port in the design drawing, a name of each network tag in the design drawing, a name of each device, a material number of each device, a polarity connection state of a pin of each device in the design drawing, and an identity of the archiving drawing;
The second device attribute information comprises the position number of each device in the archiving drawing, the pin connection state of each device in the archiving drawing, the name of each port in the archiving drawing, the name of each network tag in the archiving drawing, the name of each device, the material number of each device, the polarity connection state of the pin of each device in the design drawing and the identity of the archiving drawing.
According to an embodiment of the present application, the detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result includes:
performing repeated detection on the bit numbers of all devices in the design drawing based on the bit numbers of all devices in the first device attribute information;
Performing pin connection detection on the design drawing based on the pin connection state of each device in the first device attribute information;
performing port detection on the design drawing based on the names of all ports in the first device attribute information;
performing network label detection on the design drawing based on the names of all network labels in the first device attribute information;
Performing circuit detection on the design drawing based on the names and the bit numbers of all devices in the second device attribute information and the names and the bit numbers of all devices in the first device attribute information; any of the circuits is comprised of at least one of the devices;
detecting the device number of the design drawing based on the material number of each device in the first device attribute information;
Detecting the polarity connection state of the pins of the devices in the design drawing based on the polarity connection state of the pins of the devices in the first device attribute information in the design drawing;
Under the condition that the results of the repeated detection of the bit number, the connection detection of the pin, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin are all normal, determining that the detection result is normal;
And determining that the detection result is abnormal under the condition that any result of the repeated detection of the bit number, the connection detection of the pin, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin is abnormal.
According to one embodiment of the present application, the performing, based on the bit numbers of the devices in the first device attribute information, bit number repetition detection on the design drawing includes:
Comparing the bit numbers of the devices in the attribute information of the first device with each other;
if the bit numbers of any two devices in the first device attribute information are the same, determining that the repeated bit number detection result of the design drawing is abnormal.
According to an embodiment of the present application, the performing pin connection detection on the design drawing based on the pin connection state of each device in the first device attribute information includes:
if no connection exists between any called pin and any other called pin in the pin connection state of the first device attribute information, determining that the result of pin connection detection of the design drawing is abnormal.
According to an embodiment of the present application, the performing port detection on the design drawing based on the names of the ports in the first device attribute information includes:
If it is determined that any port of all ports of the first device attribute information is empty in name and the number of ports with the same name in all ports is greater than a preset threshold or the number of ports is odd, determining that the result of port detection of the design drawing is abnormal.
According to an embodiment of the present application, the network label detection for the design drawing based on the name of each network label in the first device attribute information includes:
And if the name of any network tag in all the network tags of the first device attribute information is determined to be empty, determining that the network tag detection result of the design drawing is abnormal.
According to one embodiment of the present application, the circuit detection for the design drawing based on the name and the bit number of each device in the second device attribute information and the name and the bit number of each device in the first device attribute information includes:
comparing the name of each device in the second device attribute information with the name of each device in the first device attribute information, and comparing the bit number of each device in the second device attribute information with the bit number of each device in the first device attribute information;
If any one of the devices of the first device attribute information does not exist in the devices of the second device attribute information, or any one of the devices of the second device attribute information does not exist in the devices of the first device attribute information, determining that the result of circuit detection of the design drawing is abnormal.
According to an embodiment of the present application, the device number detection for the design drawing based on the material numbers of the devices in the first device attribute information includes:
Obtaining the warehouse-in number of each device from the device warehouse;
The material number of each device in the first device attribute information is respectively compared with the respective warehouse-in number and preset number information;
If any result in the number comparison of each device is determined to be that the material number of the device is different from the corresponding warehouse-in number or the material number of the device is the same as the preset number information, determining that the device number detection result of the design drawing is abnormal.
According to one embodiment of the present application, the detecting the polarity connection state of the device pins on the design drawing based on the polarity connection state of the pins of each device in the first device attribute information includes:
acquiring the allowed access network of the pins of each device from a preset pin configuration file;
If it is determined that the polarity access state of the pin of any device is the allowed access network of the pin of any device in each device of the first device attribute information, determining that the result of detecting the polarity connection state of the pin of the device of the design drawing is abnormal.
According to an embodiment of the present application, after the detecting the design drawing to obtain a detection result, the method further includes:
and if the detection result is abnormal, outputting devices corresponding to abnormal matters in the detection result in the design drawing and the archiving drawing in a correlation way.
An embodiment of the design drawing detection device according to the second aspect of the present application includes:
the acquisition module is used for acquiring the identity of the archiving drawing contained in the first device attribute information of the design drawing; the design drawing is obtained by adjusting based on the archiving drawing;
the determining module is used for determining second device attribute information of the archiving drawing according to the identity;
and the detection module is used for detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result.
An electronic device according to an embodiment of the third aspect of the present application includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method for detecting a design drawing as described in any one of the above when executing the program.
A medium according to an embodiment of the fourth aspect of the present application is a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of detecting a design drawing as described in any of the above.
A program product according to an embodiment of the fifth aspect of the present application is a computer program product comprising a computer program which when executed by a processor implements a method for detecting a design drawing as described above.
The above technical solutions in the embodiments of the present application have at least one of the following technical effects:
The second device attribute information of the filing drawing is determined through the identity in the first device attribute information of the design drawing, and then the design drawing can be accurately detected according to the first device attribute information and the second device attribute information, so that the condition of missing inspection during manual inspection of the electronic design drawing can be avoided, and the defective rate of products produced based on the electronic design drawing is reduced.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
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 a schematic flow chart of a design drawing detection method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of detecting a design drawing based on second device attribute information and first device attribute information in the design drawing detection method provided by the embodiment of the application;
FIG. 3 is a schematic diagram of a scenario in which a preset identifier exists in a design drawing in the design drawing detection method provided by the embodiment of the application;
FIG. 4 is a schematic diagram of a scenario in which device position numbers are repeated in a design drawing detection method provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of abnormal event output information when there is a repetition of device bit numbers in a design drawing detection method provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a scenario in which a pin connection is abnormal in a design drawing detection method provided by an embodiment of the present application;
fig. 7 is a schematic diagram of a scenario in which a polarity connection state of a device pin is abnormal in a design drawing detection method provided by an embodiment of the present application;
FIG. 8 is a second flow chart of a design drawing detection method according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of a design drawing detection device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device provided by the present application.
Detailed Description
Embodiments of the present application are described in further detail below with reference to the accompanying drawings and examples. The following examples are illustrative of the application but are not intended to limit the scope of the application.
In the description of the embodiments of the present application, it should be noted that the terms "center", "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the embodiments of the present application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In describing embodiments of the present application, it should be noted that, unless explicitly stated and limited otherwise, the terms "coupled," "coupled," and "connected" should be construed broadly, and may be either a fixed connection, a removable connection, or an integral connection, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium. The specific meaning of the above terms in embodiments of the present application will be understood in detail by those of ordinary skill in the art.
In embodiments of the application, unless expressly specified and limited otherwise, a first feature "up" or "down" on a second feature may be that the first and second features are in direct contact, or that the first and second features are in indirect contact via an intervening medium. Moreover, a first feature being "above," "over" and "on" a second feature may be a first feature being directly above or obliquely above the second feature, or simply indicating that the first feature is level higher than the second feature. The first feature being "under", "below" and "beneath" the second feature may be the first feature being directly under or obliquely below the second feature, or simply indicating that the first feature is less level than the second feature.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the embodiments of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Fig. 1 is one of flow diagrams of a design drawing detection method according to an embodiment of the present application, as shown in fig. 1, the design drawing detection method includes:
Step 110, an identification of an archiving drawing contained in the first device attribute information of the design drawing is obtained.
It should be noted that, the execution body of the design drawing detection method provided in the embodiment of the present application may be a server, a computer device, such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like.
The present application may provide software for performing the detection of the design drawing, which may be provided in the execution body described above, and may be used to perform the design drawing detection method in the present application.
The design drawing is obtained by adjusting any archiving drawing in the drawing library. The method is input for designing the drawing detection method.
The drawing library is a database which is pre-constructed and used for storing archive drawings.
The archiving drawings are drawings in an electronic form which are archived in a drawing library after passing the auditing.
And when archiving is carried out, the software writes the name of the archiving drawing into each piece of information of the device attribute information (hereinafter referred to as second device attribute information) to be used as an identity of the archiving drawing, so that the association between the identity and the archiving drawing is realized. The method and the device have the advantages that the follow-up related personnel can reversely check the device attribute information in the record file of the 'xml' format file of the corresponding drawing through inputting the identity, namely archiving the drawing name, in the software, so that the follow-up calling is convenient. The device attribute information in the record file is the device attribute information of the archiving drawing, namely the second device attribute information.
The design drawing in the application is an electronic drawing.
The identity mark can be arranged in each piece of information of the attribute information of the device and used as the identity information of an archiving drawing.
It should be noted that, when the user invokes the archiving drawing to adjust to obtain a design drawing, the design drawing also has corresponding device attribute information (hereinafter referred to as first device attribute information), and the first device attribute information includes an identity of the design drawing corresponding to the archiving drawing.
The identification mark in the application can be a mark related to the name of the archiving drawing.
Therefore, the archiving drawing and the identity mark have an association relation, the corresponding archiving drawing can be queried based on the identity mark, and the device attribute information (namely the second device attribute information) of the archiving drawing can be obtained.
The device attribute information in the application can be data information carried when the design drawing is formed in the software, and can also be data information obtained by identifying the design drawing by the software in an image identification mode.
In some embodiments, the detection of the design drawing may be performed through data information carried in the design drawing.
In some embodiments, the detection of the design drawing may be performed by identifying data information derived from the design drawing.
In some embodiments, the detection of the design drawing may also be performed by combining data information carried in the design drawing with data information obtained by identifying the design drawing.
The application focuses on how to detect, and the data extraction process in the design drawing is not particularly limited, so long as the data information extraction of the design drawing can be completed.
Each device in the design drawing has certain attribute information, and has the attribute information input by related personnel according to the requirements when the design is carried out.
In some embodiments, the connection line also belongs to a device, and the software may obtain the connection state of the device, that is, obtain whether the connection line is connected with any two interfaces (an input end, an output end or other functional ends required according to actual requirements) of other devices.
The first device attribute information may include, but is not limited to, information such as a bit number of each device in the design drawing, a pin connection state of each device, a name of each port, a name of each network tag, a name of each device, a material number of each device, a polarity connection state of a pin of each device, and an identity of an archiving drawing.
The second device attribute information may include, but is not limited to, a location number of each device in the archiving drawing, a pin connection state of each device, a name of each port, a name of each network tag, a name of each device, a material number of each device, a polarity connection state of a pin of each device in the design drawing, and an identity of the archiving drawing.
And 120, determining second device attribute information of the archiving drawing according to the identity.
When the drawing is archived to the drawing library, the software can record the device attribute information of all devices in the drawing.
Because each drawing before warehousing has the information of drawing names and the position numbers of the devices in the design drawing, the pin connection state of the devices in the design drawing, the names of the ports in the design drawing, the names of the network labels in the design drawing, the names of the devices, the material numbers of the devices, the polar connection state of the pins of the devices in the design drawing and the like.
And the design stage requires that each function is separated and independently framed, and the function modules are in butt joint through ports.
When the drawing is put in storage, a special manager manages the drawing, and the drawing can be allowed to be put in storage after the drawing is checked manually and confirmed to be correct. Therefore, the drawing in warehouse will not have two identical materials, even if the same type of device is used, the position numbers will be different.
When the device is put in storage, information such as the drawing name, the position number of each device in a design drawing, the connection state of pins of each device in the design drawing, the name of each port in the design drawing, the name of each network tag in the design drawing, the name of each device, the material number of each device, the polar connection state of pins of each device in the design drawing and the like is captured through software, the name of the archived drawing is used as an identity, and after the identity is associated with the information, the attribute information of the first device is stored in an 'xml' format file to form a record file. And recording device attribute information in the file, namely device attribute information of the archiving drawing, namely second device attribute information. It should be noted that, when a drawing is put in storage, a ". Xml" format file is generated, that is, an archiving drawing corresponds to a recording file.
After the identity is obtained, the corresponding archiving drawing can be queried according to the association relationship between the identity and the archiving drawing.
Further, device attribute information of the queried archive drawing, namely second device attribute information, is obtained.
And 130, detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result.
After the second device attribute information is obtained, the design drawing can be detected according to the device attribute information and the first device attribute information.
The detection may include bit number repetition detection, pin connection detection, port detection, network tag detection, circuit detection, device number detection, and polarity connection state detection of the device pins.
The bit number repetition detection is used for detecting whether the situation of the bit number repetition exists in all devices of the design drawing, if so, the situation is abnormal, and otherwise, the situation is normal.
The pin connection detection is used for detecting whether the pin is not connected in all devices of the design drawing, if so, the pin connection detection is abnormal, and otherwise, the pin connection detection is normal.
The port detection is used for detecting whether naming errors exist in all ports of the design drawing, the number of the ports is not matched or the ports with the same naming are in a plurality of the same naming, if the naming errors exist, the ports are abnormal, and otherwise, the ports are normal.
The network label detection is used for detecting whether naming errors exist in all network labels of the design drawing, if so, the network labels are abnormal, and otherwise, the network labels are normal.
The circuit detects whether all devices used for detecting the design drawing correspond to the devices in the record file one by one, if all the devices are uniform and correspond one by one, the circuit is normal, and otherwise, the circuit is abnormal.
The device number detection is used for detecting whether the number information is abnormal in all devices of the design drawing, if so, the device number detection is abnormal, and otherwise, the device number detection is normal.
The polarity connection state detection of the device pins is used for detecting whether the polarity connection state is abnormal in all the device pins of the design drawing, if so, the polarity connection state is abnormal, and otherwise, the polarity connection state is normal.
The detection result is normal or abnormal.
Under the condition that the results of bit number repetition detection, pin connection detection, port detection, network tag detection, circuit detection, device number detection and device pin polarity connection state detection are all normal, determining that the detection result is normal;
And under the condition that any result of the bit number repetition detection, the pin connection detection, the port detection, the network tag detection, the circuit detection, the device number detection and the polarity connection state detection of the device pins is abnormal, determining that the detection result is abnormal.
According to the design drawing detection method, the second device attribute information of the archiving drawing is determined through the identity in the first device attribute information of the design drawing, so that the design drawing can be accurately detected according to the first device attribute information and the second device attribute information, the condition of missing detection when the electronic design drawing is manually checked can be avoided, and the defective rate of products produced based on the electronic design drawing is reduced.
Based on the above embodiment, fig. 2 is a schematic flow chart of detecting a design drawing based on the second device attribute information and the first device attribute information in the method for detecting a design drawing according to the embodiment of the present application, as shown in fig. 2, the step 130 may include:
Step 131, performing repeated detection on the position numbers of the devices in the design drawing based on the position numbers of the devices in the first device attribute information;
The application can realize repeated detection of the bit numbers of the design drawings by determining whether the bit numbers of all devices in the first device attribute information are repeated.
The result of repeated detection of the bit number can be normal or abnormal.
Step 132, detecting pin connection lines of the design drawing based on the pin connection line state of each device in the first device attribute information;
In actual design, pins of some devices are not used, connection is not needed, and related personnel can set preset marks at corresponding pins.
If the pin of the device is detected to have a preset mark, for example, an 'X', the pin connection detection is not needed.
The application can realize the pin connection detection of the design drawing by determining whether any pin and any other called pin are not connected in the called pins of each device of the first device attribute information.
The application can determine whether the corresponding pin is called or not by identifying whether each pin in the design drawing has a preset mark or not. The preset identifier may be an identifier set according to actual requirements, and is used for indicating whether the pin is called.
If the pin has a preset identifier in the design drawing, determining that the pin is not called, otherwise, determining that the pin is called.
The result of the pin connection detection can be normal or abnormal.
Referring to fig. 3, fig. 3 is a schematic diagram of a scenario in which a preset identifier exists in a design drawing in the design drawing detection method provided by the embodiment of the present application, and as shown in fig. 3, a device with a bit number E1 has 6 pins, which are respectively pin 11, pin 12, pin 13, pin 14, pin 15 and pin 16.
If the pin 14 is provided with the preset identifier "X", it can be determined that the pin 14 is not called, and the remaining pins 11, 12, 13, 15 and 16 are all called.
Step 133, carrying out port detection on the design drawing based on the names of all ports in the attribute information of the first device;
the application can realize the port detection of the design drawing by determining whether the ports of the attribute information of the first device have empty names, the number of the ports is not matched or the ports with a plurality of the same names.
The result of the port detection may be normal or abnormal.
Step 134, network label detection is carried out on the design drawing based on the names of all the network labels in the attribute information of the first device;
The application can realize the network label detection of the design drawing by determining whether the network labels with the names of empty exist in the network labels of the attribute information of the first device.
The network tag detection result may be normal or abnormal.
Step 135, performing circuit detection on the design drawing based on the names and the bit numbers of the devices in the second device attribute information and the names and the bit numbers of the devices in the first device attribute information;
Any circuit is composed of at least one device;
The application can determine whether a newly added or deleted device exists in the design drawing by comparing the name of each device in the second device attribute information with the name of each device in the first device attribute information and comparing the bit number of each device in the second device attribute information with the bit number of each device in the first device attribute information, thereby realizing the circuit detection of the design drawing.
The result of the circuit detection can be normal or abnormal.
136, Detecting the device number of the design drawing based on the material numbers of the devices in the first device attribute information;
The application can realize the device number detection of the design drawing by comparing the material number of each device in the first device attribute information with the warehouse-in number corresponding to the device in the device warehouse.
The device library is a database which is pre-built and maintained with the warehouse-in numbers of various devices.
The result of the device number detection may be normal or abnormal.
Step 137, detecting the polarity connection state of the pins of the device on the design drawing based on the polarity connection state of the pins of each device in the design drawing in the first device attribute information;
Since some devices are polarized (e.g., positive/negative, anode/cathode), reversing the polarity at design time will result in failure of the function and thus test failure, and delay development progress. It is therefore necessary to detect the polarity of a device having polarity and output a device having a wrong polarity connection.
Therefore, the application can realize the detection of the polarity connection state of the device pins of the design drawing by determining whether the polarity connection state of the pins of each device in the first device attribute information in the design drawing is the allowed access network accessed to the corresponding pins.
The application is provided with a permission access network of each pin in all devices in advance, if the pin is accessed to the permission access network, the polarity of the pin is normal, and if the pin is accessed to a non-permission access network, the polarity of the pin is wrong.
The above access allowed network and the access not allowed network may be networks summarized according to human experience.
The result of the detection of the polarity connection state of the device pins may be normal or abnormal.
Step 138, determining that the detection result is normal under the condition that the results of the bit number repetition detection, the pin connection detection, the port detection, the network tag detection, the circuit detection, the device number detection and the device pin polarity connection state detection are all normal;
After the above repeated detection of the bit number, the pin connection detection, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin are completed, if the repeated detection of the bit number, the pin connection detection, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin are determined to be normal, the detection result is determined to be normal.
Step 139, if any result of the bit number repetition detection, the pin connection detection, the port detection, the network tag detection, the circuit detection, the device number detection and the polarity connection state detection of the device pin is abnormal, determining that the detection result is abnormal.
After the above repeated detection of the bit number, the pin connection detection, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin are completed, if any result of the repeated detection of the bit number, the pin connection detection, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin is determined to be abnormal, the detection result is determined to be abnormal.
For example: if the repeated detection result of the bit number is abnormal, and after the detection of the pin connection, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin are determined to be normal, the detection result is abnormal.
Also for example: if the repeated detection result of the bit number is abnormal, and after the detection of the pin connection state, the port detection, the network tag detection, the circuit detection and the device number detection and the polar connection state detection of the device pin are determined, if the repeated detection of the bit number, the pin connection detection, the port detection, the network tag detection, the circuit detection and the device number detection are all normal, but the detection result of the polar connection state detection of the device pin is abnormal, the detection result is abnormal.
According to the embodiment, through repeated detection of the position number, pin connection detection, port detection, network tag detection, circuit detection, device number detection, polarity connection state detection of the device pins and other detection on the design drawing, the detection of the design drawing is performed in an all-around manner, an accurate detection result is obtained, abnormal matters are output for reference adjustment when the detection result is abnormal, the condition of missing detection during manual inspection of the electronic design drawing is avoided, and the defective rate of products produced based on the electronic design drawing is reduced.
In some embodiments, the step 131 may include:
step 1311, comparing the bit numbers of the devices in the attribute information of the first devices in pairs;
In actual production, two devices with the same bit number cannot appear in one electronic design drawing, otherwise, the production end cannot know the position corresponding to the bit number of one device to be placed, so that confusion of the production end occurs, and normal production cannot be realized. Based on which the design end will be returned for re-modification, the project progress is held off.
Therefore, repeated detection of the bit number of the device is required, and error reporting is carried out on the repeated bit numbers in the design drawing.
The application can compare the bit numbers of the devices in the attribute information of the first device in pairs to determine whether any two identical bit numbers exist in the bit numbers of the devices.
The application can compare the bit number of each device with the bit numbers of other devices one by one to determine whether the bit number of the device is the same as the bit number of any other device.
Step 1312, if the bit numbers of any two devices in the first device attribute information are the same, determining that the result of repeated detection of the bit numbers of the design drawing is abnormal.
After the comparison is completed, if the bit numbers of all devices in the first device attribute information are different from the bit numbers of any other device, determining that the repeated detection result of the bit numbers of the design drawing is normal.
If the bit numbers of any two devices in the first device attribute information are the same, the repeated detection result of the bit numbers of the design drawing is abnormal.
If the result of the repeated detection of the bit numbers of the design drawing is abnormal, the abnormality cause, the bit number (as an abnormality target), the material number, and the position thereof in the design drawing of the device having the same bit number are output together as a set of abnormal events when the abnormal events are output. Wherein the material number of the device may include a material code and a material model.
Referring to fig. 4, fig. 4 is a schematic diagram of a scenario in which the device bit number is repeated in the design drawing detection method provided by the embodiment of the application, and as shown in fig. 4, the design drawing includes a ground GND, a power VCC, a device with a bit number E1, and a device with another bit number E1. Because two devices with the same bit number exist in the design drawing, the repeated detection result of the bit number of the design drawing is judged to be abnormal.
In one embodiment, the abnormal events output in the present application may include the cause of the abnormality, the abnormal object (i.e. the position number of the device), the material number (including the material code and the material model), and the position in the design drawing.
Referring to fig. 5, fig. 5 is a schematic diagram of output information of an abnormal event when a device number is repeated in a design drawing in the design drawing detection method provided by the embodiment of the application, as shown in fig. 5, the abnormal event may include 2 pieces, the abnormal event may include a first abnormal event because of the repeated device number, a material code of 111, a material model of E-001 is (4200,5500) in the design drawing, and a second abnormal event may include a second abnormal event because of the repeated device number, a material code of 111, a material model of E-001 is (4700,5500) in the design drawing.
According to the embodiment, the position number of each device in the device attribute information can be accurately and repeatedly detected on the design drawing, the condition that detection is omitted when the electronic design drawing is manually checked is avoided, and the defective rate of products produced on the basis of the electronic design drawing is further reduced.
In some embodiments, the step 132 may include:
In step 1321, if no connection exists between any called pin and any other called pin in the pin connection state of the first device attribute information, determining that the result of pin connection detection of the design drawing is abnormal.
In actual testing and production, if the design drawing is broken, the test will fail, and even cause product problems.
Therefore, pin connection detection is needed, connection states of all pins in an electronic design drawing are detected, and error reporting is carried out on devices with pins without connection.
The application can identify the called pin in each device of the attribute information of the first device.
For each invoked pin, it may be determined whether the pin connection status of that pin is that there is a connection with any other invoked pin.
If the pin connection states of all the pins are connected with any other called pins, determining that the pin connection detection result of the design drawing is normal.
If no connection exists between any pin and any other called pin in all called pins, determining that the result of pin connection detection of the design drawing is abnormal.
If the result of the pin connection detection of the design drawing is abnormal, the pin connection state is the abnormal reason, the position number, the material number and the position of the device corresponding to the pin without connection between any other called pins can be output together as a group of abnormal matters when the abnormal matters are output.
Referring to fig. 6, fig. 6 is a schematic diagram of a scenario in which a pin connection is abnormal in a design drawing in the design drawing detection method provided by the embodiment of the application, and as shown in fig. 6, the design drawing includes a ground GND, a power VCC, a device with a bit number of C1, and a device with another bit number of C2. Since each pin of the device with the bit number of C1 is connected to the ground GND, the power VCC, and any called pin, one pin of the device with the bit number of C2 is not connected to any called pin, and thus the device with the bit number of C2 has abnormal pin connection.
Based on fig. 6, an exception may be output, which may specifically be: reasons for abnormality: the components and parts exist empty pin, and the bit number is: c2, material code is 111, and material model is C-001, and the position in the design drawing is (4900,5400).
In some embodiments, when the pin connection detection is performed on the design drawing, the pin connection state of each port and the network tag in the design drawing can be obtained in addition to determining whether the pin connection state of the called pin in the device is a connection with any other called pin.
And further determining whether the connection state of the pins of each port and/or each network tag is a connection with any other called pin, if so, determining that the result of the pin connection detection of the design drawing is normal, and if not, determining that the result of the pin connection detection of the design drawing is abnormal.
According to the embodiment, through the pin connection state of each device in the device attribute information, pin connection detection can be accurately carried out on the design drawing, the condition that detection is missed when the electronic design drawing is manually checked is avoided, and then the defective rate of products produced based on the electronic design drawing is reduced.
In some embodiments, the step 133 may include:
in step 1331, if it is determined that any port of all ports of the first device attribute information has a null name, and the number of ports having the same name of all ports is greater than the preset threshold or the number of ports is an odd number, it is determined that the result of port detection of the design drawing is abnormal.
In some embodiments, the step 134 may include:
In step 1341, if it is determined that any network tag name in all the network tags of the first device attribute information is empty, it is determined that the network tag detection result of the design drawing is abnormal.
When designing a drawing, if two or more modules which are far away from each other on the drawing need to be connected together, the two or more modules are generally connected through a port or a network tag, so that the drawing is attractive, concise and clear.
Each port and each network tag are required to be set with names by engineers, if the ports and the network tags are not provided with names, the functional circuits cannot be connected, the functions of the products are lost, and the tests are failed.
Therefore, it is required to detect whether the port and the network tag of the first device attribute information are named, and error-report the port and/or the network tag that are not named.
Also, there are typically two circuits or more than two circuits connected together, so that ports are all present in two or more than two. If only one port exists in the design drawing, the disconnection is equivalent, and the functional loss of the produced product can be caused, so that whether a single port exists in the design drawing or not needs to be detected, and the error reporting is carried out on the single port.
In addition, there are generally fewer ports of the same name. If more than two ports with the same name exist, the problem that the engineer forgets to modify the name after copying and pasting the ports is not eliminated, and the product is disordered or disabled once the ports are copied and pasted is avoided. However, not all ports with more than two identical names are wrong.
Therefore, the engineer is required to pay attention to the case of two or more ports of the same name, and the present application can define such abnormal case as warning. Detecting whether more than two ports with the same name exist in the design drawing, and if so, outputting the abnormality reasons, the position numbers and the positions of all the ports in the design drawing together.
Therefore, the application can detect whether the names of the ports and the network labels in the attribute information of the first device are empty or not, and detect whether the number of the ports with the same names in the ports is larger than the preset threshold value or not.
The preset threshold is a value set according to actual requirements, and may be 1 in some embodiments.
If the detection determines that the name of any port in all ports of the first device attribute information is null and the number of ports with the same name in all ports is greater than a preset threshold or the number of ports is odd, determining that the port detection result of the design drawing is abnormal.
If the names of any port in all ports of the attribute information of the first device are not null, the number of the ports with the same name in all ports is smaller than or equal to a preset threshold value, and the number of the ports is even, determining that the port detection result of the design drawing is normal.
If the name of any network tag in all the network tags of the detected first device attribute information is empty, determining that the network tag detection result of the design drawing is abnormal.
If the name of any network label in all the network labels of the attribute information of the first device is not null, determining that the network label detection result of the design drawing is normal.
If the result of port detection of the design drawing is abnormal, when outputting the abnormal event, the reasons of abnormality of the port named empty, the ports with the same name and the number greater than the preset threshold value and/or all ports when the number of ports is odd may be outputted as a group of abnormal events together with the positions in the design drawing.
If the network tag detection result of the design drawing is abnormal, the cause of the abnormality of the network tag named empty and the position in the design drawing can be output together as a group of abnormal events when the abnormal events are output.
According to the embodiment, through the names of each port and each network label in the attribute information of the first device, port detection and network label detection can be accurately carried out on the design drawing, the condition of missing detection during manual inspection of the electronic design drawing is avoided, and the defective rate of products produced based on the electronic design drawing is further reduced.
In some embodiments, the step 135 may include:
step 1351, comparing the name of each device in the second device attribute information with the name of each device in the first device attribute information, and comparing the bit number of each device in the second device attribute information with the bit number of each device in the first device attribute information;
the name of each device in the second device attribute information may be compared with the name of each device in the first device attribute information.
And simultaneously, comparing the bit number of each device in the second device attribute information with the bit number of each device in the first device attribute information.
Thus, whether each device in the second device attribute information has the same name and the same bit number in the first device attribute information is determined, and whether each device in the first device attribute information has the same name and the same bit number in the second device attribute information is determined.
In step 1352, if any device of the devices of the first device attribute information does not have a device with the same name and bit number in each device of the second device attribute information, or any device of the devices of the second device attribute information does not have a device with the same name and bit number in each device of the first device attribute information, it is determined that the result of the circuit detection of the design drawing is abnormal.
After the comparison is completed, if any device in the devices of the second device attribute information is determined, devices with the same name and bit number do not exist in the devices of the first device attribute information; or, if any device of the devices of the first device attribute information does not have a device having the same name and bit number in the devices of the second device attribute information, it may be determined that the result of the circuit detection of the design drawing is abnormal.
If all the devices in the devices of the second device attribute information are determined, the devices with the same name and bit number exist in the devices of the first device attribute information; and, all devices in each device of the first device attribute information, there are devices with the same name and bit number in each device of the second device attribute information, it can be determined that the result of circuit detection of the design drawing is normal.
The detection can determine whether a new or a deletion device exists in the design drawing relative to the archiving drawing corresponding to the record file.
If the result of the circuit detection of the design drawing is abnormal, the abnormal reason, the position number, the material number and the position of the material number in the design drawing are output together as abnormal matters.
According to the embodiment, the circuit detection can be accurately carried out on the design drawing based on the name and the position number of each device in the second device attribute information and the name and the position number of each device in the first device attribute information, the condition of missing detection during manual inspection of the electronic design drawing is avoided, and the defective rate of products produced based on the electronic design drawing is further reduced.
In some embodiments, the step 136 may include:
Step 1361, obtaining the warehouse entry number of each device from the device warehouse;
In the application, a device library can be maintained in advance, and each device in the device library is provided with a material number; wherein, the material number may include a material code and a material model. And the material codes are in one-to-one correspondence with the material types, and one material code is only one material type, so that engineers can finish the type selection of all materials in the design stage.
If one of the material numbers of the devices in the design process drawing is inconsistent with the material number of the devices in the device library, the material may not actually exist during production, and thus the production cannot be performed.
Therefore, it is necessary to detect the material numbers of all the devices in the interval attribute of the design drawing, and output the device corresponding to the material number inconsistent with the material number of the corresponding device in the device library and the device with the empty material number.
Based on the above, the application can obtain the warehouse entry numbers corresponding to the devices in the first device attribute information from the device library.
Step 1362, comparing the material number of each device in the first device attribute information with the respective warehouse-in number and preset number information;
After the warehouse-in numbers corresponding to the devices are obtained, the material numbers of each device in the attribute information of the first device can be respectively compared with the warehouse-in numbers of the devices and the preset number information. The preset number information is information set according to actual requirements, and in some embodiments of the present application, blank information may be used.
It can be understood that when the number comparison is performed, the material codes in the device number and the material codes in the warehouse-in number need to be compared, and the material model in the material number and the material model in the warehouse-in number need to be compared.
And when the material codes in the device numbers are the same as the material codes in the warehouse-in numbers and the material types in the material numbers are the same as the material types in the warehouse-in numbers, judging that the material numbers are the same as the warehouse-in numbers.
Thereby determining whether or not there is abnormality in the number information for each device.
If the material number of each device in the first device attribute information is identical to the respective warehouse-in number and is different from the preset number information, namely, is not empty, the device number detection result of the design drawing is determined to be normal.
Step 1363, if it is determined that any result in the number comparison of the devices is that the material number of the device is different from the corresponding warehouse-in number, or the material number of the device is the same as the preset number information, determining that the result of device number detection of the design drawing is abnormal.
After comparison, if any result exists in the number comparison of each device, the material number of the device is different from the corresponding warehouse-in number; or the material number of the device is the same as the preset number information; the result of the device number detection of the design drawing is determined to be abnormal.
If the device number detection result of the design drawing is abnormal, the abnormality reason, the position number, the material number and the position of the device in the design drawing are output together as abnormal matters.
According to the embodiment, through the material numbers of the devices in the first device attribute information, device number detection can be accurately carried out on the design drawing, the condition that detection omission occurs when the electronic design drawing is manually checked is avoided, and then the defective rate of products produced based on the electronic design drawing is reduced.
In some embodiments, the step 137 may include:
Step 1371, acquiring the allowed access network of the pins of each device from the preset pin configuration file;
since some devices have polarity differentiation (e.g., positive/negative), reversing the polarity at design time can result in functional failure, test failure, and delay development progress.
Therefore, it is necessary to perform a polarity correctness check on the device having the polarity, and output device information of the polarity connection error.
The application is provided with a pin configuration file in advance, which is used for defining each pin of all devices with polarity.
By means of the software in the application, each defined pin can be preconfigured to be connected to a specific network, wherein the network is defined as an allowed access network, and other networks are not allowed access networks relative to the allowed access network.
Therefore, the application can obtain the allowed access network of each pin of each device from the preset pin configuration file.
Further, the polarity access state of the pins of each device in the first device attribute information can be determined by means of image recognition or data reading, and whether the polarity access state of each pin is an allowed access network corresponding to the pin accessed to the device is determined according to a preset rule for judging the polarity access state of the pin.
Step 1372, if it is determined that the polarity connection state of the pin of any device is the allowed access network of the pin of any device, the result of detecting the polarity connection state of the pin of the device of the design drawing is abnormal.
Further, if it is determined that the polarity access states of the pins of all the devices in the devices of the first device attribute information are allowed to access the network of the corresponding pins, it is determined that the result of detecting the polarity connection states of the pins of the devices in the design drawing is normal.
If the polarity access state of the pin of any device is determined to be the allowed access network of the pin which is not accessed to any device in each device of the first device attribute information, determining that the result of detecting the polarity connection state of the pin of the device of the design drawing is abnormal.
If the result of the polarity connection state detection of the device pins of the design drawing is abnormal, the reason of the abnormality of the device, the position number, the material number and the position of the material number in the design drawing are output together as abnormal matters.
Referring to fig. 7, fig. 7 is a schematic diagram of a scenario in which a polarity connection state of a device pin is abnormal in a design drawing detection method provided by an embodiment of the present application, where the design drawing includes a ground GND, a power VCC, a device with a bit number E1, and another device with a bit number E2, as shown in fig. 7. The positive electrode of the device with the bit number E1 is connected with a power supply VCC, and the pin of the device can be determined to be connected with an allowed access network; the positive electrode of the device with the bit number E2 is connected with the ground GND, and the fact that the pin of the device is connected with a network which is not allowed to be connected can be determined, so that the result of detecting the polar connection state of the pin of the device of the design drawing can be determined to be abnormal.
According to the embodiment, the polarity connection state of the pins of each device in the design drawing in the first device attribute information can be accurately detected, the condition of missing detection during manual inspection of the electronic design drawing is avoided, and the defective rate of products produced based on the electronic design drawing is further reduced.
In some embodiments, the application can extract the failure root cause according to the failure case of the electronic design drawing, convert the failure root cause into the inspection content, further execute the inspection content as the inspection item through software, and comprehensively inspect the design drawing.
Wherein, in order to prevent the repetition of the device bit number, the repeated detection of the device bit number can be carried out; in order to prevent the connection from missing, pin connection detection can be performed; in order to prevent the port and the network tag from being isolated and suspended or the information from being empty, port detection and network tag detection can be performed; to determine the content of the drawing to be added, deleted or modified, circuit detection can be performed; in order to prevent the use errors of the component packaging, the device number detection can be performed; in order to prevent the wrong placement of the polar device, the polar connection state detection of the pins of the device can be performed.
After the software is checked, the abnormal matters can be displayed in a report form, so that engineers can adjust the design drawing according to the listed abnormal matters in the report form.
The application can detect the electronic design drawing from multiple dimensions, and is beneficial to improving the accuracy of the electronic design drawing. The electronic design drawing is comprehensively detected through software execution checking content, so that the efficiency of engineers in checking the electronic design drawing can be improved, the occurrence of careless mistakes is reduced, the test failure is reduced, the project progress is accelerated, and the stability and reliability of electronic products produced based on the electronic design drawing are improved.
Based on any of the above embodiments, after step 130, it may further include:
and 140, if the detection result is abnormal, outputting devices corresponding to abnormal matters in the detection result in the design drawing and the archiving drawing in a correlation way.
If the detection result is abnormal, all abnormal matters are determined, devices corresponding to the abnormal matters in the design drawing and the archiving drawing are determined, and each abnormal matter, the corresponding devices in the design drawing and the corresponding devices in the archiving drawing are output in a form of a form.
The relevant person can form a display instruction by clicking on each abnormal item in the form.
Further, when the display instruction is received, the device corresponding to the abnormal event in the design drawing and the archiving drawing can be responded to the display instruction, and meanwhile, visual display is performed in the design drawing and the archiving drawing, for example, the device can be displayed after being amplified, or frame locking display is performed on the related device based on a preset rule, and the like.
The specific logic implemented therein may be of a prior art and the application is not limited to or described in detail herein.
According to the embodiment, devices corresponding to abnormal matters in the detection result can be associated and output in the design drawing and the archiving drawing, so that related personnel can more intuitively determine abnormal information to modify, and the design efficiency of the drawing can be improved.
In some embodiments, referring to fig. 8, fig. 8 is a second flowchart of a design drawing detection method according to an embodiment of the present application. As shown in FIG. 8, the application can store the existing old drawing, record the information of each device, and generate a record file, wherein the record file can comprise the information of the model, the bit number, the position coordinate, the code and the like of the device. The software marks the device in the old drawing at the same time, and generates an old drawing with a mark, so that the software can check the record file of the corresponding old drawing during subsequent inspection.
The user can call the old drawing from the drawing library and modify the old drawing to generate new drawing with the mark. Further, the user checks from the software, the software checks and judges the new drawing and the record file of the old drawing according to the marks, and then outputs all the unreasonable design points and the design change points in a form as check results. The efficiency of the user when checking the drawing is improved, and the possibility of user mistakes is reduced.
When clicking the corresponding inspection item in the form, the user simultaneously opens the old drawing and the modified new drawing in a splitting way, and locks and enlarges the devices involved in display for comparison. The user operation time is saved, the quick and accurate positioning is realized, and the user experience is improved.
Fig. 9 is a schematic structural diagram of a design drawing detection device according to an embodiment of the present application, as shown in fig. 9, where the design drawing detection device includes:
an obtaining module 910, configured to obtain an identity of an archive drawing included in the first device attribute information of the design drawing; the design drawing is obtained by adjusting based on the archiving drawing;
a determining module 920, configured to determine second device attribute information of the archive drawing according to the identity;
And the detection module 930 is configured to detect the design drawing based on the second device attribute information and the first device attribute information, so as to obtain a detection result.
According to the design drawing detection device disclosed by the embodiment of the application, the second device attribute information of the archiving drawing is determined through the identity mark in the first device attribute information of the design drawing, so that the design drawing can be accurately detected according to the first device attribute information and the second device attribute information, the condition of missing detection when the electronic design drawing is manually checked can be avoided, and the defective rate of products produced based on the electronic design drawing is further reduced.
Based on any of the above embodiments, the detection module 930 is specifically configured to:
performing repeated detection on the bit numbers of all devices in the design drawing based on the bit numbers of all devices in the first device attribute information;
Performing pin connection detection on the design drawing based on the pin connection state of each device in the first device attribute information;
performing port detection on the design drawing based on the names of all ports in the first device attribute information;
performing network label detection on the design drawing based on the names of all network labels in the first device attribute information;
Performing circuit detection on the design drawing based on the names and the bit numbers of all devices in the second device attribute information and the names and the bit numbers of all devices in the first device attribute information; any of the circuits is comprised of at least one of the devices;
detecting the device number of the design drawing based on the material number of each device in the first device attribute information;
Detecting the polarity connection state of the pins of the devices in the design drawing based on the polarity connection state of the pins of the devices in the first device attribute information in the design drawing;
Under the condition that the results of the repeated detection of the bit number, the connection detection of the pin, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin are all normal, determining that the detection result is normal;
And determining that the detection result is abnormal under the condition that any result of the repeated detection of the bit number, the connection detection of the pin, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin is abnormal.
Based on any of the above embodiments, the detection module 930 includes a first detection unit configured to:
Comparing the bit numbers of the devices in the attribute information of the first device with each other;
if the bit numbers of any two devices in the first device attribute information are the same, determining that the repeated bit number detection result of the design drawing is abnormal.
Based on any of the above embodiments, the detection module 930 includes a second detection unit for:
if no connection exists between any called pin and any other called pin in the pin connection state of the first device attribute information, determining that the result of pin connection detection of the design drawing is abnormal.
Based on any of the above embodiments, the detection module 930 includes a third detection unit for:
If it is determined that any port of all ports of the first device attribute information is empty in name and the number of ports with the same name in all ports is greater than a preset threshold or the number of ports is odd, determining that the result of port detection of the design drawing is abnormal.
Based on any of the above embodiments, the detection module 930 includes a fourth detection unit for:
And if the name of any network tag in all the network tags of the first device attribute information is determined to be empty, determining that the network tag detection result of the design drawing is abnormal.
Based on any of the above embodiments, the detection module 930 includes a fifth detection unit for:
comparing the name of each device in the second device attribute information with the name of each device in the first device attribute information, and comparing the bit number of each device in the second device attribute information with the bit number of each device in the first device attribute information;
If any one of the devices of the first device attribute information does not exist in the devices of the second device attribute information, or any one of the devices of the second device attribute information does not exist in the devices of the first device attribute information, determining that the result of circuit detection of the design drawing is abnormal.
Based on any of the above embodiments, the detection module 930 includes a sixth detection unit for:
Obtaining the warehouse-in number of each device from the device warehouse;
The material number of each device in the first device attribute information is respectively compared with the respective warehouse-in number and preset number information;
If any result in the number comparison of each device is determined to be that the material number of the device is different from the corresponding warehouse-in number or the material number of the device is the same as the preset number information, determining that the device number detection result of the design drawing is abnormal.
Based on any of the above embodiments, the detection module 930 includes a seventh detection unit for:
acquiring the allowed access network of the pins of each device from a preset pin configuration file;
If it is determined that the polarity access state of the pin of any device is the allowed access network of the pin of any device in each device of the first device attribute information, determining that the result of detecting the polarity connection state of the pin of the device of the design drawing is abnormal.
Based on any of the above embodiments, the detection module 930 is further configured to:
and if the detection result is abnormal, outputting devices corresponding to abnormal matters in the detection result in the design drawing and the archiving drawing in a correlation way.
Fig. 10 illustrates a physical structure diagram of an electronic device, as shown in fig. 10, which may include: processor 1010, communication interface (Communications Interface) 1020, memory 1030, and communication bus 1040, wherein processor 1010, communication interface 1020, and memory 1030 communicate with each other via communication bus 1040. Processor 1010 may call logic instructions in memory 1030 to perform the following methods: acquiring an identity of an archiving drawing contained in first device attribute information of the design drawing; the design drawing is obtained by adjusting based on the archiving drawing;
determining second device attribute information of the archiving drawing according to the identity;
and detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result.
Further, the logic instructions in the memory 1030 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the related art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, embodiments of the present application disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the above-described method embodiments, for example comprising: acquiring an identity of an archiving drawing contained in first device attribute information of the design drawing; the design drawing is obtained by adjusting based on the archiving drawing;
determining second device attribute information of the archiving drawing according to the identity;
and detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result.
In yet another aspect, embodiments of the present application further provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the method provided by the above embodiments, for example, comprising: acquiring an identity of an archiving drawing contained in first device attribute information of the design drawing; the design drawing is obtained by adjusting based on the archiving drawing;
determining second device attribute information of the archiving drawing according to the identity;
and detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on such understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the related art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that the above-mentioned embodiments are merely illustrative of the application, and not limiting. While the application has been described in detail with reference to the embodiments, those skilled in the art will appreciate that various combinations, modifications, or equivalent substitutions can be made to the technical solutions of the present application without departing from the spirit and scope of the technical solutions of the present application, and it is intended to be covered by the scope of the claims of the present application.

Claims (15)

1. A method of detecting a design drawing, comprising:
acquiring an identity of an archiving drawing contained in first device attribute information of the design drawing; the design drawing is obtained by adjusting based on the archiving drawing;
determining second device attribute information of the archiving drawing according to the identity;
and detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result.
2. The method for detecting a design drawing according to claim 1, wherein the first device attribute information includes a position number of each device in the design drawing, a pin connection state of each device in the design drawing, a name of each port in the design drawing, a name of each network tag in the design drawing, a name of each device, a material number of each device, a polarity connection state of a pin of each device in the design drawing, and an identity of the archive drawing;
The second device attribute information comprises the position number of each device in the archiving drawing, the pin connection state of each device in the archiving drawing, the name of each port in the archiving drawing, the name of each network tag in the archiving drawing, the name of each device, the material number of each device, the polarity connection state of the pin of each device in the design drawing and the identity of the archiving drawing.
3. The method for detecting a design drawing according to claim 2, wherein detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result includes:
performing repeated detection on the bit numbers of all devices in the design drawing based on the bit numbers of all devices in the first device attribute information;
Performing pin connection detection on the design drawing based on the pin connection state of each device in the first device attribute information;
performing port detection on the design drawing based on the names of all ports in the first device attribute information;
performing network label detection on the design drawing based on the names of all network labels in the first device attribute information;
Performing circuit detection on the design drawing based on the names and the bit numbers of all devices in the second device attribute information and the names and the bit numbers of all devices in the first device attribute information; any of the circuits is comprised of at least one of the devices;
detecting the device number of the design drawing based on the material number of each device in the first device attribute information;
Detecting the polarity connection state of the pins of the devices in the design drawing based on the polarity connection state of the pins of the devices in the first device attribute information in the design drawing;
Under the condition that the results of the repeated detection of the bit number, the connection detection of the pin, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin are all normal, determining that the detection result is normal;
And determining that the detection result is abnormal under the condition that any result of the repeated detection of the bit number, the connection detection of the pin, the port detection, the network tag detection, the circuit detection, the device number detection and the polar connection state detection of the device pin is abnormal.
4. The method for detecting a design drawing according to claim 3, wherein the performing repeated detection of the bit number on the design drawing based on the bit number of each device in the first device attribute information comprises:
Comparing the bit numbers of the devices in the attribute information of the first device with each other;
if the bit numbers of any two devices in the first device attribute information are the same, determining that the repeated bit number detection result of the design drawing is abnormal.
5. The method for detecting a design drawing according to claim 3, wherein the performing pin connection detection on the design drawing based on the pin connection state of each device in the first device attribute information comprises:
if no connection exists between any called pin and any other called pin in the pin connection state of the first device attribute information, determining that the result of pin connection detection of the design drawing is abnormal.
6. The method for detecting a design drawing according to claim 3, wherein the performing the port detection on the design drawing based on the names of the ports in the first device attribute information includes:
If it is determined that any port of all ports of the first device attribute information is empty in name and the number of ports with the same name in all ports is greater than a preset threshold or the number of ports is odd, determining that the result of port detection of the design drawing is abnormal.
7. The method for detecting a design drawing according to claim 3, wherein the detecting the design drawing based on the names of the network labels in the first device attribute information comprises:
And if the name of any network tag in all the network tags of the first device attribute information is determined to be empty, determining that the network tag detection result of the design drawing is abnormal.
8. The method for detecting a design drawing according to claim 3, wherein the circuit detection of the design drawing based on the name and the bit number of each device in the second device attribute information and the name and the bit number of each device in the first device attribute information comprises:
comparing the name of each device in the second device attribute information with the name of each device in the first device attribute information, and comparing the bit number of each device in the second device attribute information with the bit number of each device in the first device attribute information;
If any one of the devices of the first device attribute information does not exist in the devices of the second device attribute information, or any one of the devices of the second device attribute information does not exist in the devices of the first device attribute information, determining that the result of circuit detection of the design drawing is abnormal.
9. The method for detecting a design drawing according to claim 3, wherein the detecting the device number of the design drawing based on the material numbers of the devices in the first device attribute information includes:
Obtaining the warehouse-in number of each device from the device warehouse;
The material number of each device in the first device attribute information is respectively compared with the respective warehouse-in number and preset number information;
If any result in the number comparison of each device is determined to be that the material number of the device is different from the corresponding warehouse-in number or the material number of the device is the same as the preset number information, determining that the device number detection result of the design drawing is abnormal.
10. The method for detecting a design drawing according to claim 3, wherein the detecting the polarity-connected state of the device pins on the design drawing based on the polarity-connected state of the pins of each device in the first device attribute information comprises:
acquiring the allowed access network of the pins of each device from a preset pin configuration file;
If it is determined that the polarity access state of the pin of any device is the allowed access network of the pin of any device in each device of the first device attribute information, determining that the result of detecting the polarity connection state of the pin of the device of the design drawing is abnormal.
11. The method for detecting a design drawing according to claim 3, wherein after the design drawing is detected, the method further comprises:
and if the detection result is abnormal, outputting devices corresponding to abnormal matters in the detection result in the design drawing and the archiving drawing in a correlation way.
12. A design drawing detection device, comprising:
the acquisition module is used for acquiring the identity of the archiving drawing contained in the first device attribute information of the design drawing; the design drawing is obtained by adjusting based on the archiving drawing;
the determining module is used for determining second device attribute information of the archiving drawing according to the identity;
and the detection module is used for detecting the design drawing based on the second device attribute information and the first device attribute information to obtain a detection result.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of detecting a design drawing according to any one of claims 1 to 11 when the program is executed by the processor.
14. A medium, which is a non-transitory computer readable storage medium, having stored thereon a computer program, which when executed by a processor implements the method of detecting a design drawing according to any one of claims 1 to 11.
15. A program product, which is a computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method of detecting a design drawing according to any one of claims 1 to 11.
CN202310495997.1A 2023-05-05 2023-05-05 Design drawing detection method and device, electronic equipment, medium and program product Pending CN118172791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310495997.1A CN118172791A (en) 2023-05-05 2023-05-05 Design drawing detection method and device, electronic equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310495997.1A CN118172791A (en) 2023-05-05 2023-05-05 Design drawing detection method and device, electronic equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN118172791A true CN118172791A (en) 2024-06-11

Family

ID=91359237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310495997.1A Pending CN118172791A (en) 2023-05-05 2023-05-05 Design drawing detection method and device, electronic equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN118172791A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118607467A (en) * 2024-07-31 2024-09-06 苏州元脑智能科技有限公司 A drawing inspection method and device, storage medium and computer program product
CN119667450A (en) * 2025-02-20 2025-03-21 四川天邑康和通信股份有限公司 A method, device, equipment and medium for quickly checking fake devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118607467A (en) * 2024-07-31 2024-09-06 苏州元脑智能科技有限公司 A drawing inspection method and device, storage medium and computer program product
CN119667450A (en) * 2025-02-20 2025-03-21 四川天邑康和通信股份有限公司 A method, device, equipment and medium for quickly checking fake devices

Similar Documents

Publication Publication Date Title
CN118172791A (en) Design drawing detection method and device, electronic equipment, medium and program product
US20220321440A1 (en) Interface Service Function Monitoring Method and System Based on Data Acquisition
CN111309505B (en) Page exception handling method and device and electronic equipment
CN110471838A (en) Method of calibration, device, computer equipment and the storage medium of test case
CN112733199A (en) Data processing method and device, electronic equipment and readable storage medium
CN114942623A (en) Controller testing method and device, vehicle and computer readable storage medium
CN112486841A (en) Method and device for checking data collected by buried point
EP4325364A1 (en) Fault detection method and apparatus for security chip, electronic device, and medium
CN113868137A (en) Method, device and system for processing buried point data and server
CN110968456A (en) Method and device for processing fault disk in distributed storage system
CN114490415B (en) Business testing method, computer device, storage medium and computer program product
CN114185798B (en) Interface test case detection method, device, computer equipment and storage medium
CN114860549B (en) Buried data verification method, buried data verification device, buried data verification equipment and storage medium
CN116680106A (en) Abnormality locating method, device, equipment and storage medium
CN118171630A (en) Abnormality detection method, abnormality detection device, abnormality detection equipment, abnormality detection medium and abnormality detection program product for design drawing
CN116010283A (en) Test case repairing method, device, computer equipment and storage medium
CN112612882A (en) Review report generation method, device, equipment and storage medium
CN112631946A (en) Software product running environment detection method and system
CN118170715B (en) Design drawing archiving method and indexing method apparatus, device, medium, and article
CN119646006A (en) Method and related device for detecting incomplete transaction at application level
US20130205178A1 (en) System and method for auditing memory cards
CN118227610A (en) Verification method and device for data processing, computer equipment and storage medium
US20250158905A1 (en) Self-diagnosing system and method for connection status of devices, and non-transitory storage medium
WO2017067249A1 (en) Fault locating method and apparatus for optical fiber electronic tag
CN115686962A (en) Server link detection method and device and electronic equipment

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