Location:
Search - ReadSerial
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: 2024 |
Author: 炽 |
Hits:
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: Java实现串口全双工通讯
一个Java读取串口值的类(收藏)
这是一个通过JAVA的扩展包(javax.comm)从串口读取值的类,
本类库(javax.comm)主要包括:
SerialBean.java (与其他应用程序的接口),
SerialBuffer.java (用来保存从串口所接收数据的缓冲区),
ReadSerial.java (从串口读取数据的程序)。-Serial full-duplex communication
Platform: |
Size: 2048 |
Author: xiaofeng |
Hits:
Description: java实现串口通信!很实用,希望给大家带来帮助!-java Implementing Serial Communication! Very practical, will give us some help!
Platform: |
Size: 23552 |
Author: 李百良 |
Hits: