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

SIM800L interfacing with STM32F4 #10

Open
JBFourierous opened this issue Jul 21, 2019 · 10 comments
Open

SIM800L interfacing with STM32F4 #10

JBFourierous opened this issue Jul 21, 2019 · 10 comments

Comments

@JBFourierous
Copy link

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.

@nimaltd
Copy link
Owner

nimaltd commented Jul 21, 2019 via email

@JBFourierous
Copy link
Author

JBFourierous commented Jul 22, 2019

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)); }

@nimaltd
Copy link
Owner

nimaltd commented Jul 22, 2019 via email

@hossein620830
Copy link

سلام وقت بخیر .
از این کتابخانه برای ارسال و دریافت پیامک استفاده کردم . کتابخانه بسیار خوش ساختی هست .
ساختار بسیار خوبی داره
ازش استفاده کردم و کارم راه افتاد
سپاس.
یک پیشنهاد دارم .
توابع مربوط به کاربر رو به صورت تعریف کنید . weak
اینطوری استفاده ازش راحت تره .
این کتابخانه را از صفر خودتان نوشتید یا
کتابخانه ی دیگه ای را ویرایش کردید.؟

@nimaltd
Copy link
Owner

nimaltd commented Jun 6, 2020

سلام. مال خودم هست. ورژن جدیدشو نوشتم. اونو تست کنید

@hossein620830
Copy link

از نسخه v2.0 master
استفاده کردم .
3 روز پیش دانلود کردم .
آخرین نسخه هست؟

@nimaltd
Copy link
Owner

nimaltd commented Jun 6, 2020

Gsm خالی اسمشه
نسخه آزمایشی هست .

@hossein620830
Copy link

میشه لطفا لینکش رو اینجا برای من کامنت کنید ؟
سپاس.

@hossein620830
Copy link

آخرین نسخه منظورمه .
سپاس

@Drworkstation
Copy link

سلام وقتتون به خیر
برای ارسال دستورات at از چه روشی استفاده میکنین؟
مثلا برای دریافت لوکیشن از دکل مخابراتی به چه صورت باید دستور at رو ارسال کنم؟

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

4 participants