Hello,
You can’t achieve it with gsmctl because it provides only minimal functionality for interacting with the modem. However, you can accomplish it via SSH by following these steps:
- Type “/etc/init.d/gsmd stop” and press Enter.
- Enter “microcom /dev/ttyUSB2” and press Enter.
- Input “ATE1” and press Enter; you should receive an “OK” response.
- Next, type “AT+CMGF=0” and press Enter; you should receive an “OK” response.
- Then, type “AT+CMGS=19”; you will see “>” prompt - here, paste your PDU code and press Ctrl+Z.
This is how you can send messages via SSH using AT commands. However, please note that when you execute the “/etc/init.d/gsmd stop” command, your modem will become unreachable. To restore accessibility, you will need to run the command “/etc/init.d/gsmd start”.
If there’s anything else you need help with, please feel free to ask.
Best Regards,