TWI854877B - Path planning method - Google Patents

Path planning method Download PDF

Info

Publication number
TWI854877B
TWI854877B TW112141987A TW112141987A TWI854877B TW I854877 B TWI854877 B TW I854877B TW 112141987 A TW112141987 A TW 112141987A TW 112141987 A TW112141987 A TW 112141987A TW I854877 B TWI854877 B TW I854877B
Authority
TW
Taiwan
Prior art keywords
grid
score
connector
neighboring
grids
Prior art date
Application number
TW112141987A
Other languages
Chinese (zh)
Inventor
尹燕越
陳學良
張嘉和
Original Assignee
英業達股份有限公司
Filing date
Publication date
Application filed by 英業達股份有限公司 filed Critical 英業達股份有限公司
Application granted granted Critical
Publication of TWI854877B publication Critical patent/TWI854877B/en

Links

Images

Abstract

A path planning method for a flexible flat cable is provided. The path planning method includes obtaining a model file of an electronic device including a first connector and a second connector, loading the electronic device into a three-dimensional space capable of accommodating the electronic device and dividing the three-dimensional space into a plurality of meshes; determining a plurality of obstacle meshes including the electronic device from the plurality of meshes, and determine a cable wiring path from the first connector to the second connector according to the plurality of obstacle meshes.

Description

路徑規劃方法 Path planning method

本發明係關於一種路徑規劃方法,尤指一種可避開障礙物且具最短路徑與最少折彎次數之路徑規劃方法。 The present invention relates to a path planning method, in particular to a path planning method that can avoid obstacles and has the shortest path and the least number of turns.

柔性扁平排線(Flexible Flat Cable,FFC)可用來做為一種電力或訊號傳輸用的媒介,由於其具有柔軟、可彎折、厚度薄、體積小、連接簡單、拆卸方便等優點,目前已被廣泛的大量應用在各式電子產品中。柔性扁平排線常用於連接電路板之間的電路信號。例如,在筆記型電腦中之鍵盤與電路板之間的連接或是觸控面板與電路板之間的電路連接。一般來說,在電路設計時會對柔性扁平排線的兩個連接點之間來設計排線配置路線,此時電路設計工程師通常需使用眼睛來進行干涉檢查以判斷柔性扁平排線是否與其他結構產生干涉或是柔性扁平排線是否可正確地配置在電路板的有限空間中。因此,設計品質的好壞往往取決於工程師的細心程度,同時,由於設計的操作過程繁瑣且重複性高這也考驗著工程師的耐心。然而,在電路設計階段時若需仰賴電路設計工程師以人工方式來判斷柔性扁平排線的配置路線,將會耗費過多的人力成本,而且也會降低整體設計程序的效率。有鑑於此,現有技術實有改進之必要。 Flexible Flat Cable (FFC) can be used as a medium for power or signal transmission. Due to its advantages such as softness, bendability, thinness, small size, simple connection, and easy disassembly, it has been widely used in various electronic products. Flexible flat cables are often used to connect circuit signals between circuit boards. For example, the connection between the keyboard and the circuit board in a laptop or the circuit connection between the touch panel and the circuit board. Generally speaking, when designing a circuit, the cable configuration route will be designed between the two connection points of the flexible flat cable. At this time, the circuit design engineer usually needs to use his eyes to perform interference checks to determine whether the flexible flat cable interferes with other structures or whether the flexible flat cable can be correctly configured in the limited space of the circuit board. Therefore, the quality of the design often depends on the carefulness of the engineer. At the same time, the design process is cumbersome and repetitive, which also tests the patience of the engineer. However, if the circuit design engineer needs to manually determine the configuration route of the flexible flat cable during the circuit design stage, it will consume too much manpower cost and reduce the efficiency of the overall design process. In view of this, the existing technology really needs to be improved.

為了解決上述之問題,本發明提供一種可避開障礙物且具最短路徑與最少折彎次數之路徑規劃方法,以解決上述問題。 In order to solve the above problems, the present invention provides a path planning method that can avoid obstacles and has the shortest path and the least number of turns to solve the above problems.

本發明提供一種路徑規劃方法,用於一柔性扁平排線,包括:取得包括有一第一連接器以及一第二連接器之一電子裝置的模型檔案;將該電子裝置載入可容納該電子裝置之一三維空間並將該三維空間分成複數個網格;自該複數個網格中判斷出包含有該電子裝置之複數個障礙物網格;以及根據該複數個障礙物網格決定出由該第一連接器至該第二連接器之一排線走線路徑。 The present invention provides a path planning method for a flexible flat cable, comprising: obtaining a model file of an electronic device including a first connector and a second connector; loading the electronic device into a three-dimensional space that can accommodate the electronic device and dividing the three-dimensional space into a plurality of grids; determining a plurality of obstacle grids containing the electronic device from the plurality of grids; and determining a cable routing path from the first connector to the second connector according to the plurality of obstacle grids.

10,50:流程 10,50: Process

A1,A2:元件 A1, A2: Components

BB:邊界箱 BB: Bounding Box

C1:第一連接器 C1: First connector

C2:第二連接器 C2: Second connector

E:電子裝置 E: Electronic devices

FFC:柔性扁平排線 FFC: Flexible Flat Cable

M:網格 M: Grid

OM:障礙物網格 OM: Obstacle Grid

P:排線走線路徑 P: Cable routing path

S:空間 S: Space

S100,S102,S104,S106,S108,S110,S500,S502,S504,S506,S508,S510:步驟 S100,S102,S104,S106,S108,S110,S500,S502,S504,S506,S508,S510: Steps

