Can't open serial port on phone.

B

Boki

Hi All,

I am using J2ME code to control serial port, however, I can't have it
work correctly.

Here is my error message:

FAILED withclass javax.microedition.io.ConnectionNotFoundException:
The requested protocol does not exist comm:com0

my code:

comm = (StreamConnection)Connector.open("comm:com0");

I also had tried the CommConnection:

(CommConnection)Connector.open("comm:COM0;baudrate=115200",
Connector.READ_WRITE,
true);

I have tried on many SDK ( Nokia S40, S60, Sony Ericsson, Motorola
SDK ... )

The Moto SDK even can't run correctly, it will close emulator.

Thanks!
Boki.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top