Skip to content

BG96 CELLULAR : check context_type value #12340

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ControlPlane_netif *QUECTEL_BG96_CellularContext::get_cp_netif()
nsapi_error_t QUECTEL_BG96_CellularContext::do_user_authentication()
{
uint8_t type = (uint8_t)_pdp_type;
if ((uint8_t)_pdp_type < 1) {
if (((uint8_t)_pdp_type < 1) || ((uint8_t)_pdp_type > 2)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to BG96_TCP/IP_AT_Commands_Manual_V1.1 context_type IPv4v6 (value 3) is also valid for +QICSGP.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This value 3 didn't work with my modem... Maybe this v1.1 needs some specific modem version ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, BG96 firmware update could help?

type = 1;
}

Expand Down