第1圖為本發明實施例之一流程之示意圖。 Figure 1 is a schematic diagram of a process of one embodiment of the present invention.

第2圖為本發明實施例之包括有第一連接器及第二連接器之電子裝置的模型檔案之示意圖。 Figure 2 is a schematic diagram of a model file of an electronic device including a first connector and a second connector according to an embodiment of the present invention.

第3圖為本發明實施例之電子裝置所在空間被分成複數個網格之示意圖。 Figure 3 is a schematic diagram showing that the space where the electronic device is located is divided into a plurality of grids according to an embodiment of the present invention.

第4圖為本發明實施例之障礙物網格之示意圖。 Figure 4 is a schematic diagram of the obstacle grid of an embodiment of the present invention.

第5圖為本發明實施例之另一流程之示意圖。 Figure 5 is a schematic diagram of another process of an embodiment of the present invention.

第6圖為本發明實施例之由第一連接器至第二連接器之排線走線路徑之示意圖。 Figure 6 is a schematic diagram of the cable routing path from the first connector to the second connector of the embodiment of the present invention.

第7圖為本發明實施例之柔性扁平排線沿排線走線路徑設置之示意圖。 Figure 7 is a schematic diagram of the arrangement of the flexible flat cable along the cable routing path of an embodiment of the present invention.

在說明書及後續的申請專利範圍當中使用了某些詞彙來指稱特定的元件。所屬領域中具有通常知識者應可理解,製造商可能會用不同的名詞來稱呼同樣的元件。本說明書及後續的申請專利範圍並不以名稱的差異來做為區分元件的方式,而是以元件在功能上的差異來做為區分的基準。在通篇說明書及 後續的申請專利範圍當中所提及的「包括」或「包含」係為一開放式的用語,故應解釋成「包括但不限定於」。另外,「耦接」一詞在此係包含任何直接及間接的電氣連接手段。因此,若文中描述一第一裝置耦接於一第二裝置,則代表該第一裝置可直接電氣連接於該第二裝置,或透過其他裝置或連接手段間接地電氣連接至該第二裝置。 Certain terms are used in this specification and subsequent patent applications to refer to specific components. A person with ordinary knowledge in the field should understand that manufacturers may use different terms to refer to the same component. This specification and subsequent patent applications do not use differences in names as a way to distinguish components, but rather use differences in the functions of the components as the basis for distinction. The words "including" or "comprising" mentioned throughout the specification and subsequent patent applications are open-ended terms and should be interpreted as "including but not limited to". In addition, the word "coupled" here includes any direct and indirect electrical connection means. Therefore, if the text describes a first device coupled to a second device, it means that the first device can be directly electrically connected to the second device, or indirectly electrically connected to the second device through other devices or connection means.

本發明實施例可應用於電路板在電腦輔助設計(Computer Aided Design,CAD)階段的製造設計過程,藉由本發明實施例可於設計過程中針對柔性扁平排線設計一排線走線路徑以供設置。請參考第1圖,第1圖為本發明實施例之一流程10之示意圖。流程10用以設計規劃出柔性扁平排線之排線走線路徑。流程10包含以下步驟: The embodiment of the present invention can be applied to the manufacturing design process of the circuit board in the computer-aided design (CAD) stage. The embodiment of the present invention can be used to design a line routing path for the flexible flat cable during the design process for setting. Please refer to Figure 1, which is a schematic diagram of process 10 of one embodiment of the present invention. Process 10 is used to design and plan the line routing path of the flexible flat cable. Process 10 includes the following steps:

步驟S100:開始。 Step S100: Start.

步驟S102:取得包括有第一連接器以及第二連接器之電子裝置的模型檔案。 Step S102: Obtain a model file of an electronic device including a first connector and a second connector.

步驟S104:將電子裝置載入可容納電子裝置之三維空間並將三維空間分成複數個網格。 Step S104: Load the electronic device into a three-dimensional space that can accommodate the electronic device and divide the three-dimensional space into a plurality of grids.

步驟S106:自複數個網格中判斷出包含有電子裝置之複數個障礙物網格。 Step S106: Determine a plurality of obstacle grids containing electronic devices from a plurality of grids.

步驟S108:根據複數個障礙物網格決定出由第一連接器至第二連接器之排線走線路徑。 Step S108: Determine the routing path of the cable from the first connector to the second connector based on a plurality of obstacle grids.

步驟S110:結束。 Step S110: End.

根據流程10,於步驟S102中,本發明實施例可取得包括有第一連接器以及第二連接器之電子裝置的模型檔案。所述包括有第一連接器以及第二連 接器之電子裝置的模型檔案可透過電腦輔助設計軟體或其他工具軟體來產生。其中電腦輔助設計軟體可為AutoCAD、Pro/Engineer、SolidWorks,但不以此為限。例如,請參考第2圖,第2圖為本發明實施例之包括有第一連接器C1以及第二連接器C2之電子裝置E的模型檔案之示意圖。如第2圖所示,第一連接器C1及第二連接器C2分別設置於電子裝置E上的兩個不同位置。其中所述電子裝置E可為電路板、電子元件、外殼或其組合。或者,所述電子裝置E可為多個電路板、電子元件及/或外殼的組合。第一連接器C1與第二連接器C2可用於連接一柔性扁平排線。例如,柔性扁平排線之第一端耦接於第一連接器C1,且柔性扁平排線之第二端耦接於第二連接器C2以傳輸相關信號。於電路設計過程中,藉由本發明實施例可針對柔性扁平排線設計出由第一連接器C1至第二連接器C2之一排線走線路徑。 According to process 10, in step S102, the embodiment of the present invention can obtain a model file of an electronic device including a first connector and a second connector. The model file of the electronic device including a first connector and a second connector can be generated by computer-aided design software or other tool software. The computer-aided design software can be AutoCAD, Pro/Engineer, SolidWorks, but is not limited thereto. For example, please refer to FIG. 2, which is a schematic diagram of a model file of an electronic device E including a first connector C1 and a second connector C2 according to an embodiment of the present invention. As shown in FIG. 2, the first connector C1 and the second connector C2 are respectively arranged at two different positions on the electronic device E. The electronic device E can be a circuit board, an electronic component, a housing or a combination thereof. Alternatively, the electronic device E may be a combination of multiple circuit boards, electronic components and/or housings. The first connector C1 and the second connector C2 may be used to connect a flexible flat cable. For example, the first end of the flexible flat cable is coupled to the first connector C1, and the second end of the flexible flat cable is coupled to the second connector C2 to transmit related signals. In the circuit design process, a cable routing path from the first connector C1 to the second connector C2 may be designed for the flexible flat cable by using the embodiment of the present invention.

