Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Java Micro Edition and the fly likes Infrared printing from Siemens C65 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Infrared printing from Siemens C65" Watch "Infrared printing from Siemens C65" New topic
Author

Infrared printing from Siemens C65

Daniel Gazineu
Greenhorn

Joined: Nov 09, 2004
Posts: 2
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 ]

SCJP 1.4
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Infrared printing from Siemens C65