view src/cs/services/atp/atp_spp_api_i.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

/*******************************************************************************
*
* File Name : atp_spp_api_i.h
*
* Internal Definitions for the interface between ATP and SPP SW entity
*
* (C) Texas Instruments, all rights reserved
*
* Version number	: 0.1      Date : 16-Marsh-2000
*
* History			: 0.1  - Created by E. Baissus
*
*
* Author			: Eric Baissus : e-baissus@ti.com
*
*   (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved
******************************************************************************/
#ifndef ATP_SPP_API_I_H
#define ATP_SPP_API_I_H


#include "rv/rv_general.h"
#include "rvf/rvf_api.h"
#include "spp_general.h"
#include "spp_up_interface.h"

// Structure used to store the 'open pending port' information


typedef struct 
{
	T_ATP_SW_ENTITY_ID initiator_id;
	T_ATP_PORT_NB port_nb;
	T_SPP_HANDLE handle;
} T_ATP_SPP_PENDING_PORT_INFO;


typedef enum
{
	ATP_SPP_IS_IND,
	ATP_SPP_IS_CFM
} T_ATP_SPP_IS_IND_OR_CFM;


void atp_spp_to_spp_if_ft(void * message_p);
T_RV_RET atp_spp_open_port_rqst(T_ATP_OPEN_PORT_IND * open_port_ind_p);
T_RV_RET atp_spp_open_port_rsp(void * spp_open_port_rsp_p,T_ATP_SPP_IS_IND_OR_CFM cfm_or_ind);
T_RV_RET atp_spp_port_closed_from_atp(T_ATP_PORT_CLOSED * close_port_p);
T_RV_RET atp_spp_send_to_spp_buffer_nc(T_ATP_NO_COPY_DATA_RDY * atp_no_copy_p);
void atp_spp_from_spp_if_ft(void * message_p);
T_RV_RET atp_spp_reg(void);
T_RV_RET atp_spp_set_atp_signals(T_SPP_LINE_STS * message_p);
T_RV_RET atp_spp_set_spp_signals(T_ATP_SIGNAL_CHANGED * message_p);


#endif