於步驟S104中,可將包括有第一連接器以及第二連接器之電子裝置載入可容納電子裝置之一三維空間。例如,如第3圖所示,電子裝置被載入至一三維空間S。三維空間S可容納電子裝置E。三維空間S可包括邊界箱(bounding box)BB所界定的範圍。邊界箱BB可界定的三維空間S的邊界範圍。邊界箱BB可為能夠包圍電子裝置E的最小多面體。邊界箱BB可依據第一連接器C1及第二連接器C2之笛卡兒座標系之座標位置而產生。於步驟S104中,於包括有第一連接器以及第二連接器之電子裝置被載入三維空間後,可將三維空間分成複數個網格以將三維空間網格化。例如,所述網格可為三維網格。所述網格可為多邊形網格。例如,如第3圖所示,可將三維空間S分成被劃分成多個網格M。為便於說明第3圖僅顯示出多個網格當中的一部份。在一實施例中,可使用有限元素分析方法來將空間S切分成複數個網格M,但不以此為限。 In step S104, the electronic device including the first connector and the second connector can be loaded into a three-dimensional space that can accommodate the electronic device. For example, as shown in FIG. 3, the electronic device is loaded into a three-dimensional space S. The three-dimensional space S can accommodate the electronic device E. The three-dimensional space S may include a range defined by a bounding box BB. The bounding box BB may define the boundary range of the three-dimensional space S. The bounding box BB may be the smallest polyhedron that can enclose the electronic device E. The bounding box BB may be generated based on the coordinate positions of the first connector C1 and the second connector C2 in the Cartesian coordinate system. In step S104, after the electronic device including the first connector and the second connector is loaded into the three-dimensional space, the three-dimensional space may be divided into a plurality of grids to grid the three-dimensional space. For example, the grid may be a three-dimensional grid. The grid may be a polygonal grid. For example, as shown in FIG. 3, the three-dimensional space S may be divided into a plurality of grids M. For the sake of explanation, FIG. 3 only shows a portion of the plurality of grids. In one embodiment, a finite element analysis method may be used to divide the space S into a plurality of grids M, but is not limited thereto.

於步驟S106中,可自複數個網格中判斷出包含有電子裝置之複數個障礙物網格。於三維空間中的複數個網格當中,任何包含有電子裝置之至少一部份的網格即為障礙物網格。也就是說,可偵測出包含有第一連接器以及第二連接器之電子裝置的位置,並將電子裝置所處位置的網格判斷為障礙物網格。例如,可使用射線掃描(ray scan)方法,於三維空間的邊界箱中以特定密度發射出複數條射線形成射線陣列。其中所述射線為直線,並且射線會穿過空間且穿過障礙物(例如第3圖中包含有第一連接器C1及第二連接器C2之電子裝置E)。由於障礙物與空間屬於不同介質,當射線穿過兩個不同介質時,兩介質交界處的空間座標將會被記錄下來進而偵測出障礙物網格。例如,如第4圖所示,以電子裝置E上之元件A1及元件A2為例,可偵測出元件A1及元件A2的位置所在,並將電子裝置所處位置的網格判斷為障礙物網格OM。其中在第4圖的右半部中,實心圓點表示障礙物網格OM。 In step S106, a plurality of obstacle grids including the electronic device can be determined from the plurality of grids. Among the plurality of grids in the three-dimensional space, any grid that includes at least a portion of the electronic device is an obstacle grid. In other words, the position of the electronic device including the first connector and the second connector can be detected, and the grid where the electronic device is located can be determined as an obstacle grid. For example, a ray scanning method can be used to emit a plurality of rays at a specific density in a bounding box in the three-dimensional space to form a ray array. The rays are straight lines, and the rays pass through the space and pass through obstacles (for example, the electronic device E including the first connector C1 and the second connector C2 in FIG. 3). Since obstacles and space belong to different media, when the ray passes through two different media, the spatial coordinates of the junction of the two media will be recorded and the obstacle grid will be detected. For example, as shown in Figure 4, taking components A1 and A2 on the electronic device E as an example, the positions of components A1 and A2 can be detected, and the grid where the electronic device is located can be judged as the obstacle grid OM. In the right half of Figure 4, the solid dots represent the obstacle grid OM.

