Hi,
internet connection is done with usb dongle with inside a 3G/4G Sim card.
SIM card is able to send and receive sms.
Now if I try to send in CLI the command: echo -e “ATZ\r” >/dev/ttyUSB0
It give me: resurce temporarily unavailable
Why?
Is there a system for sending and receiving text messages?
BR
hi,
Sending and receiving messages are only supported with built-in modem.You can send AT commands at INTERNET->Cellular->Modem AT Command.
Hi,
thank you for answer. But my question is: why in cli if I send AT command the router/usb-modem does not answer me and I receive the answer “resurce temporarily unavailable”?
And still, if I try as you say, it is no usefull as you can see in attached image. I send at command but I no receive nothing as answer.
BR
Hi,
Device returns “resurce temporarily unavailable” for port is using by other APP.You can select /dev/tty/USB1 and try again. Thanks.
Hi,
it answer with USB2, strange, but it work. Non I want to try to send and receive SMS with CLI and perform actions depending of the SMS. Is there any hope?
BR
Hi,
It is hard to achieve.It is compilicated to translate your message to the required format and conflict exists between CLI and glinet APP.And maybe some other unkown problems.You can choose glinet product with built-in modem, which can send message, receive message and forward received message to your email or phone.
Do you want to control your router using SMS?
You could also achieve this by using a small Raspberry Pi Zero, which can be connected to the 4G-dongle. The down side is an extra device the upside is that your hard work won’t be deleted if you ever have to update your GL-iNet router.
Solved with php8-cli and gammu. It work very fine.