国产欧美精品一区二区,中文字幕专区在线亚洲,国产精品美女网站在线观看,艾秋果冻传媒2021精品,在线免费一区二区,久久久久久青草大香综合精品,日韩美aaa特级毛片,欧美成人精品午夜免费影视

LINUX系統下GPIB驅動(dòng)優(yōu)化設計與實(shí)現
DOI:
CSTR:
作者:
作者單位:

西安精密機械研究所

作者簡(jiǎn)介:

通訊作者:

中圖分類(lèi)號:

基金項目:


Optimal Design and Implementation of GPIB Driver in LINUX System
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 圖/表
  • |
  • 訪(fǎng)問(wèn)統計
  • |
  • 參考文獻
  • |
  • 相似文獻
  • |
  • 引證文獻
  • |
  • 資源附件
  • |
  • 文章評論
    摘要:

    為方便開(kāi)發(fā)基于LINUX操作系統的GPIB儀器,近幾年,Linux內核也集成了專(zhuān)用在測試測量領(lǐng)域里的GPIB總線(xiàn)驅動(dòng),但直接拿來(lái)利用發(fā)現,在向儀器發(fā)命令的頻率比較高時(shí),此驅動(dòng)傳輸性能不是很理想,偶爾還會(huì )出現驅動(dòng)掛掉,造成LINUX內核崩潰。針對以上問(wèn)題,給出了在LINUX架構下GPIB驅動(dòng)優(yōu)化設計方案。分析了LINUX字符設備驅動(dòng)模型;在中斷服務(wù)程序底半部里,引入了結合睡眠機制的非原子操作工作隊列,提高了驅動(dòng)運行效率;提出了利用FIFO半滿(mǎn)而非傳統的全滿(mǎn)標志位作為數據傳輸判斷標準,提升了數據傳輸速率,引入了讀寫(xiě)操作互斥的信號量,消除了由于讀寫(xiě)競態(tài)引起的驅動(dòng)異常;對優(yōu)化后的GPIB驅動(dòng)進(jìn)行測試,結果表明,上述問(wèn)題得到了一定的改善。

    Abstract:

    In order to facilitate the development of GPIB instruments based on LINUX operating system, in recent years, the LINUX kernel has also integrated a GPIB bus driver specially used in the field of testing and measurement. However, after being directly used, it is found that the transmission performance of this driver is not very ideal when sending commands to instruments with relatively high frequency, occasionally there will be drive hanging off, to cause kernel crash. In view of the above problems, the GPIB-driven optimization design scheme under the LINUX architecture is given. The LINUX character device driver model is analyzed; In the bottom half of the interrupt service program, a non-atomic operating work queue combined is introduced to improve the driving operation efficiency; The use of FIFO half full instead of the traditional full flag bit as the data transmission standard is proposed to improve the data transfer rate; Introducing mutually exclusive signal for read and write operations, eliminating drive-running anomalies caused by read and write race; Tests on the optimized GPIB driver, result shows that the above problem have been improved to some extent.

    參考文獻
    相似文獻
    引證文獻
引用本文

趙昕,郭恩全,李小杰. LINUX系統下GPIB驅動(dòng)優(yōu)化設計與實(shí)現計算機測量與控制[J].,2020,28(3):163-167.

復制
分享
文章指標
  • 點(diǎn)擊次數:
  • 下載次數:
  • HTML閱讀次數:
  • 引用次數:
歷史
  • 收稿日期:2020-01-15
  • 最后修改日期:2020-02-03
  • 錄用日期:2020-02-10
  • 在線(xiàn)發(fā)布日期: 2020-03-30
  • 出版日期:
文章二維碼
彭州市| 顺义区| 馆陶县| 黑山县| 民县| 阿图什市| 隆昌县| 吉林省| 攀枝花市| 苏尼特右旗| 岚皋县| 大城县| 新巴尔虎左旗| 封开县| 吉安市| 长乐市| 闻喜县| 札达县| 黑龙江省| 贵德县| 崇阳县| 惠水县| 宣化县| 休宁县| 宁都县| 龙口市| 宜昌市| 监利县| 永靖县| 铜鼓县| 两当县| 秭归县| 承德市| 洪洞县| 阜宁县| 竹北市| 邵武市| 井陉县| 崇州市| 桐乡市| 迁安市|