Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Serial I/O

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic