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
869 views 4 comments
by
Is it possible to send AT commands from PC via TCP Port to the router (RUT9xx)?

I want to send SMS with AT command over a TCP port on the router.

Thank you!

Kind regards,
Daniel
by
Teltonika has an awesome function to do that without AT commands.
You can send it directly by the browser via HTTP. Go to: Services / SMS Gateway / Enable and create a user/pass.

Then you can send SMS just like this:
https://192.168.1.1/cgi-bin/sms_send?username=user1&password=user_pass&number=9111111&text=testmessage

or.. if you want an automated system, use CURL on Windows or linux to post those commands automaticaly.

1 Answer

0 votes
by
Thank you for the quick reply!

I have a simple PLC and with this I can't send HTTP Requests. So I need a solution for a simple tcp connection.

Now I have tested a way with netcat on the teltonika. A simple shell script starts nc in a loop and forward the commands from tcp to another script with the gsmctl commands.
by
How did you get this to work with netcat?
by anonymous
Can you please share your script? Thank you!
by anonymous
I would like to know how this was done also. We need to use the Teletonika as an IP based AT commanded modem