Is possible to select the number of serial port, in java using OCF?

Hi all,I'm programming in java widh ocf in win XP...someone can tell me if is possibleto select the number of serial port..for example 0 or 1?I read the OCF12ApiDoc but I finded only method to get the serial portand not to select it,thanks!
[283 byte] By [reyelaa] at [2007-10-3 5:35:58]
# 1

Hello,

> someone

> can tell me if is possible

> to select the number of serial port..for example 0 or

> 1?

Assuming you are using the /javax.comm/ API to access the serial

ports, then the port is specified statically in the "opencard.properties"

file that OCF is reading at startup. E.g., On Linux I use:

OpenCard.terminals = com.gemplus.opencard.terminal.GemplusCardTerminalFactory|my

gcr|GCR410|/dev/ttyS1

On Windows it would be "COM1" "COM2" etc. instead of "/dev/ttyS1"

(or "/dev/cua0" on Solaris :-) ).

Now if you are using PC/SC, the OCF property file just points to

"use the PC/SC card manager". I think that you can also specify

a name for the reader you want to use though (and then PC/SC

will find the right serial port corresponding to it), e.g.:

OpenCard.terminals=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|my

gcr|GCR410|SHARED

The name being GCR410 here... (to be tested).

Hope it'll help.

Cheers,

Christophe.

= If you think good architecture is expensive, try bad architecture. =

=-- Brian Foote and Joseph Yoder =

cmuller13a at 2007-7-14 23:43:35 > top of Java-index,Java Mobility Forums,Consumer and Commerce...