The set command allows to buffer the array of SIM APDUs that indicates the nrUSIM command APDUs or response APDUs relating to the functionality of the MT and display the array of SIM APDUs when required.
The command displays the array of intermediate result code +CLOGBUFFSIMAPDUTD:
<command_data> for command and +CLOGBUFFSIMAPDURD:
<response_data> for response respectively. If no APDU has been sent or received to nrUSIM while buffering the data, only the final response OK shall be sent.
In case of
<command_data> the syntax is as follows:
+CLOGBUFFSIMAPDUTD: SIM SLOT:
<card_slot>[,LSI:
<LSI>],TX Data APDU:
<payload><CR><LF>
In case of
<response_data> the syntax is as follows:
+CLOGBUFFSIMAPDURD: SIM SLOT:
<card_slot>[,LSI:
<LSI>],RX Data APDU:
<payload><CR><LF>
Apart from enabling logging of all the SIM APDUs, optional parameter
<filter_type> can be used to filter and log required SIM APDUs.
Read command returns the current values that have been set.
Test command returns the values supported as a compound value.
Refer
clause 9.2 for possible
<err> values.
Example Response:
AT+CLOGBUFFSIMAPDU=1,1 //start logging and buffering
OK
//APDU logging data buffered
AT+CLOGBUFFSIMAPDU=1,2 //flush buffered data
+CLOGBUFFSIMAPDUTD: SIM SLOT:1,LSI:2,TX Data APDU: 80F2000C0000
+CLOGBUFFSIMAPDURD: SIM SLOT:1,LSI:2,RX Data APDU: 9000
OK
AT+CLOGBUFFSIMAPDU=1,0 //flush and stop logging data
+CLOGBUFFSIMAPDUTD: SIM SLOT:1,LSI:2,TX Data APDU: 7FFF5FC04F0A
+CLOGBUFFSIMAPDURD: SIM SLOT:1,LSI:2,RX Data APDU: 6119
OK
Defined values
<n>
integer type.
0
stop buffering the data, display the buffered data and flush.
1
start buffering the data +CLOGSIMAPDUTD: <command_data> and +CLOGSIMAPDURD: <response_data>. This buffering of data shall also be filtered if filtering has been enabled.
2
display the buffered data and flush. The amount of data buffered shall be implementation specific depending on the manufacturer. The displayed data shall be the latest set of data received. In this case the read command will show the value of <n> to be 1 as this is an intermediate stage only. In this case the buffered unsolicited response will be displayed as intermediate result.
<card_slot>
integer type, indicates the physical card slot on which the data is received. Refer +CSUS in
subclause 8.66.
<LSI>
<payload>
hexadecimal string format, indicates the data field part of the command or response APDU data exchanged between the nrUSIM and the MT.
<filter_type>
integer type, indicating the type of filter to be chosen. Based on the value of
<filter_type>, the following parameters must be provided by the user. For example, if the
<filter_type> is set then the
<no_of_ins> followed by the required
<ins> should be provided.
0
no filter.
1
instruction-based filter where only the one or more, provided set of instruction bytes will be considered and presented.
<no_of_ins>
integer type, indicating the number of instruction(s) followed by this parameter that needs to be considered for filtering.
<ins>