# GSM/GPRS/Cellular support for AWS-IOT in Amazon FreeRTOS?

**URL:** <https://forums.freertos.org/t/gsm-gprs-cellular-support-for-aws-iot-in-amazon-freertos/8862>\
**Category:** AWS\
**Created:** [July 12, 2018, 10:13am UTC](https://forums.freertos.org/t/gsm-gprs-cellular-support-for-aws-iot-in-amazon-freertos/8862 "2018-07-12T10:13:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [July 12, 2018, 10:13am UTC](https://forums.freertos.org/t/gsm-gprs-cellular-support-for-aws-iot-in-amazon-freertos/8862/1 "2018-07-12T10:13:45Z")

</div>

**[rajibgupta](https://forums.aws.amazon.com/profile.jspa?userID=430086)** wrote on July 12, 2018:

We are using a microcontroller as an industrial datalogger, and would very much like to use AWS IOT. In my part of the world, getting reliable industrial WiFi is difficult, while cellular costs are very cheap (2G costs are close to 1$ per GB per month). We currently use a SIM800 module to publish mqtt messages to an open source broker, and we were looking at moving to AWS IOT soon.

However, I couldnt find any examples of people having implemented amazon freertos using cellular modem. All working examples I find are using wifi connections, and all supported boards have embedded wifi modules. Is it possible to use a suggested board, with a cellular modem like SIM800 to send data packets to AWS IOT Core?

Any help is highly appreciated.

Edited by: rajibgupta on Jul 12, 2018 3:13 AM

---

<div class="post-metadata">

**Author:** ![tiangs](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@tiangs](https://forums.freertos.org/u/tiangs)\
**Post date:** [July 14, 2018, 12:14am UTC](https://forums.freertos.org/t/gsm-gprs-cellular-support-for-aws-iot-in-amazon-freertos/8862/2 "2018-07-14T00:14:12Z")

</div>

**[Tiangang-AWS](https://forums.aws.amazon.com/profile.jspa?userID=438804)** wrote on July 14, 2018:

Hi,

Thanks for your interest in AWS IoT and Amazon FreeRTOS. Our MQTT client is built on top of the secure sockets layer, so to work with cellular module you would need to write a portable layer that implements our secure sockets API with your GSM module. It looks like you already have a TCP/IP stack that uses SIM800 module since you’re able to publish MQTT messages with it. So you could try to wrap your implementation and integrate with our secure sockets interface. You can check the header in lib/include/aws\_secure\_sockets.h

You might also find this GitHub issue helpful, [https://github.com/aws/amazon-freertos/issues/22](https://github.com/aws/amazon-freertos/issues/22)

Thanks,  
Tiangang

---

<div class="post-metadata">

**Author:** ![ahmedwahdan](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@ahmedwahdan](https://forums.freertos.org/u/ahmedwahdan)\
**Post date:** [May 5, 2020, 1:05pm UTC](https://forums.freertos.org/t/gsm-gprs-cellular-support-for-aws-iot-in-amazon-freertos/8862/3 "2020-05-05T13:05:44Z")

</div>

What exactly needed to be changed?

---

<div class="post-metadata">

**Author:** ![tiangs](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@tiangs](https://forums.freertos.org/u/tiangs)\
**Post date:** [May 6, 2020, 6:17pm UTC](https://forums.freertos.org/t/gsm-gprs-cellular-support-for-aws-iot-in-amazon-freertos/8862/4 "2020-05-06T18:17:13Z")

</div>

Duplicate of [https://github.com/aws/amazon-freertos/issues/1973](https://github.com/aws/amazon-freertos/issues/1973)

A potential solution is provided in this GitHub thread, [https://github.com/aws/amazon-freertos/issues/22#issuecomment-624135188](https://github.com/aws/amazon-freertos/issues/22#issuecomment-624135188)
