Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions source/cellular_bg96.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,14 @@ CellularError_t Cellular_ModuleEnableUE( CellularContext_t * pContext )
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetNoResult );
}

if( cellularStatus == CELLULAR_SUCCESS )
{
/* Configure Band configuration to all bands. */
atReqGetNoResult.pAtCmd = "AT+QCFG=\"band\",f,400a0e189f,a0e189f";
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetNoResult );
}
#if ( CELLULAR_BG96_ENABLE_BAND_CONFIGURATION == 1 )
if( cellularStatus == CELLULAR_SUCCESS )
{
/* Configure Band configuration to all bands. */
atReqGetNoResult.pAtCmd = "AT+QCFG=\"band\","CELLULAR_BG96_BAND_CONFIGURATION;
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetNoResult );
}
#endif

if( cellularStatus == CELLULAR_SUCCESS )
{
Expand Down
10 changes: 10 additions & 0 deletions source/cellular_bg96.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@
#define CELLULAR_BG96_DIRECT_PUSH_SOCKET_BUFFER_SIZE ( 2048UL )
#endif /* CELLULAR_BG96_DIRECT_PUSH_SOCKET_BUFFER_SIZE. */

/* Enable/disable band configuration for BG96 modules */
#ifndef CELLULAR_BG96_ENABLE_BAND_CONFIGURATION
#define CELLULAR_BG96_ENABLE_BAND_CONFIGURATION ( 1 )
#endif

/* Default band configuration if enabled */
#ifndef CELLULAR_BG96_BAND_CONFIGURATION
#define CELLULAR_BG96_BAND_CONFIGURATION "f,400a0e189f,a0e189f"
#endif

/*-----------------------------------------------------------*/

/**
Expand Down