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

基于Java異步串行通信技術(shù)的研究
DOI:
CSTR:
作者:
作者單位:

(四川大學(xué) 電氣信息學(xué)院,成都 610065)

作者簡(jiǎn)介:

馬 賽(1992-),男,北京人,本科,主要從事信號與信息處理方向的研究。[FQ)]

通訊作者:

中圖分類(lèi)號:

TP312JA

基金項目:

航空科學(xué)基金項目(20100119004);國家級大學(xué)生創(chuàng )新創(chuàng )業(yè)訓練計劃項目(201310610109)。


Study of Asynchronous Serial Communication Technology Based on Java Communication API
Author:
Affiliation:

(School of Electrical and Information Engineering, Sichuan University, Chengdu 610065,China)

Fund Project:

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

    Java Communication API是Java平臺下用于串口通信程序開(kāi)發(fā)的唯一官方解決方案,Java串口通信程序均可以由官方提供的開(kāi)發(fā)包中的示例程序括展;但以示例程序為基礎開(kāi)發(fā)的Java串口通信程序一般都存在著(zhù)在異步通信模式下無(wú)法完整接收長(cháng)串數據的缺陷;為解決這一問(wèn)題,根據通信前收發(fā)信雙方可以約定通信的數據長(cháng)度這一特點(diǎn),提出一種對接收到的字節進(jìn)行計數的方法,以接收的數據長(cháng)度為指標判斷通信是否結束;通過(guò)實(shí)際編程驗證,該方法克服了上述缺陷,具有很好的可行性與實(shí)用性,可以廣泛應用于各種使用Java Communication API進(jìn)行開(kāi)發(fā)的場(chǎng)合。

    Abstract:

    Java Communication API is the only official solution for serial communication. Java serial communication program can be developed based on the sample in the Java Communication API developer toolkit, but such program has the defect that it cannot receive long data string continuously in asynchronous mode. In order to solve this problem, according to the characteristic that transceiver both sides know the length of data to be transferred in asynchronous mode, proposed a method which is to count the number of bytes received, using the counted number as the criteria to judge whether the communication is ended. Verified by programming, the method overcomes the shortcoming above. It is proved that the method has good feasibility and practicality, and can be widely used in various programming using the Java Communication API.

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

馬賽,王忠,陳典.基于Java異步串行通信技術(shù)的研究計算機測量與控制[J].,2014,22(8):2644-2646,2649.

復制
分享
文章指標
  • 點(diǎn)擊次數:
  • 下載次數:
  • HTML閱讀次數:
  • 引用次數:
歷史
  • 收稿日期:2014-05-13
  • 最后修改日期:2014-06-10
  • 錄用日期:
  • 在線(xiàn)發(fā)布日期: 2014-12-16
  • 出版日期:
文章二維碼
陇南市| 迭部县| 昂仁县| 高要市| 化州市| 通江县| 鹤壁市| 南靖县| 临朐县| 奉新县| 永年县| 那坡县| 宝清县| 濮阳县| 阿鲁科尔沁旗| 龙川县| 中宁县| 临武县| 巴东县| 广昌县| 黄陵县| 察雅县| 德安县| 垣曲县| 华亭县| 泰州市| 湛江市| 咸阳市| 文成县| 乌海市| 石狮市| 三江| 渭源县| 濮阳市| 柳河县| 西平县| 阜康市| 沙雅县| 三都| 宿州市| 白朗县|