Java, jsr-82, serial port, fail on SIEMENS SK65

B

Boki

Hi All,
I write a code to open serial port on java - jsr82, and install
them on Sony ericsson phones and SIMENS phones,
The Sony Ericsson phones work very well on jsr-82 ( good on K750i/W800i, but
a little strange on p910i/p900), when I try to install the same program on
SIEMENS SK65, it seems that I can't find the serial port that I have declare
in java code.

Here is the partial of codes:
if (c==null) c =(StreamConnection) server.acceptAndOpen();
RemoteDevice rdev = RemoteDevice.getRemoteDevice( c );
in = c.openDataInputStream();
out = c.openDataOutputStream();


Best regards,
Boki.
 
R

Roedy Green

I write a code to open serial port on java - jsr82, and install
them on Sony ericsson phones and SIMENS phones,
The Sony Ericsson phones work very well on jsr-82 ( good on K750i/W800i, but
a little strange on p910i/p900), when I try to install the same program on
SIEMENS SK65, it seems that I can't find the serial port that I have declare
in java code.

I have never touched one of these phones. This is just a wild guess.

The SIEMENS SK65 phone has bluetooth. Does that count as a serial
port?

It also has a irda port that only works when bluetooth is quiet. Is
bluetooth quiet?
 
D

Darryl Pierce

Boki said:
I write a code to open serial port on java - jsr82,

JSR-82 is about Bluetooth, not serial ports.
and install
them on Sony ericsson phones and SIMENS phones,
The Sony Ericsson phones work very well on jsr-82 ( good on K750i/W800i, but
a little strange on p910i/p900), when I try to install the same program on
SIEMENS SK65, it seems that I can't find the serial port that I have declare
in java code.

Do the Siemens devices support serial port communication?
 
D

Darryl Pierce

Roedy said:
The SIEMENS SK65 phone has bluetooth. Does that count as a serial
port?

No. In JavaME you have the Generic Connector Framework to open
communications channels (connections) through physical devices. You
specify the protocol/device in the URI and the Connector class returns
the appropriate instance of Connection to support it. If you specify a
protocol/device that's not supported/available then you will get a null
Connection object back.

What Boki's talking about doesn't quite jibe with what he's doing. He
keeps mentioning JSR-82 (Bluetooth APIs for Java, optional APIs) but
also says serial port, which is a part of the MIDP itself. He needs to
clarify exactly what he's trying to do and also provide real code for
where he's trying to open a connection.
 
B

bokiteam

Yes, thanks, I want to specify that I do not make the mistake that
phones support java but no jsr-82.

Yes, it supports, and I can find other SPP service on phone, I think
that is the default serial port.

In generally, when I run the java code on phone, and do search service
again to this phone, I can see a new SPP service on that phone.... but
SIEMENS not@@?

Thank you very much for your help.
Best regards,
Boki.
 
R

Roedy Green

Yes, it supports, and I can find other SPP service on phone, I think
that is the default serial port.

What does a serial port on a phone look like? A 9-pin connector? an
IR port? A USB connector?
 
D

Darryl Pierce

Roedy said:
What does a serial port on a phone look like? A 9-pin connector? an
IR port? A USB connector?

None of the above. Not all phones, hell I believe hardly any phones,
actually have a data port they treat as a serial port. They are, on each
handset that has one, a port configuration. Motorola's all have the same
port, for example, while Nokias vary based on which model.
 
B

bokiteam

Dear Guy,

No, I am sorry.... I can't accpet your command... command
unrecognize...............unrecognize ~~~~~~ :p

Best regards,
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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top