leshan icon indicating copy to clipboard operation
leshan copied to clipboard

SMS Binding Support

Open dnsgkr2 opened this issue 6 years ago • 8 comments

I'm wondering if leshan plans to support sms to deliver wap push to server -> client.

I would like to use the wap push feature from the server on a client device that supports sms, but now leshan does not support sms related functionality. I wonder if there is a future support plan.

I have confirmed that it is supported by the oma specification, but I am not aware of it in the lwm2m specification.

The lwm2m specification comes with sms support, but if you do not have an implementation plan, I would like to know if I need to make a lot of modifications or implementations to use sms functionality with leshan.

plz, I ask for confirmation. thanks.

dnsgkr2 avatar May 30 '19 05:05 dnsgkr2

SMS is not supported by Leshan for now and to be honest there is no plan for it at short or mid term.

AFAIK, SMS support could be a tricky part especially because DTLS over SMS. RFC 7925 could give you some hints about that. Currently, I don't know any implementation which support it.

I suppose a natural way to support this in Leshan would be to create new Californium connectors for CoAP over SMS and CoAP over DTLS over SMS. Lot of work in perspective !!

About DTLS over SMS, I suspect the tricky part could be the verbose Handshake ... Maybe the CID extension could help because handshake could be done over UDP then APPLICATION_DATA could be sent via SMS (I'm not even sure this use case makes sense :thinking:)

If you move forward on this subject, please share your success or failure with us ! :pray:

(duplicate of : https://github.com/eclipse/leshan/issues/233)

sbernard31 avatar Jun 03 '19 14:06 sbernard31

Please help confirm whether the latest Leshan framework supports SMS? image

JameslaoA avatar Apr 12 '22 13:04 JameslaoA

I don't know a "common java SMS API", but the "java InternetProtokol API (java.net)" is very common. So, without a java SMS API to use, I'm not sure, how that should be done.

boaks avatar Apr 12 '22 14:04 boaks

There are some Web API offers for sending SMS generally, but they come with costs.

See also how-to-send-sms-in-java.

boaks avatar Apr 12 '22 14:04 boaks

pls help confirm whether the latest Leshan framework supports uses the WAP/SMS option to wake up the device?

JameslaoA avatar Apr 13 '22 01:04 JameslaoA

image pls help confirm whether the latest Leshan client framework supports uses the WAP/SMS option to wake up the device?

JameslaoA avatar Apr 13 '22 01:04 JameslaoA

As I wrote: Though there is no common SMS API for java, there is no implementation for that. (At least, I didn't found one.) If your customer uses a real device, that device my support SMS and your customers device may use the SMS-API of the device to receive SMS (e.g. AT-commands). Also, some LwM2M services may have implemented the SMS channel, maybe using one of the SMS web-services. But, that's all no common approach for java, at least, as far as I can see. Without a common SMS API for java, SMS is a feature left to service offers, but not to open source.

I would appreciate, if you reconsider, that a leshan client is for demo and mainly rely on the APIs java is offering. With that, no FOTA nor SMS nor "persistent coap-server observes" are that useful for this simple demo-client.

boaks avatar Apr 13 '22 08:04 boaks

pls help confirm whether the latest Leshan client framework supports uses the WAP/SMS option to wake up the device?

As said at https://github.com/eclipse/leshan/issues/695#issuecomment-498272369, and in the supported features, SMS binding is not supported for now by Leshan.

So for now, up to users to implement this part of the spec using API available in their production environment.

There is no plan to implement it at short/mid term. As explained in this thread, the main reason : we don't known about a common java API to send/receive SMS.

Please do not hesitate to share any ideas/information which could help to find a way to add this to Leshan.

sbernard31 avatar Apr 19 '22 08:04 sbernard31