於步驟S108中,可根據複數個障礙物網格決定出從第一連接器至第二連接器之一排線走線路徑。更具體而言,可將包含有第一連接器的網格(即第一連接器所在位置的網格)設定為排線走線路徑之起始點,並將包含有第二連接器的網格(即第二連接器所在位置的網格)設定為排線走線路徑之結束點。接著,根據複數個障礙物網格自複數個網格中判斷出複數個目標網格以形成柔性扁平排線之一排線走線路徑。關於根據複數個障礙物網格判斷出複數個目標網格以形成排線走線路徑之判斷方法,可歸納為一流程50。請參閱參考第5圖。第5圖為本發明實施例之流程50之示意圖。第5圖中的流程50可被應用於第1圖中所示的實施例。根據流程50,可針對用以形成排線走線路徑之每一網格,由其相鄰網格中選擇出一相應網格以做為形成排線走線路徑之下一個網格。於步驟S502中,可將被決定為用以形成排線走線路徑之一目標網格設定為當前目標網 格,並根據複數個障礙物網格計算出與當前目標網格相鄰的所有相鄰網格之網格分數。例如,可將包含有第一連接器的網格設定為形成排線走線路徑之一目標網格且為排線走線路徑之起始點。並且,將包含有第二連接器的網格設定為形成排線走線路徑之一目標網格且為排線走線路徑之結束點。在此情況下,可以包含有第一連接器的網格做為起點,將包含有該第一連接器的網格設定為當前目標網格並計算其相鄰的網格之網格分數。 In step S108, a cable routing path from the first connector to the second connector can be determined based on a plurality of obstacle grids. More specifically, the grid including the first connector (i.e., the grid where the first connector is located) can be set as the starting point of the cable routing path, and the grid including the second connector (i.e., the grid where the second connector is located) can be set as the end point of the cable routing path. Then, based on a plurality of obstacle grids, a plurality of target grids are determined from a plurality of grids to form a cable routing path for a flexible flat cable. The determination method for determining a plurality of target grids based on a plurality of obstacle grids to form a cable routing path can be summarized as a process 50. Please refer to FIG. 5 . FIG. 5 is a schematic diagram of a process 50 of an embodiment of the present invention. The process 50 in FIG. 5 can be applied to the embodiment shown in FIG. 1. According to the process 50, for each grid used to form a wiring routing path, a corresponding grid can be selected from its adjacent grids to be used as the next grid to form the wiring routing path. In step S502, a target grid determined to be used to form a wiring routing path can be set as the current target grid, and the grid scores of all adjacent grids adjacent to the current target grid are calculated based on a plurality of obstacle grids. For example, the grid containing the first connector can be set as a target grid to form a wiring routing path and as the starting point of the wiring routing path. Furthermore, the grid containing the second connector is set as a target grid for forming a wiring path and as the end point of the wiring path. In this case, the grid containing the first connector can be used as a starting point, the grid containing the first connector can be set as the current target grid and the grid scores of its adjacent grids can be calculated.

於步驟S502中,針對與當前目標網格相鄰的每一相鄰網格,可根據障礙物網格、相鄰網格與包含有第二連接器的網格(即排線走線路徑之結束點)之間的距離、相鄰網格與包含有第一連接器的網格(即排線走線路徑之起始點)之間的距離以及折彎次數當中之至少一者計算出相鄰網格之網格分數。在一實施例中,由於步驟S106中已偵測出障礙物網格,可將障礙物網格之網格分數直接設定為最低分數,例如將障礙物網格之網格分數設為0。如此一來,在後續目標網格的選擇時便不會選擇到障礙物網格,藉以在排線走線路徑規劃時避開障礙物網格。也就是說,排線走線路徑不包括障礙物網格。因此,可先判斷與當前目標網格相鄰的相鄰網格是否為障礙物網格。若判斷出與當前目標網格相鄰的相鄰網格為障礙物網格時,可將此相鄰網格之網格分數直接設定為最低分數(例如將此相鄰網格之網格分數設為0),而不需再進行後續網格分數的計算。 In step S502, for each neighboring grid adjacent to the current target grid, the grid score of the neighboring grid can be calculated according to at least one of the obstacle grid, the distance between the neighboring grid and the grid including the second connector (i.e., the end point of the cable routing path), the distance between the neighboring grid and the grid including the first connector (i.e., the starting point of the cable routing path), and the number of bends. In one embodiment, since the obstacle grid has been detected in step S106, the grid score of the obstacle grid can be directly set to the lowest score, for example, the grid score of the obstacle grid is set to 0. In this way, when selecting the subsequent target grid, the obstacle grid will not be selected, so as to avoid the obstacle grid when planning the wiring route. In other words, the wiring route does not include the obstacle grid. Therefore, it is possible to first determine whether the neighboring grid adjacent to the current target grid is an obstacle grid. If the neighboring grid adjacent to the current target grid is determined to be an obstacle grid, the grid score of this neighboring grid can be directly set to the lowest score (for example, the grid score of this neighboring grid is set to 0), without the need to calculate the subsequent grid score.

