I have a Legato app running on WP7702 which can receive sms from cell phones, but it doesn’t work consistently. I had it working this afternoon, but now it stops decode incoming sms, the log displays the following:
Jun 1 22:23:08 swi-mdm9x28-wp user.info Legato: INFO | modemDaemon[1199]/modemDaemon T=main | smsPdu.c DecodeUserDataField() 1071 | messageLen 24, pos 29, size 24
Jun 1 22:23:08 swi-mdm9x28-wp user.info Legato: INFO | avcDaemon[1149]/avcDaemon T=main | avcServer.c ProcessWakeupSms() 4359 | SMS is too short or doesn’t start with prefix ‘LWM2M’, ignoring
I suspect it might because the sim on WP7702 is a French number(I locate in Canada though). Despite it had no problem to receive in the past, there is a terrible delay on SMS transmission…
Is it possible I insert a local sim card on WP7702?
I might be wrong, I tried with cm sms monitor, it received instantly, but the app didn’t get it… because it didn’t print on the log
It works, but not constantly stable. I pointed out in the previous reply, an incoming sms can be detected by cm sms monitor, but not always by the code
I looked at the sample code you posted, I’m wondering how can I reset smsType and format on WP7702, I think by default they are LE_SMS_TYPE_RX and LE_SMS_FORMAT_TEXT