FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
645 views 1 comments
by anonymous
Hi,

i am using RUT955 and i am trying to automatically send SMS from a Datalogger using [GSMCTL -A] command.

everything seems to be okay but when the message to send contains multiple lines, the modem sends only the first line.

i tried also manually using hyper terminal program with the command :

gsmctl -A 'AT+cmgs="my phone number"

my first line message

my second line message

my third line message ' (enter)

with this, i only receive the first line.

please what can you advise for my issue ?

any suggestion is welcome

thank you very much in advance

1 Answer

0 votes
by anonymous

Hi,

Not sure about gsmctl -A, but you should be able to send a message with line breaks using gsmctl -S -s.


For example:

root@Teltonika:~# gsmctl -S -s "phone_number Hello,
> line2
> line3
> line4"

Should produce a message such as this:

Hello,
line2
line3
line4
Best answer
by anonymous
Hi,

Thank you for your answer.

With 'gsmctl -S -s' i was able to send multiline SMS via HyperTerminal, but my goal was to reuse my existing script for reading, extracting, deleting and responding to incoming SMS. That script uses standard AT Commands to manage SMS.

I think there is no way to send multiline SMS using 'gsmctl -A', so finally i edited the whole script to adapt it with 'gsmctl -S' commands.