-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
SIM800L interfacing with STM32F4 #10
Comments
Hello. Do you enable interrupt on cubemx? Enable debug and see whats happenOn Jul 21, 2019 4:39 PM, JBFourierous <[email protected]> wrote:Hello,
sorry for my question that is not exactly an issue about your repo, but it seems like you're the only man on the web able to interface SIM800L with STM boards directly in HAL. I have a fairly simple project in which I need to make some HTTP operations via GPRS. My troubles come when I try to send AT commands to the GSM module because apparently I cannot get any response, after HAL_UART_Transmit(...) both polling for the answer and waiting for an interrupt HAL_UART_Receive_IT(...) don't produce any result, the module seems dead. I am sure that it is fine because if I "play" with it using an Arduino UNO there are no issues, everything is working. It is supplied via lithium battery and I also put a voltage divider for the RX input from the board as the datasheets suggests. My UART is set to send 8bit messages with no parity and one stop bit. Sorry again for my inappropriate question, hope you can give me some piece of advice.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
Sorry for my late reply. I enabled interrupts on CubeMX, and the strange fact is that in debugging if a put a breakpoint in the callback I never get there. So the callback function never really gets executed. My code is really silly, something like this, in main |
Did you put sim80x_rxcallback() on your usart routinOn Jul 22, 2019 2:05 PM, JBFourierous <[email protected]> wrote:Sorry for my late reply. I enabled interrupts on CubeMX, and the strange fact is that in debugging if a put a breakpoint in the callback I never get there. So the callback function never really gets executed. My code is really silly, something like this, in main
HAL_UART_Transmit(&huart2, (uint8_t*)"AT\r\n", sizeof("AT\r\n"),1000); HAL_UART_Receive_IT(&huart2,RX,sizeof(RX));
and then the callback really does nothing
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { HAL_UART_Receive_IT(&huart2,RX,sizeof(RX)); }
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
سلام وقت بخیر . |
سلام. مال خودم هست. ورژن جدیدشو نوشتم. اونو تست کنید |
از نسخه v2.0 master |
Gsm خالی اسمشه |
میشه لطفا لینکش رو اینجا برای من کامنت کنید ؟ |
آخرین نسخه منظورمه . |
سلام وقتتون به خیر |
Hello,
sorry for my question that is not exactly an issue about your repo, but it seems like you're the only man on the web able to interface SIM800L with STM boards directly in HAL. I have a fairly simple project in which I need to make some HTTP operations via GPRS. My troubles come when I try to send AT commands to the GSM module because apparently I cannot get any response, after HAL_UART_Transmit(...) both polling for the answer and waiting for an interrupt HAL_UART_Receive_IT(...) don't produce any result, the module seems dead. I am sure that it is fine because if I "play" with it using an Arduino UNO there are no issues, everything is working. It is supplied via lithium battery and I also put a voltage divider for the RX input from the board as the datasheets suggests. My UART is set to send 8bit messages with no parity and one stop bit. Sorry again for my inappropriate question, hope you can give me some piece of advice.
The text was updated successfully, but these errors were encountered: