Hello,
I saw them separately on sever. I tried to make their
link. osmo-remsim-apitool -m 1 1 0 0
Because I read the instructions, when linking 1 simtrace2, our client-id and client-slot
need to be set to 0
Client id and slot id don't need to be 0. I'm using one
and making the
mapping to 1 1 1 1
1987 DBANKDW INFO bankd_main.c:619 [000 CONN_CLIENT]
No slotmap (yet) for client C(0:0)
Based on the message above, it looks like there
is no mapping for
client 0:0. Can you show us:
osmo-remsim-apitool -a
For me, it looks like this, with a client connected:
/clients: {'clients': [{'peer': 'C1:1', 'state':
'CONNECTED_CLIENT',
'component_id': {'type_': 'remsimClient', 'name':
'rpi-cardem-2',
'software': 'remsim-client', 'swVersion': '1.0.0'}}]}
/banks: {'banks': [{'peer': 'B1', 'state':
'CONNECTED_BANKD',
'component_id': {'type_': 'remsimBankd', 'name':
'fixme-name',
'software': 'remsim-bankd', 'swVersion': '1.0.0'},
'bankId': 1,
'numberOfSlots': 5}]}
/slotmaps: {'slotmaps': [{'bank': {'bankId': 1, 'slotNr':
1},
'client': {'clientId': 1, 'slotNr': 1}, 'state':
'ACTIVE'}]}
The bankd server's config looks like this:
# cat /etc/osmocom/bankd_pcsc_slots.csv
"1","1","SCM Microsystems Inc. SCR 3310"
The mapping is done like this:
/usr/bin/python3 /etc/osmocom/osmo-remsim-apitool -v --create-slotmap 1 1 1 1
The client connects like this:
osmo-remsim-client-st2 --server-ip remsim-server --server-port 9998
--client-id 1 --client-slot 1 --usb-vendor 1d50 --usb-product 60e3
--usb-config 1 --usb-interface 0 --usb-path "1-1.3"
Hope this helps.
On Sun, Jul 16, 2023 at 5:25 PM <gmaillee(a)126.com> wrote:
>
> Hello,guys
> I use the official card reader,
> root@debian:/usr/bin# pcsc_scan
> Using reader plug'n play mechanism
> Scanning present readers...
> Waiting for the first reader...found one
> Scanning present readers...
> 0: HID Global OMNIKEY 6121 Smart Card Reader [OMNIKEY 6121 Smart Card Reader] 00 00
>
> Sat Jul 15 14:24:05 2023
> Reader 0: HID Global OMNIKEY 6121 Smart Card Reader [OMNIKEY 6121 Smart Card Reader]
00 00
> Event number: 0
> Card state: Card inserted, Unresponsive card,
> Because there are special symbols in the name of the card reader, so I set this in
the bankd configuration file csv
> "1","0","HID Global OMNIKEY 6121 Smart Card Reader \[OMNIKEY
6121 Smart Card Reader\] 00 00"
> And set up bankd like this. osmo-remsim-bankd -i 192.168.2.128 -n 1 -b 1
> Because my server has a fixed ip
> I put the simtrace2 link on the linux of client-st2, and set up client-st2. As
follows
>
> osmo-remsim-client-st2 --usb-vendor 1d50 --usb-product 60e3 --usb-interface 0
--usb-altsetting 0 --usb-address 3 --usb-path 1-1.1 --usb-config 1 --client-id 0
--client-slot 0 --server-ip 192.168.2.128 --server-port 9998
>
I saw them separately on sever. I tried to make their
link. osmo-remsim-apitool -m 1 1 0 0
Because I read the instructions, when linking 1 simtrace2, our client-id and client-slot
need to be set to 0
>
> When I link successfully, both bankd and client-st2 have wrong information. as
follows
> 1987 DBANKDW INFO bankd_main.c:655 [000 CONN_WAIT_ID] Rx RSPRO connectClientReq(T=0,
N='openstick', SW='remsim-client', VER='1.0.0')
> 1987 DBANKDW INFO bankd_main.c:442 [000 CONN_WAIT_ID] Changing state to CONN_CLIENT
1987 DBANKDW INFO bankd_main.c:619 [000 CONN_CLIENT]
No slotmap (yet) for client C(0:0)
> 1987 DBANKDW INFO bankd_main.c:450 [000
CONN_CLIENT] Changing state to CONN_CLIENT_WAIT_MAP (timeout=10)
> 1987 DBANKDW INFO bankd_main.c:967 [000 CONN_CLIENT_WAIT_MAP] Error -2 occurred:
Cleaning up state
> 1987 DBANKDW INFO bankd_main.c:442 [000 CONN_CLIENT_WAIT_MAP] Changing state to
ACCEPTING
>
>
> TCP connection to server at 192.168.2.131:9999
> DLINP NOTICE input/ipa.c:141 192.168.2.131:9999 connection done
> DRSPRO NOTICE ../rspro_client_fsm.c:127 RSPRO_CLIENT(bankd){REESTABLISH}: RSPRO link
to 192.168.2.131:9999 UP
> DRSPRO ERROR ../rspro_client_fsm.c:297 RSPRO_CLIENT(bankd){REESTABLISH}: Event
SRVC_E_KA_TERMINATED not permitted
> DRSPRO INFO ../rspro_client_fsm.c:302 RSPRO_CLIENT(bankd){REESTABLISH}: Destroying
existing connection to server
> DRSPRO INFO ../rspro_client_fsm.c:307 RSPRO_CLIENT(bankd){REESTABLISH}: Creating TCP
connection to server at 192.168.2.131:9999
>
>
> I'm wondering if I'm doing something wrong? What is the reason that led to
such a result! I'm looking forward to someone pointing out my mistakes. and help me.
Thank you so much. guys