RSPRO: split ConfigClient into ConfigClientId and ConfigClientBank
The point is that the ClientId is only set once at start-up (and
also only optionally), while the Bank IP/port/ID/slot can be changed
any number of times during a RSPRO connection.
Change-Id: Ic76207c7dd7c18fe93bc5133b29c5f9438a9fb0e
diff --git a/asn1/RSPRO.asn b/asn1/RSPRO.asn
index e0dde2b..65152ec 100644
--- a/asn1/RSPRO.asn
+++ b/asn1/RSPRO.asn
@@ -221,19 +221,31 @@
...
}
--- SERVER->CLIENT: set configuration (client ID and BANK IP/Port)
-ConfigClientReq ::= SEQUENCE {
+-- SERVER->CLIENT: set Client ID
+ConfigClientIdReq ::= SEQUENCE {
-- server-allocated assignment of a client ID
clientSlot ClientSlot,
+ ...
+}
+ConfigClientIdRes ::= SEQUENCE {
+ result ResultCode,
+ ...
+}
+
+-- SERVER->CLIENT: set BankId/Slot and IP/Port
+ConfigClientBankReq ::= SEQUENCE {
+ -- server-allocated assignment of a client ID
+ bankSlot BankSlot,
-- bank to which the client shall connect
bankd IpPort,
...
}
-ConfigClientRes ::= SEQUENCE {
+ConfigClientBankRes ::= SEQUENCE {
result ResultCode,
...
}
+
-- BANKD->CLIENT: configure the ATR which the card emulator (client) shall send to the modem
SetAtrReq ::= SEQUENCE {
slot ClientSlot,
@@ -311,8 +323,10 @@
createMappingRes [5] CreateMappingRes,
removeMappingReq [6] RemoveMappingReq,
removeMappingRes [7] RemoveMappingRes,
- configClientReq [8] ConfigClientReq,
- configClientRes [9] ConfigClientRes,
+ configClientIdReq [8] ConfigClientIdReq,
+ configClientIdRes [9] ConfigClientIdRes,
+ configClientBankReq [17] ConfigClientBankReq,
+ configClientBankRes [18] ConfigClientBankRes,
errorInd [16] ErrorInd,
-- APDUs etc.
setAtrReq [10] SetAtrReq,