Skip to content

Cellular: BC95 echo test fixes #6291

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

Merged
merged 5 commits into from
Mar 20, 2018
Merged

Conversation

mirelachirica
Copy link
Contributor

@mirelachirica mirelachirica commented Mar 7, 2018

Description

Issues fixed: getting host by name, socket send/recv iterations, SIM state retrieval. Additionaly, cellular APN lookup decision logic is fixed.

These issues were found when testing BC95 against https://github.com/ARMmbed/mbed-os-example-cellular.

Pull request type

  • Fix
  • Refactor
  • New target
  • Feature
  • Breaking change

@mirelachirica
Copy link
Contributor Author

@jarvte please review this

@0xc0170 0xc0170 requested a review from jarvte March 7, 2018 13:18
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 7, 2018

Are all fixes related thus lead to one commit ? I can see addition here QUECTEL_BC95_CellularSIM that looks like a new logical change. Adding some debug info, another one.

@mirelachirica
Copy link
Contributor Author

mirelachirica commented Mar 7, 2018

QUECTEL_BC95_CellularSIM addition is needed in order to get this module running past the SIM state checking. AT+CPIN? used in base class: AT_CellularSIM::get_sim_state is not supported AT command for this module. So when I took in use latest mbed-os-example-cellular and mbed-os, these were the changes I needed to do in order to get the echo test pass.

The debug info I just found it to be useful while doing and testing these changes, that's why I added them at this point.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 7, 2018

@mirelachirica Thanks, my point was only about having it squashed into one commit (why are these in one commit - if all are related and fixing the same thing OK, otherwise use separate commits ).

@mirelachirica
Copy link
Contributor Author

It is true that three different issues are addressed in this one commit(socket send/recv, SIM state, APN lookup logic). But all three were necessary to get example app's echo test pass. Do I have to generate new pull request with separate commits or will I just keep this in mind for future pull requests?

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 8, 2018

It is true that three different issues are addressed in this one commit(socket send/recv, SIM state, APN lookup logic). But all three were necessary to get example app's echo test pass. Do I have to generate new pull request with separate commits or will I just keep this in mind for future pull requests?

You can rebase/amend this commit here, should be straightforward to split them.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 8, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Mar 8, 2018

Build : SUCCESS

Build number : 1390
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6291/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Mar 8, 2018

@mbed-ci
Copy link

mbed-ci commented Mar 9, 2018

@mirelachirica
Copy link
Contributor Author

ARM internal ref: IOTCELL-603, IOTCELL-649, IOTCELL-665

QUECTEL_BC95_CellularSIM(ATHandler &atHandler);
virtual ~QUECTEL_BC95_CellularSIM();

public: //from CellularSIM
Copy link
Contributor

Choose a reason for hiding this comment

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

Funky. Is there a specific reason why public: is declared twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really. It is copied from other modules where it is used for specifying in comments the different interfaces the class is implementing, but of course comment alone would be enough.

using namespace mbed;

QUECTEL_BC95_CellularSIM::QUECTEL_BC95_CellularSIM(ATHandler &atHandler) : AT_CellularSIM(atHandler)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason the constructor and destructor are empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The "empty" constructor is needed for passing atHandler to base AT_CellularSIM.
But empty destructor is not needed.

@cmonr cmonr merged commit 7b2ee2d into ARMmbed:master Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants