aspose file tools
The moose likes Beginning Java and the fly likes Serial Port Communications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serial Port Communications" Watch "Serial Port Communications" New topic

Serial Port Communications

Bill Ceglia
Ranch Hand

Joined: Dec 13, 2001
Posts: 30
I am trying to recv data through a COM port on my PC. I have verified that the port works by using hyperterminal however, when I run my MIDlet in the CodeWarrior debugger I run the line to open the COM port and it just kills the debug session and gives no errors or indication of what might be wrong? Below is the code trying to perform the open:
sc = (StreamConnection) ("comm:1;baudrate=4800;databits=8;parity=none;stopbits=1;flowcontrol=Hardware",Connector.READ_WRITE);

[This message has been edited by Bill Ceglia (edited December 19, 2001).]
It is sorta covered in the JavaRanch Style Guide.
subject: Serial Port Communications
jQuery in Action, 3rd edition