於步驟S502中,針對與當前目標網格相鄰的每一相鄰網格,若相鄰網格為障礙物網格時則此相鄰網格之網格分數直接設定為最低分。若相鄰網格不是障礙物網格時,可將對根據相鄰網格與包含有第二連接器的網格之間的距離所決定出之第一分數、根據相鄰網格與包含有第一連接器的網格的距離所決定出之第二分數以及根據折彎次數所決定出之第三分數當中之至少一者進行加 總以產生相鄰網格之網格分數。在一實施例中,針對與當前目標網格相鄰的每一相鄰網格,可根據相鄰網格與包含有第二連接器的網格(即排線走線路徑之結束點)之間的距離決定出相鄰網格之一第一分數。其中相鄰網格與包含有第二連接器的網格之間的距離與第一分數呈反比關係。也就是說,相鄰網格與包含有第二連接器的網格之間的距離越短,則第一分數越高。相鄰網格與包含有第二連接器的網格之間的距離越長,則第一分數越低。在一實施例中,針對與當前目標網格相鄰的每一相鄰網格,可根據相鄰網格與包含有第一連接器的網格(即排線走線路徑之起始點)之間的距離決定出相鄰網格之一第二分數。其中相鄰網格與包含有第一連接器的網格之間的距離與第二分數呈反比關係。也就是說,相鄰網格與包含有第一連接器的網格之間的距離越短,則第二分數越高。相鄰網格與包含有第一連接器的網格之間的距離越長,則第二分數越低。在一實施例中,針對與當前目標網格相鄰的每一相鄰網格,可根據折彎次數決定出相鄰網格之一第三分數。折彎次數可為從包含有第一連接器的網格(即排線走線路徑之起始點)到該相鄰網格之間的折彎次數。其中折彎次數與第三分數呈反比關係。也就是說,折彎次數越少,則第三分數越高。折彎次數越多,則第三分數越低。 In step S502, for each neighboring grid adjacent to the current target grid, if the neighboring grid is an obstacle grid, the grid score of the neighboring grid is directly set to the lowest score. If the neighboring grid is not an obstacle grid, at least one of a first score determined based on the distance between the neighboring grid and the grid containing the second connector, a second score determined based on the distance between the neighboring grid and the grid containing the first connector, and a third score determined based on the number of bends may be summed to generate the grid score of the neighboring grid. In one embodiment, for each neighboring grid adjacent to the current target grid, a first score of the neighboring grid can be determined according to the distance between the neighboring grid and the grid containing the second connector (i.e., the end point of the cable routing path). The distance between the neighboring grid and the grid containing the second connector is inversely proportional to the first score. In other words, the shorter the distance between the neighboring grid and the grid containing the second connector, the higher the first score. The longer the distance between the neighboring grid and the grid containing the second connector, the lower the first score. In one embodiment, for each neighboring grid adjacent to the current target grid, a second score of the neighboring grid can be determined according to the distance between the neighboring grid and the grid containing the first connector (i.e., the starting point of the cable routing path). The distance between the neighboring grid and the grid containing the first connector is inversely proportional to the second score. In other words, the shorter the distance between the neighboring grid and the grid containing the first connector, the higher the second score. The longer the distance between the neighboring grid and the grid containing the first connector, the lower the second score. In one embodiment, for each neighboring grid adjacent to the current target grid, a third score of the neighboring grid can be determined according to the number of bends. The number of bends can be the number of bends from the grid containing the first connector (i.e. the starting point of the cable routing path) to the adjacent grid. The number of bends is inversely proportional to the third score. In other words, the fewer the number of bends, the higher the third score. The more the number of bends, the lower the third score.

在一實施例中,可對根據相鄰網格與包含有第二連接器的網格之間的距離所決定出之第一分數、根據相鄰網格與包含有第一連接器的網格的距離所決定出之第二分數以及根據折彎次數所決定出之第三分數當中之至少一者進行加權計算以計算出相鄰網格之網格分數。例如,將第一分數乘上一第一權重以產生一第一加權分數。將第二分數乘上一第二權重以產生一第二加權分數。可將第三分數乘上一第三權重以產生一第三加權分數。例如,第一權重可大於第二權重與第三權重,第二權重可大於第三權重,但不以此為限。接著,將所 計算出之第一加權分數、第二加權分數以及第三加權分數當中之至少一者進行加總以產生相鄰網格之網格分數。 In one embodiment, at least one of a first score determined according to the distance between the neighboring grid and the grid including the second connector, a second score determined according to the distance between the neighboring grid and the grid including the first connector, and a third score determined according to the number of bends may be weighted to calculate the grid score of the neighboring grid. For example, the first score may be multiplied by a first weight to generate a first weighted score. The second score may be multiplied by a second weight to generate a second weighted score. The third score may be multiplied by a third weight to generate a third weighted score. For example, the first weight may be greater than the second weight and the third weight, and the second weight may be greater than the third weight, but is not limited thereto. Then, at least one of the calculated first weighted score, second weighted score, and third weighted score is summed up to generate a grid score of an adjacent grid.

於步驟S504中,由於網格分數越高的網格就是越理想的路徑。可從與目標網格相鄰的所有相鄰網格當中選擇出分數最高者做為下一個目標網格,以做為形成排線走線路徑的多個目標網格之中的其中之一。於步驟S506中,當從目前目標網格的相鄰網格中選擇出下一目標網格後,可判斷所選出之下一目標網格是否為排線走線路徑之結束點(即包含有第二連接器的網格)。於判斷出所選出之的下一目標網格不是排線走線路徑之結束點(即包含有第二連接器的網格)時,執行步驟S508。於步驟S508中,將所選擇出的下一目標網格設定當前目標網格並執行步驟S502,接著。透過執行步驟S502及S504來找出下一個目標網格。如此一來,可由包含有第一連接器的網格開始而依序地判斷出後續的目標網格。 In step S504, since the grid with a higher grid score is a more ideal path, the grid with the highest score can be selected from all adjacent grids adjacent to the target grid as the next target grid to be used as one of the multiple target grids for forming the wiring path. In step S506, after the next target grid is selected from the adjacent grids of the current target grid, it can be determined whether the selected next target grid is the end point of the wiring path (i.e., the grid containing the second connector). When it is determined that the selected next target grid is not the end point of the wiring path (i.e., the grid containing the second connector), step S508 is executed. In step S508, the selected next target grid is set as the current target grid and step S502 is executed. Then, the next target grid is found by executing steps S502 and S504. In this way, the subsequent target grids can be determined sequentially starting from the grid containing the first connector.

