資源簡介
JAVA調用底層庫實現采集串口數據和返回數據 JAVA調用底層庫實現采集串口數據和返回數據
代碼片段和文件信息
package?changhongyun.SerialPortOpenSource;
import?java.io.IOException;
/**
?*?Hello?world!
?*
?*/
public?class?App?{
public?static?void?main(String[]?args)?{
System.out.println(“open?source?serialPort“);
SerialPortConnection?spc?=?SerailPortForDemol.getSerailPortConnection();
//?test?data?for?humiture?sensor
byte[]?data?=?new?byte[8];
data[0]?=?0x00;
data[1]?=?0x01;
data[2]?=?0x01;
data[3]?=?0x01;
data[4]?=?0x01;
data[5]?=?0x01;
data[6]?=?(byte)?0xC4;
data[7]?=?(byte)?0x0B;
try?{
spc.sendMessage(data);
}?catch?(IOException?e)?{
System.out.println(“error:“?+?e.getMessage());
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????21798??2018-03-05?11:13??JAVA串口采集數據\JAVA調用RXTXcomm1.0采集串口數據.docx
?????文件??????60584??2014-07-22?15:54??JAVA串口采集數據\RXTXcomm-1.0.jar
?????文件???????1022??2018-03-01?17:52??JAVA串口采集數據\SerialPortOpenSource\.classpath
?????文件????????572??2018-03-01?17:52??JAVA串口采集數據\SerialPortOpenSource\.project
?????文件????????119??2018-03-01?17:52??JAVA串口采集數據\SerialPortOpenSource\.settings\org.eclipse.core.resources.prefs
?????文件????????243??2018-03-01?17:52??JAVA串口采集數據\SerialPortOpenSource\.settings\org.eclipse.jdt.core.prefs
?????文件?????????90??2018-03-01?17:52??JAVA串口采集數據\SerialPortOpenSource\.settings\org.eclipse.m2e.core.prefs
?????文件????????941??2018-03-03?16:22??JAVA串口采集數據\SerialPortOpenSource\pom.xm
?????文件????????657??2018-03-04?17:14??JAVA串口采集數據\SerialPortOpenSource\src\main\java\changhongyun\SerialPortOpenSource\App.java
?????文件????????315??2018-03-04?13:41??JAVA串口采集數據\SerialPortOpenSource\src\main\java\changhongyun\SerialPortOpenSource\Exception\PortNotAvailableException.java
?????文件????????924??2018-03-05?11:11??JAVA串口采集數據\SerialPortOpenSource\src\main\java\changhongyun\SerialPortOpenSource\SerailPortForDemol.java
?????文件???????3026??2018-03-04?15:19??JAVA串口采集數據\SerialPortOpenSource\src\main\java\changhongyun\SerialPortOpenSource\SerialPortConnection.java
?????文件???????1051??2018-03-04?15:13??JAVA串口采集數據\SerialPortOpenSource\src\main\java\changhongyun\SerialPortOpenSource\util\Convert.java
?????文件????????863??2018-03-04?13:53??JAVA串口采集數據\SerialPortOpenSource\src\main\java\changhongyun\SerialPortOpenSource\util\PortConnection.java
?????文件???????3451??2018-03-04?15:17??JAVA串口采集數據\SerialPortOpenSource\src\main\java\changhongyun\SerialPortOpenSource\util\SerialPortEventListenerImpl.java
?????文件???????3901??2018-03-04?14:49??JAVA串口采集數據\SerialPortOpenSource\src\main\java\changhongyun\SerialPortOpenSource\util\SerialPortManager.java
?????文件????????699??2018-03-01?17:52??JAVA串口采集數據\SerialPortOpenSource\src\test\java\changhongyun\SerialPortOpenSource\AppTest.java
?????文件???????1324??2018-03-05?09:56??JAVA串口采集數據\SerialPortOpenSource\target\classes\changhongyun\SerialPortOpenSource\App.class
?????文件????????594??2018-03-05?09:56??JAVA串口采集數據\SerialPortOpenSource\target\classes\changhongyun\SerialPortOpenSource\Exception\PortNotAvailableException.class
?????文件???????2001??2018-03-05?11:11??JAVA串口采集數據\SerialPortOpenSource\target\classes\changhongyun\SerialPortOpenSource\SerailPortForDemol.class
?????文件???????3732??2018-03-05?09:56??JAVA串口采集數據\SerialPortOpenSource\target\classes\changhongyun\SerialPortOpenSource\SerialPortConnection.class
?????文件???????1086??2018-03-05?09:56??JAVA串口采集數據\SerialPortOpenSource\target\classes\changhongyun\SerialPortOpenSource\util\Convert.class
?????文件????????425??2018-03-05?09:56??JAVA串口采集數據\SerialPortOpenSource\target\classes\changhongyun\SerialPortOpenSource\util\PortConnection.class
?????文件???????3666??2018-03-05?09:56??JAVA串口采集數據\SerialPortOpenSource\target\classes\changhongyun\SerialPortOpenSource\util\SerialPortEventListenerImpl.class
?????文件???????1872??2018-03-05?09:56??JAVA串口采集數據\SerialPortOpenSource\target\classes\changhongyun\SerialPortOpenSource\util\SerialPortManager$BaudRate.class
?????文件???????3662??2018-03-05?09:56??JAVA串口采集數據\SerialPortOpenSource\target\classes\changhongyun\SerialPortOpenSource\util\SerialPortManager.class
?????文件????????110??2018-03-05?09:54??JAVA串口采集數據\SerialPortOpenSource\target\classes\me
?????文件????????252??2018-03-05?09:54??JAVA串口采集數據\SerialPortOpenSource\target\classes\me
?????文件????????941??2018-03-05?09:54??JAVA串口采集數據\SerialPortOpenSource\target\classes\me
?????文件????????131??2018-03-05?09:56??JAVA串口采集數據\SerialPortOpenSource\target\maven-archiver\pom.properties
............此處省略47個文件信息
- 上一篇:2018年最新Java視頻教程
- 下一篇:優秀畢業論文——java搞的打飛機小游戲
評論
共有 條評論