rxtx

RXTX can't list port on ubuntu

烂漫一生 提交于 2019-12-11 07:04:35
问题 I'm trying to run simple code: import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.OutputStream; import gnu.io.CommPortIdentifier; import gnu.io.SerialPort; import gnu.io.SerialPortEvent; import gnu.io.SerialPortEventListener; import java.util.Enumeration; public class SerialTest implements SerialPortEventListener { SerialPort serialPort; private BufferedReader input; private OutputStream output; private static final int TIME_OUT = 2000; private static final int

NoSuchPortException when running java application using SMSLib

喜欢而已 提交于 2019-12-10 22:18:19
问题 I'm using SMSLib in my java application to send an SMS , i connect a USB internet modem to my PC then determine it's port number (ie. COMx) then creating a serial modem gateway like this : determining the port number : creating the gateway: SerialModemGateway gateway = new SerialModemGateway("mobile", "COM5", 115200, "Apple", "iPhone"); but whether i define the port as COM4 or as COM5 it runs the connection at first then gives me that following exception then stops the service by the usual

RxTx on Mac - Serial port already in use

主宰稳场 提交于 2019-12-10 02:19:34
问题 I have RXTX installed on a Mac. Both a Java JAR program and the Arduino software see the Arduino as a USB modem if it is Both claim the port is "already in use" if we try to open the serial port. Both claim "Unknown User". I have the rxtxcomm.jar in the Java Extensions. How do I get either of these to work? 回答1: The OS X has some kind of exclusion mechanism on the serials ports. The MacBook does not have any serial ports, but the USB ports emulate them. When the Arduino is hooked up, it

I want to detect the device through serial port using RxTx in java

我的梦境 提交于 2019-12-08 02:41:44
问题 I want to detect the device through serial port using RxTx in java and device is programmed that if it recieves a specific word from computer it will reply "ok" and if the computer receives ok.. it will stop sending the word and highlight that the device is attached. PLEASE HELP ME. and one more thing.. i have to check for every port.. please will you code a method that auto-cycle through the ports till the device is detected. My code sends the word only one time even being in a infinite loop

How to fix Java rxtxSerial.dll or jSSC-2.7_x86_64.dll Serial Port Error in Windows 10?

限于喜欢 提交于 2019-12-07 07:57:01
问题 UPDATE: I have found a solution by using the jSerialComm library. (see code at the bottom) I have a program that we have been running for quite a while on windows 7 machines, but now are starting to introduce machines with Windows 10, and the program crashes. So i need to find a solution. The error is an EXCEPTION_ACCESS_VIOLATION error. (See below) The first block of code below is my own code which uses the rxtxSerial.dll library. It will open and set the port parameters, but crashes as soon

I want to detect the device through serial port using RxTx in java

对着背影说爱祢 提交于 2019-12-06 09:35:18
I want to detect the device through serial port using RxTx in java and device is programmed that if it recieves a specific word from computer it will reply "ok" and if the computer receives ok.. it will stop sending the word and highlight that the device is attached. PLEASE HELP ME. and one more thing.. i have to check for every port.. please will you code a method that auto-cycle through the ports till the device is detected. My code sends the word only one time even being in a infinite loop. code: private void cb1KeyPressed(java.awt.event.KeyEvent evt) { // TODO add your handling code here:

RXTX not working in ubuntu

烂漫一生 提交于 2019-12-05 20:37:11
Finally managed to read from rxtx in windows but now I just cannot make it work in Ubuntu.I get the rxtx libs using apt-get ,but when i run the application,i can not see anything,tried a couple of try-catch blocks and i don't even get the exceptions,and since Ubuntu based debugging is not possible for now, i can not pinpoint the problem. (Ubuntu is 12.04 64 bit). import gnu.io.*; import java.io.*; import javax.swing.JOptionPane; public class ReadComPort { public static void main(String[] s) { readcomport(); } public static String readcomport() { String value = null; try { // CommPortIdentifier

How to fix Java rxtxSerial.dll or jSSC-2.7_x86_64.dll Serial Port Error in Windows 10?

…衆ロ難τιáo~ 提交于 2019-12-05 11:12:36
UPDATE: I have found a solution by using the jSerialComm library. (see code at the bottom) I have a program that we have been running for quite a while on windows 7 machines, but now are starting to introduce machines with Windows 10, and the program crashes. So i need to find a solution. The error is an EXCEPTION_ACCESS_VIOLATION error. (See below) The first block of code below is my own code which uses the rxtxSerial.dll library. It will open and set the port parameters, but crashes as soon as data is received from the port. I have also tried the jssc.jar library with the same EXCEPTION

RxTx on Mac - Serial port already in use

与世无争的帅哥 提交于 2019-12-05 02:55:39
I have RXTX installed on a Mac. Both a Java JAR program and the Arduino software see the Arduino as a USB modem if it is Both claim the port is "already in use" if we try to open the serial port. Both claim "Unknown User". I have the rxtxcomm.jar in the Java Extensions. How do I get either of these to work? mkstlwtz The OS X has some kind of exclusion mechanism on the serials ports. The MacBook does not have any serial ports, but the USB ports emulate them. When the Arduino is hooked up, it appears in the port list as "/dev/tty.usbmodem..." where ... are some trailing digits. When is said the

Cannot program ESP8266

孤街浪徒 提交于 2019-12-05 00:45:12
问题 Blue led is blinking after powering up the module, the red one stays on, I can even connect to it via wifi. But I cannot program it. I tried Arduino IDE, different firmware flashers (Like NodeMCU, XTCOM). I'm using Arduino Mega. Here's my initial setup: VCC - 3.3 V on Arduino RST - nothing CH_PD - 3.3 V on Arduino TX - RX on Arduino (TX is transmitting data to RX, so I don't need a voltage divider, right?) RX - voltage divider (R1 = 10K, R2 = 20K) - TX on Arduino GPIO0 - GND on Arduino GPIO2