FreeCalypso > hg > fc-tourmaline
view src/cs/layer1/tm_include/l1tm_signa.h @ 303:f76436d19a7a default tip
!GPRS config: fix long-standing AT+COPS chance hanging bug
There has been a long-standing bug in FreeCalypso going back years:
sometimes in the AT command bring-up sequence of an ACI-only MS,
the AT+COPS command would produce only a power scan followed by
cessation of protocol stack activity (only L1 ADC traces), instead
of the expected network search sequence. This behaviour was seen
in different FC firmware versions going back to Citrine, and seemed
to follow some law of chance, not reliably repeatable.
This bug has been tracked down and found to be specific to !GPRS
configuration, stemming from our TCS2/TCS3 hybrid and reconstruction
of !GPRS support that was bitrotten in TCS3.2/LoCosto version.
ACI module psa_mms.c, needed only for !GPRS, was missing in the TCS3
version and had to be pulled from TCS2 - but as it turns out,
there is a new field in the MMR_REG_REQ primitive that needs to be
set correctly, and that psa_mms.c module is the place where this
initialization needed to be added.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 08 Jun 2023 08:23:37 +0000 |
parents | 4e78acac3d88 |
children |
line wrap: on
line source
/************* Revision Controle System Header ************* * GSM Layer 1 software * L1TM_SIGNA.H * * Filename l1tm_signa.h * Copyright 2003 (C) Texas Instruments * ************* Revision Controle System Header *************/ #define P_TMODE ( P_L1C + 3 ) // keep compatibility with GPRS code //TestMode #define TMODE_RXLEV_REQ ( ( P_TMODE << 8 ) | 1 ) #define TMODE_RXLEV_IND ( ( P_TMODE << 8 ) | 2 ) #define TMODE_STOP_RXLEV_CON ( ( P_TMODE << 8 ) | 3 ) #define TMODE_FB0_REQ ( ( P_TMODE << 8 ) | 4 ) #define TMODE_FB1_REQ ( ( P_TMODE << 8 ) | 5 ) #define TMODE_SB_REQ ( ( P_TMODE << 8 ) | 6 ) #define TMODE_FB_CON ( ( P_TMODE << 8 ) | 7 ) #define TMODE_SB_CON ( ( P_TMODE << 8 ) | 8 ) #define TMODE_BCCHS_CON ( ( P_TMODE << 8 ) | 9 ) #define TMODE_RA_START ( ( P_TMODE << 8 ) | 10 ) #define TMODE_RA_DONE ( ( P_TMODE << 8 ) | 11 ) #define TMODE_SCELL_NBCCH_REQ ( ( P_TMODE << 8 ) | 12 ) #define TMODE_STOP_SCELL_BCCH_REQ ( ( P_TMODE << 8 ) | 13 ) #define TMODE_NEW_SCELL_REQ ( ( P_TMODE << 8 ) | 14 ) #define TMODE_TCH_REQ ( ( P_TMODE << 8 ) | 15 ) #define TMODE_IMMED_ASSIGN_REQ ( ( P_TMODE << 8 ) | 16 ) #define TMODE_IMMED_ASSIGN_CON ( ( P_TMODE << 8 ) | 17 ) #define TMODE_STOP_RX_TX ( ( P_TMODE << 8 ) | 18 ) #define TMODE_SACCH_INFO ( ( P_TMODE << 8 ) | 19 ) #define TESTMODE_PRIM ( ( P_TMODE << 8 ) | 20 ) #define TMODE_FB_SB_REQ ( ( P_TMODE << 8 ) | 21 ) #define TMODE_NETWORK_SYNC_IND ( ( P_TMODE << 8 ) | 22 ) #define TMODE_TCH_INFO ( ( P_TMODE << 8 ) | 23 ) #if L1_GPRS #define TMODE_PDTCH_ASSIGN_REQ ( ( P_TMODE << 8 ) | 24 ) #define TMODE_PDTCH_INFO ( ( P_TMODE << 8 ) | 25 ) #endif // #define TMODE_RXLEV_REQ ( ( P_TMODE << 8 ) | 24 ) // #define TMODE_RXLEV_IND ( ( P_TMODE << 8 ) | 25 )