This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LM5 with RS232 router TRB142
#1
Hi all,
I would like to replace some USB sticks that I have been using for years with LM to send SMS with Teltonika TRB142 (RS232 at 115200). 

I am using a LM5 Lite with latest fw and the outgoing SMS work fine while I have problems sending commands such as: W 3/1/1 355

I have done some tests and it seems to me that there is a problem in reading the content of the SMS and if I try to manually put the pdu string received from the TRB in the sms variable (see red box) of the user.sms file all work fine.

Any hints?

Tnx

   
Reply
#2
This is the serial communication LM<-->TRB142 from LM reboot to SMS receive,
It seems correct to me and I don't understand why incoming SMS are not processed.
HTH

Attached Files Thumbnail(s)
   
Reply
#3
Follow this and post what you get in Logs:
https://forum.logicmachine.net/showthrea...3#pid38043

And log what is the result of parsing SMS PDU:
Code:
res, sms = pcall(AT.parsepdu, sms)
log(res, sms)
Reply
#4
Log screenshot:

Attached Files Thumbnail(s)
   
Reply
#5
This might be caused by disabled "echo" mode on the modem.

In resident script add this:
Code:
-- enable echo mode
modem:send('ATE1')

After these lines:
Code:
-- delete all saved messages
modem:send('AT+CMGD=1,4')
Reply
#6
Thank you Admin, 
great support as usual!
Reply


Forum Jump: