File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Modem/Serial Comm. Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Modem/Serial Comm. Problem" Watch "Modem/Serial Comm. Problem" New topic
Author

Modem/Serial Comm. Problem

G. Ainscow
Greenhorn

Joined: Oct 31, 2004
Posts: 9
Hi,

I've spent two full days trying to find an answer to this question, without
any luck.

When I send an AT command to my modem it just echo's it right back at me,
instead of sending some form of acknowledgement, such as an OK response
code.

Of course, this means it doesn't respond correctly to dialling commands
either (AT Dnnnnnnn).

The problem is this: BlackBox works, as well as another sample application I
have -- just not <my> code (typical).

Any ideas as to why this is happening? Could it be that my sending and
receiving is not done in separate threads?

Some info:
OS: Windows 2000
JDK: 1.5.0
Modem: 3Com U.S. Robotics 56K Faxmodem

My code follows: (Test & _SerialPort)

Note: I'm using RXTX for communication, same/similar API to the sun implementation.





If you have any other working sample code for serial/modem i/o, please send
it my way.

Thanks,

D.
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
Try ATDT xxxxxxxxxx


Mike Gershman
SCJP 1.4, SCWCD in process
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Hi Glen,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It reqiures that you use a full, real (sounding) first and last name for your display name. Initials aren't enough. You can change your display name here. Thanks.


Now, as to your question: this really belongs in our Other Java APIs forum. I'm going to move it there for you.


[Jess in Action][AskingGoodQuestions]
 
Consider Paul's rocket mass heater.
 
subject: Modem/Serial Comm. Problem
 
Similar Threads
Send SMS by using Serial Port
Modem/Serial Comm. Problem
Converting data file to text file
serial port problems
sending sms through gsm modem