• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Serial port printing

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure where this goes, but is there a way to print to a serial port
besides usig the Java Comm API? This has very poor error checking capabilities.

Thanks.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By "print" I take it you mean "write data to" rather than "send document to printer". There's plenty of alternatives. There's other API's like RXTX and icast or you could go straight to the native API with JNI.
[ June 08, 2006: Message edited by: Joe Ess ]
 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An outputStream is retrieved from the SerialPort and the data is written to
that. One of those site appeared to have a licence. My company is not
likely to go for that. I think I'm stuck with basic Java comm.

Thanks.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Everything comes with a licence. Even Java itself has a licence that you agreed to. So you and your company need to look at the licence details rather than rejecting it just because it exists. Most of them will likely be benign for you.

On the other hand we had to discontinue using a certain open-source product after I reviewed the licences of all the code we had. It wasn't too hard to find a substitute in that case, but if you are acquiring software for a company you do need to read the licences.

(On the other hand I regularly agree to these things even though I don't have the legal authority to agree to contracts on behalf of the company I work for. That may or may not be a good practice.)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic