Jump to content

Comment afficher les communications du RIL


Talkamynn

Recommended Posts

Bonjour à tous !

 

J'essaye de débugguer mon app, et pour ce faire j'ai besoin de remonter des logs plus verbeux.

En effet, quand je lis les logs du buffer radio, avec logcat, je ne vois que des informations factuelles, du genre RIL_REQUEST_SIM_OPEN_CHANNEL, ou encore RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL. Ce qu'il me faudrai serait le contenu le contenu des ces requêtes, et pas juste de savoir qu'elles sont passées.

Je commence à potasser le code source d'Android (notamment ril.cpp, dans platform_hardware_ril), mais ça fait une sacrée masse d'infos à digérer...

Pour info, voici une partie des logs obtenus :

09-28 16:23:51.890  4369  4380 D GsmSST  : getCellLocation(): X good mCellLoc= xxx
09-28 16:23:51.950  4369  4721 D SubscriptionController: getSimStateForSlotIdx:  simState=READY ordinal=5
09-28 16:23:51.950  3038  3182 E RILD    : BuildResp: Invalid selectlen(0)
09-28 16:23:51.950  4369  4551 D RILJ    : [0182]< RIL_REQUEST_SIM_OPEN_CHANNEL  [SUB0]
09-28 16:23:51.950  7381  7381 D SubscriptionManager: getSimStateForSlotIdx: simState=5 slotIdx=0
09-28 16:23:51.960  4369  4369 D RILJ    : [0187]> RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL [SUB0]
09-28 16:23:51.970  4369  8189 D SubscriptionController: getSimStateForSlotIdx:  simState=READY ordinal=5
09-28 16:23:51.970  7381  7381 D SubscriptionManager: getSimStateForSlotIdx: simState=5 slotIdx=0
09-28 16:23:52.010  4369  4380 D SubscriptionController: getSimStateForSlotIdx:  simState=READY ordinal=5
09-28 16:23:52.010  7381  7381 D SubscriptionManager: getSimStateForSlotIdx: simState=5 slotIdx=0
09-28 16:23:52.130  4369  4551 D RILJ    : [0183]< RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL  [SUB0]
09-28 16:23:52.130  4369  4369 D RILJ    : [0188]> RIL_REQUEST_SIM_CLOSE_CHANNEL [SUB0]
09-28 16:23:52.280  4369  4551 D RILJ    : [0187]< RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL  [SUB0]
09-28 16:23:52.280  4369  4369 D RILJ    : [0189]> RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL [SUB0]
09-28 16:23:52.290  4369  4551 D RILJ    : [0188]< RIL_REQUEST_SIM_CLOSE_CHANNEL  [SUB0]
09-28 16:23:52.460  4369  4551 D RILJ    : [0189]< RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL  [SUB0]
09-28 16:23:52.460  4369  4369 D RILJ    : [0190]> RIL_REQUEST_SIM_CLOSE_CHANNEL [SUB0]
09-28 16:23:52.470  4369  4551 D RILJ    : [0190]< RIL_REQUEST_SIM_CLOSE_CHANNEL  [SUB0]
09-28 16:23:52.480  4369  4369 D RILJ    : [0191]> RIL_REQUEST_SIM_OPEN_CHANNEL [SUB0]
09-28 16:23:52.500  3038  4938 E RILD    : Failed to select channel(2)
09-28 16:23:52.510  4369  4551 D RilRequest: [0191]< RIL_REQUEST_SIM_OPEN_CHANNEL error: com.android.internal.telephony.CommandException: NO_SUCH_ELEMENT ret=
09-28 16:23:52.510  4369  4369 D UiccCard: Error in SIM access with exceptioncom.android.internal.telephony.CommandException: NO_SUCH_ELEMENT
09-28 16:23:52.510  4369  4369 D RILJ    : [0192]> RIL_REQUEST_SIM_OPEN_CHANNEL [SUB0]
09-28 16:23:52.530  3038  3182 E RILD    : AidLen is zero so do not select(1)
09-28 16:23:52.530  3038  3182 E RILD    : BuildResp: Invalid selectlen(0)
09-28 16:23:52.530  4369  4551 D RILJ    : [0192]< RIL_REQUEST_SIM_OPEN_CHANNEL  [SUB0]
09-28 16:23:52.530  4369  4369 D RILJ    : [0193]> RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL [SUB0]
09-28 16:23:52.550  4369  4551 D RILJ    : [0193]< RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL  [SUB0]
09-28 16:23:52.550  4369  4369 D RILJ    : [0194]> RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL [SUB0]
09-28 16:23:52.560  4369  4551 D RILJ    : [0194]< RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL  [SUB0]
09-28 16:23:52.570  4369  4369 D RILJ    : [0195]> RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL [SUB0]
09-28 16:23:52.580  4369  4551 D RILJ    : [0195]< RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL  [SUB0]
09-28 16:23:52.580  4369  4369 D RILJ    : [0196]> RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL [SUB0]
09-28 16:23:52.600  4369  4551 D RILJ    : [0196]< RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL  [SUB0]
09-28 16:23:52.600  4369  4369 D RILJ    : [0197]> RIL_REQUEST_SIM_CLOSE_CHANNEL [SUB0]
09-28 16:23:52.610  4369  4551 D RILJ    : [0197]< RIL_REQUEST_SIM_CLOSE_CHANNEL  [SUB0]
09-28 16:23:52.610  4369  4369 D RILJ    : [0198]> RIL_REQUEST_SIM_OPEN_CHANNEL [SUB0]
09-28 16:23:52.640  3038  4938 E RILD    : Failed to select channel(2)

 

J'espère être assez clair, merci d'avance pour votre aide.

Edited by Talkamynn
Ajout des logs, pour info
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...