Is it possible at all to be able to send a raw SMS PDU to a RUT240 (or similar) as well as get a notification (similar to http forwarding that exists) of received PDUs so that we can encode/decode them ourselves?
This will enable the ability for end-users to handle UCS2 encoding and multi-part message handling without having to make the gsmctl binary more complicated on the device itself.
It is somewhat possible already to send raw PDUs using the gsmctl -A however the parameter length is limited so it is not viable for reliable use with long PDUs
A simple post request with length and PDU as params will suffice, then all that is required is to wrap that in an AT+CMGS=<len>\r<PDU> command.
Similarly forward the raw PDU of new incoming messages as a http request to a specified URL, almost the same as your current SMS HTTP forwarding, but without the PDU to text conversion. The raw PDU can be seen when you use logread -f
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #f2f2f2; background-color: #000000; background-color: rgba(0, 0, 0, 0.85)}
span.s1 {font-variant-ligatures: no-common-ligatures}
Sun Nov 24 04:56:09 2019 local1.info gsmd[1707]: gsmd send: 'AT+CMGR=3' (10)
079XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (76),23