This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Infrared printing from Siemens C65

 
Daniel Gazineu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello members!

I have a Siemens C65 and I am trying to create a MIDlet to print text data from it infrared.

My first question, is it possible? :-)

I had created a test MIDlet that ask the "microedition.commports" to know the COM port names. When I run this MIDlet in SMTK emulator, the response is "COM0,COM1", but, when I try to run it on the real device, only "COM0" is returned.

Then, when I try to run my application that try to connect to COM0 using this code:

CommConnection cc = (CommConnection)Connector.open("comm:COM0;baudrate=19200");

The application stop working and show me the message "Connect the accessory!".

I guess that this COM0 port is the USB or Serial port of the device and the IrDA port is disable. But, how to enable this port for J2ME applications?

Anybody with any help for me?

Thank's for all.

[]'s

Daniel Gazineu
[ April 15, 2005: Message edited by: Daniel Gazineu ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic