First of all, thank you for your help.
I finally managed to successfully send SMS messages via Modbus TCP/IP.
Usually, I interface with many other Modbus devices, but I’d never encountered any desired limitations in the protocol.
However, once I understood it, I found the solution, with your help.
Thanks for the support.
Now I’m wondering if it’s possible to read the contents of the last SMS received from the RUT200 and insert it into a Modbus TCP/IP buffer.
I know the RUT200 can receive service messages, but I need to receive free messages and read them into a Modbus register area, so I can use them with my application and send customizable messages how do I do it now.
It would be nice to have a new SMS rules.
Action name: “Modbus SMS Receipt” and save phone number and message inside Modbus register. Same registers style to send SMS by Modbus.
If this isn’t actually possible, is it possible to add this feature in future firmware versions?
It would be important to know the last message received and the phone number that sent it.
To send
Send SMS register address 396 1 register
Add SMS register address 397 90 register
To receive
Receive new SMS -> register address XXX 1 register
(incremental register updated every time a new message is received)
SMS content -> register address XXX 90 register
Another issue I encountered concerns the responses to the two registers
“Active Sim Card” modbus register 87 and “GSM operator name” modbus register 23,
when the SIM is not installed in the RUT200, and they are probably not the only ones register with this kind of response.
I have used these two registers extensively in my application.
I think it’s incorrect to respond with an ILLEGAL FUNCTION to these requests when the SIM is missing from the RUT200, but the request should still be responded to with messages explaining the lack of a SIM to avoid causing communication errors.
String answer with SIM card
- Active SIM Card = SIM1
- GSM operator name = Operator name
String answer with absent SIM card
- Active SIM card = SIM absent
- GSM operator name = SIM absent
Thanks again for your help.
Regards
Michele