Circuit board design method, design tool sharing method, equipment and storage medium
By configuring shared folders on the server and automatically mapping them to the PCB design engineer's client, the problem of shared use of PCB design tools among different clients is solved, and centralized management and efficient use of tools is achieved.
Patent Information
- Application Number
- CN202411391811.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-10-08
AI Technical Summary
It is difficult for the existing technology to realize the shared use of PCB design tools between PCB design tool development engineers and PCB design engineers, resulting in untimely use of tools.
By configuring a shared folder on the server, the first client (the client of the PCB design engineer) allows the first client (the client of the PCB design engineer) to automatically map the shared folder to the local drive at startup and mount it into the file access path of the board design application, so that the design tool file can be called directly by the application.
It realizes centralized management and unified updates of PCB design tools, avoiding the complexity of engineers downloading and deploying tools by themselves, and improving the ease of use and efficiency of tools.
Smart Images

Figure CN119598914A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a circuit board design method, a design tool sharing method, a device and a storage medium. Background Art
[0002] PCB (Printed Circuit Board), also known as printed circuit board, printed circuit board or electronic circuit board, is an important electronic component, a support for electronic components, and a carrier for electrical connection of electronic components. It is made by electronic printing, that is, on an insulating substrate, according to a predetermined design, a conductive pattern of printed circuits, printed components or a combination of the two is made to achieve electrical connection between circuits (including electronic components).
[0003] There are many PCB design applications currently. However, due to the inconsistent design requirements of different server products, the standard functions provided by PCB design applications cannot meet the design requirements. Therefore, PCB design tool development engineers are required to redevelop some PCB design tools according to PCB design needs for use by PCB design engineers.
[0004] However, every time a PCB design tool development engineer releases a new PCB design tool, the PCB design engineer needs to download and deploy it on his own client. In addition, the PCB design tool development engineer also needs to notify each PCB design tool development engineer to update and replace the latest tool package for tool update and optimization.
[0005] Therefore, how to achieve the shared use of PCB design tools between the client of PCB design tool development engineers and the client of PCB design engineers and improve the timeliness of PCB tool use is a technical problem that needs to be solved at present. Summary of the invention
[0006] The present invention provides a circuit board design method, a design tool sharing method, a device and a storage medium, which are used to realize the shared use of PCB design tools between PCB design tool development engineers and PCB design engineers, thereby improving the timeliness of the use of PCB tools.
[0007] The present invention provides a circuit board design method, which is applied to a first client, wherein the first client is connected to a server in communication, wherein a shared folder is configured in the server, and the server is also connected to a second client in communication, wherein the shared folder includes at least one circuit board design tool file developed in the second client, and the method comprises: Monitoring the start-up event of the first client, and mapping the shared folder in the server to a local drive; The startup and running event of the circuit board design application in the first client is monitored, and the shared folder is mounted in the file access path of the circuit board design application so that the circuit board design application can call the circuit board design tool file in the shared folder to perform circuit design.
[0008] According to a circuit board design method provided by the present invention, the monitoring of the startup event of the first client and mapping the shared folder of the server to the local drive include: Listening to the start-up event of the first client, establishing an access connection with the shared folder of the server; Acquire access credentials from a credential manager, where the access credentials are used to access a shared folder of the circuit board design tool server; The access credentials are used for identity authentication, and after successfully passing the identity authentication, a mapping operation is performed to map the shared folder of the server to the local drive.
[0009] According to a circuit board design method provided by the present invention, monitoring the start-up event of the circuit board design application in the first client and mounting the shared folder to the file access path of the circuit board design application include: Listening to the start-up event of the circuit board design application in the first client, detecting whether the mapping between the shared folder in the server and the local drive is successfully established; In case that the mapping between the shared folder in the server and the local drive is successfully established, obtaining the circuit board design tool file in the shared folder; The circuit board design tool files in the shared folder are mounted to the file access path of the circuit board design application.
[0010] A circuit board design method provided by the present invention further includes: Setting the installation directory of the circuit board design application as an environment variable; The initialization script file of the circuit board design application is copied to the path specified by the environment variable, and the initialization script file is used to mount the shared folder to the file access path of the circuit board design application when the circuit board design application is started.
[0011] The present invention also provides a design tool sharing method, which is applied to a second client, wherein the second client is connected to a server in communication, wherein a shared folder is configured in the server, and the server is also connected to a first client in communication, wherein the shared folder includes at least one circuit board design tool file for the first client to perform circuit board design, and the method includes: Listening to the start-up event of the second client, mapping the shared folder in the server to the local drive; When a file copy instruction is received, the circuit board design tool file under the source file path specified in the file copy instruction is copied to the directory path of the shared folder in the server specified in the file copy instruction.
[0012] According to a design tool sharing method provided by the present invention, monitoring the start-up event of the second client and mapping the shared folder of the server to the local drive includes: Listening to the start-up event of the second client, establishing an access connection with the shared folder of the server; Acquire access credentials from a credential manager, where the access credentials are used to access a shared folder of the circuit board design tool server; The access credentials are used for identity authentication, and after successfully passing the identity authentication, a mapping operation is performed to map the shared folder of the server to the local drive.
[0013] According to a design tool sharing method provided by the present invention, the file copy instruction also includes a specified backup path and an encryption password, and the circuit board design tool file under the source file path specified in the file copy instruction is copied to the directory path of the shared folder in the server specified in the file copy instruction, including: Copy the circuit board design tool file under the source file path specified in the file copy instruction to the backup path; Encrypting the circuit board design tool file copied to the backup path based on the encryption password specified in the file copy instruction; The encrypted circuit board design tool file is copied to the directory path of the shared folder in the server specified in the file copy instruction.
[0014] A design tool sharing method provided by the present invention further includes: Listening to the start-up event of the circuit board design application in the second client, detecting whether the mapping between the shared folder in the server and the local drive is successfully established; If the mapping between the shared folder in the server and the local drive is not successfully established, output a corresponding prompt message; and
[0015] In case that the mapping between the shared folder in the server and the local drive is successfully established, displaying a circuit board design tool copy function interface; Based on the circuit board design tool copy function interface, configure file copy parameters, wherein the file copy parameters include at least one of a source file path of the circuit board design tool file to be copied, a backup path of the circuit board design tool file to be copied, a tool function of the circuit board design tool in the circuit board design tool file to be copied, a directory path of a shared folder in the server, and an encryption password; Mounting the circuit board design tool file to be copied into the file access path of the circuit board design application, and verifying the circuit board design tool file to be copied based on the circuit board design application; When the circuit board design tool file to be copied passes the verification, a file copy instruction including the file copy parameters is generated.
[0016] A design tool sharing method provided by the present invention further includes: Setting the installation directory of the circuit board design application as an environment variable; The initialization script file of the circuit board design application is copied to the path specified by the environment variable, and the initialization script file is used to mount the shared folder to the file access path of the circuit board design application when the circuit board design application is started.
[0017] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor implements a circuit board design method as described in any one of the above, or implements a design tool sharing method as described in any one of the above.
[0018] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements any of the circuit board design methods described above, or implements any of the design tool sharing methods described above.
[0019] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the circuit board design methods described above, or implements any of the design tool sharing methods described above.
[0020] The circuit board design method, design tool sharing method, device and storage medium provided by the present invention, in the first aspect, the circuit board design method is applied to a first client, the first client is connected to a server in communication, a shared folder is configured in the server, the server is also connected to a second client in communication, and the shared folder includes at least one circuit board design tool file developed in the second client. By configuring a shared folder on the server, all design tool files can be centrally managed, which is convenient for unified update and maintenance, avoiding the problem that PCB design engineers need to download and deploy tools by themselves, and all tools are concentrated on the server for easy management. Specifically, when the first client is started, the shared folder is automatically mapped to the local drive, so that these tool files are as convenient to access as if they were stored locally, simplifying the steps for PCB design engineers to access the tools and improving the ease of use of the tools. When the circuit board design application in the first client is started, the shared folder is automatically mounted in the file access path of the circuit board design application, so that the design tool files can be directly called by the application without the need for additional import and export steps, thereby improving the use efficiency of the design tool and reducing the complexity of operation.
[0021] In the second aspect, the circuit board design method is applied to the second client, the second client is connected to the server in communication, a shared folder is configured in the server, the server is also connected to the first client in communication, and the shared folder includes at least one circuit board design tool file for the first client to design the circuit board. Similarly, by configuring the shared folder on the server, all design tool files can be centrally managed, which is convenient for unified updating and maintenance, avoiding the problem that the PCB design tool engineer needs to notify each PCB design tool development engineer to update and replace the latest toolkit. All tools are concentrated on the server and are easy to manage. Specifically, when the second client starts running, the shared folder is mapped to the local drive. Through the mapping mechanism, the second client can easily access the shared folder without complicated operations. The second client uploads the design tool file to the shared folder through the file copy instruction, realizes file sharing, and reduces the complexity of sharing operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 The figure is a schematic diagram of a circuit board design method provided by an embodiment of the present invention.
[0024] Figure 2 It is a flow chart of a circuit board design method provided by an embodiment of the present invention.
[0025] Figure 3 It is a flowchart of a design tool sharing method provided by an embodiment of the present invention.
[0026] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] Reference Figure 1 , Figure 1 Schematic diagram of a circuit board design method provided by an embodiment of the present invention. In the embodiment of the present invention, a first client 10 is connected to a server 20 in communication, a shared folder is configured in the server 20, and the server 20 is also connected to a second client 30 in communication, and the shared folder includes at least one circuit board design tool file developed in the second client.
[0029] Here, the first client 10 is a client used by a PCB design engineer, which establishes a communication connection with the server 20 so that the PCB design engineer can use the circuit board design tool files stored on the server 20. The server 20 is a central storage and processing center for managing and sharing circuit board design files. Specifically, a shared folder is configured in the server 20, which is an area specifically used to store and share circuit board design files. The second client 30 is a client used by a PCB design tool development engineer, which establishes a communication connection with the server 20 so that the PCB design tool development engineer can share the developed circuit board design tool files in the shared folder of the server 20.
[0030] Through the above configuration, by configuring a shared folder on server 20, all circuit board design tool files can be centrally managed, which is convenient for unified updating and maintenance, avoiding the problem that PCB design engineers need to download and deploy tools by themselves. All tools are concentrated on the server and are easy to manage.
[0031] The circuit board design method provided in this embodiment is applied to the first client, referring to Figure 2 , Figure 2FIG. 1 is a flow chart of the circuit board design method provided in this embodiment. Figure 2 As shown, including but not limited to the following steps: Step 210: monitor the start-up event of the first client, and map the shared folder in the server to the local drive; Here, the startup and running status of the first client is continuously monitored through an event monitoring mechanism pre-set in the operating system of the first client.
[0032] When the first client is detected to start running or after it starts running, it identifies and connects to the server. This server stores various tool files required in the circuit board design process. Once the server is successfully connected, the operating system will automatically map the shared folder on the server to the client's local drive, so that after mapping, the first client can directly access and operate the shared files on the server on the local drive.
[0033] Step 220: monitor the start-up event of the circuit board design application in the first client, and mount the shared folder in the file access path of the circuit board design application so that the circuit board design application can call the circuit board design tool file in the shared folder to perform circuit design.
[0034] Here, the startup and running status of the circuit board design application in the first client is continuously monitored by pre-setting an event monitoring mechanism in the operating system of the first client.
[0035] When the circuit board design application starts running, the operating system will mount the shared folder previously mapped to the local drive to the file access path of the circuit board design application so that the circuit board design application can directly read the circuit board design tool files from this location for circuit design without the user (such as a PCB design engineer) manually specifying the file path.
[0036] Furthermore, in this embodiment, when the circuit board design application calls the circuit board design tool file in the shared folder to perform circuit design, if the circuit board design tool file cannot be read normally, the following steps can be performed to diagnose and solve the problem: Check mapping status: Confirm that the shared folder is correctly mapped to the local drive, and check if the mapped local drive is visible and accessible.
[0037] Verify file path: Verify that the file path that the board design application is trying to access is correct and that the file actually exists in the shared folder.
[0038] Confirm access rights: Check whether the first client user has sufficient permissions to read and write files in the shared folder. If the permissions are insufficient, output the corresponding prompt information for permission setting.
[0039] In the circuit board design method provided by an embodiment of the present invention, when the circuit board design application in the first client is started, the shared folder is automatically mounted to the file access path of the circuit board design application, so that the design tool file can be directly called by the application without the need for additional import and export steps, thereby improving the use efficiency of the design tool and reducing the complexity of operation.
[0040] In some embodiments, monitoring the start-up event of the first client and mapping the shared folder of the server to a local drive includes: Listening to the start-up event of the first client, establishing an access connection with the shared folder of the server; Acquire access credentials from a credential manager, where the access credentials are used to access a shared folder of the circuit board design tool server; The access credentials are used for identity authentication, and after successfully passing the identity authentication, a mapping operation is performed to map the shared folder of the server to the local drive.
[0041] Specifically, when monitoring that the first client starts running or starts running, the control system will first identify the location of the shared folder set on the server. Establish an access connection with the shared folder of the server based on the identified location. After the access connection is established, determine the access credentials provided for accessing the shared folder of the circuit board design tool server from the credential manager, such as the user name and password. Send the access credentials to the server, and the server verifies whether the user name and password in the access credentials match the user name and password configured in the server that have the right to access the shared folder. If the verification is successful, access rights will be granted.
[0042] Once the authentication is successful, a mapping operation will be performed, that is, mapping the shared folder on the server to the local drive of the first client. Specifically, a virtual local drive is created on the operating system of the first client, and the mapping relationship between the drive and the location of the shared folder is specified, so that the user can access the shared folder through this local drive just like accessing a local file access path.
[0043] The circuit board design method provided by the embodiment of the present invention enables the user of the first client to transparently access and operate the circuit board design tool files in the shared folder on the server on the local drive through the above manner, thereby performing circuit design work.
[0044] In some embodiments, monitoring the start-up event of the circuit board design application in the first client and mounting the shared folder to the file access path of the circuit board design application includes: Listening to the start-up event of the circuit board design application in the first client, detecting whether the mapping between the shared folder in the server and the local drive is successfully established; In case that the mapping between the shared folder in the server and the local drive is successfully established, obtaining the circuit board design tool file in the shared folder; The circuit board design tool files in the shared folder are mounted to the file access path of the circuit board design application.
[0045] Specifically, when monitoring the start-up of the circuit board design application of the first client, the operating system needs to check whether the network sharing has been correctly set up. Specifically, verify whether the shared folder on the server has been mapped (ie, associated) to the local drive of the first client.
[0046] If the mapping has been successfully established, meaning that the first client can access the shared folder on the server, the operating system can retrieve the required circuit board design tool files from the shared folder on the server.
[0047] Finally, the PCB design tool files in the shared folder are mounted to the file access path of the PCB design application. Specifically, when the mount operation is performed, the file manager of the PCB design application creates a virtual or mapped directory (also called a mount point) that is associated with the shared folder on the server. Once mounted successfully, users can browse, open, edit, and save files in the shared folder through the file access path of the PCB design application (such as the file browser or file open dialog box inside the application) without knowing that these files are actually stored on the remote server.
[0048] The circuit board design method provided by an embodiment of the present invention, through the above method, the circuit board design application can directly access the files in the shared folder from the path of the local file system, and the user can directly browse, open, edit and save the files in the shared folder in the interface of the circuit board design application without switching between multiple windows or interfaces, thereby simplifying the file management process.
[0049] In some embodiments, it also includes: Setting the installation directory of the circuit board design application as an environment variable; The initialization script file of the circuit board design application is copied to the path specified by the environment variable, and the initialization script file is used to mount the shared folder to the file access path of the circuit board design application when the circuit board design application is started.
[0050] In this embodiment, an environment variable, such as the HOME environment variable, is also defined in the operating system, and the environment variable contains the installation path of the circuit board design application. It should be noted here that the environment variable is a dynamically named value that can be accessed in all processes of the operating system. In this way, no matter where in the operating system, the installation directory of the circuit board design application can be referenced through this environment variable without knowing the exact path.
[0051] After that, move the PCB design application's initialization script file to the specific location, which is the directory pointed to by the environment variable set earlier. The initialization script is a file containing a series of commands that are executed when the PCB design application starts to mount the shared folder to the PCB design application's file access path.
[0052] The circuit board design method provided by the embodiment of the present invention ensures that the circuit board design application can automatically configure its environment when it is started and can access necessary shared resources, thereby supporting users in performing circuit board design work.
[0053] In addition, an embodiment of the present invention also provides a design tool sharing method applied to a second client. As above, the second client is connected to a server for communication, and a shared folder is configured in the server. The server is also connected to the first client for communication, and the shared folder includes at least one circuit board design tool file for the first client to perform circuit board design. The details will not be repeated here.
[0054] Combine the following Figure 3 For detailed instructions on how to share design tools, please refer to Figure 3 , Figure 3 FIG. 1 is a flow chart of a design tool sharing method provided by an embodiment of the present invention. Figure 3 As shown, including but not limited to the following steps: Step 310, monitoring the start-up event of the second client, and mapping the shared folder in the server to the local drive; Here, the startup and running status of the second client is continuously monitored through an event monitoring mechanism pre-set in the operating system of the second client.
[0055] When the second client starts running or starts running, it identifies and connects to the server. This server stores various tool files required in the circuit board design process. Once the server is successfully connected, the operating system will automatically map the shared folder on the server to the client's local drive. After mapping, the second client can directly access and operate the shared files on the server on the local drive.
[0056] Step 320: upon receiving a file copy instruction, copy the circuit board design tool file in the source file path specified in the file copy instruction to the directory path of the shared folder in the server specified in the file copy instruction.
[0057] After using the second client to develop the circuit board design tool, the user (such as a PCB design tool development engineer) needs to save the locally developed circuit board design tool file to a shared folder so that other users (such as PCB design engineers) can access it. At this time, the user will issue a file copy instruction, specifying the source file path of the circuit board design tool file to be copied and the directory path of the shared folder in the server.
[0058] After receiving the file copy instruction, the operating system will parse the source file path and target path in the file copy instruction. Then, it will perform the file copy operation and copy the circuit board design tool file under the specified source file path to the corresponding shared folder directory in the server.
[0059] According to the design tool sharing method provided by an embodiment of the present invention, when the second client starts running, the shared folder is mapped to the local drive. Through the mapping mechanism, the second client can easily access the shared folder without complicated operations. The second client uploads the design tool file to the shared folder through the file copy instruction, thereby realizing file sharing and reducing the complexity of sharing operations.
[0060] In some embodiments, monitoring the start-up event of the second client and mapping the shared folder of the server to the local drive includes: Listening to the start-up event of the second client, establishing an access connection with the shared folder of the server; Obtain access credentials from the credential manager, wherein the access credentials are used to access the shared folder of the circuit board design tool server; use the access credentials to perform identity authentication, and after successfully passing the identity authentication, perform a mapping operation to map the shared folder of the server to a local drive.
[0061] Specifically, when monitoring that the second client starts running or starts running, the control system will first identify the location of the shared folder set on the server. Based on the identified location, an access connection is established with the shared folder of the server. After the access connection is established, the access credentials provided, such as the user name and password, are determined. The access credentials are sent to the server, and the server verifies whether the user name and password in the access credentials match the user name and password that have the right to access the shared folder. If the verification is successful, access rights will be granted.
[0062] Once the authentication is successful, the mapping operation will be performed, that is, the shared folder on the server will be mapped to the local drive of the second client. Specifically, a virtual local drive is created on the operating system of the second client, and the mapping relationship between the drive and the location of the shared folder is specified, so that the user can access the shared folder through this local drive just like accessing a local file access path.
[0063] The circuit board design method provided by the embodiment of the present invention enables the user of the second client to transparently access and operate the circuit board design tool files in the shared folder on the server on the local drive through the above manner, thereby performing circuit design work.
[0064] In some embodiments, the file copy instruction also includes a specified backup path and an encryption password, and the circuit board design tool file under the source file path specified in the file copy instruction is copied to the directory path of the shared folder in the server specified in the file copy instruction, including: Copy the circuit board design tool file under the source file path specified in the file copy instruction to the backup path; Encrypting the circuit board design tool file copied to the backup path based on the encryption password specified in the file copy instruction; The encrypted circuit board design tool file is copied to the directory path of the shared folder in the server specified in the file copy instruction.
[0065] In this embodiment, the file copy instruction includes not only the source file path and the target shared folder path, but also the backup path and the encryption password, that is, the backup and encryption operations will also be performed during the copy process.
[0066] Specifically, before copying files to a shared folder, first copy them to a designated backup path to ensure that there is a backup data to restore when the original files are lost or damaged.
[0067] After the files are copied to the backup path, they are encrypted using the encryption password provided in the file copy instruction. Here, encryption is to protect the security of the data and prevent unauthorized access.
[0068] Finally, copy the encrypted file from the backup path to a shared folder on the server so that it can be used by the circuit board design application.
[0069] In some embodiments, it also includes: Listening to the start-up event of the circuit board design application in the second client, detecting whether the mapping between the shared folder in the server and the local drive is successfully established; If the mapping between the shared folder in the server and the local drive is not successfully established, output a corresponding prompt message; and
[0070] In case that the mapping between the shared folder in the server and the local drive is successfully established, displaying a circuit board design tool copy function interface; Based on the circuit board design tool copy function interface, configure file copy parameters, wherein the file copy parameters include at least one of a source file path of the circuit board design tool file to be copied, a backup path of the circuit board design tool file to be copied, a tool function of the circuit board design tool in the circuit board design tool file to be copied, a directory path of a shared folder in the server, and an encryption password; Mounting the circuit board design tool file to be copied into the file access path of the circuit board design application, and verifying the circuit board design tool file to be copied based on the circuit board design application; When the circuit board design tool file to be copied passes the verification, a file copy instruction including the file copy parameters is generated.
[0071] Specifically, the operating system continuously monitors the startup event of the circuit board design application on the second client. Once the application startup is monitored, the operating system will check whether the shared folder on the server has been successfully mapped to the local drive of the second client.
[0072] If the mapping is not successfully established, the operating system will output a prompt message to inform the user or administrator that there is a problem and the mapping problem needs to be resolved before continuing.
[0073] If the mapping is successful, the operating system will display a user interface to allow the user to copy the PCB design tool files. The user can configure the file copy parameters in the copy function interface, including the source file path, backup path, tool function description, shared folder directory path, and encryption password.
[0074] After configuring the parameters, the operating system will first mount the circuit board design tool file to be copied to the file access path of the circuit board design application, and use the circuit board design application to verify the circuit board design tool file to be copied to verify whether the circuit board design tool file to be copied can be called and used normally in the circuit board design application.
[0075] Finally, if the file passes the verification, the operating system will generate a file copy instruction containing all configuration parameters, which will be used to perform the actual file copy operation.
[0076] The circuit board design method provided by an embodiment of the present invention, through the above method, before copying the circuit board design tool file in the second client to the shared folder, configures the file copy parameters of the circuit board design tool file in the second client and calls the circuit board design application to perform circuit board design tool file verification, so as to ensure that the circuit board design tool file in the subsequent shared folder can be normally called and used by the circuit board design application in the first client.
[0077] In some embodiments, it also includes: Setting the installation directory of the circuit board design application as an environment variable; The initialization script file of the circuit board design application is copied to the path specified by the environment variable, and the initialization script file is used to mount the shared folder to the file access path of the circuit board design application when the circuit board design application is started.
[0078] In this embodiment, an environment variable, such as the HOME environment variable, is also defined in the operating system, and the environment variable contains the installation path of the circuit board design application. It should be noted here that the environment variable is a dynamically named value that can be accessed in all processes of the operating system. In this way, no matter where in the operating system, the installation directory of the circuit board design application can be referenced through this environment variable without knowing the exact path.
[0079] After that, move the PCB design application's initialization script file to the specific location, which is the directory pointed to by the environment variable set earlier. The initialization script is a file containing a series of commands that are executed when the PCB design application starts to mount the shared folder to the PCB design application's file access path.
[0080] The circuit board design method provided by the embodiment of the present invention ensures that the circuit board design application can automatically configure its environment when it is started and can access necessary shared resources, thereby supporting users in performing circuit board design work.
[0081] In order to more clearly understand the present invention, some configuration operations that can support the implementation process of the circuit board design method and the circuit board design tool sharing method of the present invention are specifically described below. Specifically, the following configuration operations may be included: 1. Apply for a PCB design tool server and create a folder named PCBdesignTools to store the developed PCB design tool code files; 2. Create a new user account TOOLS for the PCB design tool server and set the password as pw; 3. Set up file sharing for the newly created folder PCBdesignTools, add shared user TOOLS and permission level; 4. Enable the PCB design engineer's client and PCB tool development engineer's client to access the PCB design tool server through the network; 5. Configure the batch command script file for connecting to the shared folder of the PCB design tool server on the client of the PCB design engineer and the client of the PCB tool development engineer, record it as sharePCBtoolsBat, and use the net use command to connect to the shared folder TOOLS. The default shared drive letter is Z. 6. Set the sharePCBtoolsBat batch command script file as the startup item on the client of the PCB design engineer and the client of the PCB tool development engineer. In this way, the batch command will be automatically executed every time the computer is turned on, and the computer will automatically connect to access the PCB design tool server folder; 7. Set the HOME environment variable on the client of the PCB design engineer and the client of the PCB tool development engineer respectively. The path is the installation directory of the circuit board design application, such as the installation directory of the Cadence design software. The method is as follows: For example, if the Cadence design software is installed in the C drive, then set the HOME environment variable to: C:\Cadence\home. If there is no home folder in the C:\Cadence directory, automatically create a home folder; 8. In the client of PCB tool development engineer, configure the method of automatically copying the tool code to the shared folder PCBdesignTools, record it as: ProjectManager, and set the shortcut key to facilitate the engineer to call it with one click; Among them, a function page is also provided in the client of the PCB tool development engineer to implement the above-mentioned ProjectManager, which includes the following configuration options: FTP PATH: default tool server shared file Z:\PCBdesignTools; Backup path: the path where the default source code is backed up; Project file: tool source code file path; Password: The default universal password password used to encrypt the source code; Note: used to fill in the main functions implemented by the PCB design tool; Encrypt button, a function module for moving and encrypting files. Specifically, the file under the Project file path can be recorded as sourcetoolfile, which can be automatically moved to the Backup path, and then the general encryption function can be called to encrypt sourcetoolfile according to Password. The generated encrypted file is recorded as encrypttoolfile, which is automatically stored in the FTP PATH path. At the same time, the file on the FTP PATH is modified as updaterecord.xml to record the tool record information of each addition and update. Dir: Used to directly open the FTP PATH, so as to check whether the tool file is successfully stored in time; 9. Encrypt PCBdesignTools as encryptProjectManager and put it in the FTPPATH path, with the password pw1; 10. Set up a PCB design tool loading instruction script file on the client of the PCB design engineer and the client of the PCB tool development engineer, respectively, and record it as loadtools. Specifically, the PCB design tool loading instruction script is used to perform the following steps: Connect to Z:\PCBdesignTools, get all the files in the folder, and use the load function to loop and load each file with the password password into the circuit board design application, such as cadence design software pcb. If the connection is unsuccessful, it means that the batch command to connect to the shared folder of the PCB design tool server has not been executed, and the engineer will be prompted.
[0082] 11. Deploy the encrypted loadtools to the FTP path as encryptloadtools, and the password is pw2. 12. Configure the circuit board design application on the client of the PCB design engineer, such as the initialization script file when the Cadence design software is opened, allegro.ilinit. The initialization script file is used to perform the following steps: Access the shared folder path "Z: / PCBdesignTools" where the PCB design tools are stored; Use the load function and password pw2 to load encryptloadtools; 13. Configure the circuit board design application on the client of the PCB tool development engineer, such as the initialization script file when the Cadence design software is opened, allegro.ilinit. The initialization script file is used to perform the following steps: Access the shared folder path "Z: / PCBdesignTools" where the PCB design tools are stored; Use the load function and password pw2 to load encryptloadtools; Use the load function and password pw1 to load encryptProjectManager; 14. Set the allegro.ilinit file to the path of the home environment variable on the PCB design engineer's client and the PCB tool development engineer's client respectively.
[0083] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communications interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communications interface 420 and the memory 430 communicate with each other via the communication bus 440. The processor 410 may call the logic instructions in the memory 1130 to execute the circuit board design method or the design tool sharing method provided in any of the above embodiments, which will not be described in detail herein.
[0084] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0085] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the circuit board design method or design tool sharing method provided in any of the above embodiments, which will not be repeated here.
[0086] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the circuit board design method or design tool sharing method provided in any of the above embodiments, which will not be repeated here.
[0087] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A circuit board design method, characterized in that: Applied to a first client, the first client is connected to a server in communication, a shared folder is configured in the server, the server is also connected to a second client in communication, the shared folder includes at least one circuit board design tool file developed in the second client, the method includes: Monitoring the start-up event of the first client, and mapping the shared folder in the server to a local drive; The startup and running event of the circuit board design application in the first client is monitored, and the shared folder is mounted in the file access path of the circuit board design application so that the circuit board design application can call the circuit board design tool file in the shared folder to perform circuit design.
2. The circuit board design method according to claim 1, characterized in that: The monitoring of the startup event of the first client and mapping the shared folder of the server to the local drive includes: Listening to the start-up event of the first client, establishing an access connection with the shared folder of the server; Acquire access credentials from a credential manager, where the access credentials are used to access a shared folder of the circuit board design tool server; The access credentials are used for identity authentication, and after successfully passing the identity authentication, a mapping operation is performed to map the shared folder of the server to the local drive.
3. The circuit board design method according to claim 1, characterized in that: The monitoring of the start-up event of the circuit board design application in the first client and mounting the shared folder to the file access path of the circuit board design application includes: Listening to the start-up event of the circuit board design application in the first client, detecting whether the mapping between the shared folder in the server and the local drive is successfully established; In case that the mapping between the shared folder in the server and the local drive is successfully established, obtaining the circuit board design tool file in the shared folder; The circuit board design tool files in the shared folder are mounted to the file access path of the circuit board design application.
4. The circuit board design method according to claim 1, characterized in that: Also includes: Setting the installation directory of the circuit board design application as an environment variable; The initialization script file of the circuit board design application is copied to the path specified by the environment variable, and the initialization script file is used to mount the shared folder to the file access path of the circuit board design application when the circuit board design application is started.
5. A design tool sharing method, characterized in that: Applied to a second client, the second client is connected to a server in communication, the server is configured with a shared folder, the server is also connected to a first client in communication, the shared folder includes at least one circuit board design tool file for the first client to perform circuit board design, the method includes: Listening to the start-up event of the second client, mapping the shared folder in the server to the local drive; When a file copy instruction is received, the circuit board design tool file under the source file path specified in the file copy instruction is copied to the directory path of the shared folder in the server specified in the file copy instruction.
6. The design tool sharing method according to claim 5, characterized in that: The monitoring of the start-up event of the second client and mapping the shared folder of the server to the local drive includes: Listening to the start-up event of the second client, establishing an access connection with the shared folder of the server; Acquire access credentials from a credential manager, where the access credentials are used to access a shared folder of the circuit board design tool server; The access credentials are used for identity authentication, and after successfully passing the identity authentication, a mapping operation is performed to map the shared folder of the server to the local drive.
7. The design tool sharing method according to claim 5, characterized in that: The file copy instruction also includes a specified backup path and an encryption password, and the circuit board design tool file under the source file path specified in the file copy instruction is copied to the directory path of the shared folder in the server specified in the file copy instruction, including: Copy the circuit board design tool file under the source file path specified in the file copy instruction to the backup path; Encrypting the circuit board design tool file copied to the backup path based on the encryption password specified in the file copy instruction; The encrypted circuit board design tool file is copied to the directory path of the shared folder in the server specified in the file copy instruction.
8. The design tool sharing method according to claim 5, characterized in that: Also includes: Listening to the start-up event of the circuit board design application in the second client, detecting whether the mapping between the shared folder in the server and the local drive is successfully established; If the mapping between the shared folder in the server and the local drive is not successfully established, output a corresponding prompt message; as well as In case that the mapping between the shared folder in the server and the local drive is successfully established, displaying a circuit board design tool copy function interface; Based on the circuit board design tool copy function interface, configure file copy parameters, wherein the file copy parameters include at least one of a source file path of the circuit board design tool file to be copied, a backup path of the circuit board design tool file to be copied, a tool function of the circuit board design tool in the circuit board design tool file to be copied, a directory path of a shared folder in the server, and an encryption password; Mounting the circuit board design tool file to be copied into the file access path of the circuit board design application, and verifying the circuit board design tool file to be copied based on the circuit board design application; When the circuit board design tool file to be copied passes the verification, a file copy instruction including the file copy parameters is generated.
9. The design tool sharing method according to claim 8, characterized in that: Also includes: Setting the installation directory of the circuit board design application as an environment variable; The initialization script file of the circuit board design application is copied to the path specified by the environment variable, and the initialization script file is used to mount the shared folder to the file access path of the circuit board design application when the circuit board design application is started.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, it implements the circuit board design method as described in any one of claims 1 to 4, or implements the design tool sharing method as described in any one of claims 5 to 9.
11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the circuit board design method as described in any one of claims 1 to 4, or implements the design tool sharing method as described in any one of claims 5 to 9.
Citation Information
Patent Citations
Resource sharing system, mobile terminal and resource sharing method
CN102170473A
PCB design method and system for realizing component management and sharing
CN111507056A
Method for creating CAD architectural design collaborative software path text
CN112346749A
Universal cloning method and device for cloud platform shared file storage
CN113886139A
Security by default in a cloud environment
US20220391290A1