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
619 views 1 comments
by

We are trying to communicate with the modem via SSH using a C# language.

Do you have a short sample code from Teltonika that shows how to run the "gsmctl -A AT" command and get the response?

In Putty it is working, but with our program it doesn't. We are using the SSH library with C#.

 It seems that after we login, we are in the Linux command level,  and the gsmctl commands are not recognized.

Is there a sample C# program that demonstrate how to send the "gsmctl -A AT" command to the modem via SSH?

Thank you.

Michael

1 Answer

0 votes
by anonymous

Hello,

gsmctl is a set of shell commands that can request information from or perform operations on a modem. In other words, gsmctl is a way to use AT commands in shell form. You can use them via SSH, the command line interface that can be used via the router's WebUI. More info and examples on Teltonika wiki page:

https://wiki.teltonika-networks.com/view/AT_Commands

AT commands depends on Modem model. You can see it in WebUI -> Status -> System -> Modem (model). Depending on the model, search all command list on Quectel.

Also full modem control is supported by other Teltonika device TRB142, using RS232 connection.

by

Hi,

What we need a short C/C++ code that sends the "gsmctl -A AT" command and gets a response. Do you it?

Thanks.

Michael