Sending PDU SMS via SSH or API on Teltonika TRB140 (FW TRB1_R_00.07.12)

Hi everyone,

I’m trying to send SMS in PDU format via SSH or the API on my Teltonika TRB140 with firmware TRB1_R_00.07.12. The PDU string is generated by an external tool, but sending it does not work.

Using gsmctl, I can send AT commands, but it seems that sending PDU SMS this way is not possible — the modem just freezes (similar issue here: (Rut240 PDU binary SMS). Additionally, it looks like the function to send PDU SMS via gsmd has been removed (CLI send sms pdu)) and i can’t downgrade to this firmware.

So my question is: How can I pass my PDU string to the modem to send an SMS?

Thanks in advance for your support!

Hello,

You have provided two community forum topics that have already been resolved. Could you please try the suggested solutions from the links below and let me know if they work for you?

Looking forward to your feedback.

Best regards,

Hi Marija.
The provided solutions didn’t work.
I dont see a serial interface like /dev/ttyUSB2 which i could use with microcom. I only have /dev/ttyMSM0 which does not work with the solution provided.

I dont know why the PDU mode was removed in gsmctl. Maybe i’m doing something wrong with microcom. Have you another idea for the TRB140?

Best regards

Can you show the code/command to see how you are trying to send pdu-sms?

Hi tvetter1976,

I’ve tried multiple approaches:

  • gsmctl -S -s “NUMBER PDU-STRING” → This only sends the PDU string as plain text.
  • gsmctl --sms --sendpdu PDU-STRING → This option was removed for some reason (no details in the changelog). It should work with firmware TRB1_R_00.07.01.2, but I can’t downgrade to that version due to my hardware revision.

I also tried “/etc/init.d/gsmd stop” and “microcom /dev/ttyUSB2”, but I don’t have ttyUSB2 — only ttyMSM0, which microcom can’t access.

AT commands work with “gsmctl -A ‘AT+CMGF=1’”, and the modem responds with OK. However, when I try sending the PDU with “gsmctl -A ‘AT+CMGS=’”, the modem doesn’t accept it, just hangs, and requires a reboot.

Is there any way to interact directly with the modem over SSH?

Many thanks!