Hello,
As you will find in this links, TRB140 does have dedicated registers to add message values and send SMS.
The idea behind the procedure is as follows, as tested using ComTestPro:
- TRB is configured as both, slave and master;
- First register address - 397;
- Number of registers - 90;
- The register array is split into two parts that represent the recipient's phone number and the SMS message contents. Phone number resides in the first 10 registers, message contents resides at the last 80 registers.
- A single register represents two 8-bit ASCII characters that are concatenated together. This rule applies for both, phone number and message contents registers.
- To write a single character into a register, the register needs to end with additional zeroes (e.g. to write character a, the register will be [6100h], not [61h]).
- Example: recipient's number -> 0037061000000; message contents -> Test (note the aforementioned caveat at the last digit of the phone number).
- The values in the example are converted from ASCII to hexadecimal.
To send SMS, stored in the registers, write value of 1 to register 396:
SMS was sent with the above configuration. It did show "No response received" message, but nevertheless, SMS was sent.
Best regards,