於步驟S506中,於判斷出所選出之下一目標網格為排線走線路徑之結束點(即包含有第二連接器的網格)時,表示可用來形成排線走線路徑之所有目標網格已全數判斷完成。所有目標網格依序串聯接以形成排線走線路徑。如此一來,透過本發明實施例的前述流程,本發明可在不需人工進行干涉檢查的情況下規劃出由第一連接器至第二連接器的排線走線路徑,以供設置柔性扁平排線,使得柔性扁平排線可耦接至第一連接器與第二連接器來進行信號傳輸。例如,如第6圖所示,本發明實施例提供了可避開障礙物、具最短路徑且最少折彎次數之從第一連接器C1到第二連接器C2之間的排線走線路徑P。例如,如第7圖所示,當從第一連接器C1至第二連接器C2之間的排線走線路徑P規劃出之後,便可沿排線走線路徑P來設置柔性扁平排線FFC的結構體。 In step S506, when it is determined that the next target grid selected is the end point of the cable routing path (i.e., the grid including the second connector), it means that all target grids that can be used to form the cable routing path have been completely determined. All target grids are connected in series in sequence to form the cable routing path. In this way, through the aforementioned process of the embodiment of the present invention, the present invention can plan the cable routing path from the first connector to the second connector without manual interference inspection, so as to provide a flexible flat cable, so that the flexible flat cable can be coupled to the first connector and the second connector for signal transmission. For example, as shown in FIG. 6, the embodiment of the present invention provides a flat cable routing path P from the first connector C1 to the second connector C2 that can avoid obstacles, has the shortest path and the least number of bends. For example, as shown in FIG. 7, after the flat cable routing path P from the first connector C1 to the second connector C2 is planned, the structure of the flexible flat cable FFC can be set along the flat cable routing path P.

此外,於步驟S108中,當通過步驟S106的處理而判斷出障礙物網格後,本發明實施例亦可利用A星(A star)演算法來根據複數個障礙物網格由複數個網格中判斷出複數個目標網格以形成排線走線路徑。 In addition, in step S108, after the obstacle grid is determined through the processing of step S106, the embodiment of the present invention can also use the A star algorithm to determine a plurality of target grids from a plurality of grids according to a plurality of obstacle grids to form a wiring path.

本領域具通常知識者當可依本發明實施例的精神加以結合、修飾或變化以上所述的實施例,而不限於此。上述所有的陳述、步驟、及/或流程(包含建議步驟),可透過硬體、軟體、韌體(即硬體裝置與電腦指令的組合,硬體裝置中的資料為唯讀軟體資料)、電子系統、或上述裝置的組合等方式實現。硬體可包含類比、數位及混合電路(即微電路、微晶片或矽晶片)。例如,硬體可為特定應用集成電路(ASIC)、現場可程序邏輯閘陣列(field programmable gate array,FPGA)、可程序化邏輯元件、耦接的硬體元件,或上述硬體的組合。在其他實施例中,硬件可包括通用處理器、微處理器、控制器、數字信號處理器(digital signal processor,DSP),或上述硬件的組合。軟體可為程式碼的組合、指令的組合及/或函數(功能)的組合,其儲存在一儲存裝置中,例如一電腦可讀取記錄媒體或一非瞬時性電腦可讀取介質(non-transitory computer-readable medium)。舉例來說,電腦可讀取記錄媒體可包括唯讀記憶體(read-only memory,ROM)、快閃記憶體(Flash Memory)、隨機存取記憶體(random-access memory,RAM)、用戶識別模組(Subscriber Identity Module,SIM)、硬碟、軟碟或光碟唯讀記憶體(CD-ROM/DVD-ROM/BD-ROM),但不以此為限。本發明實施例可包括一電子系統,電子系統包括處理電路以及儲存裝置。本發明實施例之流程步驟與實施例可被編譯成程式碼或指令的型態存在而儲存於所述電子裝置之儲存裝置中。所述電子系統之處理電路可用於讀取與執行儲存裝置所儲存的程式碼或指令以實現前述所有步驟與功能。 A person of ordinary skill in the art may combine, modify or change the above-described embodiments according to the spirit of the embodiments of the present invention, but is not limited thereto. All of the above statements, steps, and/or processes (including recommended steps) can be implemented through hardware, software, firmware (i.e., a combination of hardware devices and computer instructions, the data in the hardware devices are read-only software data), electronic systems, or a combination of the above devices. The hardware may include analog, digital and hybrid circuits (i.e., microcircuits, microchips or silicon chips). For example, the hardware may be an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a programmable logic element, a coupled hardware element, or a combination of the above hardware. In other embodiments, the hardware may include a general purpose processor, a microprocessor, a controller, a digital signal processor (DSP), or a combination of the above hardware. The software may be a combination of program codes, a combination of instructions, and/or a combination of functions (functionality) stored in a storage device, such as a computer-readable recording medium or a non-transitory computer-readable medium. For example, the computer-readable recording medium may include read-only memory (ROM), flash memory, random-access memory (RAM), subscriber identity module (SIM), hard disk, floppy disk or optical disk read-only memory (CD-ROM/DVD-ROM/BD-ROM), but is not limited thereto. The embodiment of the present invention may include an electronic system, the electronic system includes a processing circuit and a storage device. The process steps and embodiments of the embodiments of the present invention may be compiled into a program code or instruction form and stored in the storage device of the electronic device. The processing circuit of the electronic system can be used to read and execute the program code or instructions stored in the storage device to implement all the aforementioned steps and functions.

