Problem with QMOD, Telit Modem and ofono

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/simtrace@lists.osmocom.org/.

KageDS alan at kageds.com
Tue Oct 15 12:28:49 UTC 2019


HI Harald,

So just as test I made 1 change to the firmware to make the default 
remote SIM rather than local SIM. [1]
Just with this one change I see the same problem.
The modem is unresponsive to AT commands for a period time after boot up.
And just to confirm when it's using physical SIM there is no SIM present 
in the slot should I would expect to see the same behaviour regardless 
of local or remote.

Any thoughts you can share?

Many Thanks

Alan.

[1] git diff libcommon/source/mode_cardemu.c

diff --git a/firmware/libcommon/source/mode_cardemu.c 
b/firmware/libcommon/source/mode_cardemu.c
index 98818e1..55ff29c 100644
--- a/firmware/libcommon/source/mode_cardemu.c
+++ b/firmware/libcommon/source/mode_cardemu.c
@@ -421,7 +421,7 @@ void mode_cardemu_init(void)
         PIO_EnableIt(&pin_usim1_vcc);
  #endif /* DETECT_VCC_BY_ADC */
         cardem_inst[0].ch = card_emu_init(0, 2, 0, 
SIMTRACE_CARDEM_USB_EP_USIM1_DATAIN, SIMTRACE_CARDEM_USB_EP_USIM1_INT);
-       sim_switch_use_physical(0, 1);
+       sim_switch_use_physical(0, 0);

  #ifdef CARDEMU_SECOND_UART
INIT_LLIST_HEAD(&cardem_inst[1].usb_out_queue);
@@ -436,7 +436,7 @@ void mode_cardemu_init(void)
         PIO_EnableIt(&pin_usim2_vcc);
  #endif /* DETECT_VCC_BY_ADC */
         cardem_inst[1].ch = card_emu_init(1, 0, 1, 
SIMTRACE_CARDEM_USB_EP_USIM2_DATAIN, SIMTRACE_CARDEM_USB_EP_USIM2_INT);
-       sim_switch_use_physical(1, 1);
+       sim_switch_use_physical(1, 0);
  #endif /* CARDEMU_SECOND_UART */

  }


Console output after change:

=============================================================================
SIMtrace2 firmware 0.5.1.24-bb9b0-dirty (C) 2010-2016 by Harald Welte
=============================================================================
-I- Chip ID: 0x28900960 (Ext 0x00000000)
-I- Serial Nr. 51203120-39513450-32303031-32333037
-I- Reset Cause: general reset (first power-up reset)
-I- Detected Quad-Modem ST12
-I- VERSION_DET ADC=3732 => 3004260 uVund
-I- USB init...
USBD_Init
Std gDesc Dev Std sAddr SetAddr(4) Std gDesc Dev Std gDesc Qua -W- Sta 
0x888A8 .
-I- calling init of config 1...
-I- 536881924: CLK activateda work-around
-I- Modem 0: virtual SIM
-I- 0: Use remote/emulated SIM
-I- Modem 1: virtual SIM
-I- 1: Use remote/emulated SIM
-I- entering main loop...
-I- 0: Card Detect Status -1 -> 0
-I- 1: Card Detect Status -1 -> 0
-I- USB is now configured
-I- 0: RST released
-I- 0: RST asserted
-I- 0: VCC activated
-I- 0: CLK activated
-I- 0: RST released
-I- 0: computed Fi(1) Di(1) ratio: 372
-I- 0: send_tpdu_header: a0 a4 00 00 02
-I- 0: flush_rx_buffer (5)
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 
<when configured for local SIM modem responds straight away, remote SIM 
no response for approx 1 minute



On 14/10/2019 16:43, KageDS wrote:
> Hi Harald,
>
> Thanks for responding.
>
> Looking through the firmware source code. There is a debug function 
> board_exec_dbg_cmd()
>
> But I can't seem to access it via the debug port?
>
> I think typing '?' should display a debug menu but I get nothing.
>
> Is there anything I need to know about how to enable it so I can just 
> switch between remote and local?
>
> Also do you have any recommendation on preferred modems? I'm only 
> using a Telit because that's what I have.
>
> Thanks
>
> Alan
>



More information about the simtrace mailing list