-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: Added BG96 handling for socket closing URC #10411
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
Conversation
@mirelachirica, thank you for your changes. |
features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp
Outdated
Show resolved
Hide resolved
19fe543
to
66c15d6
Compare
features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp
Outdated
Show resolved
Hide resolved
features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp
Outdated
Show resolved
Hide resolved
features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp
Outdated
Show resolved
Hide resolved
Change request to: Start function with: Justification:
Also it makes more sense, as closed flag is enforced, not to issue close to a modem as there is no need => performance optimization |
Test run: FAILEDSummary: 5 of 7 test jobs failed Failed test jobs:
|
Aborted build, we need CI time for 5.12.2 jobs today |
66c15d6
to
88ea0db
Compare
For BG96, closed URC can be followed by AT+QICLOSE command, to close the socket, without error because there is a slight distinction in this case between socket and a connection on that socket. This URC indicates connection being closed. |
@blind-owl are the changes made to address your comments ok? |
@mirelachirica looks ok. |
Ci started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
BG96 wasn't handling URC for socket closing at all. Now socket closed flag is set on the arriving of such URC. Also, if the socket was closed but closed flag not yet set at the moment a socket sending/receiving was issued, the socket would get stuck waiting for data. To prevent this, socket event is called also when socket close URC arrives.
Pull request type