# FreeRTOS core\_http: make client, connecting with server

**URL:** <https://forums.freertos.org/t/freertos-core-http-make-client-connecting-with-server/20969>\
**Category:** ST\
**Tags:** tutorial\
**Created:** [July 16, 2024, 5:37am UTC](https://forums.freertos.org/t/freertos-core-http-make-client-connecting-with-server/20969 "2024-07-16T05:37:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddyd](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@ddyd](https://forums.freertos.org/u/ddyd)\
**Post date:** [July 16, 2024, 5:37am UTC](https://forums.freertos.org/t/freertos-core-http-make-client-connecting-with-server/20969/1 "2024-07-16T05:37:48Z")

</div>

hello. I’m a newbie to embedded, just starting out.  
This time, I’m trying to make **LTE connection using stm32f103re chip and SIM7080G**.  
Fortunately, I succeeded in basic setup through stm32cubemx and succeeded in GPIO control and UART control.  
I even checked the LTE connection using AT commands. However, I had problems sending long word commands, which made me realize the need for an RTOS. I saw that FreeRTOS can be set up on stm32cubemx, and **I am trying to connect to the test server using FreeRTOS: core http** , but I don’t know where to start.  
If you don’t mind, **is there an example that can be run directly on stm32cubemx?** I was able to see some demos of FreeRTOS, but I still don’t know how to get started.

---

<div class="post-metadata">

**Author:** ![Fresh](https://avatars.discourse-cdn.com/v4/letter/f/2acd7d/32.png) [@Fresh](https://forums.freertos.org/u/Fresh)\
**Post date:** [July 16, 2024, 7:12am UTC](https://forums.freertos.org/t/freertos-core-http-make-client-connecting-with-server/20969/2 "2024-07-16T07:12:48Z")

</div>

@ddyd  
You can make use of the [cellular interface](https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface/) and [community supported port for SIM7080G](https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface-Community-Supported-Ports/tree/main/sim70x0) for network connectivity and [coreHTTP](https://github.com/FreeRTOS/coreHTTP) to connect to test server.  
Actual steps may looks like to following:

- Implement comm interface to interact with cellular modem. You can take a look at the[stm32l475 port](https://github.com/aws/amazon-freertos/blob/feature/cellular/vendors/st/boards/stm32l475_discovery/ports/comm_if/comm_if_st.c) and adapt to your platform
- Integrate the SIM7080G port with cellular interface. SIM7080G port is contributed and maintained by the community. If you have problem integrating this port, we would like to discuss with you here.
- Implement transport interface for coreHTTP. You can reference the cellular network transport in [FreeRTOS repository](https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS-Plus/Source/Application-Protocols/network_transport).
- Integrate the [coreHTTP demo](https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator) to your platform.

---

<div class="post-metadata">

**Author:** ![ddyd](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@ddyd](https://forums.freertos.org/u/ddyd)\
**Post date:** [July 16, 2024, 8:33am UTC](https://forums.freertos.org/t/freertos-core-http-make-client-connecting-with-server/20969/3 "2024-07-16T08:33:08Z")

</div>

**Thank you for your response.**  
I will follow the link you provided and give it a try and let you know the results.

---

<div class="post-metadata">

**Author:** ![ddyd](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@ddyd](https://forums.freertos.org/u/ddyd)\
**Post date:** [July 17, 2024, 1:11am UTC](https://forums.freertos.org/t/freertos-core-http-make-client-connecting-with-server/20969/4 "2024-07-17T01:11:41Z")

</div>

I think my knowledge in this field is lacking. Please explain in more detail.  
I downloaded all the necessary files from the link and placed them in **Middleware** in stm32cubemx.

> Project file  
> ▸.vscode  
> ▸core  
> ▸Drivers  
> ▸EWARM  
> ▸Middlewares  
>   ▸Third\_Party  
>     ▸coreHTTP  
>     ▸FreeRTOS  
>     ▸FreeRTOS-Cellular-Interface

and add include path in IAR.  
This is how I believe I ported cellular\_interface and coreHTTP.  
After then something went wrong along the way.

1. where should I put the file about the community supported port for SIM7080G?

2. I used UART1 of stm32f103 chip to connect with SIM7080G to send AT command. To implement this, I modified it to UART 4\>\> UART1 of stm32l475 port. Where should I put the modified file?

I am currently working on the cellular interface. Any help on this would be appreciated.

Thanks to your helping.

---

<div class="post-metadata">

**Author:** ![Fresh](https://avatars.discourse-cdn.com/v4/letter/f/2acd7d/32.png) [@Fresh](https://forums.freertos.org/u/Fresh)\
**Post date:** [July 18, 2024, 2:57am UTC](https://forums.freertos.org/t/freertos-core-http-make-client-connecting-with-server/20969/5 "2024-07-18T02:57:05Z")

</div>

> 1. where should I put the file about the community supported port for SIM7080G?

FreeRTOS puts the module port file in [this folder](https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS-Plus/Source/FreeRTOS-Cellular-Modules). There is no constraint on the folder structure in the project. You can put these files in a folder that aligns with your folder structure design and ensure that these files can include the following folders during compilation:

- “FreeRTOS-Cellular-Interface/source/include”
- “FreeRTOS-Cellular-Interface/source/include/common”

> 1. I used UART1 of stm32f103 chip to connect with SIM7080G to send AT command. To implement this, I modified it to UART 4\>\> UART1 of stm32l475 port. Where should I put the modified file?

We put the comm\_if in a [common folder](https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS-Plus/Demo/FreeRTOS_Cellular_Interface_Windows_Simulator/Common) in the FreeRTOS repository as this is common to various modem ports. This folder may not suit your folder structure design. You can put the comm\_if file in a folder that aligns with your folder structure design and ensure that it is compiled and linked with the binary. Your comm\_if implementation should be able to include “FreeRTOS-Cellular-Interface/source/include/common” during compilation.
