• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serial I/O

 
Bill Ceglia
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic