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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serial I/O" Watch "Serial I/O" New topic
Author

Serial I/O

Bill Ceglia
Ranch Hand

Joined: Dec 13, 2001
Posts: 30
I posted a msg yesterday asking about serial communications, so I am reposting a more descriptive msg in accordance with Ranch policies. I am trying to find out if I have incorrect syntax or possibly some other reason why, when in a CodeWarrior debug session, I try an execute the command to connect to a COM port and it fails? Below is the line of code doing the connect:
sc = (StreamConnection)Connector.open("comm:1;baudrate=4800;databits=8;parity=none;stopbits=1;flowcontrol=Hardware",Connector.READ_WRITE);
Should I be using another type for the connection? Is there documentation somewhere that discusses the EXACT parameters of what you can pass? I have searched all over and been unable to find anything on java.sun.com and numerous other sites.
Thank You
Rikard Qvarforth
Ranch Hand

Joined: Jul 10, 2001
Posts: 107
Hello i found this artickle and a helloworld example on http://www.javaworld.com/javaworld/jw-09-1998/jw-09-indepth.html
Hope it helps


------------------
Sun Certified Programmer for Java 2 Platform
[This message has been edited by Cindy Glass (edited December 19, 2001).]
Bill Ceglia
Ranch Hand

Joined: Dec 13, 2001
Posts: 30
Thank You.
However, I have read that the COMMAPI can't run on a J2ME MIDP MIDlet, do you know if that's correct? That's why I stuck with trying to use the microedition Connector but if it will work I suppose getting the COMMAPI is a more specific solution.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serial I/O
 
Similar Threads
Creating Java App Serial Connect to J2ME App
Problem with jframe, serial communication, dynamic changing value and displaying it
Multithreading problems in J2ME
unable to read the data from serial port in rfid
Using Java to "talk" to a serial port