-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix Ublox C030 SARA-R412M onboard cellular device serial (target default instance). #15148
Conversation
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.
Looks good to me.
Thanks to @RobMeades for his advice and help in this issue! |
@phlegx, thank you for your changes. |
Thank you both for fixing this |
@RobMeades you need to re-review. |
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.
Looks good to me still! Thanks for all the hard work @phlegx.
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.
Approved.
Thank you all for the reviews. I'm not authorized to merge this pull request. Are any of you authorized? |
I'll start CI . Once green, we can merge. |
CI started |
Test run: FAILEDSummary: 1 of 9 test jobs failed Failed test jobs:
|
I don't know what kind of test this is and if it is related to this bugfix. |
Test passed but then timeouted, not related. I restarted it |
Test run: FAILEDSummary: 1 of 9 test jobs failed Failed test jobs:
|
This is internal error, I'll report it to our test team |
Test run: FAILEDSummary: 1 of 9 test jobs failed Failed test jobs:
|
We need to review internal CI to find a root cause for this. We will get back to this PR once it's resolved |
Test run: SUCCESSSummary: 9 of 9 test jobs passed |
Notice: could also be added like in related Ublox files of other targets: #if DEVICE_SERIAL_FC
if (MDMRTS != NC && MDMCTS != NC) {
tr_debug("Modem flow control: RTS %d CTS %d", MDMRTS, MDMCTS);
serial.set_flow_control(SerialBase::RTSCTS, MDMRTS, MDMCTS);
}
#endif |
Summary of changes
Whit the following
mbed_app.json
config example, theONBOARD_UBLOX
target is used and the serial connection to the Ublox module can work properly.Bugfix on ONBOARD_UBLOX.cpp#L30 adding line
serial.set_flow_control(SerialBase::RTSCTS, MDMRTS, MDMCTS);
.With the correct serial flow control, the serial connection is stable and don't get lost.
The discussion about this bug can be found on issue #15143.
Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
Reviewers
@RobMeades @0xc0170