Project

General

Profile

Actions

Bug #5216

closed

Events request-sim-local / request-card-remove are never sent

Added by daniel over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
remsim-client
Target version:
-
Start date:
08/24/2021
Due date:
% Done:

100%

Spec Reference:

Description

Using osmo-remsim-{server,bankd} version 0.2.2.112-694e
osmo-remsim-client version 0.3.0

If I create a mapping osmo-remsim-client switches to the remote SIM and resets the modem

$ ./contrib/remsim-apitool.py -m 1 0 1 1
$ ./contrib/remsim-apitool.py -a        
/clients: {'clients': [{'peer': 'C1:1', 'state': 'CONNECTED_CLIENT', 'component_id': {'type_': 'remsimClient', 'name': 'client', 'software': 'remsim-client', 'swVersion': '0.3.0'}}]}
/banks: {'banks': [{'peer': 'B1', 'state': 'CONNECTED_BANKD', 'component_id': {'type_': 'remsimBankd', 'name': 'fixme-name', 'software': 'remsim-bankd', 'swVersion': '0.2.2.112-694e'}, 'bankId': 1, 'numberOfSlots': 1}]}
/slotmaps: {'slotmaps': [{'bank': {'bankId': 1, 'slotNr': 0}, 'client': {'clientId': 1, 'slotNr': 1}, 'state': 'ACTIVE'}]}

Events sent by remsim-client: request-card-insert, request-sim-remote and finally request-modem-reset

AT+CIMI now reports the remote IMSI. If I then remove the mapping again I would expect the reverse events to be sent (card-remove, sim-local) followed by request-modem-reset

$ ./contrib/remsim-apitool.py -d 1 0

remsim-client:

<0000> ../rspro_client_fsm.c:165 RSPRO_CLIENT(server)[0xb6e10ea0]{CONNECTED}: Received RSPRO [L1]> 00 20 ee 07 [L2]> 30 1d 80 01 02 81 01 00 a2 15 b1 13 30 06 02 01 01 02 01 00 30 09 80 04 00 00 00 00 02 01 00 
<0000> remsim_client.c:118 CLIENT_MAIN(main)[0xb6e10cc0]{OPERATIONAL}: Received Event MF_E_SRVC_CONFIG_BANK
<0000> main_fsm.c:236 CLIENT_MAIN(main)[0xb6e10cc0]{OPERATIONAL}: state_chg to UNCONFIGURED
<0000> main_fsm.c:158 RSPRO_CLIENT(bankd)[0xb6f9d040]{CONNECTED}: Received Event SRVC_E_DISCONNECT
<0000> ../rspro_client_fsm.c:359 RSPRO_CLIENT(bankd)[0xb6f9d040]{CONNECTED}: Received Event SRVC_E_KA_TERMINATED
<0000> ../rspro_client_fsm.c:359 RSPRO_CLIENT(bankd)[0xb6f9d040]{CONNECTED}: Event SRVC_E_KA_TERMINATED not permitted
<0000> ../rspro_client_fsm.c:363 RSPRO_CLIENT(bankd)[0xb6f9d040]{CONNECTED}: Destroying existing connection to server
<0000> ../rspro_client_fsm.c:279 CLIENT_MAIN(main)[0xb6e10cc0]{UNCONFIGURED}: Received Event MF_E_BANKD_LOST
<0000> ../rspro_client_fsm.c:279 CLIENT_MAIN(main)[0xb6e10cc0]{UNCONFIGURED}: Event MF_E_BANKD_LOST not permitted
<0000> ../rspro_client_fsm.c:368 RSPRO_CLIENT(bankd)[0xb6f9d040]{CONNECTED}: state_chg to INIT
<0000> ../rspro_client_fsm.c:93 RSPRO_CLIENT(server)[0xb6e10ea0]{CONNECTED}: Received Event SRVC_E_RSPRO_TX
<0000> ../rspro_client_fsm.c:82 RSPRO_CLIENT(server)[0xb6e10ea0]{CONNECTED}: Tx RSPRO configClientBankRes
<0000> user_simtrace2.c:114 CLIENT_MAIN(main)[0xb6e10cc0]{UNCONFIGURED}: Received Event MF_E_MDM_TPDU
<0000> user_simtrace2.c:114 CLIENT_MAIN(main)[0xb6e10cc0]{UNCONFIGURED}: Event MF_E_MDM_TPDU not permitted

Even if my expectation when removing the mapping is incorrect - those events are not even in the code:

$ git grep call_script
src/client/main_fsm.c:static int call_script(struct bankd_client *bc, const char *cause)
src/client/main_fsm.c:      call_script(bc, "event-server-connect");
src/client/main_fsm.c:      call_script(bc, "event-bankd-connect");
src/client/main_fsm.c:  call_script(bc, "request-card-insert");
src/client/main_fsm.c:  call_script(bc, "request-sim-remote");
src/client/main_fsm.c:  call_script(bc, "request-modem-reset");
src/client/main_fsm.c:      call_script(bc, "event-config-bankd");
src/client/main_fsm.c:          call_script(bc, "event-modem-status");

There should be a way to switch a modem back to local sim.


Related issues

Related to osmo-remsim - Feature #4249: ability to explicitly provision an "empty SIM card slot" to a modemNewlaforge11/07/2019

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)