SharPeiDog

Results 1 comments of SharPeiDog

本人小白一个 ,有什么不完善的地方希望大家可以指出,以下只是我自己的做法。 首先,你需要下载一个额外的支持Java串口通信操作的jar包。 地址: [http://files.cnblogs.com/files/Dreamer-1/mfz-rxtx-2.2-20081207-win-x86.zip](http://files.cnblogs.com/files/Dreamer-1/mfz-rxtx-2.2-20081207-win-x86.zip )(32位) [http://files.cnblogs.com/files/Dreamer-1/mfz-rxtx-2.2-20081207-win-x64.zip](http://files.cnblogs.com/files/Dreamer-1/mfz-rxtx-2.2-20081207-win-x64.zip) (64位) .dll文件放在jdk路径下(xx\jre\bin) .jar 文件导入项目 具体操作参考: [http://www.cnblogs.com/Dreamer-1/p/5523046.html](http://www.cnblogs.com/Dreamer-1/p/5523046.html) 接下来是我的 SerialPortWrapper 实现类 ``` package com.serotonin.modbus4j.test.mytest; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import com.serotonin.modbus4j.serial.SerialPortWrapper; import gnu.io.CommPort; import...