8899 questions

10555 answers

16569 comments

15924 members

+1 vote
1,527 views 0 comments
by
Hi community!

Is there any way to send a simple text from a SSH / CLI connection (similar than sending a SMS, but the modem should connect to a TCP port, send the message and disconnect)?

Is there any functionality in them modem? I can't find a solution.

Or is the only way to do this on low-level AT command?

Thanks
Sven

1 Answer

+2 votes
by

Hi,
You can try use "netcat".
Firstly install netcat to router with this commands:
opkg update
opkg install netcat

send message:
echo "message" | netcat [IP]  [PORT]

More useful options netcat -h.

Best answer