nimaltd / gsm_v5

gsm module library for STM32 LL
GNU General Public License v3.0
232 stars 86 forks source link

problem in FreeRTOS function in SIM800_V2 #5

Closed mbta009 closed 4 years ago

mbta009 commented 5 years ago

Hello and respect If possible, share some code samples for sim800_V2. I have little experience with FreeRTOS and newbie in STM32. By the command that you said the library file was added to the code. After the program and code testing, the osKernelStart function hangs. I am a Persian user, is it possible to subscribe to another social network ID for share my code for you? part of code was important that commented under text. use STM32F103RBT6 //** Sim80x_Init(osPriorityLow); MX_FREERTOS_Init(); osKernelStart(); // hang up on this function //***** Thank you, Barati mahdi2barati@gmail.com

danyhm commented 5 years ago

this is GitHub if you have an issue you should post your code here. my guess is that your freeRTOS heap size is not enough. try increasing your heap size.

also when the kernel starts it doesn't get past that function and the defined tasks start to get executed.

mbta009 commented 5 years ago

@danyhm OK. This link is my code ( main.c in Src ). Thank you for checking that. my Stm32cubemx file Also attached. FreeRTOs heap size is 3072 B Thanks @danyhm

danyhm commented 5 years ago

@mbta009 I took a look at your code and it's wrong. you need to call sim80x_init() in your app (a freertos task). i suggest reading more about RTOS and how to work with it, there're a lot of resources and examples online

nimaltd commented 5 years ago

Hello guys. your heap size is too low. And add init function in a task.

mbta009 commented 5 years ago

@danyhm I did an investigation for FreeRTOS concepts, but I have a few questions about it. To add a task, should I do this from cubemx? or Need to add code? @nimaltd Thanks for joining us. What is the value for setting heap size? use STM32F103RBT6 Another question about FreeRTOS, when I use RTOS, other parts of the code are also written as Task? Is it possible to suspend it after using the SIM800_V2 library and RTOS? And the get out kernel and when it necessary to return to it anyway? Thanks.

nimaltd commented 5 years ago

I think minimum must be 8192 bytes. and Please read more about FreeRTOS :)

yuriy23 commented 5 years ago

Good day. there are problems too. Could you set an example freertos + keil? I would be very grateful. trying to run gprs with tcp / ip Thank!

PrabhuNatarajanN commented 5 years ago

GSM_V2 I am getting following error GSM_v2 library.

Could you please share the fix this issue

nimaltd commented 5 years ago

Helli. Whst is your module. You simcsrd is ok?  This library work fine.  I dont know why you have that problemOn May 6, 2019 9:43 PM, PrabhuNatarajanN notifications@github.com wrote: I am getting following error GSM_v2 library. Could you please share the fix this issue

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

PrabhuNatarajanN commented 5 years ago

Dear Nimaltd,

I am tested sim800 V1 working fine. i try to use version memory initialize error came and not able to read.

SIM900 A6 module.

Thanks Prabhu Natarajan

‪On Tue, May 7, 2019 at 12:13 AM ‫Nima Askari ----- نیما عسکری‬‎ < notifications@github.com> wrote:‬

Helli. Whst is your module. You simcsrd is ok? This library work fine. I dont know why you have that problemOn May 6, 2019 9:43 PM, PrabhuNatarajanN notifications@github.com wrote: I am getting following error GSM_v2 library. Could you please share the fix this issue

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nimaltd/Sim800_V2/issues/5#issuecomment-489730282, or mute the thread https://github.com/notifications/unsubscribe-auth/AMAA6M5TCOZQFDJQVVN5LRTPUB36DANCNFSM4FT4MPAQ .

nimaltd commented 5 years ago

Its work with sim800On May 7, 2019 9:03 AM, PrabhuNatarajanN notifications@github.com wrote:Dear Nimaltd,

I am tested sim800 V1 working fine. i try to use version memory initialize

error came and not able to read.

SIM900 A6 module.

Thanks

Prabhu Natarajan

‪On Tue, May 7, 2019 at 12:13 AM ‫Nima Askari ----- نیما عسکری‬‎ <

notifications@github.com> wrote:‬

Helli. Whst is your module. You simcsrd is ok? This library work fine. I

dont know why you have that problemOn May 6, 2019 9:43 PM, PrabhuNatarajanN

notifications@github.com wrote:

I am getting following error GSM_v2 library.

Could you please share the fix this issue

—You are receiving this because you were mentioned.Reply to this email

directly, view it on GitHub, or mute the thread.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub

https://github.com/nimaltd/Sim800_V2/issues/5#issuecomment-489730282,

or mute the thread

https://github.com/notifications/unsubscribe-auth/AMAA6M5TCOZQFDJQVVN5LRTPUB36DANCNFSM4FT4MPAQ

.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

PrabhuNatarajanN commented 5 years ago

Dear Nimaltd,

Thanks for fast reply.

Regards Prabhu Natarajan

‪On Tue, May 7, 2019 at 10:33 AM ‫Nima Askari ----- نیما عسکری‬‎ < notifications@github.com> wrote:‬

Its work with sim800On May 7, 2019 9:03 AM, PrabhuNatarajanN < notifications@github.com> wrote:Dear Nimaltd,

I am tested sim800 V1 working fine. i try to use version memory initialize error came and not able to read.

SIM900 A6 module.

Thanks Prabhu Natarajan

‪On Tue, May 7, 2019 at 12:13 AM ‫Nima Askari ----- نیما عسکری‬‎ < notifications@github.com> wrote:‬

Helli. Whst is your module. You simcsrd is ok? This library work fine. I dont know why you have that problemOn May 6, 2019 9:43 PM, PrabhuNatarajanN notifications@github.com wrote: I am getting following error GSM_v2 library. Could you please share the fix this issue

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nimaltd/Sim800_V2/issues/5#issuecomment-489730282, or mute the thread < https://github.com/notifications/unsubscribe-auth/AMAA6M5TCOZQFDJQVVN5LRTPUB36DANCNFSM4FT4MPAQ>

.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nimaltd/Sim800_V2/issues/5#issuecomment-489909390, or mute the thread https://github.com/notifications/unsubscribe-auth/AMAA6M7Z34AS4MIWRQWXSXTPUEESLANCNFSM4FT4MPAQ .

PrabhuNatarajanN commented 5 years ago

shall we can use this library GPRS with MQTT application?

nimaltd commented 5 years ago

NopOn May 7, 2019 11:43 AM, PrabhuNatarajanN notifications@github.com wrote:shall we can use this library GPRS with MQTT application?

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.