Skip to content
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

sim_tcp_send fails in case of GPRS network disconnection #9

Open
mohamedboubaker opened this issue Dec 27, 2022 · 1 comment
Open
Assignees
Labels
bug Something isn't working Firmware

Comments

@mohamedboubaker
Copy link
Owner

mohamedboubaker commented Dec 27, 2022

The sim_tcp_send function below to send the TCP payload without checking if the underlying GPRS connection is still on. When the GPRS connection is disconnected, sim_tcp_send will fail with unpredictable behavior.

Note: GPRS connection could disconnected for several reasons:
a cell handover could go wrong
the network could disconnect the device
the cell is not reachable

@mohamedboubaker mohamedboubaker self-assigned this Dec 27, 2022
@mohamedboubaker mohamedboubaker added bug Something isn't working Firmware labels Dec 27, 2022
@mohamedboubaker
Copy link
Owner Author

mohamedboubaker commented Jan 2, 2023

To attempt to solve the issue, we need a function to check the GPRS status, and then depending on the Status we need to try to reconnect

mohamedboubaker pushed a commit that referenced this issue Jan 16, 2023
mohamedboubaker pushed a commit that referenced this issue Jan 20, 2023
mohamedboubaker pushed a commit that referenced this issue Jan 22, 2023
mohamedboubaker pushed a commit that referenced this issue Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Firmware
Projects
None yet
Development

No branches or pull requests

1 participant