Hello,
exist any document of implementation SMPP in Teltonika devices please?
In our solution sending SMS from Teltonika devices works as expected but read incoming SMS don’t work but we don’t know why.
Other SMPP devices (out of Teltonika brand) works normally.
Is it any special solution in Teltonika out of standard SMPP?
Exist someone who use it and it is works without problems?
We can’t properly read incomed SMS over SMPP. We use perl library NET::SMPP. For send and read SMS we use AnyEvent (periodic). Read SMS we use method read_pdu().
But this solution cannot read new SMSs from gateway (Teltonika TRB140) but over web interface is SMS available and marked as has been read.
Thank you!
Hello,
We do have an SMPP configuration example using the N3uron software and also on how to set up the device to work as an SMPP server, here’s the link: N3uron Notifier - Teltonika Networks Wiki
Regards,
M.
Hello MatasR,
thank you for your answer but settings is correct:
I ideally need working example (any programming language).
Thank you
@netservice Hello,
I’ve tested both, SMS sending and receiving with SMPP on RUTX50 running RUTX_R_00.07.14.2
firmware and it seems to work fine. I am attaching a working Python script.
smppsend1.zip (1.3 KB)
The script does both - sends and receives SMS messages.
SMPP settings:
Alternatively, you can run the service from CLI with debug:
Script arguments used for testing:
python3 smppsend1.py -m "testingSMPP" -n 00370XXXXXX85 --user admin --password somepass --host 192.168.50.1
The above command will send an SMS message. The script will also continue to run and receive SMS.
However, there is a nuance that the SMS message sent to the router must have a specific format (so the SMPP service knows where to forward the SMS): <id>:<message>
Screenshot for reference:
smppsend1.py
received SMS:

So not all SMS messages are forwarded back (ID needs to be specified). If you want to read all the received SMS messages, then RUTOS API (/messages/status
endpoint) would be a better option:
https://developers.teltonika-networks.com/reference/trb140/7.14.3/v1.6.3/messages#get-messages-status
Hope this helps!
Kind Regards,
Hello @AndzejJ ,
Thank you so much for your example,details and explanation!
I’ll try it and let you know.