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.
Daniel Gazineu [ April 15, 2005: Message edited by: Daniel Gazineu ]