FreeRTOS+TCP

jhawakhar wrote on Monday, September 18, 2017:

How to use FreeRTOS+TCP on STM32F0 with 2G/3G GSM Modem(not with ethernet) connected through UART, is there any poratble solution available.
Thanks in advance

heinbali01 wrote on Monday, September 18, 2017:

I don’t know if there is an available solution. I never worked with 2G/3G GSM Modems yet.

There is a FreeRTOS+TCP porting guide

When you have particular questions about implementation details, you can ask them in this thread.

jhawakhar wrote on Monday, September 18, 2017:

Thanks for your response Hein Tibosch.
I am trying to send data to server using GPRS(simcom800) which is connected with STM32F091rc with the help of freeRTOS+TCP stack. Is it possible if so, how to set APN,IP,PORT using freertos stack is there any example available please provide us.
I’ve tried FREERTOS+TCP tutorial provided at http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_Networking_Tutorial_Adding_Source_Files.html
but still can’t figure it.
Thanks in advance

heinbali01 wrote on Monday, September 18, 2017:

Hi Jhawakhar,
I am googling "simcom800", and I get the impression that given chip has it’s own TCP/IP stack. Could that be true?

Could the following AT-session be done?

    AT+CIPSTART=”TCP”,”116.228.221.51”,“8500”
    OK 
    CONNECT OK

I found the conversation here.

If so, you do not need FreeRTOS+TCP to communicate with your GPRS device.

jhawakhar wrote on Monday, September 18, 2017:

yes it does have its own stack but i am currently trying to do it with FreeRTOS+TCP stack and the reason i am moving to FreeRTOS+TCP stack is for multitasking where with AT command stack provided with simcom800 is not possible.

heinbali01 wrote on Monday, September 18, 2017:

You can still use FreeRTOS to have multitasking. You will have to write a driver to do the communication with the chip. And that is not an easy task.
I had the same problem recently when I had to use a ( cheap Chinese ) WiFi chip which has an internal TCP/IP stack.
Good luck