《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 通信與網(wǎng)絡(luò) > 設(shè)計應(yīng)用 > Allegro基于MySQL數(shù)據(jù)庫的數(shù)據(jù)錄入系統(tǒng)設(shè)計
Allegro基于MySQL數(shù)據(jù)庫的數(shù)據(jù)錄入系統(tǒng)設(shè)計
2022年電子技術(shù)應(yīng)用第5期
劉 濤1,2,付深圳1,2,張 柱1,2,周 冬1,2
1.高效能服務(wù)器和存儲技術(shù)國家重點實驗室,山東 濟南250014;2.浪潮電子信息產(chǎn)業(yè)股份有限公司,山東 濟南250014
摘要: 為了實現(xiàn)通過Allegro軟件對PCB板卡數(shù)據(jù)自動采集、錄入、保存等功能,研究基于SKILL語言的Allegro軟件二次開發(fā)和IPC通信原理,提出并設(shè)計一種Allegro軟件基于MySQL數(shù)據(jù)庫的數(shù)據(jù)錄入系統(tǒng)。根據(jù)實際數(shù)據(jù)存取需求及用戶權(quán)限,設(shè)計前端數(shù)據(jù)采集模塊和網(wǎng)頁顯示模塊,在前端數(shù)據(jù)采集模塊中,通過研究IPC通信,制定通信協(xié)議,并結(jié)合SKILL語言、Python語言編寫通信接口,實現(xiàn)Allegro軟件與MySQL數(shù)據(jù)庫通信;網(wǎng)頁顯示模塊使用Java語言用于對數(shù)據(jù)進行展示和處理。最后對數(shù)據(jù)錄入系統(tǒng)進行功能測試,測試證明能夠達到預(yù)期效果。系統(tǒng)中Allegro軟件與MySQL數(shù)據(jù)庫通信協(xié)議設(shè)計以及通信接口設(shè)計是系統(tǒng)的關(guān)鍵設(shè)計,系統(tǒng)數(shù)據(jù)采集模塊的實現(xiàn)對后續(xù)Allegro軟件與其他語言通信、網(wǎng)頁端功能擴展具有很大的參考價值。
中圖分類號: TP31
文獻標識碼: A
DOI:10.16157/j.issn.0258-7998.211832
中文引用格式: 劉濤,付深圳,張柱,等. Allegro基于MySQL數(shù)據(jù)庫的數(shù)據(jù)錄入系統(tǒng)設(shè)計[J].電子技術(shù)應(yīng)用,2022,48(5):84-88.
英文引用格式: Liu Tao,F(xiàn)u Shenzhen,Zhang Zhu,et al. Allegro data-recording system based on MySQL database[J]. Application of Electronic Technique,2022,48(5):84-88.
Allegro data-recording system based on MySQL database
Liu Tao1,2,F(xiàn)u Shenzhen1,2,Zhang Zhu1,2,Zhou Dong1,2
1.State Key Laboratory of High-end Server & Storage Technology,Jinan 250014,China; 2.Inspur Electronic Information Industry Co.,Ltd.,Jinan 250014,China
Abstract: In order to realize the functions of automatic acquisition, input and storage of PCB data by Allegro software, the secondary development of Allegro software based on SKILL language and the principle of IPC communication are studied. A data input system based on MySQL database is proposed and designed. According to the actual data access requirements and user permissions, the front-end data acquisition module and web page display module are designed. In the front-end data acquisition module, through the study of IPC communication, the communication protocol is formulated, and the communication interface is written with SKILL language and Python language to realize the communication between Allegro software and MySQL database. The web display module uses Java language to display and process the data. Finally, the function test of the data entry system is carried out, and the test results show that it can achieve the expected effect. The design of communication protocol between Allegro software and MySQL database, and the design of communication interface are the key design of the system. The realization of data acquisition module of the system has a strong reference value for the communication between Allegro software and other languages, and the function expansion of web page.
Key words : Allegro;secondary development;interprocess communication(IPC);MySQL

0 引言 

    近幾年隨著新基建加快落地,云、大數(shù)據(jù)、人工智能、區(qū)塊鏈、5G等新技術(shù)與實體經(jīng)濟將加速融合,隨之帶來的是計算量的增加。在當前數(shù)據(jù)為王的時代,計算無處不在,計算量每幾個月翻一倍。Open AI根據(jù)這些年的實際數(shù)據(jù)進行擬合,發(fā)現(xiàn)最先進AI模型的計算量每3、4個月翻一番,也就是每年增長10倍,比摩爾定律2年增長一倍快得多[1]。數(shù)據(jù)量的計算離不開背后服務(wù)器集群的支撐。

    公司每年研發(fā)的PCB板卡數(shù)量逐漸增加,為了后續(xù)設(shè)計參考和設(shè)計統(tǒng)計,每張板卡的詳細設(shè)計數(shù)據(jù)都需要記錄。目前公司都是通過工程師手動錄入到Windchill、RDM等研發(fā)管理系統(tǒng)中,由于板卡數(shù)據(jù)量多,人工統(tǒng)計、人工錄入大大降低了工作效率,并且人工操作的出錯率比較高,而且同一張板卡處于不同設(shè)計階段,板卡設(shè)計信息也隨之變化,板卡信息重復(fù)統(tǒng)計、重復(fù)錄入也加重了工程師的工作負擔。

    目前PTC公司旗下Windchill與Cadence Concept HDL產(chǎn)品集成度比較高,Windchill可以支持產(chǎn)品開發(fā)生命周期,因而允許在Windchill和ERP系統(tǒng)之間互換零件原件、材料清單和工程變更信息。在整個產(chǎn)品制造過程中,產(chǎn)品生命周期事件會自動觸發(fā)與產(chǎn)品有關(guān)的信息的互換,并且它還能保證所有相關(guān)系統(tǒng)都同步,包括Concept HDL庫。Windchill更擅長的是產(chǎn)片與物料、零部件BOM的管理[2]。

    上述解決方案對于PCB設(shè)計軟件Cadence Allegro PCB Editor集成度較低。因此,針對此問題,本文通過研究學習Allegro二次開發(fā),結(jié)合IPC通信原理,研究并設(shè)計Allegro基于MySQL數(shù)據(jù)庫的數(shù)據(jù)錄入系統(tǒng)。




本文詳細內(nèi)容請下載:http://theprogrammingfactory.com/resource/share/2000004283。




作者信息:

劉  濤1,2,付深圳1,2,張  柱1,2,周  冬1,2

(1.高效能服務(wù)器和存儲技術(shù)國家重點實驗室,山東 濟南250014;2.浪潮電子信息產(chǎn)業(yè)股份有限公司,山東 濟南250014)




wd.jpg

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。