pesaply / smslib

Automatically exported from code.google.com/p/smslib
0 stars 0 forks source link

Ubuntu - Rxtx - smsLib v3- #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect USB modem to Linux Ubuntu+SMSLibv3-java1.5.11
2. try to send/read messages
3. DATAAVALIABLE events never detected

What is the expected output? What do you see instead?
On windows can connect to the modem, send AT+CPIN?\r
Can get response CPIN OK

Linux with RxTx, Thread gets interrupted as there are no events 
sent to the serial port.

This seems to be an issue with USB not serial connections.

What version of the product are you using? On what operating system? In
case of Java, which Communication Libraries (JavaComm or RxTx) are you using?

Version 3.02
Java 1.5.11
RxTx

Please provide any additional information below.
On version 2 this was not an issue as I am aware it was a "write-wait"
serial port event propagation.

Version 3, I am assuming takes advantage of the asynchronous serial port
events. Windows works fine even with Rxtx, Does this type of serial port
acknowledgment not work with Linux+ RxTx + USB modems??

This is a big issue as this works fine on windows.

Thanks!

Original issue reported on code.google.com by dannyso...@gmail.com on 14 Sep 2007 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by T.Delenikas on 28 Sep 2007 at 7:04

GoogleCodeExporter commented 9 years ago
Bug is due to RxTx library not throwing DATA_RECEIVED event upon reception of 
data
from a bluetooth-serial bridge.

Work around has been implemented. Waiting for feedback.
See discussion here:
http://groups.google.com/group/smslib-java/t/361ff51db42d40ae

Original comment by T.Delenikas on 28 Sep 2007 at 7:07

GoogleCodeExporter commented 9 years ago
No feedback, assumed fixed.

To enable the fix, edit SerialModemDriver.java and set THREAD_READ to true.
The THREAD_READ_WAIT is a typical value - can be adjusted to other values as 
well.

Original comment by T.Delenikas on 16 Oct 2007 at 7:38