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 =