-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: Remove sim interface #8891
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
Cellular: Remove sim interface #8891
Conversation
68c9fb7
to
f15dc0c
Compare
@@ -61,6 +66,8 @@ class CellularInformation { | |||
* @param buf revision identification as zero terminated string | |||
* @param buf_size max length of revision identification is 2048 characters | |||
* @return NSAPI_ERROR_OK on success | |||
* NSAPI_ERROR_PARAMETER if buf is null | |||
* NSAPI_ERROR_PARAMETER if buf is null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, will fix
tr_debug("check_is_target_reached(): target state %s, _state: %s, _cb_data.error: %d, _event_id: %d,_is_retry: %d", get_state_string(_target_state), get_state_string(_state), _cb_data.error, _event_id, _is_retry); | ||
|
||
if ((_target_state == _state && _cb_data.error == NSAPI_ERROR_OK && !_is_retry) || _event_id == STM_STOPPED) { | ||
tr_debug("Target state reached: %s, _cb_data.error: %d, _event_id: %d", get_state_string(_target_state), _cb_data.error, _event_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost same as above trace. And should this be tr_info rather than tr_debug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove the later but I'll leave it as debug or it will pollute log.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the duplicate doxygen and this is good.
f15dc0c
to
3e6cd2c
Compare
Migration path - any ? Does a user need to do anything? |
This is going to 5.12, I created a jira ticket about updating the documentation. There is some other changes coming to 5.12 so we can better support Long time support. We will update documentation after other changes are also done. |
Failure not related to this pr |
That's unfortunate. The base branch will need a rebase due to #8944 fixing a new Travis CI issue. |
Yes, very unfortunate. Also unfortunate is that I don't have rights to do rebase for a base branch. Maybe someone with access rights could do it? |
feature-cellular-refactor rebased |
I restarted travis, however it might need a new commit (can you rebase your branch quickly?) |
3e6cd2c
to
761838f
Compare
done. |
CI started |
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
Finally found the failed case. It was HAL test: qspi frequency setting test After re-run greentea passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
761838fdf969c465ac6663a730dbd021defb40dc
The commit message should be fixed - considering this is breaking change, lot of files changed. One liner as it is now is not sufficient.
Moved methods to classes CellularDevice and CellularInformation. SIM interface was removed to simplify cellular usage and methods better suite new classes. Updated greentea and unit tests.
761838f
to
176067b
Compare
@0xc0170 updated commit message |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Removed CellularSIM interface. Moved methods to classes CellularDevice and CellularInformation.
SIM interface was removed to simplify cellular usage and methods better suite new classes.
Fixed bug in CellularStateMachine that state machine did not stop to register state if that was a target where to stop, this is in first commit. Was found while updating greentea tests for CellularDevice.
@AriParkkila please review
Pull request type