綜上所述,本發明實施例可在不需人工進行干涉檢查的情況下規劃出由第一連接器至第二連接器的排線走線路徑以供設置柔性扁平排線,使得柔性扁平排線可耦接至第一連接器與第二連接器以進行信號傳輸。同時,通過本發明實施例的路徑規劃方法提供了可避開障礙物、具最短路徑且具最少折彎次數之從第一連接器至第二連接器之間的排線走線路徑。 In summary, the embodiment of the present invention can plan the cable routing path from the first connector to the second connector without manual interference inspection for setting the flexible flat cable, so that the flexible flat cable can be coupled to the first connector and the second connector for signal transmission. At the same time, the path planning method of the embodiment of the present invention provides a cable routing path from the first connector to the second connector that can avoid obstacles, has the shortest path and has the least number of bends.

以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 The above is only the preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.

10:流程 10: Process

S100,S102,S104,S106,S108,S110:步驟 S100, S102, S104, S106, S108, S110: Steps

Claims (8)

一種路徑規劃方法,用於一柔性扁平排線,包括:取得包括有一第一連接器以及一第二連接器之一電子裝置的模型檔案;將該電子裝置載入可容納該電子裝置之一三維空間並將該三維空間分成複數個網格;自該複數個網格中判斷出包含有該電子裝置之複數個障礙物網格;以及根據該複數個障礙物網格決定出由該第一連接器至該第二連接器之一排線走線路徑,包括:將包含有該第一連接器的網格設定為該排線走線路徑之起始點以及將包含有該第二連接器的網格設定為該排線走線路徑之結束點;以及根據該複數個障礙物網格自該複數個網格中判斷出複數個目標網格以形成該排線走線路徑,其中該步驟包括針對形成該排線走線路徑之每一目標網格,根據該複數個障礙物網格計算與該目標網格相鄰的網格之網格分數,以及從與該目標網格相鄰的網格當中選擇出分數最高者做為下一個目標網格以形成該排線走線路徑。 A path planning method for a flexible flat cable comprises: obtaining a model file of an electronic device including a first connector and a second connector; loading the electronic device into a three-dimensional space that can accommodate the electronic device and dividing the three-dimensional space into a plurality of grids; determining a plurality of obstacle grids including the electronic device from the plurality of grids; and determining a cable routing path from the first connector to the second connector according to the plurality of obstacle grids, comprising: setting the grid including the first connector as the cable The starting point of the routing path and the grid containing the second connector are set as the end point of the routing path of the flat cable; and a plurality of target grids are determined from the plurality of grids according to the plurality of obstacle grids to form the routing path of the flat cable, wherein the step includes calculating the grid scores of the grids adjacent to the target grid according to the plurality of obstacle grids for each target grid forming the routing path of the flat cable, and selecting the grid with the highest score from the grids adjacent to the target grid as the next target grid to form the routing path of the flat cable. 如請求項1所述之路徑規劃方法,其另包括:將包含有該第一連接器的網格設定為形成該排線走線路徑之該目標網格並以包含有該第一連接器的網格做為該排線走線路徑之起始點。 The path planning method as described in claim 1 further includes: setting the grid containing the first connector as the target grid for forming the wiring path of the flat cable and using the grid containing the first connector as the starting point of the wiring path of the flat cable. 如請求項1所述之路徑規劃方法,其中針對形成該排線走線路徑之每一目標網格根據該複數個障礙物網格計算與該目標網格相鄰的網格之網格分數之步驟包括:針對與該目標網格相鄰的每一相鄰網格,根據該複數個障礙物網格、該相鄰 網格與包含有該第二連接器的網格之間的距離、該相鄰網格與包含有該第一連接器的網格之間的距離以及折彎次數當中之至少一者計算出該相鄰網格之網格分數。 The path planning method as described in claim 1, wherein the step of calculating the grid score of the grid adjacent to the target grid according to the plurality of obstacle grids for each target grid forming the wiring routing path includes: for each neighboring grid adjacent to the target grid, the grid score of the neighboring grid is calculated according to at least one of the plurality of obstacle grids, the distance between the neighboring grid and the grid containing the second connector, the distance between the neighboring grid and the grid containing the first connector, and the number of bends. 如請求項3所述之路徑規劃方法,其中針對與該目標網格相鄰的每一相鄰網格根據該複數個障礙物網格、該相鄰網格與包含有該第二連接器的網格之間的距離、該相鄰網格與包含有該第一連接器的網格之間的距離以及折彎次數當中之至少一者計算出該相鄰網格之網格分數之步驟包括於判斷出該相鄰網格為障礙物網格時將該相鄰網格之網格分數設定為最低分數。 A path planning method as described in claim 3, wherein for each neighboring grid adjacent to the target grid, the step of calculating the grid score of the neighboring grid according to at least one of the plurality of obstacle grids, the distance between the neighboring grid and the grid containing the second connector, the distance between the neighboring grid and the grid containing the first connector, and the number of bends includes setting the grid score of the neighboring grid to the lowest score when the neighboring grid is determined to be an obstacle grid. 如請求項3所述之路徑規劃方法,其中針對與該目標網格相鄰的每一相鄰網格根據該複數個障礙物網格、該相鄰網格與包含有該第二連接器的網格之間的距離、該相鄰網格與包含有該第一連接器的網格之間的距離以及一折彎次數當中之至少一者計算出該相鄰網格之網格分數之步驟包括:根據該相鄰網格與包含有該第二連接器的網格之間的距離決定出該相鄰網格之一第一分數,其中該相鄰網格與包含有該第二連接器的網格之間的距離與該第一分數成反比;根據該相鄰網格與包含有該第一連接器的網格之間的距離決定出相鄰網格之一第二分數,其中該相鄰網格與包含有該第一連接器的網格之間的距離與該第二分數成反比;根據該折彎次數決定出相鄰網格之一第三分數,其中該折彎次數與該第三分數該成反比;以及根據該第一分數、該第二分數以及該第三分數當中之至少一者進行加權計算以計算出該相鄰網格之網格分數。 A path planning method as described in claim 3, wherein for each neighboring grid adjacent to the target grid, the step of calculating the grid score of the neighboring grid according to at least one of the plurality of obstacle grids, the distance between the neighboring grid and the grid containing the second connector, the distance between the neighboring grid and the grid containing the first connector, and a number of bends comprises: determining a first score of the neighboring grid according to the distance between the neighboring grid and the grid containing the second connector, wherein the first score of the neighboring grid and the grid containing the second connector are calculated based on the distance between the neighboring grid and the grid containing the second connector. The distance between the grids of the first connector is inversely proportional to the first score; a second score of the adjacent grid is determined according to the distance between the adjacent grid and the grid containing the first connector, wherein the distance between the adjacent grid and the grid containing the first connector is inversely proportional to the second score; a third score of the adjacent grid is determined according to the number of bends, wherein the number of bends is inversely proportional to the third score; and a weighted calculation is performed according to at least one of the first score, the second score and the third score to calculate the grid score of the adjacent grid. 如請求項5所述之路徑規劃方法,其中根據該第一分數、該第二分數以及該第三分數當中之至少一者進行加權計算以計算出該相鄰網格之網格分數之步驟包括:將該第一分數乘上一第一權重以產生一第一加權分數,將該第二分數乘上一第二權重以產生一第二加權分數,以及將該第三分數乘上一第三權重以產生一第三加權分數;以及將所計算出之該第一加權分數、該第二加權分數以及該第三加權分數當中之至少一者進行加總以產生該相鄰網格之網格分數;其中,該第一權重大於該第二權重與該第三權重,且該第二權重大於該第三權重。 A path planning method as described in claim 5, wherein the step of performing weighted calculation according to at least one of the first score, the second score and the third score to calculate the grid score of the neighboring grid includes: multiplying the first score by a first weight to generate a first weighted score, multiplying the second score by a second weight to generate a second weighted score, and multiplying the third score by a third weight to generate a third weighted score; and summing up at least one of the calculated first weighted score, the second weighted score and the third weighted score to generate the grid score of the neighboring grid; wherein the first weight is greater than the second weight and the third weight, and the second weight is greater than the third weight. 如請求項1所述之路徑規劃方法,其中該排線走線路徑不包含該複數個障礙物網格。 A path planning method as described in claim 1, wherein the cable routing path does not include the plurality of obstacle grids. 如請求項1所述之路徑規劃方法,其中該柔性扁平排線沿該排線走線路徑設置,且該柔性扁平排線之一第一端耦接於該第一連接器以及該柔性扁平排線之一第二端耦接於該第二連接器。 A path planning method as described in claim 1, wherein the flexible flat cable is arranged along the cable routing path, and a first end of the flexible flat cable is coupled to the first connector and a second end of the flexible flat cable is coupled to the second connector.
TW112141987A 2023-11-01 Path planning method TWI854877B (en)

