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
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@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
First of all thank you for your reply! My operation may be slightly different from yours. Because I put bankd. server. client-st2 is installed in three linux respectively. bankd and server are linux simulated by vm, and client-st2 is installed separately on a linux host debian@debian:/bin$ su 密码: root@debian:/bin# pcsc_scan Using reader plug'n play mechanism Scanning present readers... 0: HID Global OMNIKEY 6121 Smart Card Reader [OMNIKEY 6121 Smart Card Reader] 00 00
Mon Jul 17 16:43:49 2023 Reader 0: HID Global OMNIKEY 6121 Smart Card Reader [OMNIKEY 6121 Smart Card Reader] 00 00 Event number: 0 Card state: Card inserted, ATR: 3B 9C 95 80 1F C7 80 31 E0 73 FE 21 13 64 10 C0 C0 0F C4
ATR: 3B 9C 95 80 1F C7 80 31 E0 73 FE 21 13 64 10 C0 C0 0F C4 + TS = 3B --> Direct Convention + T0 = 9C, Y(1): 1001, K: 12 (historical bytes) TA(1) = 95 --> Fi=512, Di=16, 32 cycles/ETU 125000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 156250 bits/s TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0 ----- TD(2) = 1F --> Y(i+1) = 0001, Protocol T = 15 - Global interface bytes following ----- TA(3) = C7 --> Clock stop: no preference - Class accepted by the card: (3G) A 5V B 3V C 1.8V + Historical bytes: 80 31 E0 73 FE 21 13 64 10 C0 C0 0F Category indicator byte: 80 (compact TLV data object) Tag: 3, len: 1 (card service data byte) Card service data byte: E0 - Application selection: by full DF name - Application selection: by partial DF name - BER-TLV data objects available in EF.DIR - EF.DIR and EF.ATR access services: by GET RECORD(s) command - Card with MF Tag: 7, len: 3 (card capabilities) Selection methods: FE - DF selection by full DF name - DF selection by partial DF name - DF selection by path - DF selection by file identifier - Implicit DF selection - Short EF identifier supported - Record number supported Data coding byte: 21 - Behaviour of write functions: proprietary - Value 'FF' for the first byte of BER-TLV tag fields: invalid - Data unit in quartets: 2 Command chaining, length fields and logical channels: 13 - Logical channel number assignment: by the card - Maximum number of logical channels: 4 Tag: 6, len: 4 (pre-issuing data) Data: 10 C0 C0 0F + TCK = C4 (correct checksum)
Possibly identified card (using /root/.cache/smartcard_list.txt): NONE
Updating /root/.cache/smartcard_list.txt using http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt This is the data from the reader part of my bankd side. On the bank side, I set it like this: osmo-emsim-band -i 192.168.2.128 -b 1 -n 1 debian@debian:/usr/bin$ su 密码: root@debian:/usr/bin# osmo-remsim-bankd -i 192.168.2.128 -b 1 -n 1 3511 DMAIN INFO bankd_pcsc.c:105 PC/SC slot name: 1/0 -> regex 'HID Global OMNIKEY 6121 Smart Card Reader [OMNIKEY 6121 Smart Card Reader] 00 00' 3511 DRSPRO INFO ../rspro_client_fsm.c:307 RSPRO_CLIENT(server){REESTABLISH}: Creating TCP connection to server at 192.168.2.128:9998 3512 DBANKDW INFO bankd_main.c:442 [000 INIT] Changing state to INIT 3512 DBANKDW INFO bankd_main.c:442 [000 INIT] Changing state to ACCEPTING 3511 DLINP NOTICE input/ipa.c:141 192.168.2.128:9998 connection done 3511 DRSPRO NOTICE ../rspro_client_fsm.c:127 RSPRO_CLIENT(server){REESTABLISH}: RSPRO link to 192.168.2.128:9998 UP Then I started to configure another client on linux. I linked simtrace2 to this host before configuring, and linked simtrace2 to the mobile phone through fpc. The phone is turned off. root@openstick:~# lsusb Bus 001 Device 003: ID 1d50:60e3 OpenMoko, Inc. Osmocom SIMtrace 2 Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub root@openstick:~# 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 1 --client-slot 1 --server-ip 192.168.2.128 --server-port 9998 DRSPRO INFO ../rspro_client_fsm.c:307 RSPRO_CLIENT(server){REESTABLISH}: Creating TCP connection to server at 192.168.2.128:9998 DLINP NOTICE simtrace2_api.c:271 [0] <= osmo_st2_cardem_request_config(features=00000001) DLINP NOTICE input/ipa.c:141 192.168.2.128:9998 connection done DRSPRO NOTICE ../rspro_client_fsm.c:127 RSPRO_CLIENT(server){REESTABLISH}: RSPRO link to 192.168.2.128:9998 UP then i turn on the phone DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 This is what the system shows There should be a problem here. but i don't know why I continued to try the server part and got the following. root@debian:/bin# osmo-remsim-apitool -m 1 1 1 1 root@debian:/bin# osmo-remsim-apitool -s /slotmaps: {'slotmaps': [{'bank': {'bankId': 1, 'slotNr': 1}, 'client': {'clientId': 1, 'slotNr': 1}, 'state': 'ACTIVE'}]} root@debian:/bin# At this time, the client2 part displays 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 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 DRSPRO ERROR ../rspro_client_fsm.c:360 RSPRO_CLIENT(bankd){REESTABLISH}: Event SRVC_E_KA_TERMINATED not permitted DRSPRO INFO ../rspro_client_fsm.c:364 RSPRO_CLIENT(bankd){REESTABLISH}: Destroying existing connection to server The display on the bankd side is 3512 DBANKDW INFO bankd_main.c:442 [000 CONN_WAIT_ID] Changing state to CONN_CLIENT 3512 DBANKDW INFO bankd_main.c:619 [000 CONN_CLIENT] No slotmap (yet) for client C(1:1) 3512 DBANKDW INFO bankd_main.c:450 [000 CONN_CLIENT] Changing state to CONN_CLIENT_WAIT_MAP (timeout=10) 3512 DBANKDW INFO bankd_main.c:967 [000 CONN_CLIENT_WAIT_MAP] Error -2 occurred: Cleaning up state 3512 DBANKDW INFO bankd_main.c:442 [000 CONN_CLIENT_WAIT_MAP] Changing state to ACCEPTING 3512 DBANKDW INFO bankd_main.c:955 [000 ACCEPTING] Accepted connection from 192.168.2.224:42813 3512 DBANKDW INFO bankd_main.c:442 [000 ACCEPTING] Changing state to CONN_WAIT_ID 3512 DBANKDW INFO bankd_main.c:655 [000 CONN_WAIT_ID] Rx RSPRO connectClientReq(T=0, N='openstick', SW='remsim-client', VER='1.0.0')
I want to use the method of exclusion. I want to make it clear that the name of my bankd is also in the csv file. Is it correct? Is there any problem with the configuration of bankd and client-st2? Also, when booting, does the content displayed by the client's linux mean that my mobile phone is not connected successfully?
The root cause here looks like this message: [000 CONN_CLIENT] No slotmap (yet) for client C(1:1)
When you did the mapping, did the server or banks list any errors? I get errors if I have previous mappings and I try to reapply them without explicitly deleting the old mappings first.
On Mon, Jul 17, 2023 at 12:16 PM gmaillee@126.com wrote:
First of all thank you for your reply! My operation may be slightly different from yours. Because I put bankd. server. client-st2 is installed in three linux respectively. bankd and server are linux simulated by vm, and client-st2 is installed separately on a linux host debian@debian:/bin$ su 密码: root@debian:/bin# pcsc_scan Using reader plug'n play mechanism Scanning present readers... 0: HID Global OMNIKEY 6121 Smart Card Reader [OMNIKEY 6121 Smart Card Reader] 00 00
Mon Jul 17 16:43:49 2023 Reader 0: HID Global OMNIKEY 6121 Smart Card Reader [OMNIKEY 6121 Smart Card Reader] 00 00 Event number: 0 Card state: Card inserted, ATR: 3B 9C 95 80 1F C7 80 31 E0 73 FE 21 13 64 10 C0 C0 0F C4
ATR: 3B 9C 95 80 1F C7 80 31 E0 73 FE 21 13 64 10 C0 C0 0F C4
- TS = 3B --> Direct Convention
- T0 = 9C, Y(1): 1001, K: 12 (historical bytes) TA(1) = 95 --> Fi=512, Di=16, 32 cycles/ETU 125000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 156250 bits/s TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0
TD(2) = 1F --> Y(i+1) = 0001, Protocol T = 15 - Global interface bytes following
TA(3) = C7 --> Clock stop: no preference - Class accepted by the card: (3G) A 5V B 3V C 1.8V
- Historical bytes: 80 31 E0 73 FE 21 13 64 10 C0 C0 0F Category indicator byte: 80 (compact TLV data object) Tag: 3, len: 1 (card service data byte) Card service data byte: E0 - Application selection: by full DF name - Application selection: by partial DF name - BER-TLV data objects available in EF.DIR - EF.DIR and EF.ATR access services: by GET RECORD(s) command - Card with MF Tag: 7, len: 3 (card capabilities) Selection methods: FE - DF selection by full DF name - DF selection by partial DF name - DF selection by path - DF selection by file identifier - Implicit DF selection - Short EF identifier supported - Record number supported Data coding byte: 21 - Behaviour of write functions: proprietary - Value 'FF' for the first byte of BER-TLV tag fields: invalid - Data unit in quartets: 2 Command chaining, length fields and logical channels: 13 - Logical channel number assignment: by the card - Maximum number of logical channels: 4 Tag: 6, len: 4 (pre-issuing data) Data: 10 C0 C0 0F
- TCK = C4 (correct checksum)
Possibly identified card (using /root/.cache/smartcard_list.txt): NONE
Updating /root/.cache/smartcard_list.txt using http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt This is the data from the reader part of my bankd side. On the bank side, I set it like this: osmo-emsim-band -i 192.168.2.128 -b 1 -n 1 debian@debian:/usr/bin$ su 密码: root@debian:/usr/bin# osmo-remsim-bankd -i 192.168.2.128 -b 1 -n 1 3511 DMAIN INFO bankd_pcsc.c:105 PC/SC slot name: 1/0 -> regex 'HID Global OMNIKEY 6121 Smart Card Reader [OMNIKEY 6121 Smart Card Reader] 00 00' 3511 DRSPRO INFO ../rspro_client_fsm.c:307 RSPRO_CLIENT(server){REESTABLISH}: Creating TCP connection to server at 192.168.2.128:9998 3512 DBANKDW INFO bankd_main.c:442 [000 INIT] Changing state to INIT 3512 DBANKDW INFO bankd_main.c:442 [000 INIT] Changing state to ACCEPTING 3511 DLINP NOTICE input/ipa.c:141 192.168.2.128:9998 connection done 3511 DRSPRO NOTICE ../rspro_client_fsm.c:127 RSPRO_CLIENT(server){REESTABLISH}: RSPRO link to 192.168.2.128:9998 UP Then I started to configure another client on linux. I linked simtrace2 to this host before configuring, and linked simtrace2 to the mobile phone through fpc. The phone is turned off. root@openstick:~# lsusb Bus 001 Device 003: ID 1d50:60e3 OpenMoko, Inc. Osmocom SIMtrace 2 Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub root@openstick:~# 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 1 --client-slot 1 --server-ip 192.168.2.128 --server-port 9998 DRSPRO INFO ../rspro_client_fsm.c:307 RSPRO_CLIENT(server){REESTABLISH}: Creating TCP connection to server at 192.168.2.128:9998 DLINP NOTICE simtrace2_api.c:271 [0] <= osmo_st2_cardem_request_config(features=00000001) DLINP NOTICE input/ipa.c:141 192.168.2.128:9998 connection done DRSPRO NOTICE ../rspro_client_fsm.c:127 RSPRO_CLIENT(server){REESTABLISH}: RSPRO link to 192.168.2.128:9998 UP then i turn on the phone DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 This is what the system shows There should be a problem here. but i don't know why I continued to try the server part and got the following. root@debian:/bin# osmo-remsim-apitool -m 1 1 1 1 root@debian:/bin# osmo-remsim-apitool -s /slotmaps: {'slotmaps': [{'bank': {'bankId': 1, 'slotNr': 1}, 'client': {'clientId': 1, 'slotNr': 1}, 'state': 'ACTIVE'}]} root@debian:/bin# At this time, the client2 part displays 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 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 DRSPRO ERROR ../rspro_client_fsm.c:360 RSPRO_CLIENT(bankd){REESTABLISH}: Event SRVC_E_KA_TERMINATED not permitted DRSPRO INFO ../rspro_client_fsm.c:364 RSPRO_CLIENT(bankd){REESTABLISH}: Destroying existing connection to server The display on the bankd side is 3512 DBANKDW INFO bankd_main.c:442 [000 CONN_WAIT_ID] Changing state to CONN_CLIENT 3512 DBANKDW INFO bankd_main.c:619 [000 CONN_CLIENT] No slotmap (yet) for client C(1:1) 3512 DBANKDW INFO bankd_main.c:450 [000 CONN_CLIENT] Changing state to CONN_CLIENT_WAIT_MAP (timeout=10) 3512 DBANKDW INFO bankd_main.c:967 [000 CONN_CLIENT_WAIT_MAP] Error -2 occurred: Cleaning up state 3512 DBANKDW INFO bankd_main.c:442 [000 CONN_CLIENT_WAIT_MAP] Changing state to ACCEPTING 3512 DBANKDW INFO bankd_main.c:955 [000 ACCEPTING] Accepted connection from 192.168.2.224:42813 3512 DBANKDW INFO bankd_main.c:442 [000 ACCEPTING] Changing state to CONN_WAIT_ID 3512 DBANKDW INFO bankd_main.c:655 [000 CONN_WAIT_ID] Rx RSPRO connectClientReq(T=0, N='openstick', SW='remsim-client', VER='1.0.0')
I want to use the method of exclusion. I want to make it clear that the name of my bankd is also in the csv file. Is it correct? Is there any problem with the configuration of bankd and client-st2? Also, when booting, does the content displayed by the client's linux mean that my mobile phone is not connected successfully?
I found this problem. But I don't know it's because of the problem with my csv file settings. It is also caused by the fpc of my simtrace2 connected to the mobile phone. After I connect the mobile phone with simtrace2 and turn on the mobile phone, there will be such a prompt DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 So it's my fpc problem? I am not sure
To rule out the FPC cable, you can flash the trace dfu on the simtrace board, use the onboard sim reader and try to access it from the phone. If it works, then the FPC is ok. You can also use the trace program to see messages exchanged between phone and sim card. If it doesn't work, the FPC might be the issue. For me, it worked ok (the phone has a regular SIM port, and the SIM board and FPC cable fit ok in the SIM slot).
On Mon, Jul 17, 2023 at 3:20 PM gmaillee@126.com wrote:
I found this problem. But I don't know it's because of the problem with my csv file settings. It is also caused by the fpc of my simtrace2 connected to the mobile phone. After I connect the mobile phone with simtrace2 and turn on the mobile phone, there will be such a prompt DST2 ERROR user_simtrace2.c:152 unknown simtrace msg type 0x00 So it's my fpc problem? I am not sure
I just asked on chatget the reason for 3512 DBANKDW INFO bankd_main.c:619 [000 CONN_CLIENT] No slotmap (yet) for client C(1:1). He said that the server did not allocate a card slot for the client, so I suspect that my osmo-remsim-apitool -m 1 1 1 0 setting is wrong. But when we checked with osmo-remsim-apitool -s we found that they are connected. I am very confused
Asking ChatGPT for troubleshooting advice, for non-trivial problems, is like trying to put out a fire with gasoline :)) It only makes the problem worse.
I'd advise you to wait for other users to give their suggestions. I'm a noob at this, after all :)
On Mon, Jul 17, 2023 at 3:35 PM gmaillee@126.com wrote:
I just asked on chatget the reason for 3512 DBANKDW INFO bankd_main.c:619 [000 CONN_CLIENT] No slotmap (yet) for client C(1:1). He said that the server did not allocate a card slot for the client, so I suspect that my osmo-remsim-apitool -m 1 1 1 0 setting is wrong. But when we checked with osmo-remsim-apitool -s we found that they are connected. I am very confused
hello are you here I'm trying to clone about Osmocom Remote SIM software suite; https://gitea.osmocom.org/sim-card/osmo-remsim. I used to install through binary packages. I tried to clone this package today. I want to ask you, it only has configure.ac and Makefile.am without Makefile, can you tell me how you make it? Also, the libosmocore version in it is only 1.4, not 1.8. How did you solve it? Can you tell me more detailed steps? Thanks
Dear gmaillee,
On Wed, Jul 19, 2023 at 10:11:26AM -0000, gmaillee@126.com wrote:
hello are you here I'm trying to clone about Osmocom Remote SIM software suite; https://gitea.osmocom.org/sim-card/osmo-remsim. I used to install through binary packages. I tried to clone this package today. I want to ask you, it only has configure.ac and Makefile.am without Makefile, can you tell me how you make it? Also, the libosmocore version in it is only 1.4, not 1.8. How did you solve it? Can you tell me more detailed steps? Thanks
Those are very generic questions about building software on GNU/Linux using the various GNU autotools.
Unless you are a software developer experienced with building software from source code on GNU/Linux and some basic autotools knowledge, we suggest you stick to the binary package feeds provided.
Der gmailee,
in order for us to help you, please provice comprehensive reports, including a textual copy+paste (not screenshots!) of any commands or output generated, as well as the log files, and ideally also a pcap file containing all of the RSPRO traffic between your osmo-remsim network elements (tcp ports 9998 + 9999).
This will give us the full picture.
On Mon, Jul 17, 2023 at 12:35:07PM -0000, gmaillee@126.com wrote:
I just asked on chatget the reason for 3512 DBANKDW INFO bankd_main.c:619 [000 CONN_CLIENT] No slotmap (yet) for client C(1:1). He said that the server did not allocate a card slot for the client, so I suspect that my osmo-remsim-apitool -m 1 1 1 0 setting is wrong. But when we checked with osmo-remsim-apitool -s we found that they are connected. I am very confused
"osmo-remsim-apitool -m 1 1 1 0"
means "map the bank 1:1 to client 1:0"
see the help output of osmo-remsim-apitool:
usage: osmo-remsim-apitool [-h] [-H HOST] [-p PORT] [-v] [-r | -c [SHOW_CLIENTS] | -b [SHOW_BANKS] | -s [SHOW_SLOTMAPS] | -m bank_id bank_slot client_id client_slot | -d bank_id bank_slot | -a]
so "-m bank_id bank_slot client_id client_slot" means * bank_id 1 * bank_slot 1 * client_id 1 * client_slot 0
but your log message about talks about client C(1:1) i.e. client_id 1 client_slot 1.
So the message is correct: you have configured a mapping for a different client than the client that is connected to the bankd. Hence there is no mapping.