# Exceed buffer while attempting to send SMS

**URL:** <https://mangoh.discourse.group/t/exceed-buffer-while-attempting-to-send-sms/9134>\
**Category:** Uncategorized\
**Created:** [May 9, 2021, 1:45am UTC](https://mangoh.discourse.group/t/exceed-buffer-while-attempting-to-send-sms/9134 "2021-05-09T01:45:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [May 9, 2021, 1:45am UTC](https://mangoh.discourse.group/t/exceed-buffer-while-attempting-to-send-sms/9134/1 "2021-05-09T01:45:11Z")

</div>

Hi,

I tried to send the ciphertext over SMS, but when Legato packing the ciphertext string into the buffer I got this error:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/8/8cbff3bc5738df0b4bbc3f6e9b7c4e8bcde76cb2.png)

Not sure whether it is because the ciphertext is too long that the buffer size exceeds…

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 9, 2021, 3:10am UTC](https://mangoh.discourse.group/t/exceed-buffer-while-attempting-to-send-sms/9134/2 "2021-05-09T03:10:18Z")

</div>

It seems it is too long, you can shorten the size first.

Btw, You can try with sending sms with pdu mode in AT command first

> [@Testing Issue with RC7620 on MangOH evaluation board](https://mangoh.discourse.group/t/testing-issue-with-rc7620-on-mangoh-evaluation-board/8602/9):
>
> Hello, Could you please elaborate on the said PDU mode.

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [May 9, 2021, 8:33pm UTC](https://mangoh.discourse.group/t/exceed-buffer-while-attempting-to-send-sms/9134/3 "2021-05-09T20:33:44Z")

</div>

the challenge is I want to send that long text once at a time, seems it isn’t gonna work out on Mangoh, is it?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 10, 2021, 1:57am UTC](https://mangoh.discourse.group/t/exceed-buffer-while-attempting-to-send-sms/9134/4 "2021-05-10T01:57:35Z")

</div>

you can try to send concatenated SMS in PDU mode by AT command

> **[Send Long SMS/Multipart SMS/Concatenated SMS](https://hiteshagja.wordpress.com/2010/04/04/send-long-sms/)**
>
> Here I am writing about most awaited post of my blog with great excitement.  In this post I will explain you , how to send long SMS or multipart SMS or concatenated SMS. Before I explain you I want…

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [May 10, 2021, 6:13am UTC](https://mangoh.discourse.group/t/exceed-buffer-while-attempting-to-send-sms/9134/5 "2021-05-10T06:13:16Z")

</div>

Can I achieve that on Legato SMS API?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 10, 2021, 6:40am UTC](https://mangoh.discourse.group/t/exceed-buffer-while-attempting-to-send-sms/9134/6 "2021-05-10T06:40:50Z")

</div>

here says it is only 140 bytes long, probably you need to do multiple SMS.

[https://docs.legato.io/latest/c\_sms.html](https://docs.legato.io/latest/c_sms.html)
