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

Hardfault error sometimes #54

Open
vinhemotiv opened this issue Apr 3, 2021 · 6 comments
Open

Hardfault error sometimes #54

vinhemotiv opened this issue Apr 3, 2021 · 6 comments

Comments

@vinhemotiv
Copy link

Hello,
Sometimes, I get hardfault error when calling this function to attach network? I'm using Sim800C with STM32
while (lwgsm_network_request_attach() != lwgsmOK) {
lwgsm_delay(1000);
printf("Network request attach FAILED \r\n");
if(count_connect++ >5)
{
goto terminate;
}
}
Any idea to resolve it?

@MaJerle
Copy link
Owner

MaJerle commented Apr 3, 2021

Doyou know what was instruction causing hardfault? Which core do you use?

@vinhemotiv
Copy link
Author

I'm trying to debug it. Is it a blocking function? will loop forever if it causes any error? I'm using mqtt client example.
I did use your old version cmsis-rtos v1, and it looks more stable than v2? Why did you change it to v2?

@vinhemotiv
Copy link
Author

Is it possible to turn off GSM module after connection? I want to send data 10 minutes every times but don't want to keep it on to save battery

@MaJerle
Copy link
Owner

MaJerle commented Apr 3, 2021

Cmsis-os2 is working well. Function is blocking yes.

@vinhemotiv
Copy link
Author

I'm trying to use Sim7000E. I have to send a few commands "AT" to get "OK" to config the auto baurt rate before initializing the library. Is there anywhere in the lib to do that? I recognize that it won't work if Simcom has not been configured the COM rate automatically.

@MaJerle
Copy link
Owner

MaJerle commented Apr 9, 2021

This implementation is not available in the lib at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants