hi everyone
im using sms (on a SL6087) as a part of my m2m communication
for a while everything went well and fine and just like it had to.
then suddenly it stopped to work…
my first thought was that i damaged the sms receive function accidently somehow…
so i opend the sms automation from the example (which did work for sure!)
long story short… it doesnt work anymore…
sourcecode:
#include "adl_global.h"
static u8 AUTO_TRACE_LEVEL = 2;
const u16 wm_apmCustomStackSize = 1024*3;
void SMS_AUTO_ctrl_Handler(u8 Event, u16 Nb)
{
adl_atSendResponse(ADL_AT_UNS, "SMS_AUTO_ctrl_Handler");
}
bool SMS_AUTO_Handler(ascii *SmsTel, ascii *SmsTimeOrLength, ascii *SmsText){
adl_atSendResponse(ADL_AT_UNS, "SMS from ");
adl_atSendResponse(ADL_AT_UNS, SmsTel);
adl_atSendResponse(ADL_AT_UNS, "\nTimeOfSubmit: ");
adl_atSendResponse(ADL_AT_UNS, SmsTimeOrLength);
adl_atSendResponse(ADL_AT_UNS, "\nText: ");
adl_atSendResponse(ADL_AT_UNS, SmsText);
return true;
}
void adl_main(adl_InitType_e adlInitType)
{
// SMS automaton test application
TRACE (( 1, "SMS automaton sample main" ));
TRACE (( 1, __DATE__ ));
TRACE (( 1, __TIME__ ));
TRACE (( AUTO_TRACE_LEVEL, "Start SMS_Automaton application" ));
// Subscribe to the SMS Service
int r = adl_smsSubscribe(SMS_AUTO_Handler, SMS_AUTO_ctrl_Handler, ADL_SMS_MODE_TEXT);
if(r >= 0)
adl_atSendResponse(ADL_AT_UNS, "SMS Subscribe: Okay\n");
else
if(r == ADL_RET_ERR_PARAM)
adl_atSendResponse(ADL_AT_UNS, "SMS Subscribe: parameter error\n");
else
if(r == ADL_RET_ERR_SERVICE_LOCKED)
adl_atSendResponse(ADL_AT_UNS, "SMS Subscribe: called from a low level interruption handler\n");
else
adl_atSendResponse(ADL_AT_UNS, "SMS Subscribe: doing it for the lulz\n");
}
output:
atatat
OK
OK
OK
OK
at+wopen=1
OK
+WIND: 3
SMS Subscribe: Okay
+WIND: 1
+WIND: 7
+WIND: 4
ive send every 10 minutes 1 sms for 1/2 hour… without any result…
the problem shouldnt be at the network carrier - ive send (just in case^^) another sms (from the same sending device) to my handy - which got retrieved in about 5 seconds
uehm… any ideas?