Publications (1)

Publication Number Publication Date
TWI854877B true TWI854877B (en) 2024-09-01

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116011388B (en) 2023-03-22 2023-06-16 苏州浪潮智能科技有限公司 Circuit board winding method and device, storage medium and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116011388B (en) 2023-03-22 2023-06-16 苏州浪潮智能科技有限公司 Circuit board winding method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN111368493B (en) Automatic layout wiring generation method based on sparse grid
US7275229B2 (en) Auto connection assignment system and method
JP2006323643A (en) Floor plan design program, floor plan design device, and design method of semiconductor integrated circuit
JP4719657B2 (en) Placement model creation device, placement model creation method, and placement model creation program
TW200807268A (en) Method and apparatus for approximating diagonal lines in placement
CN116702694B (en) Printed circuit board two-end wiring method, medium and device based on ant colony algorithm
US20100218151A1 (en) Wiring design method for wiring board
CN114386356A (en) Wiring method, device, equipment and storage medium for chip design
TWI854877B (en) Path planning method
JP6443117B2 (en) Parts placement program, part product placement method, and information processing apparatus
TW201033836A (en) Method to automatically add power line in channel between macros
US9864829B2 (en) Multilayer substrate, design method of multilayer substrate, manufacturing method of semiconductor device, and recording medium
US7389486B2 (en) Arc routing system and method
Kubo et al. Global routing by iterative improvements for two-layer ball grid array packages
JP2008165355A (en) Power source noise analysis model generating program and power source noise analysis model generating device
JP2015026173A (en) Joint determination device, joint determination method and program
WO2014080610A1 (en) Circuit substrate design system, circuit substrate design method, and program recording medium
US20130090897A1 (en) Design support apparatus, method and recording medium
JPH09167173A (en) Method for designing the installation of cable tray
JP4701145B2 (en) Placement model creation device, placement model creation method, and placement model creation program
JP2022161482A (en) Electric wire bundle simulation device and electric wire bundle simulation program
US7168053B1 (en) Method and system for implementing an analytical wirelength formulation
JP5187217B2 (en) Semiconductor layout system, method, and program
JP2012190260A (en) Design support device, design support program and layout information generation method of semiconductor device
Cracraft et al. Unintended effects of asymmetric return vias and via array design for reduced mode conversion