Location:
Search - java Serial.z
Search list
Description: 用java程序从串口读数据
在这个通讯程序中使用了一个简单的协议,既不同的消息之间用星号 * 作为分隔。这个
程序中的问题是ReadSerial进程和WriteSerial进程不能够同时启动,出错信息是不能够
打开串口,因为同样一个串口不能够同时被打开两次(在ReadSerial中声明了FileReader
和在WriteSerial中声明了FileWriter)。这样是不能够实现全双工通讯的。不知道有没有
做过的大侠能够讲讲处理的办法。 -with reading data from the serial port communication procedures in the use of a simple agreement the news is different between the asterisk* used as the separator. This procedure is the problem WriteSerial ReadSerial process and the process can not simultaneously activated error message is not to open the serial port, because the same one serial port can not be opened while two (ReadSerial stated in the FileRe Ader and WriteSerial stated in a job interview). This is not to achieve full-duplex communication. Whether it is not done to talk about the heroes of approach.
Platform: |
Size: 2048 |
Author: 炽 |
Hits:
Description: Comm.jar是Sub实现底层串口操作的API,调用了本地的DLL文件,因为Java本身不具备直接访问硬件设置的能力,都是通过调用本地方法来实现的.可以Java的官方网站下载.下载之后把其中Comm.jar包导入到工程的Classpath中,把另外两个非常重要的文件javax.comm.properties和win32com.dll考贝到你的工程目录下,即java.user下.-Comm.jar is Sub achieve bottom of the serial port operation API, Call the local DLL files, because Java itself does not have direct access to the hardware, are by calling the local approach to achieve. Java can be downloaded from the official website. Download them after making Comm . Pack into the jar works Classpath, another two very important documents and win32c javax.comm.properties om.dll Bedouin to take your project directory, java.user under.
Platform: |
Size: 32768 |
Author: huaihuai |
Hits:
Description: java串口编程包,很好用 javax.comm.properties
win32com.dll
comm..jar
-java serial port programming package, a good use javax.comm.propertieswin32com.dllcomm .. jar
Platform: |
Size: 272384 |
Author: fangjun |
Hits: