Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CELLULAR_CHECK_IS_PREFIX_LEADING_CHAR config #117

Merged
merged 41 commits into from
Nov 8, 2022

Conversation

chinglee-iot
Copy link
Member

@chinglee-iot chinglee-iot commented Nov 3, 2022

Add CELLULAR_CHECK_IS_PREFIX_LEADING_CHAR config

  • Differnt modem may use different leading char for prefix string. Add config CELLULAR_CHECK_IS_PREFIX_LEADING_CHAR to enable customization for different modem.
  • Use Cellular_ATIsPrefixPresent to check URC with prefix in pkthandler.

With this PR, cellular interface can be customized to handle the following URC strings:

  • "+APP PDP: 0,ACTIVE"
    This string contains prefix char " " which is not default valid prefix char. User of cellular interface can define CELLULAR_CHECK_IS_PREFIX_CHAR in cellular_config.h to support prefix char " ".
  • "^SMSO:(list of supporteds)"
    This string contains leading char "^" which is not default leading char. User of cellular interface can define CELLULAR_CHECK_IS_PREFIX_LEADING_CHAR and CELLULAR_CHECK_IS_PREFIX_CHAR in cellular_config.h to support leading char "^".
  • "^SYSSTART"
    This string is regarded as URC without prefix since there is no delimeter ":". To handle this URC string, user should add a item in URC handler table with pStrValue point to "^SYSSTART".

chinglee-iot and others added 5 commits September 28, 2022 15:38
* Differnt modem may use different leading char for prefix string. Add
  config CELLULAR_CHECK_IS_PREFIX_LEADING_CHAR to support.
* Use Cellular_ATIsPrefixPresent to check URC with prefix in pkthandler
@chinglee-iot chinglee-iot requested a review from ActoryOu November 3, 2022 13:29
@chinglee-iot chinglee-iot requested a review from ActoryOu November 4, 2022 03:29
* include CELLULAR_CHECK_IS_PREFIX_LEADING_CHAR in
  CELLULAR_CHECK_IS_PREFIX_CHAR
@AniruddhaKanhere AniruddhaKanhere merged commit 936d4f7 into FreeRTOS:main Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants