mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-08-18 18:18:54 +08:00
Set and update submodule pointer correctly.
This commit is contained in:
+10
-2
@@ -60,11 +60,19 @@
|
||||
url = https://github.com/aws/SigV4-for-AWS-IoT-embedded-sdk.git
|
||||
[submodule "FreeRTOS-Plus/Source/FreeRTOS-Cellular-Interface"]
|
||||
path = FreeRTOS-Plus/Source/FreeRTOS-Cellular-Interface
|
||||
url = https://github.com/ActoryOu/FreeRTOS-Cellular-Interface.git
|
||||
branch = split
|
||||
url = https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface
|
||||
[submodule "FreeRTOS-Plus/ThirdParty/tinycbor"]
|
||||
path = FreeRTOS-Plus/ThirdParty/tinycbor
|
||||
url = https://github.com/intel/tinycbor.git
|
||||
[submodule "FreeRTOS-Plus/Source/AWS/fleet-provisioning"]
|
||||
path = FreeRTOS-Plus/Source/AWS/fleet-provisioning
|
||||
url = https://github.com/aws/Fleet-Provisioning-for-AWS-IoT-embedded-sdk.git
|
||||
[submodule "FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules/bg96"]
|
||||
path = FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules/bg96
|
||||
url = https://github.com/FreeRTOS/Lab-FreeRTOS-Cellular-Interface-Reference-Quectel-BG96
|
||||
[submodule "FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules/hl7802"]
|
||||
path = FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules/hl7802
|
||||
url = https://github.com/FreeRTOS/Lab-FreeRTOS-Cellular-Interface-Reference-Sierra-Wireless-HL7802
|
||||
[submodule "FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules/sara-r4"]
|
||||
path = FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules/sara-r4
|
||||
url = https://github.com/FreeRTOS/Lab-FreeRTOS-Cellular-Interface-Reference-ublox-SARA-R4
|
||||
|
||||
+5
-5
@@ -92,10 +92,10 @@
|
||||
<ClCompile Include="..\..\..\..\FreeRTOS\Source\timers.c" />
|
||||
<ClCompile Include="..\..\..\Source\Application-Protocols\network_transport\sockets_wrapper\cellular\sockets_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\Application-Protocols\network_transport\using_mbedtls\using_mbedtls.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_3gpp_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_3gpp_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_at_core.c" />
|
||||
@@ -431,7 +431,7 @@
|
||||
<ClInclude Include="..\..\..\Source\Application-Protocols\coreMQTT\source\include\core_mqtt_config_defaults.h" />
|
||||
<ClInclude Include="..\..\..\Source\Application-Protocols\network_transport\sockets_wrapper\cellular\sockets_wrapper.h" />
|
||||
<ClInclude Include="..\..\..\Source\Application-Protocols\network_transport\using_mbedtls\using_mbedtls.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_api.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_config_defaults.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_types.h" />
|
||||
|
||||
+5
-5
@@ -456,16 +456,16 @@
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_pktio.c">
|
||||
<Filter>FreeRTOS+\FreeRTOS IoT Libraries\platform\cellular</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_api.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_api.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_urc_handler.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_urc_handler.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_wrapper.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_wrapper.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Common\cellular_setup.c">
|
||||
@@ -871,7 +871,7 @@
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\private\cellular_pktio_internal.h">
|
||||
<Filter>FreeRTOS+\FreeRTOS IoT Libraries\platform\cellular\include\private</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96.h">
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96.h">
|
||||
<Filter>Module</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_api.h">
|
||||
|
||||
+5
-5
@@ -92,10 +92,10 @@
|
||||
<ClCompile Include="..\..\..\..\FreeRTOS\Source\timers.c" />
|
||||
<ClCompile Include="..\..\..\Source\Application-Protocols\network_transport\sockets_wrapper\cellular\sockets_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\Application-Protocols\network_transport\using_mbedtls\using_mbedtls.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\cellular_hl7802.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\cellular_hl7802_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\cellular_hl7802_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\cellular_hl7802_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_3gpp_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_3gpp_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_at_core.c" />
|
||||
@@ -431,7 +431,7 @@
|
||||
<ClInclude Include="..\..\..\Source\Application-Protocols\coreMQTT\source\include\core_mqtt_config_defaults.h" />
|
||||
<ClInclude Include="..\..\..\Source\Application-Protocols\network_transport\sockets_wrapper\cellular\sockets_wrapper.h" />
|
||||
<ClInclude Include="..\..\..\Source\Application-Protocols\network_transport\using_mbedtls\using_mbedtls.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\cellular_hl7802.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_api.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_config_defaults.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_types.h" />
|
||||
|
||||
+5
-5
@@ -496,16 +496,16 @@
|
||||
<Filter>FreeRTOS+\FreeRTOS+TCP</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\ThirdParty\mbedtls\library\error.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\cellular_hl7802.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802_api.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\cellular_hl7802_api.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802_urc_handler.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\cellular_hl7802_urc_handler.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802_wrapper.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\cellular_hl7802_wrapper.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\ThirdParty\mbedtls\library\error.c" />
|
||||
@@ -926,7 +926,7 @@
|
||||
<Filter>FreeRTOS+\FreeRTOS+TCP\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\ThirdParty\mbedtls\include\mbedtls\error.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\cellular_hl7802.h">
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\hl7802\source\source\cellular_hl7802.h">
|
||||
<Filter>Module</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\ThirdParty\mbedtls\include\mbedtls\error.h" />
|
||||
|
||||
+5
-5
@@ -92,10 +92,10 @@
|
||||
<ClCompile Include="..\..\..\..\FreeRTOS\Source\timers.c" />
|
||||
<ClCompile Include="..\..\..\Source\Application-Protocols\network_transport\sockets_wrapper\cellular\sockets_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\Application-Protocols\network_transport\using_mbedtls\using_mbedtls.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_3gpp_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_3gpp_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_at_core.c" />
|
||||
@@ -431,7 +431,7 @@
|
||||
<ClInclude Include="..\..\..\Source\Application-Protocols\coreMQTT\source\include\core_mqtt_config_defaults.h" />
|
||||
<ClInclude Include="..\..\..\Source\Application-Protocols\network_transport\sockets_wrapper\cellular\sockets_wrapper.h" />
|
||||
<ClInclude Include="..\..\..\Source\Application-Protocols\network_transport\using_mbedtls\using_mbedtls.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_api.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_config_defaults.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_types.h" />
|
||||
|
||||
+5
-5
@@ -496,16 +496,16 @@
|
||||
<Filter>FreeRTOS+\FreeRTOS+TCP</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\ThirdParty\mbedtls\library\error.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4_api.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4_api.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4_urc_handler.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4_urc_handler.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4_wrapper.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4_wrapper.c">
|
||||
<Filter>Module</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\ThirdParty\mbedtls\library\error.c" />
|
||||
@@ -926,7 +926,7 @@
|
||||
<Filter>FreeRTOS+\FreeRTOS+TCP\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\ThirdParty\mbedtls\include\mbedtls\error.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\cellular_r4.h">
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\sara-r4\source\cellular_r4.h">
|
||||
<Filter>Module</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\ThirdParty\mbedtls\include\mbedtls\error.h" />
|
||||
|
||||
Submodule FreeRTOS-Plus/Source/FreeRTOS-Cellular-Interface updated: 582cc8f478...a07c8c718c
+1
Submodule FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules/bg96 added at 3be5500079
@@ -1,358 +0,0 @@
|
||||
/*
|
||||
* FreeRTOS-Cellular-Interface v1.3.0
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://github.com/FreeRTOS
|
||||
*/
|
||||
|
||||
/* The config header is always included first. */
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
#include "cellular_platform.h"
|
||||
#include "cellular_config.h"
|
||||
#include "cellular_config_defaults.h"
|
||||
#include "cellular_common.h"
|
||||
#include "cellular_common_portable.h"
|
||||
#include "cellular_bg96.h"
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
#define ENBABLE_MODULE_UE_RETRY_COUNT ( 3U )
|
||||
#define ENBABLE_MODULE_UE_RETRY_TIMEOUT ( 5000U )
|
||||
#define BG96_NWSCANSEQ_CMD_MAX_SIZE ( 29U ) /* The length of AT+QCFG="nwscanseq",020301,1\0. */
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static CellularError_t sendAtCommandWithRetryTimeout( CellularContext_t * pContext,
|
||||
const CellularAtReq_t * pAtReq );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static cellularModuleContext_t cellularBg96Context = { 0 };
|
||||
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
const char * CellularSrcTokenErrorTable[] =
|
||||
{ "ERROR", "BUSY", "NO CARRIER", "NO ANSWER", "NO DIALTONE", "ABORTED", "+CMS ERROR", "+CME ERROR", "SEND FAIL" };
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
uint32_t CellularSrcTokenErrorTableSize = sizeof( CellularSrcTokenErrorTable ) / sizeof( char * );
|
||||
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
const char * CellularSrcTokenSuccessTable[] =
|
||||
{ "OK", "CONNECT", "SEND OK", ">" };
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
uint32_t CellularSrcTokenSuccessTableSize = sizeof( CellularSrcTokenSuccessTable ) / sizeof( char * );
|
||||
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
const char * CellularUrcTokenWoPrefixTable[] =
|
||||
{ "NORMAL POWER DOWN", "PSM POWER DOWN", "RDY" };
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
uint32_t CellularUrcTokenWoPrefixTableSize = sizeof( CellularUrcTokenWoPrefixTable ) / sizeof( char * );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static CellularError_t sendAtCommandWithRetryTimeout( CellularContext_t * pContext,
|
||||
const CellularAtReq_t * pAtReq )
|
||||
{
|
||||
CellularError_t cellularStatus = CELLULAR_SUCCESS;
|
||||
CellularPktStatus_t pktStatus = CELLULAR_PKT_STATUS_OK;
|
||||
uint8_t tryCount = 0;
|
||||
|
||||
if( pAtReq == NULL )
|
||||
{
|
||||
cellularStatus = CELLULAR_BAD_PARAMETER;
|
||||
}
|
||||
else
|
||||
{
|
||||
for( ; tryCount < ENBABLE_MODULE_UE_RETRY_COUNT; tryCount++ )
|
||||
{
|
||||
pktStatus = _Cellular_TimeoutAtcmdRequestWithCallback( pContext, *pAtReq, ENBABLE_MODULE_UE_RETRY_TIMEOUT );
|
||||
cellularStatus = _Cellular_TranslatePktStatus( pktStatus );
|
||||
|
||||
if( cellularStatus == CELLULAR_SUCCESS )
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return cellularStatus;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static bool appendRatList( char * pRatList,
|
||||
CellularRat_t cellularRat )
|
||||
{
|
||||
bool retValue = true;
|
||||
|
||||
/* Configure RAT Searching Sequence to default radio access technology. */
|
||||
switch( cellularRat )
|
||||
{
|
||||
case CELLULAR_RAT_CATM1:
|
||||
strcat( pRatList, "02" );
|
||||
break;
|
||||
|
||||
case CELLULAR_RAT_NBIOT:
|
||||
strcat( pRatList, "03" );
|
||||
break;
|
||||
|
||||
case CELLULAR_RAT_GSM:
|
||||
strcat( pRatList, "01" );
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Configure RAT Searching Sequence to automatic. */
|
||||
retValue = false;
|
||||
break;
|
||||
}
|
||||
|
||||
return retValue;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_ModuleInit( const CellularContext_t * pContext,
|
||||
void ** ppModuleContext )
|
||||
{
|
||||
CellularError_t cellularStatus = CELLULAR_SUCCESS;
|
||||
bool status = false;
|
||||
|
||||
if( pContext == NULL )
|
||||
{
|
||||
cellularStatus = CELLULAR_INVALID_HANDLE;
|
||||
}
|
||||
else if( ppModuleContext == NULL )
|
||||
{
|
||||
cellularStatus = CELLULAR_BAD_PARAMETER;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Initialize the module context. */
|
||||
( void ) memset( &cellularBg96Context, 0, sizeof( cellularModuleContext_t ) );
|
||||
|
||||
/* Create the mutex for DNS. */
|
||||
status = PlatformMutex_Create( &cellularBg96Context.dnsQueryMutex, false );
|
||||
|
||||
if( status == false )
|
||||
{
|
||||
cellularStatus = CELLULAR_NO_MEMORY;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Create the queue for DNS. */
|
||||
cellularBg96Context.pktDnsQueue = xQueueCreate( 1, sizeof( cellularDnsQueryResult_t ) );
|
||||
|
||||
if( cellularBg96Context.pktDnsQueue == NULL )
|
||||
{
|
||||
PlatformMutex_Destroy( &cellularBg96Context.dnsQueryMutex );
|
||||
cellularStatus = CELLULAR_NO_MEMORY;
|
||||
}
|
||||
else
|
||||
{
|
||||
*ppModuleContext = ( void * ) &cellularBg96Context;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return cellularStatus;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_ModuleCleanUp( const CellularContext_t * pContext )
|
||||
{
|
||||
CellularError_t cellularStatus = CELLULAR_SUCCESS;
|
||||
|
||||
if( pContext == NULL )
|
||||
{
|
||||
cellularStatus = CELLULAR_INVALID_HANDLE;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Delete DNS queue. */
|
||||
vQueueDelete( cellularBg96Context.pktDnsQueue );
|
||||
|
||||
/* Delete the mutex for DNS. */
|
||||
PlatformMutex_Destroy( &cellularBg96Context.dnsQueryMutex );
|
||||
}
|
||||
|
||||
return cellularStatus;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_ModuleEnableUE( CellularContext_t * pContext )
|
||||
{
|
||||
CellularError_t cellularStatus = CELLULAR_SUCCESS;
|
||||
CellularAtReq_t atReqGetNoResult =
|
||||
{
|
||||
NULL,
|
||||
CELLULAR_AT_NO_RESULT,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0
|
||||
};
|
||||
CellularAtReq_t atReqGetWithResult =
|
||||
{
|
||||
NULL,
|
||||
CELLULAR_AT_MULTI_WO_PREFIX,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0
|
||||
};
|
||||
char ratSelectCmd[ BG96_NWSCANSEQ_CMD_MAX_SIZE ] = "AT+QCFG=\"nwscanseq\",";
|
||||
bool retAppendRat = true;
|
||||
|
||||
if( pContext != NULL )
|
||||
{
|
||||
/* Disable echo. */
|
||||
atReqGetWithResult.pAtCmd = "ATE0";
|
||||
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetWithResult );
|
||||
|
||||
if( cellularStatus == CELLULAR_SUCCESS )
|
||||
{
|
||||
/* Disable DTR function. */
|
||||
atReqGetNoResult.pAtCmd = "AT&D0";
|
||||
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetNoResult );
|
||||
}
|
||||
|
||||
#ifndef CELLULAR_CONFIG_DISABLE_FLOW_CONTROL
|
||||
if( cellularStatus == CELLULAR_SUCCESS )
|
||||
{
|
||||
/* Enable RTS/CTS hardware flow control. */
|
||||
atReqGetNoResult.pAtCmd = "AT+IFC=2,2";
|
||||
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetNoResult );
|
||||
}
|
||||
#endif
|
||||
|
||||
if( cellularStatus == CELLULAR_SUCCESS )
|
||||
{
|
||||
/* Setting URC output port. */
|
||||
#if defined( CELLULAR_BG96_URC_PORT_USBAT ) || defined( BG96_URC_PORT_USBAT )
|
||||
atReqGetNoResult.pAtCmd = "AT+QURCCFG=\"urcport\",\"usbat\"";
|
||||
#else
|
||||
atReqGetNoResult.pAtCmd = "AT+QURCCFG=\"urcport\",\"uart1\"";
|
||||
#endif
|
||||
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( cellularStatus == CELLULAR_SUCCESS )
|
||||
{
|
||||
/* Configure RAT(s) to be Searched to Automatic. */
|
||||
atReqGetNoResult.pAtCmd = "AT+QCFG=\"nwscanmode\",0,1";
|
||||
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetNoResult );
|
||||
}
|
||||
|
||||
if( cellularStatus == CELLULAR_SUCCESS )
|
||||
{
|
||||
/* Configure Network Category to be Searched under LTE RAT to LTE Cat M1 and Cat NB1. */
|
||||
atReqGetNoResult.pAtCmd = "AT+QCFG=\"iotopmode\",2,1";
|
||||
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetNoResult );
|
||||
}
|
||||
|
||||
if( cellularStatus == CELLULAR_SUCCESS )
|
||||
{
|
||||
retAppendRat = appendRatList( ratSelectCmd, CELLULAR_CONFIG_DEFAULT_RAT );
|
||||
configASSERT( retAppendRat == true );
|
||||
|
||||
#ifdef CELLULAR_CONFIG_DEFAULT_RAT_2
|
||||
retAppendRat = appendRatList( ratSelectCmd, CELLULAR_CONFIG_DEFAULT_RAT_2 );
|
||||
configASSERT( retAppendRat == true );
|
||||
#endif
|
||||
|
||||
#ifdef CELLULAR_CONFIG_DEFAULT_RAT_3
|
||||
retAppendRat = appendRatList( ratSelectCmd, CELLULAR_CONFIG_DEFAULT_RAT_3 );
|
||||
configASSERT( retAppendRat == true );
|
||||
#endif
|
||||
|
||||
strcat( ratSelectCmd, ",1" ); /* Take effect immediately. */
|
||||
atReqGetNoResult.pAtCmd = ratSelectCmd;
|
||||
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetNoResult );
|
||||
}
|
||||
|
||||
if( cellularStatus == CELLULAR_SUCCESS )
|
||||
{
|
||||
atReqGetNoResult.pAtCmd = "AT+CFUN=1";
|
||||
cellularStatus = sendAtCommandWithRetryTimeout( pContext, &atReqGetNoResult );
|
||||
}
|
||||
}
|
||||
|
||||
return cellularStatus;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_ModuleEnableUrc( CellularContext_t * pContext )
|
||||
{
|
||||
CellularError_t cellularStatus = CELLULAR_SUCCESS;
|
||||
CellularAtReq_t atReqGetNoResult =
|
||||
{
|
||||
NULL,
|
||||
CELLULAR_AT_NO_RESULT,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0
|
||||
};
|
||||
|
||||
atReqGetNoResult.pAtCmd = "AT+COPS=3,2";
|
||||
( void ) _Cellular_AtcmdRequestWithCallback( pContext, atReqGetNoResult );
|
||||
|
||||
atReqGetNoResult.pAtCmd = "AT+CREG=2";
|
||||
( void ) _Cellular_AtcmdRequestWithCallback( pContext, atReqGetNoResult );
|
||||
|
||||
atReqGetNoResult.pAtCmd = "AT+CGREG=2";
|
||||
( void ) _Cellular_AtcmdRequestWithCallback( pContext, atReqGetNoResult );
|
||||
|
||||
atReqGetNoResult.pAtCmd = "AT+CEREG=2";
|
||||
( void ) _Cellular_AtcmdRequestWithCallback( pContext, atReqGetNoResult );
|
||||
|
||||
atReqGetNoResult.pAtCmd = "AT+CTZR=1";
|
||||
( void ) _Cellular_AtcmdRequestWithCallback( pContext, atReqGetNoResult );
|
||||
|
||||
return cellularStatus;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* FreeRTOS-Cellular-Interface v1.3.0
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://github.com/FreeRTOS
|
||||
*/
|
||||
|
||||
#ifndef __CELLULAR_BG96_H__
|
||||
#define __CELLULAR_BG96_H__
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/* AT Command timeout for PDN activation */
|
||||
#define PDN_ACTIVATION_PACKET_REQ_TIMEOUT_MS ( 150000UL )
|
||||
|
||||
/* AT Command timeout for PDN deactivation. */
|
||||
#define PDN_DEACTIVATION_PACKET_REQ_TIMEOUT_MS ( 40000UL )
|
||||
|
||||
/* AT Command timeout for Socket connection */
|
||||
#define SOCKET_CONNECT_PACKET_REQ_TIMEOUT_MS ( 150000UL )
|
||||
|
||||
#define PACKET_REQ_TIMEOUT_MS ( 5000UL )
|
||||
|
||||
/* AT Command timeout for Socket disconnection */
|
||||
#define SOCKET_DISCONNECT_PACKET_REQ_TIMEOUT_MS ( 12000UL )
|
||||
|
||||
#define DATA_SEND_TIMEOUT_MS ( 50000UL )
|
||||
#define DATA_READ_TIMEOUT_MS ( 50000UL )
|
||||
|
||||
/**
|
||||
* @brief DNS query result.
|
||||
*/
|
||||
typedef enum cellularDnsQueryResult
|
||||
{
|
||||
CELLULAR_DNS_QUERY_SUCCESS,
|
||||
CELLULAR_DNS_QUERY_FAILED,
|
||||
CELLULAR_DNS_QUERY_MAX,
|
||||
CELLULAR_DNS_QUERY_UNKNOWN
|
||||
} cellularDnsQueryResult_t;
|
||||
|
||||
typedef struct cellularModuleContext cellularModuleContext_t;
|
||||
|
||||
/**
|
||||
* @brief DNS query URC callback fucntion.
|
||||
*/
|
||||
typedef void ( * CellularDnsResultEventCallback_t )( cellularModuleContext_t * pModuleContext,
|
||||
char * pDnsResult,
|
||||
char * pDnsUsrData );
|
||||
|
||||
typedef struct cellularModuleContext
|
||||
{
|
||||
/* DNS related variables. */
|
||||
PlatformMutex_t dnsQueryMutex; /* DNS query mutex to protect the following data. */
|
||||
QueueHandle_t pktDnsQueue; /* DNS queue to receive the DNS query result. */
|
||||
uint8_t dnsResultNumber; /* DNS query result number. */
|
||||
uint8_t dnsIndex; /* DNS query current index. */
|
||||
char * pDnsUsrData; /* DNS user data to store the result. */
|
||||
CellularDnsResultEventCallback_t dnsEventCallback;
|
||||
/* Forward declaration to declar the callback function prototype. */
|
||||
/* coverity[misra_c_2012_rule_1_1_violation]. */
|
||||
} cellularModuleContext_t;
|
||||
|
||||
CellularPktStatus_t _Cellular_ParseSimstat( char * pInputStr,
|
||||
CellularSimCardState_t * pSimState );
|
||||
|
||||
extern CellularAtParseTokenMap_t CellularUrcHandlerTable[];
|
||||
extern uint32_t CellularUrcHandlerTableSize;
|
||||
|
||||
extern const char * CellularSrcTokenErrorTable[];
|
||||
extern uint32_t CellularSrcTokenErrorTableSize;
|
||||
|
||||
extern const char * CellularSrcTokenSuccessTable[];
|
||||
extern uint32_t CellularSrcTokenSuccessTableSize;
|
||||
|
||||
extern const char * CellularUrcTokenWoPrefixTable[];
|
||||
extern uint32_t CellularUrcTokenWoPrefixTableSize;
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#endif /* ifndef __CELLULAR_BG96_H__ */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,268 +0,0 @@
|
||||
/*
|
||||
* FreeRTOS-Cellular-Interface v1.3.0
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://github.com/FreeRTOS
|
||||
*/
|
||||
|
||||
/* The config header is always included first. */
|
||||
#include "cellular_config.h"
|
||||
#include "cellular_config_defaults.h"
|
||||
|
||||
/* Standard includes. */
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "cellular_platform.h"
|
||||
#include "cellular_types.h"
|
||||
#include "cellular_api.h"
|
||||
#include "cellular_common.h"
|
||||
#include "cellular_common_api.h"
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_Cleanup( CellularHandle_t cellularHandle )
|
||||
{
|
||||
return Cellular_CommonCleanup( cellularHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterUrcNetworkRegistrationEventCallback( CellularHandle_t cellularHandle,
|
||||
CellularUrcNetworkRegistrationCallback_t networkRegistrationCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterUrcNetworkRegistrationEventCallback( cellularHandle, networkRegistrationCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterUrcPdnEventCallback( CellularHandle_t cellularHandle,
|
||||
CellularUrcPdnEventCallback_t pdnEventCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterUrcPdnEventCallback( cellularHandle, pdnEventCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterUrcGenericCallback( CellularHandle_t cellularHandle,
|
||||
CellularUrcGenericCallback_t genericCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterUrcGenericCallback( cellularHandle, genericCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterModemEventCallback( CellularHandle_t cellularHandle,
|
||||
CellularModemEventCallback_t modemEventCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterModemEventCallback( cellularHandle, modemEventCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_ATCommandRaw( CellularHandle_t cellularHandle,
|
||||
const char * pATCommandPrefix,
|
||||
const char * pATCommandPayload,
|
||||
CellularATCommandType_t atCommandType,
|
||||
CellularATCommandResponseReceivedCallback_t responseReceivedCallback,
|
||||
void * pData,
|
||||
uint16_t dataLen )
|
||||
{
|
||||
return Cellular_CommonATCommandRaw( cellularHandle, pATCommandPrefix, pATCommandPayload, atCommandType,
|
||||
responseReceivedCallback, pData, dataLen );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_CreateSocket( CellularHandle_t cellularHandle,
|
||||
uint8_t pdnContextId,
|
||||
CellularSocketDomain_t socketDomain,
|
||||
CellularSocketType_t socketType,
|
||||
CellularSocketProtocol_t socketProtocol,
|
||||
CellularSocketHandle_t * pSocketHandle )
|
||||
{
|
||||
return Cellular_CommonCreateSocket( cellularHandle, pdnContextId, socketDomain, socketType,
|
||||
socketProtocol, pSocketHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketSetSockOpt( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketOptionLevel_t optionLevel,
|
||||
CellularSocketOption_t option,
|
||||
const uint8_t * pOptionValue,
|
||||
uint32_t optionValueLength )
|
||||
{
|
||||
return Cellular_CommonSocketSetSockOpt( cellularHandle, socketHandle, optionLevel, option,
|
||||
pOptionValue, optionValueLength );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketRegisterDataReadyCallback( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketDataReadyCallback_t dataReadyCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonSocketRegisterDataReadyCallback( cellularHandle, socketHandle,
|
||||
dataReadyCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketRegisterSocketOpenCallback( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketOpenCallback_t socketOpenCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonSocketRegisterSocketOpenCallback( cellularHandle, socketHandle,
|
||||
socketOpenCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketRegisterClosedCallback( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketClosedCallback_t closedCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonSocketRegisterClosedCallback( cellularHandle, socketHandle,
|
||||
closedCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RfOn( CellularHandle_t cellularHandle )
|
||||
{
|
||||
return Cellular_CommonRfOn( cellularHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RfOff( CellularHandle_t cellularHandle )
|
||||
{
|
||||
return Cellular_CommonRfOff( cellularHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetIPAddress( CellularHandle_t cellularHandle,
|
||||
uint8_t contextId,
|
||||
char * pBuffer,
|
||||
uint32_t bufferLength )
|
||||
{
|
||||
return Cellular_CommonGetIPAddress( cellularHandle, contextId, pBuffer, bufferLength );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetModemInfo( CellularHandle_t cellularHandle,
|
||||
CellularModemInfo_t * pModemInfo )
|
||||
{
|
||||
return Cellular_CommonGetModemInfo( cellularHandle, pModemInfo );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetEidrxSettings( CellularHandle_t cellularHandle,
|
||||
CellularEidrxSettingsList_t * pEidrxSettingsList )
|
||||
{
|
||||
return Cellular_CommonGetEidrxSettings( cellularHandle, pEidrxSettingsList );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SetEidrxSettings( CellularHandle_t cellularHandle,
|
||||
const CellularEidrxSettings_t * pEidrxSettings )
|
||||
{
|
||||
return Cellular_CommonSetEidrxSettings( cellularHandle, pEidrxSettings );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetRegisteredNetwork( CellularHandle_t cellularHandle,
|
||||
CellularPlmnInfo_t * pNetworkInfo )
|
||||
{
|
||||
return Cellular_CommonGetRegisteredNetwork( cellularHandle, pNetworkInfo );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetNetworkTime( CellularHandle_t cellularHandle,
|
||||
CellularTime_t * pNetworkTime )
|
||||
{
|
||||
return Cellular_CommonGetNetworkTime( cellularHandle, pNetworkTime );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetServiceStatus( CellularHandle_t cellularHandle,
|
||||
CellularServiceStatus_t * pServiceStatus )
|
||||
{
|
||||
return Cellular_CommonGetServiceStatus( cellularHandle, pServiceStatus );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
Submodule FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules/hl7802 added at 7ad590202f
File diff suppressed because it is too large
Load Diff
@@ -1,150 +0,0 @@
|
||||
/*
|
||||
* FreeRTOS-Cellular-Interface v1.3.0
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://github.com/FreeRTOS
|
||||
*/
|
||||
|
||||
#ifndef __CELLULAR_HL7802_H__
|
||||
#define __CELLULAR_HL7802_H__
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#define MIN_TCP_SESSION_ID ( 1U )
|
||||
#define MAX_TCP_SESSION_ID ( 6U )
|
||||
#define TCP_SESSION_TABLE_LEGNTH ( MAX_TCP_SESSION_ID + 1 )
|
||||
|
||||
#define INVALID_SOCKET_INDEX ( UINT32_MAX )
|
||||
#define INVALID_SESSION_ID ( UINT32_MAX )
|
||||
|
||||
/* Delay after AT+CFUN=1,1 commands. */
|
||||
#ifndef CELLULAR_HL7802_RESET_DELAY_MS
|
||||
#define CELLULAR_HL7802_RESET_DELAY_MS ( 3000U )
|
||||
#endif
|
||||
|
||||
/* AT command recommended timeout value for HL7802. Reference HL7802 AT Commands
|
||||
* Interface Guide to setup the timeout value for each AT commands. */
|
||||
#define CELLULAR_HL7802_AT_TIMEOUT_2_SECONDS_MS ( 2000U )
|
||||
#define CELLULAR_HL7802_AT_TIMEOUT_5_SECONDS_MS ( 5000U )
|
||||
#define CELLULAR_HL7802_AT_TIMEOUT_30_SECONDS_MS ( 30000U )
|
||||
#define CELLULAR_HL7802_AT_TIMEOUT_60_SECONDS_MS ( 60000U )
|
||||
#define CELLULAR_HL7802_AT_TIMEOUT_120_SECONDS_MS ( 120000U )
|
||||
|
||||
/* Define the following timeout value since they are content dependent or no recommended value. */
|
||||
#ifndef CELLULAR_HL7802_AT_KSELACQ_TIMEOUT_MS
|
||||
#define CELLULAR_HL7802_AT_KSELACQ_TIMEOUT_MS CELLULAR_HL7802_AT_TIMEOUT_5_SECONDS_MS
|
||||
#endif
|
||||
|
||||
#ifndef CELLULAR_HL7802_AT_KEDRXCFG_TIMEOUT_MS
|
||||
#define CELLULAR_HL7802_AT_KEDRXCFG_TIMEOUT_MS CELLULAR_HL7802_AT_TIMEOUT_5_SECONDS_MS
|
||||
#endif
|
||||
|
||||
#ifndef CELLULAR_HL7802_AT_KCNXUP_TIMEOUT_MS
|
||||
#define CELLULAR_HL7802_AT_KCNXUP_TIMEOUT_MS CELLULAR_HL7802_AT_TIMEOUT_30_SECONDS_MS
|
||||
#endif
|
||||
|
||||
#ifndef CELLULAR_HL7802_AT_KCNXDOWN_TIMEOUT_MS
|
||||
#define CELLULAR_HL7802_AT_KCNXDOWN_TIMEOUT_MS CELLULAR_HL7802_AT_TIMEOUT_30_SECONDS_MS
|
||||
#endif
|
||||
|
||||
/* Band configuration for HL7802. */
|
||||
#ifndef CELLULAR_CONFIG_HL7802_CATM1_BAND
|
||||
/* Default enable all bands. */
|
||||
#define CELLULAR_CONFIG_HL7802_CATM1_BAND "0002000000000F0F1B9F"
|
||||
#endif
|
||||
|
||||
#ifndef CELLULAR_CONFIG_HL7802_NBIOT_BAND
|
||||
/* Default enable all bands. */
|
||||
#define CELLULAR_CONFIG_HL7802_NBIOT_BAND "0002000000000B0F189F"
|
||||
#endif
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
typedef struct cellularModuleContext
|
||||
{
|
||||
uint32_t pSessionMap[ TCP_SESSION_TABLE_LEGNTH ];
|
||||
} cellularModuleContext_t;
|
||||
|
||||
typedef enum tcpSocketState
|
||||
{
|
||||
TCP_SOCKET_STATE_NOT_DEFINED = 0,
|
||||
TCP_SOCKET_STATE_DEFINED_BUT_NOT_USED = 1,
|
||||
TCP_SOCKET_STATE_OPENING_AND_CONNECTING = 2,
|
||||
TCP_SOCKET_STATE_CONNECTION_UP = 3,
|
||||
TCP_SOCKET_STATE_CONNECTION_CLOSING = 4,
|
||||
TCP_SOCKET_STATE_CLOSED = 5,
|
||||
TCP_SOCKET_STATE_MAX
|
||||
} tcpSocketState_t;
|
||||
|
||||
typedef enum tcpConnectionFailure
|
||||
{
|
||||
TCP_NOTIF_OK = -1,
|
||||
TCP_NOTIF_NETWORK_ERROR = 0,
|
||||
TCP_NOTIF_NO_MORE_SOCKETS_AVAILABLE = 1,
|
||||
TCP_NOTIF_MEMORY_PROBLEM = 2,
|
||||
TCP_NOTIF_DNS_ERROR = 3,
|
||||
TCP_NOTIF_TCP_DISCONNECTION = 4,
|
||||
TCP_NOTIF_TCP_CONNECTION_ERROR = 5,
|
||||
TCP_NOTIF_GENERIC_ERROR = 6,
|
||||
TCP_NOTIF_FAIL_TO_ACCEPT_CLIENT_REQUEST = 7,
|
||||
TCP_NOTIF_KTCPSND_WAITING_FOR_MORE_OR_LESS_CHARACTERS = 8,
|
||||
TCP_NOTIF_BAD_SESSION_ID = 9,
|
||||
TCP_NOTIF_SESSION_IS_ALREADY_RUNNING = 10,
|
||||
TCP_NOTIF_ALL_SESSIONS_ARE_USED = 11,
|
||||
TCP_NOTIF_SOCKET_CONNECTION_TIMEOUT_ERROR = 12,
|
||||
TCP_NOTIF_SSL_CONNECTION_ERROR = 13,
|
||||
TCP_NOTIF_SSL_INITIALIZATION_ERROR = 14,
|
||||
TCP_NOTIF_MAX,
|
||||
} tcpConnectionFailure_t;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
uint32_t _Cellular_GetSocketId( CellularContext_t * pContext,
|
||||
uint8_t sessionId );
|
||||
|
||||
uint32_t _Cellular_GetSessionId( CellularContext_t * pContext,
|
||||
uint32_t socketIndex );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
extern CellularAtParseTokenMap_t CellularUrcHandlerTable[];
|
||||
extern uint32_t CellularUrcHandlerTableSize;
|
||||
|
||||
extern const char * CellularSrcTokenErrorTable[];
|
||||
extern uint32_t CellularSrcTokenErrorTableSize;
|
||||
|
||||
extern const char * CellularSrcTokenSuccessTable[];
|
||||
extern uint32_t CellularSrcTokenSuccessTableSize;
|
||||
|
||||
extern const char * CellularUrcTokenWoPrefixTable[];
|
||||
extern uint32_t CellularUrcTokenWoPrefixTableSize;
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#endif /* ifndef __CELLULAR_HL7802_H__ */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,349 +0,0 @@
|
||||
/*
|
||||
* FreeRTOS-Cellular-Interface v1.3.0
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://github.com/FreeRTOS
|
||||
*/
|
||||
|
||||
#include "cellular_config.h"
|
||||
#include "cellular_config_defaults.h"
|
||||
|
||||
/* Standard includes. */
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "cellular_types.h"
|
||||
#include "cellular_common.h"
|
||||
#include "cellular_common_api.h"
|
||||
#include "cellular_common_portable.h"
|
||||
|
||||
/* Cellular module includes. */
|
||||
#include "cellular_hl7802.h"
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void _cellular_UrcProcessKtcpInd( CellularContext_t * pContext,
|
||||
char * pInputLine );
|
||||
static void handleTcpNotif( CellularSocketContext_t * pSocketData,
|
||||
uint8_t tcpNotif,
|
||||
uint32_t sessionId );
|
||||
static void _cellular_UrcProcessKtcpNotif( CellularContext_t * pContext,
|
||||
char * pInputLine );
|
||||
static void _cellular_UrcProcessKtcpData( CellularContext_t * pContext,
|
||||
char * pInputLine );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Try to Keep this map in Alphabetical order. */
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularAtParseTokenMap_t CellularUrcHandlerTable[] =
|
||||
{
|
||||
{ "CEREG", Cellular_CommonUrcProcessCereg },
|
||||
{ "CREG", Cellular_CommonUrcProcessCreg },
|
||||
{ "KTCP_DATA", _cellular_UrcProcessKtcpData }, /* TCP data URC. */
|
||||
{ "KTCP_IND", _cellular_UrcProcessKtcpInd }, /* TCP status URC. */
|
||||
{ "KTCP_NOTIF", _cellular_UrcProcessKtcpNotif } /* TCP connection failure. */
|
||||
};
|
||||
|
||||
/* FreeRTOS Cellular Common Library porting interface. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
uint32_t CellularUrcHandlerTableSize = sizeof( CellularUrcHandlerTable ) / sizeof( CellularAtParseTokenMap_t );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void _cellular_UrcProcessKtcpInd( CellularContext_t * pContext,
|
||||
char * pInputLine )
|
||||
{
|
||||
CellularATError_t atCoreStatus = CELLULAR_AT_SUCCESS;
|
||||
char * pLocalInputLine = pInputLine;
|
||||
char * pToken = NULL;
|
||||
CellularSocketContext_t * pSocketData = NULL;
|
||||
uint8_t sessionId = 0;
|
||||
uint32_t socketIndex = 0;
|
||||
int32_t tempValue = 0;
|
||||
|
||||
if( ( pContext != NULL ) && ( pInputLine != NULL ) )
|
||||
{
|
||||
/* The inputline is in this format +KTCP_IND: <session_id>, 1
|
||||
* This URC indicate connection success. */
|
||||
atCoreStatus = Cellular_ATGetNextTok( &pLocalInputLine, &pToken );
|
||||
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
atCoreStatus = Cellular_ATStrtoi( pToken, 10, &tempValue );
|
||||
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
if( ( tempValue >= MIN_TCP_SESSION_ID ) && ( tempValue <= MAX_TCP_SESSION_ID ) )
|
||||
{
|
||||
sessionId = ( uint8_t ) tempValue;
|
||||
socketIndex = _Cellular_GetSocketId( pContext, sessionId );
|
||||
}
|
||||
else
|
||||
{
|
||||
LogError( ( "error parsing _cellular_UrcProcessKtcpInd session ID" ) );
|
||||
atCoreStatus = CELLULAR_AT_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Call the callback function of this session. */
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
if( socketIndex == INVALID_SOCKET_INDEX )
|
||||
{
|
||||
LogWarn( ( "_cellular_UrcProcessKtcpInd : unknown session data received. "
|
||||
"The session %u may not be closed properly in previous execution.", sessionId ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
pSocketData = _Cellular_GetSocketData( pContext, socketIndex );
|
||||
|
||||
if( pSocketData == NULL )
|
||||
{
|
||||
LogError( ( "_cellular_UrcProcessKtcpInd : invalid socket index %u", socketIndex ) );
|
||||
}
|
||||
else if( pSocketData->openCallback == NULL )
|
||||
{
|
||||
LogDebug( ( "_cellular_UrcProcessKtcpInd : Open callback not set!!" ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
LogDebug( ( "Notify session %d with socket opened\r\n", sessionId ) );
|
||||
pSocketData->socketState = SOCKETSTATE_CONNECTED;
|
||||
pSocketData->openCallback( CELLULAR_URC_SOCKET_OPENED,
|
||||
pSocketData, pSocketData->pOpenCallbackContext );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void handleTcpNotif( CellularSocketContext_t * pSocketData,
|
||||
uint8_t tcpNotif,
|
||||
uint32_t sessionId )
|
||||
{
|
||||
/* Suppress warning message if log level is not debug. */
|
||||
( void ) sessionId;
|
||||
|
||||
switch( tcpNotif )
|
||||
{
|
||||
case TCP_NOTIF_TCP_DISCONNECTION: /* TCP disconnection by the server or remote client. */
|
||||
|
||||
pSocketData->socketState = SOCKETSTATE_DISCONNECTED;
|
||||
|
||||
if( pSocketData->closedCallback != NULL )
|
||||
{
|
||||
LogDebug( ( "Notify session %d with socket disconnected\r\n", sessionId ) );
|
||||
pSocketData->closedCallback( pSocketData, pSocketData->pClosedCallbackContext );
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case TCP_NOTIF_TCP_CONNECTION_ERROR: /* TCP connection error. */
|
||||
|
||||
pSocketData->socketState = SOCKETSTATE_DISCONNECTED;
|
||||
|
||||
if( pSocketData->openCallback != NULL )
|
||||
{
|
||||
LogDebug( ( "Notify session %d with socket open failed\r\n", sessionId ) );
|
||||
pSocketData->openCallback( CELLULAR_URC_SOCKET_OPEN_FAILED,
|
||||
pSocketData, pSocketData->pOpenCallbackContext );
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void _cellular_UrcProcessKtcpNotif( CellularContext_t * pContext,
|
||||
char * pInputLine )
|
||||
{
|
||||
CellularATError_t atCoreStatus = CELLULAR_AT_SUCCESS;
|
||||
char * pLocalInputLine = pInputLine;
|
||||
char * pToken = NULL;
|
||||
CellularSocketContext_t * pSocketData = NULL;
|
||||
uint8_t sessionId = 0;
|
||||
tcpConnectionFailure_t tcpNotif = TCP_NOTIF_OK;
|
||||
uint32_t socketIndex = 0;
|
||||
int32_t tempValue = 0;
|
||||
|
||||
if( ( pContext != NULL ) && ( pInputLine != NULL ) )
|
||||
{
|
||||
/* The inputline is in this format +KTCP_NOTIF: <session_id>, <tcp_notif>
|
||||
* This URC indicate connection problem. */
|
||||
|
||||
/* Remove leading space. */
|
||||
atCoreStatus = Cellular_ATRemoveLeadingWhiteSpaces( &pLocalInputLine );
|
||||
|
||||
/* Parse the session ID. */
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
atCoreStatus = Cellular_ATGetNextTok( &pLocalInputLine, &pToken );
|
||||
}
|
||||
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
atCoreStatus = Cellular_ATStrtoi( pToken, 10, &tempValue );
|
||||
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
if( ( tempValue >= MIN_TCP_SESSION_ID ) && ( tempValue <= MAX_TCP_SESSION_ID ) )
|
||||
{
|
||||
sessionId = ( uint8_t ) tempValue;
|
||||
socketIndex = _Cellular_GetSocketId( pContext, sessionId );
|
||||
}
|
||||
else
|
||||
{
|
||||
LogError( ( "error parsing _cellular_UrcProcessKtcpInd session ID" ) );
|
||||
atCoreStatus = CELLULAR_AT_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Parse the tcp notif. */
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
atCoreStatus = Cellular_ATGetNextTok( &pLocalInputLine, &pToken );
|
||||
}
|
||||
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
atCoreStatus = Cellular_ATStrtoi( pToken, 10, &tempValue );
|
||||
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
if( ( tempValue >= TCP_NOTIF_OK ) && ( tempValue <= TCP_NOTIF_MAX ) )
|
||||
{
|
||||
tcpNotif = ( tcpConnectionFailure_t ) tempValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
LogError( ( "error parsing _cellular_UrcProcessKtcpInd session ID" ) );
|
||||
atCoreStatus = CELLULAR_AT_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Call the callback function of this session. */
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
if( socketIndex == INVALID_SOCKET_INDEX )
|
||||
{
|
||||
LogWarn( ( "_cellular_UrcProcessKtcpNotif : unknown session data received. "
|
||||
"The session %u may not be closed properly in previous execution.", sessionId ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
pSocketData = _Cellular_GetSocketData( pContext, socketIndex );
|
||||
|
||||
if( pSocketData == NULL )
|
||||
{
|
||||
LogError( ( "_cellular_UrcProcessKtcpNotif : invalid socket index %u", socketIndex ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
handleTcpNotif( pSocketData, tcpNotif, sessionId );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void _cellular_UrcProcessKtcpData( CellularContext_t * pContext,
|
||||
char * pInputLine )
|
||||
{
|
||||
CellularATError_t atCoreStatus = CELLULAR_AT_SUCCESS;
|
||||
char * pLocalInputLine = pInputLine;
|
||||
char * pToken = NULL;
|
||||
CellularSocketContext_t * pSocketData = NULL;
|
||||
uint8_t sessionId = 0;
|
||||
uint32_t socketIndex = 0;
|
||||
int32_t tempValue = 0;
|
||||
|
||||
if( ( pContext != NULL ) && ( pInputLine != NULL ) )
|
||||
{
|
||||
/* The inputline is in this format +KTCP_DATA: <session_id>, <bytes_received>
|
||||
* This URC indicate connection problem. */
|
||||
|
||||
/* parse the session ID. */
|
||||
atCoreStatus = Cellular_ATGetNextTok( &pLocalInputLine, &pToken );
|
||||
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
atCoreStatus = Cellular_ATStrtoi( pToken, 10, &tempValue );
|
||||
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
if( ( tempValue >= MIN_TCP_SESSION_ID ) && ( tempValue <= MAX_TCP_SESSION_ID ) )
|
||||
{
|
||||
sessionId = ( uint8_t ) tempValue;
|
||||
socketIndex = _Cellular_GetSocketId( pContext, sessionId );
|
||||
}
|
||||
else
|
||||
{
|
||||
LogError( ( "error parsing _cellular_UrcProcessKtcpData session ID" ) );
|
||||
atCoreStatus = CELLULAR_AT_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Indicate the upper layer about the data reception. */
|
||||
/* Call the callback function of this session. */
|
||||
if( atCoreStatus == CELLULAR_AT_SUCCESS )
|
||||
{
|
||||
if( socketIndex == INVALID_SOCKET_INDEX )
|
||||
{
|
||||
LogWarn( ( "_cellular_UrcProcessKtcpData : unknown session data received. "
|
||||
"The session %u may not be closed properly in previous execution.", sessionId ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
pSocketData = _Cellular_GetSocketData( pContext, socketIndex );
|
||||
|
||||
if( pSocketData == NULL )
|
||||
{
|
||||
LogError( ( "_cellular_UrcProcessKtcpData : invalid socket index %u", socketIndex ) );
|
||||
}
|
||||
else if( pSocketData->dataReadyCallback == NULL )
|
||||
{
|
||||
LogDebug( ( "_cellular_UrcProcessKtcpData : Data ready callback not set!!" ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
pSocketData->dataReadyCallback( pSocketData, pSocketData->pDataReadyCallbackContext );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
@@ -1,269 +0,0 @@
|
||||
/*
|
||||
* FreeRTOS-Cellular-Interface v1.3.0
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://github.com/FreeRTOS
|
||||
*/
|
||||
|
||||
/* The config header is always included first. */
|
||||
#include "cellular_config.h"
|
||||
#include "cellular_config_defaults.h"
|
||||
|
||||
/* Standard includes. */
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "cellular_platform.h"
|
||||
#include "cellular_types.h"
|
||||
#include "cellular_api.h"
|
||||
#include "cellular_common.h"
|
||||
#include "cellular_common_api.h"
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_Cleanup( CellularHandle_t cellularHandle )
|
||||
{
|
||||
return Cellular_CommonCleanup( cellularHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterUrcNetworkRegistrationEventCallback( CellularHandle_t cellularHandle,
|
||||
CellularUrcNetworkRegistrationCallback_t networkRegistrationCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterUrcNetworkRegistrationEventCallback( cellularHandle, networkRegistrationCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterUrcPdnEventCallback( CellularHandle_t cellularHandle,
|
||||
CellularUrcPdnEventCallback_t pdnEventCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterUrcPdnEventCallback( cellularHandle, pdnEventCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterUrcGenericCallback( CellularHandle_t cellularHandle,
|
||||
CellularUrcGenericCallback_t genericCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterUrcGenericCallback( cellularHandle, genericCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterModemEventCallback( CellularHandle_t cellularHandle,
|
||||
CellularModemEventCallback_t modemEventCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterModemEventCallback( cellularHandle, modemEventCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_ATCommandRaw( CellularHandle_t cellularHandle,
|
||||
const char * pATCommandPrefix,
|
||||
const char * pATCommandPayload,
|
||||
CellularATCommandType_t atCommandType,
|
||||
CellularATCommandResponseReceivedCallback_t responseReceivedCallback,
|
||||
void * pData,
|
||||
uint16_t dataLen )
|
||||
{
|
||||
return Cellular_CommonATCommandRaw( cellularHandle, pATCommandPrefix, pATCommandPayload, atCommandType,
|
||||
responseReceivedCallback, pData, dataLen );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_CreateSocket( CellularHandle_t cellularHandle,
|
||||
uint8_t pdnContextId,
|
||||
CellularSocketDomain_t socketDomain,
|
||||
CellularSocketType_t socketType,
|
||||
CellularSocketProtocol_t socketProtocol,
|
||||
CellularSocketHandle_t * pSocketHandle )
|
||||
{
|
||||
return Cellular_CommonCreateSocket( cellularHandle, pdnContextId, socketDomain, socketType,
|
||||
socketProtocol, pSocketHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketSetSockOpt( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketOptionLevel_t optionLevel,
|
||||
CellularSocketOption_t option,
|
||||
const uint8_t * pOptionValue,
|
||||
uint32_t optionValueLength )
|
||||
{
|
||||
return Cellular_CommonSocketSetSockOpt( cellularHandle, socketHandle, optionLevel, option,
|
||||
pOptionValue, optionValueLength );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketRegisterDataReadyCallback( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketDataReadyCallback_t dataReadyCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonSocketRegisterDataReadyCallback( cellularHandle, socketHandle,
|
||||
dataReadyCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketRegisterSocketOpenCallback( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketOpenCallback_t socketOpenCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonSocketRegisterSocketOpenCallback( cellularHandle, socketHandle,
|
||||
socketOpenCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketRegisterClosedCallback( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketClosedCallback_t closedCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonSocketRegisterClosedCallback( cellularHandle, socketHandle,
|
||||
closedCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RfOn( CellularHandle_t cellularHandle )
|
||||
{
|
||||
return Cellular_CommonRfOn( cellularHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RfOff( CellularHandle_t cellularHandle )
|
||||
{
|
||||
return Cellular_CommonRfOff( cellularHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetIPAddress( CellularHandle_t cellularHandle,
|
||||
uint8_t contextId,
|
||||
char * pBuffer,
|
||||
uint32_t bufferLength )
|
||||
{
|
||||
return Cellular_CommonGetIPAddress( cellularHandle, contextId, pBuffer, bufferLength );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetModemInfo( CellularHandle_t cellularHandle,
|
||||
CellularModemInfo_t * pModemInfo )
|
||||
{
|
||||
return Cellular_CommonGetModemInfo( cellularHandle, pModemInfo );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetRegisteredNetwork( CellularHandle_t cellularHandle,
|
||||
CellularPlmnInfo_t * pNetworkInfo )
|
||||
{
|
||||
return Cellular_CommonGetRegisteredNetwork( cellularHandle, pNetworkInfo );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetNetworkTime( CellularHandle_t cellularHandle,
|
||||
CellularTime_t * pNetworkTime )
|
||||
{
|
||||
return Cellular_CommonGetNetworkTime( cellularHandle, pNetworkTime );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetServiceStatus( CellularHandle_t cellularHandle,
|
||||
CellularServiceStatus_t * pServiceStatus )
|
||||
{
|
||||
return Cellular_CommonGetServiceStatus( cellularHandle, pServiceStatus );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetSimCardInfo( CellularHandle_t cellularHandle,
|
||||
CellularSimCardInfo_t * pSimCardInfo )
|
||||
{
|
||||
return Cellular_CommonGetSimCardInfo( cellularHandle, pSimCardInfo );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetPsmSettings( CellularHandle_t cellularHandle,
|
||||
CellularPsmSettings_t * pPsmSettings )
|
||||
{
|
||||
return Cellular_CommonGetPsmSettings( cellularHandle, pPsmSettings );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
Submodule FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules/sara-r4 added at 6b1ac75f65
File diff suppressed because it is too large
Load Diff
@@ -1,164 +0,0 @@
|
||||
/*
|
||||
* FreeRTOS-Cellular-Interface v1.3.0
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://github.com/FreeRTOS
|
||||
*/
|
||||
|
||||
#ifndef __CELLULAR_R4_H__
|
||||
#define __CELLULAR_R4_H__
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
#define MIN_TCP_SESSION_ID ( 0 )
|
||||
#define MAX_TCP_SESSION_ID ( 6 )
|
||||
#define TCP_SESSION_TABLE_LEGNTH ( MAX_TCP_SESSION_ID + 1 )
|
||||
|
||||
#define INVALID_SOCKET_INDEX ( UINT32_MAX )
|
||||
#define INVALID_SESSION_ID ( UINT32_MAX )
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
typedef struct cellularModuleContext
|
||||
{
|
||||
uint32_t pSessionMap[ TCP_SESSION_TABLE_LEGNTH ];
|
||||
} cellularModuleContext_t;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
uint32_t _Cellular_GetSocketId( CellularContext_t * pContext,
|
||||
uint8_t sessionId );
|
||||
|
||||
uint32_t _Cellular_GetSessionId( CellularContext_t * pContext,
|
||||
uint32_t socketIndex );
|
||||
|
||||
CellularError_t rebootCellularModem( CellularContext_t * pContext,
|
||||
bool disablePsm,
|
||||
bool disableEidrx );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @brief Cellular MNO profiles.
|
||||
*/
|
||||
typedef enum MNOProfileType
|
||||
{
|
||||
MNO_PROFILE_SW_DEFAULT = 0,
|
||||
MNO_PROFILE_SIM_ICCID_IMSI_SELECT = 1,
|
||||
MNO_PROFILE_ATT = 2,
|
||||
MNO_PROFILE_VERIZON = 3,
|
||||
MNO_PROFILE_TELSTRA = 4,
|
||||
MNO_PROFILE_TMOBILE = 5,
|
||||
MNO_PROFILE_CHINA_TELECOM = 6,
|
||||
MNO_PROFILE_SPRINT = 8,
|
||||
MNO_PROFILE_VODAFONE = 19,
|
||||
MNO_PROFILE_GLOBAL = 90,
|
||||
MNO_PROFILE_STANDARD_EUROPE = 100,
|
||||
MNO_PROFILE_NOT_SET = 999
|
||||
} MNOProfileType_t;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Select network MNO profile. Default value is MNO_PROFILE_NOT_SET */
|
||||
#ifndef CELLULAR_CONFIG_SARA_R4_SET_MNO_PROFILE
|
||||
#define CELLULAR_CONFIG_SARA_R4_SET_MNO_PROFILE ( MNO_PROFILE_NOT_SET )
|
||||
#endif
|
||||
|
||||
/*
|
||||
* By default socket is closed in normal mode i.e. <async_close> flag is 0.
|
||||
* In normal mode, +USOCL can take time to close socket (Max timeout is 120 sec).
|
||||
* To avoid wait, socket can be closed in async mode via <async_close> flag.
|
||||
* In <async_close> mode, socket close will be notified via +UUSOCL URC.
|
||||
* Drawback of <async_close> mode is that if try to deactivate context (e.g. AT+CGACT=0,1).
|
||||
* prior to socket close URC, AT command will result in ERROR.
|
||||
*/
|
||||
#define CELLULAR_CONFIG_SET_SOCKET_CLOSE_ASYNC_MODE ( 0U )
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* MAX valid PDP contexts */
|
||||
#define MAX_PDP_CONTEXTS ( 4U )
|
||||
|
||||
#define DEFAULT_BEARER_CONTEXT_ID ( 1U ) /* SARA-R4 default bearer context */
|
||||
|
||||
#define CELULAR_PDN_CONTEXT_TYPE_MAX_SIZE ( 7U ) /* The length of IP type e.g. IPV4V6. */
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* +CGDCONT PDN context definition tokens */
|
||||
#define CELLULAR_PDN_STATUS_POS_CONTEXT_ID ( 0U )
|
||||
#define CELLULAR_PDN_STATUS_POS_CONTEXT_TYPE ( 1U )
|
||||
#define CELLULAR_PDN_STATUS_POS_APN_NAME ( 2U )
|
||||
#define CELLULAR_PDN_STATUS_POS_IP_ADDRESS ( 3U )
|
||||
|
||||
/* +CGACT PDN context activation tokens */
|
||||
#define CELLULAR_PDN_ACT_STATUS_POS_CONTEXT_ID ( 0U )
|
||||
#define CELLULAR_PDN_ACT_STATUS_POS_CONTEXT_STATE ( 1U )
|
||||
|
||||
/**
|
||||
* @brief Context info from +CGDCONT (Context IP type, APN name, IP Address)
|
||||
*/
|
||||
typedef struct CellularPdnContextInfo
|
||||
{
|
||||
bool contextsPresent[ MAX_PDP_CONTEXTS ]; /**< Context present in +CGDCONT response or not. */
|
||||
char ipType[ MAX_PDP_CONTEXTS ][ CELULAR_PDN_CONTEXT_TYPE_MAX_SIZE ]; /**< PDN Context type. */
|
||||
char apnName[ MAX_PDP_CONTEXTS ][ CELLULAR_APN_MAX_SIZE ]; /**< APN name. */
|
||||
char ipAddress[ MAX_PDP_CONTEXTS ][ CELLULAR_IP_ADDRESS_MAX_SIZE ]; /**< IP address. */
|
||||
} CellularPdnContextInfo_t;
|
||||
|
||||
/**
|
||||
* @brief Context <Act> state from +CGACT
|
||||
*/
|
||||
typedef struct CellularPdnContextActInfo
|
||||
{
|
||||
bool contextsPresent[ MAX_PDP_CONTEXTS ]; /**< Context present in +CGACT response or not. */
|
||||
bool contextActState[ MAX_PDP_CONTEXTS ]; /**< Context active state from +CGACT response. */
|
||||
} CellularPdnContextActInfo_t;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
extern CellularAtParseTokenMap_t CellularUrcHandlerTable[];
|
||||
extern uint32_t CellularUrcHandlerTableSize;
|
||||
|
||||
extern const char * CellularSrcTokenErrorTable[];
|
||||
extern uint32_t CellularSrcTokenErrorTableSize;
|
||||
|
||||
extern const char * CellularSrcTokenSuccessTable[];
|
||||
extern uint32_t CellularSrcTokenSuccessTableSize;
|
||||
|
||||
extern const char * CellularUrcTokenWoPrefixTable[];
|
||||
extern uint32_t CellularUrcTokenWoPrefixTableSize;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#endif /* ifndef __CELLULAR_R4_H__ */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,263 +0,0 @@
|
||||
/*
|
||||
* FreeRTOS-Cellular-Interface v1.3.0
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://github.com/FreeRTOS
|
||||
*/
|
||||
|
||||
/* The config header is always included first. */
|
||||
#include "cellular_config.h"
|
||||
#include "cellular_config_defaults.h"
|
||||
|
||||
/* Standard includes. */
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "cellular_platform.h"
|
||||
#include "cellular_types.h"
|
||||
#include "cellular_api.h"
|
||||
#include "cellular_common.h"
|
||||
#include "cellular_common_api.h"
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_Cleanup( CellularHandle_t cellularHandle )
|
||||
{
|
||||
return Cellular_CommonCleanup( cellularHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterUrcNetworkRegistrationEventCallback( CellularHandle_t cellularHandle,
|
||||
CellularUrcNetworkRegistrationCallback_t networkRegistrationCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterUrcNetworkRegistrationEventCallback( cellularHandle, networkRegistrationCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterUrcPdnEventCallback( CellularHandle_t cellularHandle,
|
||||
CellularUrcPdnEventCallback_t pdnEventCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterUrcPdnEventCallback( cellularHandle, pdnEventCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterUrcGenericCallback( CellularHandle_t cellularHandle,
|
||||
CellularUrcGenericCallback_t genericCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterUrcGenericCallback( cellularHandle, genericCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RegisterModemEventCallback( CellularHandle_t cellularHandle,
|
||||
CellularModemEventCallback_t modemEventCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonRegisterModemEventCallback( cellularHandle, modemEventCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_ATCommandRaw( CellularHandle_t cellularHandle,
|
||||
const char * pATCommandPrefix,
|
||||
const char * pATCommandPayload,
|
||||
CellularATCommandType_t atCommandType,
|
||||
CellularATCommandResponseReceivedCallback_t responseReceivedCallback,
|
||||
void * pData,
|
||||
uint16_t dataLen )
|
||||
{
|
||||
return Cellular_CommonATCommandRaw( cellularHandle, pATCommandPrefix, pATCommandPayload, atCommandType,
|
||||
responseReceivedCallback, pData, dataLen );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_CreateSocket( CellularHandle_t cellularHandle,
|
||||
uint8_t pdnContextId,
|
||||
CellularSocketDomain_t socketDomain,
|
||||
CellularSocketType_t socketType,
|
||||
CellularSocketProtocol_t socketProtocol,
|
||||
CellularSocketHandle_t * pSocketHandle )
|
||||
{
|
||||
return Cellular_CommonCreateSocket( cellularHandle, pdnContextId, socketDomain, socketType,
|
||||
socketProtocol, pSocketHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketRegisterDataReadyCallback( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketDataReadyCallback_t dataReadyCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonSocketRegisterDataReadyCallback( cellularHandle, socketHandle,
|
||||
dataReadyCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketRegisterSocketOpenCallback( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketOpenCallback_t socketOpenCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonSocketRegisterSocketOpenCallback( cellularHandle, socketHandle,
|
||||
socketOpenCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_SocketRegisterClosedCallback( CellularHandle_t cellularHandle,
|
||||
CellularSocketHandle_t socketHandle,
|
||||
CellularSocketClosedCallback_t closedCallback,
|
||||
void * pCallbackContext )
|
||||
{
|
||||
return Cellular_CommonSocketRegisterClosedCallback( cellularHandle, socketHandle,
|
||||
closedCallback, pCallbackContext );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RfOn( CellularHandle_t cellularHandle )
|
||||
{
|
||||
return Cellular_CommonRfOn( cellularHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_RfOff( CellularHandle_t cellularHandle )
|
||||
{
|
||||
return Cellular_CommonRfOff( cellularHandle );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetIPAddress( CellularHandle_t cellularHandle,
|
||||
uint8_t contextId,
|
||||
char * pBuffer,
|
||||
uint32_t bufferLength )
|
||||
{
|
||||
return Cellular_CommonGetIPAddress( cellularHandle, contextId, pBuffer, bufferLength );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetModemInfo( CellularHandle_t cellularHandle,
|
||||
CellularModemInfo_t * pModemInfo )
|
||||
{
|
||||
return Cellular_CommonGetModemInfo( cellularHandle, pModemInfo );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetRegisteredNetwork( CellularHandle_t cellularHandle,
|
||||
CellularPlmnInfo_t * pNetworkInfo )
|
||||
{
|
||||
return Cellular_CommonGetRegisteredNetwork( cellularHandle, pNetworkInfo );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetNetworkTime( CellularHandle_t cellularHandle,
|
||||
CellularTime_t * pNetworkTime )
|
||||
{
|
||||
return Cellular_CommonGetNetworkTime( cellularHandle, pNetworkTime );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetServiceStatus( CellularHandle_t cellularHandle,
|
||||
CellularServiceStatus_t * pServiceStatus )
|
||||
{
|
||||
return Cellular_CommonGetServiceStatus( cellularHandle, pServiceStatus );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetSimCardInfo( CellularHandle_t cellularHandle,
|
||||
CellularSimCardInfo_t * pSimCardInfo )
|
||||
{
|
||||
return Cellular_CommonGetSimCardInfo( cellularHandle, pSimCardInfo );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetPsmSettings( CellularHandle_t cellularHandle,
|
||||
CellularPsmSettings_t * pPsmSettings )
|
||||
{
|
||||
return Cellular_CommonGetPsmSettings( cellularHandle, pPsmSettings );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* FreeRTOS Cellular Library API. */
|
||||
/* coverity[misra_c_2012_rule_8_7_violation] */
|
||||
CellularError_t Cellular_GetEidrxSettings( CellularHandle_t cellularHandle,
|
||||
CellularEidrxSettingsList_t * pEidrxSettingsList )
|
||||
{
|
||||
return Cellular_CommonGetEidrxSettings( cellularHandle, pEidrxSettingsList );
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
@@ -160,10 +160,10 @@
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Plus-TCP\portable\BufferManagement\BufferAllocation_2.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Plus-TCP\portable\NetworkInterface\WinPCap\NetworkInterface.c" />
|
||||
<ClCompile Include="..\..\..\Demo\Common\Logging\windows\Logging_WinSim.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_wrapper.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_3gpp_api.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_3gpp_urc_handler.c" />
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_at_core.c" />
|
||||
@@ -1704,7 +1704,7 @@
|
||||
<ClInclude Include="..\..\..\..\FreeRTOS\Source\portable\MSVC-MingW\portmacro.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Plus-TCP\include\FreeRTOSIPConfigDefaults.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Plus-TCP\include\FreeRTOS_ARP.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_api.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_config_defaults.h" />
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\cellular_types.h" />
|
||||
|
||||
@@ -139,16 +139,16 @@
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\cellular_pktio.c">
|
||||
<Filter>FreeRTOS+\FreeRTOS IoT Libraries\platform\cellular</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96.c">
|
||||
<Filter>FreeRTOS+\module\bg96</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_api.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_api.c">
|
||||
<Filter>FreeRTOS+\module\bg96</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_urc_handler.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_urc_handler.c">
|
||||
<Filter>FreeRTOS+\module\bg96</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96_wrapper.c">
|
||||
<ClCompile Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96_wrapper.c">
|
||||
<Filter>FreeRTOS+\module\bg96</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\FreeRTOS\Source\portable\MSVC-MingW\port.c">
|
||||
@@ -4774,7 +4774,7 @@
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Interface\source\include\private\cellular_pktio_internal.h">
|
||||
<Filter>FreeRTOS+\FreeRTOS IoT Libraries\platform\cellular\include\private</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\cellular_bg96.h">
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Cellular-Modules\bg96\source\cellular_bg96.h">
|
||||
<Filter>FreeRTOS+\module\bg96</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\Source\FreeRTOS-Plus-TCP\include\FreeRTOS_DHCP.h">
|
||||
|
||||
Reference in New Issue
Block a user