PCB layout lightweight online examination method and system
Through the lightweight drawing engine and communication protocol, the online review of PCB layouts is solved, and the problems of lagging rendering, slow parsing, difficulty in retrieval and insufficient communication in the existing technology are solved, achieving efficient online review of multiple people.
Patent Information
- Application Number
- CN202510366823.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-07-11
AI Technical Summary
The existing technology has problems such as lag in rendering, low resolution success rate, poor component retrieval ability, insufficient hierarchical display ability and lack of multi-person communication function when multiple people review PCB layouts online, resulting in low review efficiency.
It uses a lightweight drawing engine such as PIXI.js for rendering, combines RPA and built-in scripts for file parsing, uses preset hierarchical search algorithms and breadth-first algorithms for search, and uses a full-duplex communication protocol to achieve multi-person communication, and has real-time communication, real-time meetings and link sharing functions.
It improves rendering efficiency, shortens file parsing time, accurately and quickly finds the search target, realizes efficient review and information exchange of multi-person online platforms, and improves the efficiency of feedback on review results.
Smart Images

Figure CN120296181A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electronic circuit design, and particularly relates to a method and system for lightweight online review of PCB layout. Background Art
[0002] Cadence Allegro, Altium Designer, and Personal Automated Design System (PADS) are three mainstream software in the field of electronic design automation (EDA), which are commonly used by independent teams for electronic circuit design and are not suitable for online application environments for multi-person review and communication.
[0003] In order to solve the above problems, the prior art CN104573242A has been able to transfer large design manuscripts to an online platform (browser) for multi-person review. However, limited by its algorithm kernel and conventional image rendering kernel, the technology for multi-person review of manuscripts through the online platform has the following defects:
[0004] (1) In the application environment of multi-person online browsing, the default rendering kernel of the browser is mainly used for rendering, and there is serious lag when rendering large design manuscripts online, thus reducing the review efficiency.
[0005] (2) The success rate of file parsing (export) is low, and the time-consuming for online users to obtain design manuscripts is long, affecting the efficiency of review and archiving.
[0006] (3) The component retrieval ability is low, and it is difficult to find specific circuits and components, resulting in the need to mark key circuits or components during the review process, reducing the overall review efficiency.
[0007] (4) The layer display ability and the ability to modify color display are poor, making some diagrams difficult to identify and being unfavorable for review layer marking.
[0008] (5) It does not have functions related to multi-person communication, communication, and link sharing. The problems found by the demand side can only be manually recorded and communicated by phone, and the feedback efficiency of the review results is low.
[0009] Therefore, due to the above defects, the prior art has the problem of low multi-person online review efficiency. Summary of the Invention
[0010] In view of the above at least one deficiency of the prior art, the present invention provides a method and system for lightweight online review of PCB layout, which is mainly used to solve the problem of low multi-person online review efficiency.
[0011] In a first aspect, to achieve the above object, the present invention provides a method for lightweight online review of PCB layout, which uses a lightweight drawing engine to render the PCB layout in a multi-person online platform. The method includes:
[0012] S10: Receive an interaction request from any client in the multi-person online platform;
[0013] The interaction request includes at least one or more of a parsing and export request, an information retrieval request, a hierarchical display request, and a communication and sharing request;
[0014] S20: According to the interaction request, execute S30 - S60 in parallel:
[0015] S30: If the interaction request is a parsing and export request, compress and convert the PCB layout into a common format for the client to obtain a parsing file, and send the parsing file to the client that submitted the parsing and export request;
[0016] S40: If the interaction request is an information retrieval request, use a preset hierarchical retrieval algorithm to retrieve the PCB layout to obtain a retrieval result, and send the retrieval result to the client that submitted the information retrieval request;
[0017] S50: If the interaction request is a hierarchical display request, read the attribute configuration information corresponding to the hierarchical display request, and hide or display the display content corresponding to the PCB layout according to the attribute configuration information;
[0018] S60: If the interaction request is a communication and sharing request, based on the communication protocol built into the multi-person online platform, send the communication information of the communication initiation end to the communication receiving end.
[0019] Through the above technical solutions, the method of the present invention uses a lightweight drawing engine to render the PCB layout in a multi-person online platform. Utilizing the lightweight characteristics of the lightweight drawing engine, it maximally utilizes GPU / CPU resources, improves the rendering efficiency, and thus overcomes the problem of severe lag when rendering large design manuscripts online. On the basis of using the lightweight drawing engine as the rendering engine, it receives the interaction requests from any client in real time to meet the actual needs of multi-person online review / access. In S30, the parsed files are uniformly compressed and converted into a common format for the client to parse and export, which is beneficial to improving the parsing rate and shortening the time for users to obtain the manuscript archive, and shortening the review and archive time. In S40, a preset hierarchical retrieval algorithm is used to retrieve the PCB layout, which can accurately and quickly find the retrieval target and shorten the time for finding key circuits or components. In S50, layering is achieved through the attribute configuration information, which is beneficial to review diagram recognition and layer-by-layer annotation. In S60, a communication protocol is used to realize information exchange between multiple clients in the multi-person online platform, overcoming the problems in the prior art that do not have functions related to multi-person communication, communication, and link sharing, and improving the feedback efficiency of review results. Compared with the prior art, the method of the present invention overcomes all the defects of the prior art and can realize the efficient review of the PCB layout in the multi-person online platform.
[0020] Preferably, when compressing and converting the PCB layout into a common format for the client to obtain a parsed file, the RPA and built-in scripts are used to compress and convert the PCB layout into a common format for the client to obtain a parsed file;
[0021] When using a preset hierarchical retrieval algorithm to retrieve the PCB layout to obtain a retrieval result, a preset breadth-first algorithm is used to retrieve the PCB layout to obtain a retrieval result;
[0022] When reading the attribute configuration information corresponding to the hierarchical display request and hiding or displaying the display content corresponding to the PCB layout according to the attribute configuration information, read the attribute configuration of the target element or target layer in the PCB layout for the hierarchical display request, and hide or display the target element or target layer according to the attribute configuration.
[0023] Preferably, the using a preset breadth-first algorithm to retrieve the PCB layout to obtain a retrieval result includes:
[0024] Identify the keyword of the information retrieval request and place the keyword into a pre-set trie tree;
[0025] Use the breadth-first algorithm to perform information retrieval on the keyword in the trie tree to obtain a retrieval result.
[0026] Through the above technical solution, the keywords of the information retrieval request are identified to extract key retrieval information, narrow the retrieval scope, and improve the retrieval efficiency. Using the breadth-first algorithm to perform information retrieval on the keywords in the trie can traverse all the stored relevant information in the trie based on the keywords and quickly obtain the retrieval results.
[0027] Preferably, the step of using the breadth-first algorithm to perform information retrieval on the keywords in the trie to obtain retrieval results includes:
[0028] Successively split the keyword into multiple single characters arranged in order;
[0029] Search whether there is a matching word for the single character in the first layer of the trie; if so, record the successfully matched node, if not, traverse and search the next layer of the trie until all single characters are successfully matched;
[0030] After all single characters are matched, the nodes and their child nodes corresponding to the successfully matched single characters are used as the retrieval results expected by the client.
[0031] Preferably, the communication and sharing request includes at least one or more of an instant communication request, a real-time meeting request, and a link sharing request.
[0032] Through the above technical solution, the method of the present invention can implement functions of instant communication, multi-person online meetings, and link sharing, and improve the information exchange efficiency of multi-person online review.
[0033] Preferably, if the communication and sharing request is the instant communication request, the communication information includes text information and the individual information of the initiating end;
[0034] The step of sending the communication information of the communication initiating end to the communication receiving end based on the built-in communication protocol of the multi-person online platform includes:
[0035] S610: Obtain the individual information of the initiating end, the text information of the communication initiating end, and the unique identifier of the PCB layout sent to the communication receiving end;
[0036] S611: Based on the communication protocol, send the individual information of the initiating end, the text information, and the unique identifier to the cache in the server;
[0037] S612: Search for the receiving address of the communication receiving end according to the unique identifier, and use the Redis cache server to return the search result;
[0038] S613: Based on the communication protocol and the search result, send the text information and the individual information of the initiating end to the communication receiving end.
[0039] Through the above technical solution, when using the method of the present invention for online instant communication, the server and the Redis cache server are used in combination, which is beneficial to improving the read and write speed of data transmission, enabling the communication receiving end to obtain the text information sent by the communication initiating end more quickly.
[0040] Preferably, if the communication sharing request is the real-time meeting request, the communication information includes PCB layout information and voice information sent by the communication initiating end;
[0041] Sending the communication information of the communication initiating end to the communication receiving end based on the communication protocol built in the multi-person online platform includes:
[0042] S620: Designate the communication initiating end as the master user and obtain the master user information;
[0043] S621: Based on the communication protocol, transmit the PCB layout information and the master user information to the multi-person online platform for display;
[0044] S622: Allow the microphone input of the master user, receive the voice information and forward it to multiple communication receiving ends.
[0045] Through the above technical solution, when using the method of the present invention for a multi-person meeting, based on the communication protocol, the PCB layout information and the master user information are transmitted to the multi-person online platform for display, which is beneficial for other users to determine the speaker. And S622 can enable multiple communication receiving ends to synchronously receive the voice information of the master user, improving the review and communication efficiency.
[0046] Preferably, if the communication sharing request is the link sharing request, the communication information includes the access address of the PCB design drawing sent by the communication initiating end;
[0047] Sending the communication information of the communication initiating end to the communication receiving end based on the communication protocol built in the multi-person online platform includes:
[0048] S600: Transmit the access address of the PCB design drawing to the server, generate a shared link and record the mapping relationship between the shared link and the access address of the PCB design drawing;
[0049] S601: Send the shared link processed by S600 to the communication receiving end.
[0050] Preferably, if the communication receiving end is not on the multi-person online platform; after S601, the method further includes:
[0051] After the communication receiving end clicks the shared link, jump the browsing interface of the communication receiving end to the multi-person online platform;
[0052] Record the user information of the AC receiving end accessing the multi-person online platform;
[0053] According to the mapping relationship and the sharing link, return the PCB design drawing access address to the AC receiving end, and automatically open the PCB design drawing on the AC receiving end.
[0054] Through the above technical solution, for the "new users" who are not on the multi-person online platform, the method of the present invention will register the information of the "new users" who enter through the sharing link to improve the security of information exchange. After the registration is completed, according to the mapping relationship and the sharing link, return the PCB design drawing access address to the AC receiving end, and automatically open the PCB design drawing on the AC receiving end, realizing the automatic opening of the link address, providing a convenient channel for the newly added personnel to review the PCB design drawing.
[0055] In a second aspect, the present invention also provides a lightweight online review system for PCB layout,
[0056] Render the PCB layout in the multi-person online platform by using a lightweight drawing engine, and the system includes:
[0057] An interaction request receiving module, configured to receive an interaction request from any user end in the multi-person online platform;
[0058] The interaction request includes at least one or more of a parsing and exporting request, an information retrieval request, a hierarchical display request, and a communication and sharing request;
[0059] A parallel execution module, configured to parallelly execute the built-in functions of the following modules according to the interaction request:
[0060] A parsing and exporting module, configured to, if the interaction request is a parsing and exporting request, compress and convert the PCB layout into a common format for the user end to obtain a parsing file, and convey the parsing file to the user end that issues the parsing and exporting request;
[0061] An information retrieval module, configured to, if the interaction request is an information retrieval request, retrieve the PCB layout by using a preset hierarchical retrieval algorithm to obtain a retrieval result, and convey the retrieval result to the user end that issues the information retrieval request;
[0062] A hierarchical display module, configured to, if the interaction request is a hierarchical display request, read the attribute configuration information corresponding to the hierarchical display request, and hide or display the display content corresponding to the PCB layout according to the attribute configuration information;
[0063] An exchange and sharing module, configured to, if the interaction request is an exchange and sharing request, send the exchange information of the exchange initiation end to the exchange reception end based on the communication protocol built in the multi-person online platform.
[0064] Through the above technical solution, the PCB layout lightweight online review system of the present invention is essentially an online review platform, which has functions of multi-person online viewing, retrieval, sharing, hierarchical display, information parsing and export, and multi-person online communication, can meet the review needs of a large number of user terminals, and improve the overall review efficiency.
[0065] The present invention has at least the following advantages:
[0066] 1) Based on a lightweight drawing engine as the rendering engine, the method of the present invention receives the interaction request of any user terminal in real time to meet the actual needs of multi-person online review / viewing. For file parsing and export, the method of the present invention uniformly compresses and converts the parsed file into a common format for the user terminal to parse and export, which is beneficial to improving the parsing rate and shortening the time for the user to obtain the manuscript archive, and shortening the review archive time. For element retrieval, the method of the present invention uses a preset hierarchical retrieval algorithm to retrieve the PCB layout, and can accurately and quickly find the retrieval target, shortening the time for finding key circuits or components. For image and graphic layering, layering is achieved through attribute configuration information, which is beneficial to review diagram recognition and hierarchical annotation. For multi-person online communication, the method of the present invention uses the built-in communication protocol to realize information exchange between multiple user terminals in the multi-person online platform, overcomes the problem that the prior art does not have functions related to multi-person communication, connection sharing, etc., and improves the review result feedback efficiency. Compared with the prior art, the method of the present invention overcomes the defects of the prior art and can realize the efficient review of the PCB layout in the multi-person online platform.
[0067] 2) The method of the present invention identifies the keywords of the information retrieval request to extract key retrieval information, narrow the retrieval range, and improve the retrieval efficiency. On this basis, the method of the present invention also uses a breadth-first algorithm to perform information retrieval on the keywords in the trie, and can traverse all the stored relevant information in the trie based on the keywords to quickly obtain the retrieval result. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings without creative efforts based on these drawings.
[0069] Figure 1It is a flowchart of the PCB layout lightweight online review method in Embodiment 1 of the present invention;
[0070] Figure 2 It is a schematic diagram of pre - constructing a trie tree for the PCB layout lightweight online review method in Embodiment 2 of the present invention;
[0071] Figure 3 It is a schematic flowchart of S41 - S43 of the PCB layout lightweight online review method in Embodiment 2 of the present invention;
[0072] Figure 4 It is a schematic flowchart of S600 - S601 of the PCB layout lightweight online review method in Embodiment 3 of the present invention;
[0073] Figure 5 It is a schematic flowchart of S610 - S613 of the PCB layout lightweight online review method in Embodiment 4 of the present invention;
[0074] Figure 6 It is an algorithm logic diagram of the information registration stage before S610 of the PCB layout lightweight online review method in Embodiment 4 of the present invention;
[0075] Figure 7 It is an algorithm logic diagram of the maintenance stage during S610 - S613 of the PCB layout lightweight online review method in Embodiment 4 of the present invention;
[0076] Figure 8 It is an algorithm logic diagram of the user - end exit stage after S613 of the PCB layout lightweight online review method in Embodiment 4 of the present invention;
[0077] Figure 9 It is a schematic flowchart of S620 - S622 of the PCB layout lightweight online review method in Embodiment 5 of the present invention;
[0078] Figure 10 It is an algorithm logic diagram of the real - time meeting stage of the PCB layout lightweight online review method in Embodiment 5 of the present invention;
[0079] Figure 11 It is an algorithm logic diagram of the main speaker role replacement proposed by the main control user for the PCB layout lightweight online review method in Embodiment 5 of the present invention;
[0080] Figure 12 It is an algorithm logic diagram of the main speaker role replacement proposed by the communication receiving end for the PCB layout lightweight online review method in Embodiment 5 of the present invention;
[0081] Figure 13 It is a schematic diagram of the structure of the PCB layout lightweight online review system in Embodiment 6 of the present invention. Detailed implementation manners
[0082] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Apparently, the described embodiments are part of the embodiments of the present invention, rather than all of them. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0083] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the accompanying drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the present invention.
[0084] This embodiment discloses a method and system for lightweight online review of PCB layout, mainly used to solve the problem of low efficiency of multi-person online review.
[0085] Embodiment 1
[0086] As Figure 1 shown, this embodiment discloses a method for lightweight online review of PCB layout, which uses a lightweight drawing engine to render the PCB layout in a multi-person online platform. Specifically, the lightweight drawing engine is PIXI.js. In this embodiment of the application, the technical solution of this embodiment of the application is described and explained with PIXI.js as the lightweight drawing engine. In other embodiments, the lightweight drawing engine can be drawing engines such as Konva.js and Three.js.
[0087] It should be explained that the method of the present invention uses the game drawing engine PIXI.js as the graphics drawing engine to quickly render large-scale PCB design drawings in the browser to solve the problem of serious jamming when rendering images of large design manuscripts online. With this technology, smoothness can also be ensured during the processes of zooming, dragging, and retrieving graphics of the PCB design drawing.
[0088] Preferably, for the splicing, noise reduction, and human-computer interaction of the PCB design drawing, the existing open-source OpenCV (Open Source Computer Vision Library) technology can be used to implement.
[0089] Based on using PIXI.js as the online rendering kernel, the method of the present invention includes:
[0090] S10: Receive an interaction request from any client in the multi-person online platform.
[0091] In this embodiment, the interaction request includes at least one or more of a parsing and exporting request, an information retrieval request, a hierarchical display request, and a communication and sharing request;
[0092] S20: According to the interaction request, execute S30 - S60 in parallel:
[0093] S30: If the interaction request is a parsing and exporting request, compress and convert the PCB layout into a common format for the client to obtain a parsing file, and send the parsing file to the client that submitted the parsing and exporting request.
[0094] In this embodiment, when compressing and converting the PCB layout into a common format for the client to obtain a parsing file, use RPA and built-in scripts to compress and convert the PCB layout into a common format for the client to obtain a parsing file;
[0095] The above-mentioned common format for the client is JSON (JavaScript Object Notation) format, which is a lightweight data exchange format suitable for the JAVA programming environment, easy for users to read and write, and also easy for machines to parse and generate. Using JSON format as the common format for the client is beneficial to improving the parsing rate and success rate of the file.
[0096] It should be explained that RPA is short for Robotic Process Automation, that is, robotic process automation technology. In this embodiment, RPA is used to simulate the storage and export process of manual operations, and the built-in script is the core of controlling RPA. The function of the built-in script is to convert the PCB layout into JSON format.
[0097] More specifically, before using RPA and built-in scripts to convert the PCB layout into a common format for the client, first upload the PCB layout to the local disk of the client that submitted the parsing and exporting request, and then use RPA and the built-in script to convert the format of the PCB layout stored on the user's local disk. After S30, the method of the present invention also needs to send the parsing result to a specified location on the multi-person online platform for front-end code access.
[0098] Compared with the prior art, using RPA technology to uniformly convert the parsing file into a common format for the client for parsing and exporting is beneficial to improving the parsing rate and shortening the time for users to obtain the manuscript archive, and shortening the review and archive time.
[0099] S40: If the interaction request is an information retrieval request, use a preset hierarchical retrieval algorithm to retrieve the PCB layout to obtain a retrieval result, and send the retrieval result to the client that submitted the information retrieval request.
[0100] In this embodiment, when retrieving the PCB layout using a preset hierarchical retrieval algorithm to obtain a retrieval result, a preset breadth-first algorithm is used to retrieve the PCB layout to obtain a retrieval result. It should be noted that in other embodiments, the preset hierarchical retrieval algorithm can also be other hierarchical retrieval algorithms, and here, other possible hierarchical retrieval algorithms are not exemplified.
[0101] Compared with the prior art, using the breadth-first algorithm to retrieve the PCB layout can accurately and quickly find the retrieval target, shortening the time-consuming for finding key lines or components.
[0102] S50: If the interaction request is a hierarchical display request, read the attribute configuration information corresponding to the hierarchical display request, and hide or display the display content corresponding to the PCB layout according to the attribute configuration information.
[0103] In this embodiment, when reading the attribute configuration information corresponding to the hierarchical display request and hiding or displaying the display content corresponding to the PCB layout according to the attribute configuration information, read the attribute configuration of the target element or target layer in the PCB layout for the hierarchical display request, and hide or display the target element or target layer according to the attribute configuration.
[0104] Specifically, by changing the visibility attribute of the target element or target layer, the display / hide control of the component can be completed. When the user hides a layer, retrieve the hierarchical attributes of all elements and layers, and set the visibility of the elements and layers that meet the conditions to hidden to hide the layer control, and vice versa.
[0105] Compared with the prior art, by setting the display or hide attribute of the target element or target layer to achieve layering is beneficial to the review diagram recognition and layering annotation.
[0106] S60: If the interaction request is a communication sharing request, based on the communication protocol built into the multi-person online platform, send the communication information of the communication initiation end to the communication receiving end.
[0107] In this embodiment, the communication protocol built into the multi-person online platform uses a full-duplex communication protocol; specifically, the full-duplex communication protocol can be WebSocket, which is a real-time, efficient, and low-latency two-way communication protocol. The method of the present invention uses WebSocket as the core communication protocol, which is beneficial to improving the rate of information transmission.
[0108] Preferably, the communication sharing request includes at least one or more of an instant communication request, a real-time meeting request, and a link sharing request.
[0109] Through the above technical solutions S10 - S60, the method of the present invention has the following advantages:
[0110] (1) The method of the present invention uses the image rendering engine in the browser side with high performance in the game industry, combined with the self-developed algorithms S10 - S60, and intelligently maximizes the utilization of GPU or CPU resources in devices such as customer computers, mobile phones, and tablets, achieving smooth rendering and operation of tens of thousands of graphic objects.
[0111] (2) The method of the present invention is based on the RPA technology of the Java language, the Windows multi-user remote desktop technology, self-developed algorithms, etc., and realizes high-performance parsing of PCB original design manuscripts. The parsing time of a 23MB design manuscript is only within 8 seconds, far exceeding the industry performance.
[0112] (3) The method of the present invention involves mature algorithms related to computer clusters, realizes large-scale cluster collaboration, and can scale the capacity according to actual needs, saving the company's operating costs.
[0113] (4) The method of the present invention has functions of graphic rendering, parsing and exporting design files, information retrieval, hierarchical display, and communication and sharing, and can meet the review requirements of large review teams for large PCB design layouts, realizing efficient review by multiple people online.
[0114] (5) It has strong compatibility. The method of the present invention using the drawing engine PIXI.js can be applied to almost all browsers (multi-person online platforms) on the market.
[0115] Example 2
[0116] On the basis of Example 1, as Figures 2 - 3 shown, this embodiment discloses a lightweight online review method for PCB layout. When retrieving the PCB layout using the breadth-first algorithm to obtain the retrieval result and delivering the retrieval result to the user terminal that issues the information retrieval request, it may include:
[0117] S41: Identify the keyword of the information retrieval request and place the keyword into the pre-set trie tree.
[0118] It should be explained that, as Figure 2 shown, before S41, the method of the present invention needs to pre-set the data structure of the trie tree, and the specific process is as follows:
[0119] Classify all possible retrieval contents into five categories: reference designator, device, network, rule, and line width, so as to narrow the retrieval range during actual retrieval.
[0120] Organize the reference designator, device, and network data with a larger search range into object formats, use their names as retrieval keywords, and save them into the corresponding trie tree data structures respectively.
[0121] The above process of setting the data structure of the trie is beneficial to improving the accuracy and efficiency of keyword retrieval.
[0122] Preferably, S41 is executed 1 s after the information retrieval request is input and no other information retrieval requests are input by the user terminal. This method is more in line with the process of human keyboard data input, can overcome the problem of repeated retrieval existing in "instant retrieval" (i.e., retrieving at any time when inputting), and improve the retrieval efficiency.
[0123] Preferably, after the keyword is recognized in S41, the user terminal can independently select the retrieval position number data (i.e., the identifier of the trie), and these position number data can help the keyword find the corresponding trie for retrieval.
[0124] After S41, the method of the present invention further includes:
[0125] S42: Using the breadth-first algorithm, perform information retrieval on the keyword in the trie to obtain the retrieval result.
[0126] Furthermore, as Figure 3 shown, the specific process of performing information retrieval on the keyword in the trie using the breadth-first algorithm is:
[0127] S421: Split the keyword into multiple single characters arranged in sequence one by one;
[0128] S422: Check whether there is a matching character for the single character in the first layer of the trie; if so, record the successfully matched node, if not, traverse and search the next layer of the trie until all single characters are successfully matched;
[0129] S423: After all single characters are successfully matched, the nodes and their child nodes corresponding to the successfully matched single characters are used as the retrieval result expected by the user terminal.
[0130] After the above S421 - S423, the method of the present invention further includes:
[0131] S43: Transmit the retrieval result to the user terminal that submitted the information retrieval request.
[0132] Through the above technical solutions S41 - S43, the keyword of the information retrieval request is recognized in S41 to extract the key retrieval information, narrow the retrieval range, and improve the retrieval efficiency. Using the breadth-first algorithm to perform information retrieval on the keyword in the trie can traverse all the relevant information stored in the trie based on the keyword and quickly obtain the retrieval result.
[0133] Compared with the prior art, the method of the present invention supports multi-person online retrieval. Combining with the annotation and recording functions in the prior art, it can allow users to quickly annotate key components in the design manuscript, record doubts and problem points.
[0134] Embodiment III
[0135] Based on Embodiment I, as Figure 4 shown, when the communication sharing request is a link sharing request, the communication information includes the access address of the PCB design drawing sent by the communication initiating end. S60 of the PCB layout lightweight online review method in this embodiment includes:
[0136] S600: Transmit the access address of the PCB design drawing to the server, generate a shared link, and record the mapping relationship between the shared link and the access address of the PCB design drawing;
[0137] S601: Send the shared link processed by S600 to the communication receiving end.
[0138] Through S600 - S601, the link sharing rate of the PCB design drawing can be improved.
[0139] Furthermore, if the communication receiving end is not on the multi - person online platform, after S601, the method of the present invention further includes:
[0140] After the communication receiving end clicks the shared link, jump the browsing interface of the communication receiving end to the multi - person online platform;
[0141] Record the user information of the communication receiving end accessing the multi - person online platform;
[0142] According to the mapping relationship and the shared link, return the access address of the PCB design drawing to the communication receiving end, and automatically open the PCB design drawing on the communication receiving end.
[0143] Through the above technical solution, for "new users" who are not on the multi - person online platform, the method of the present invention will register the information of "new users" who enter through the shared link to improve the security of information exchange. After the registration is completed, according to the mapping relationship and the shared link, return the access address of the PCB design drawing to the communication receiving end, and automatically open the PCB design drawing on the communication receiving end, realizing the automatic opening of the link address, providing a convenient channel for new personnel joining the PCB design drawing review.
[0144] Embodiment IV
[0145] As Figure 5 shown, based on Embodiment I, when the communication sharing request is an instant communication request, the communication information includes text information and the initiating end individual information. S60 of the PCB layout lightweight online review method in this embodiment includes:
[0146] S610: Obtain the initiating end individual information, the text information of the communication initiating end, and the unique identifier for transporting the PCB layout to the communication receiving end.
[0147] S611: Based on the communication protocol, send the initiator's personal information, text information, and unique identifier to the server for caching.
[0148] S612: Search for the receiving address of the communication recipient according to the unique identifier, and use the Redis cache server to return the search result.
[0149] S613: Based on the communication protocol and the search result, send the text information and the initiator's personal information to the communication recipient.
[0150] Through the above technical solution, when using the method of the present invention for online instant communication, the server and the Redis cache server are used in combination, which is beneficial to improving the read and write speed of data transmission, enabling the communication recipient to obtain the text information sent by the communication initiator faster.
[0151] Preferably, before actually performing S610, it is necessary to register the users who are about to have instant communication and update them to the instant communication personnel list, Figure 6 that is, the specific algorithm of the above registration stage.
[0152] Preferably, during the actual process of S611 - S613, as Figure 7 shown, for the user terminals with connection timeout or disconnection, it is necessary to reset their heartbeat information and update the real-time status of the user terminals. This way can enable the communication recipient to know the real-time status of the communication initiator in real time and improve the communication efficiency.
[0153] Preferably, after S613, exit the instant communication. As Figure 8 shown, this process requires deleting the user information stored in the server and the Redis cache server to reduce the storage burden on the server and the Redis cache server, improve the running efficiency of the method of the present invention on the browser side, and avoid lags when multiple people browse online.
[0154] Embodiment Five
[0155] As Figure 9 shown, on the basis of Embodiment One, when the communication sharing request is a real-time meeting request, the communication information includes PCB layout information and the voice information sent by the communication initiator. S60 of the PCB layout lightweight online review method in this embodiment includes:
[0156] S620: Designate the communication initiator as the master user and obtain the master user information.
[0157] S621: Based on the communication protocol, send the PCB layout information and the master user information to the multi-person online platform for display.
[0158] S622: Allow the microphone input of the master user, receive voice information and forward it to multiple communication receivers.
[0159] More specifically, when a user initiates a real-time meeting, a user needs to be designated as the master user. After the server receives the sharing request, it notifies the master user through WebSocket. After the master user's browser receives the master notification, it will collect the status data of each control and design drawing, and at the same time apply to open the microphone to record the user's voice data, and send it to the server side through WebSocket. The server side forwards the voice to other user browsers through the WebSocket object, and the browser plays the voice. After the data collection is completed, the data will be sent back to the server. Next, the server will notify other users as the controlled users. After the controlled users receive the controlled notification, they will set the status of each control and design drawing to be the same as that of the master user, and then render a transparent top mask to intercept user operations to ensure that the controlled users cannot operate the design drawing. Then the controlled user's browser will apply for microphone permission, record the user's voice data, and send it to the server side through WebSocket. The server side forwards the voice to other user browsers through the WebSocket object, and the browser plays the voice.
[0160] Through the above technical solution, when using the method of the present invention for a multi-person meeting, based on WebSocket, the PCB layout information and the master user information are transmitted to the multi-person online platform for display, which is beneficial for other users to determine the speaker. And S622 can enable multiple communication receivers to synchronously receive the voice information of the master user, improving the review and communication efficiency.
[0161] Preferably, in order to maintain the synchronization of voice information and PCB layout information in the real-time meeting stage, that is, audio-visual synchronization, as Figure 10 shown, all operation actions of the master user will be sent to the server through WebSocket. The server forwards the data to the controlled users through WebSocket technology. After the controlled user's browser receives the data, it will modify the status to be the same as that of the master user. In addition to this, this embodiment also uses remote collaboration technology to achieve remote collaboration between the master end and the controlled end to improve the review and correction efficiency.
[0162] It should be added that in the actual application environment, the speaker (master user) and the audience (communication receiver) can often switch roles. In view of this phenomenon, the method of the present invention uses the characteristics of WebSocket to realize the switching between the master user and the controlled user.
[0163] As Figure 11 shown, it is the process of designating a certain communication receiver as the new master user for the master user. And as Figure 12As shown in the figure, it is a process that a certain communication receiving end proposes an interactive role to a master user. Specifically, after the controlled user (communication receiving end) clicks the button to apply to become the master, a request to apply to become the master is sent to the server. The server sends this information to the master user's browser through WebSocket. After the master user's browser receives the message, a prompt will be generated. If the master user clicks to confirm, the master / controlled identity will be modified to complete the identity conversion of the master and the controlled.
[0164] Embodiment 6
[0165] like Figure 13 As shown, this embodiment discloses a lightweight online review system for PCB layout, which uses a lightweight drawing engine to render the PCB layout in a multi-person online platform. The system of this embodiment includes:
[0166] An interaction request receiving module, used to receive an interaction request from any user terminal in the multi-person online platform;
[0167] The interactive request includes at least one or more of a parsing and exporting request, an information retrieval request, a hierarchical display request, and a communication and sharing request;
[0168] The parallel execution module is used to execute the built-in functions of the following modules in parallel based on interaction requests:
[0169] The parsing and exporting module is used for compressing and converting the PCB layout into a common format for the user end if the interactive request is a parsing and exporting request, obtaining a parsing file, and transmitting the parsing file to the user end that makes the parsing and exporting request;
[0170] An information retrieval module, for, if the interactive request is an information retrieval request, using a preset hierarchical retrieval algorithm to search the PCB layout, obtain the retrieval result, and transmit the retrieval result to the user end that made the information retrieval request;
[0171] A layered display module, for reading the attribute configuration information corresponding to the layered display request if the interactive request is a layered display request, and hiding or displaying the display content corresponding to the PCB layout according to the attribute configuration information;
[0172] The communication sharing module is used to send the communication information of the communication initiator to the communication receiver based on the communication protocol built into the multi-person online platform if the interaction request is a communication sharing request.
[0173] Through the above technical solution, the PCB layout lightweight online review system of the present invention is essentially an online review platform equipped with a lightweight drawing engine, making it lightweight and having a fast rendering speed. On this basis, the platform has functions such as multi-person online viewing, retrieval, sharing, hierarchical display, information parsing and export, and multi-person online communication, which can meet the review needs of the majority of user terminals and improve the overall review efficiency.
[0174] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disk or optical disk that can store program codes.
[0175] For those skilled in the art, according to the above-described technical solutions and concepts, various corresponding changes and deformations can be made, and all such changes and deformations should fall within the protection scope of the claims of the present invention.
Claims
1. An online review method for PCB layout lightweighting, characterized in that, A lightweight drawing engine is used to render a PCB layout in a multi-person online platform, the method comprising: S10: receiving an interaction request from any user terminal in the multi-person online platform; The interaction request at least includes one or more of a parsing and exporting request, an information retrieval request, a hierarchical display request, and a communication and sharing request; S20: According to the interaction request, S30-S60 are executed in parallel: S30: If the interactive request is a parsing export request, compress the PCB layout and convert it into a common format for the user end to obtain a parsing file, and transmit the parsing file to the user end that made the parsing export request; S40: If the interactive request is an information retrieval request, a preset hierarchical retrieval algorithm is used to search the PCB layout to obtain a retrieval result, and the retrieval result is transmitted to the user terminal that made the information retrieval request; S50: If the interactive request is a layered display request, read the attribute configuration information corresponding to the layered display request, and hide or display the display content corresponding to the PCB layout according to the attribute configuration information; S60: If the interaction request is a communication sharing request, based on the communication protocol built into the multi-person online platform, the communication information of the communication initiator is sent to the communication receiver.
2. The lightweight online review method for PCB layout according to claim 1 is characterized in that: When compressing and converting the PCB layout into a universal format for the user end to obtain a parsed file, RPA and a built-in script are used to compress and convert the PCB layout into a universal format for the user end to obtain a parsed file; When the PCB layout is searched by using a preset hierarchical search algorithm and a search result is obtained, the PCB layout is searched by using a preset breadth-first algorithm and a search result is obtained; When reading the attribute configuration information corresponding to the layered display request and hiding or displaying the display content corresponding to the PCB layout according to the attribute configuration information, read the attribute configuration of the target element or target layer in the PCB layout by the layered display request, and hide or display the target element or target layer according to the attribute configuration.
3. The PCB layout lightweight online review method according to claim 2, characterized in that The PCB layout is searched using a preset breadth-first algorithm to obtain search results, including: Identifying keywords of the information retrieval request and placing the keywords into a pre-set dictionary tree; Using a breadth-first algorithm, information retrieval is performed on the keyword in the dictionary tree to obtain a retrieval result.
4. The PCB layout lightweight online review method according to claim 3, wherein The breadth-first algorithm is used to perform information retrieval on the keyword in the dictionary tree to obtain retrieval results, including: Splitting the keyword into multiple single characters arranged in sequence one by one; Find whether the single character has a matching word in the first layer of the dictionary tree; if so, record the node with successful matching, if not, traverse the next layer of the dictionary tree until all single characters are matched successfully; After all single character matches are completed, the node and its child nodes corresponding to the single character match are used as the search results expected by the user.
5. The PCB layout lightweight online review method according to claim 1, characterized in that, The communication and sharing request includes at least one or more of an instant communication request, a real-time conference request, and a link sharing request.
6. The PCB layout lightweight online review method according to claim 5, wherein If the communication sharing request is the instant communication request, the communication information includes text information and the initiating end individual information; Based on the communication protocol built in the multi-person online platform, sending the communication information of the communication initiating end to the communication receiving end includes: S610: Obtain the initiating end individual information, the text information of the communication initiating end, and the unique identifier of the PCB layout sent to the communication receiving end; S611: Based on the communication protocol, send the initiating end individual information, the text information, and the unique identifier to the server for caching; S612: Find the receiving address of the communication receiving end according to the unique identifier, and use the Redis cache server to return the search result; S613: Based on the communication protocol and the search result, send the text information and the initiating end individual information to the communication receiving end.
7. The PCB layout lightweight online review method according to claim 5, characterized in that If the communication sharing request is the real-time meeting request, the communication information includes PCB layout information and the voice information sent by the communication initiating end; Based on the communication protocol built in the multi-person online platform, sending the communication information of the communication initiating end to the communication receiving end includes: S620: Designate the communication initiating end as the master control user, and obtain the master control user information; S621: Based on the communication protocol, send the PCB layout information and the master control user information to be displayed on the multi-person online platform; S622: Allow the microphone input of the master control user, receive the voice information and forward it to multiple communication receiving ends.
8. The PCB layout lightweight online review method according to claim 5, wherein If the communication sharing request is the link sharing request, the communication information includes the access address of the PCB design diagram sent by the communication initiating end; Based on the communication protocol built in the multi-person online platform, sending the communication information of the communication initiating end to the communication receiving end includes: S600: Send the access address of the PCB design diagram to the server, generate a shared link, and record the mapping relationship between the shared link and the access address of the PCB design diagram; S601: Send the shared link processed by S600 to the communication receiving end.
9. The PCB layout lightweight online review method according to claim 8, characterized in that, If the communication receiving end is not on the multi-person online platform; After S601, the method further includes: After the communication receiving end clicks the shared link, jump the browsing interface of the communication receiving end to the multi-person online platform; Record the user information of the communication receiving end accessing the multi-person online platform; According to the mapping relationship and the shared link, return the access address of the PCB design diagram to the communication receiving end, and automatically open the PCB design diagram on the communication receiving end.
10. A PCB layout lightweight online review system, characterized in that, Render the PCB layout in the multi-person online platform using a lightweight drawing engine, and the system includes: An interaction request receiving module, which is used to receive the interaction requests of any user terminal in the multi-person online platform; The interaction request includes at least one or more of a parsing and export request, an information retrieval request, a hierarchical display request, and a communication sharing request; A parallel execution module, which is used to parallelly execute the built-in functions of the following modules according to the interaction request: A parsing and export module, which is used to convert the compressed PCB layout into a common format for the client if the interaction request is a parsing and export request, obtain a parsing file, and deliver the parsing file to the client that submits the parsing and export request; An information retrieval module, which is used to retrieve the PCB layout using a preset hierarchical retrieval algorithm if the interaction request is an information retrieval request, obtain a retrieval result, and deliver the retrieval result to the client that submits the information retrieval request; A hierarchical display module, which is used to read the attribute configuration information corresponding to the hierarchical display request and hide or display the display content corresponding to the PCB layout according to the attribute configuration information if the interaction request is a hierarchical display request; A communication and sharing module, which is used to send the communication information of the communication initiation end to the communication reception end based on the communication protocol built in the multi-person online platform if the interaction request is a communication and sharing request.
Citation Information
Patent Citations
PCB design layout audit system
CN104573242A