Hi All,
I’m using the SL6087 along with 7.47 and the security lib.
I’ve found that jamming is detected perfectly, but when the jammer is switched off there is never an update to the jamming callback. So the application is not aware that it is no longer being jammed.
When I run this on the WMP100 though, the callback is updated when there is no longer jamming.
s8 jamInit (void)
{
s8 result = ERROR;
if(JammingSubscriptionHdl != 0)
{
JammingDetectionUnSubscribe(JammingSubscriptionHdl);
}
/* Jamming Detection algorithm start */
JammingSubscriptionHdl = JammingDetectionSubscribe(jamHandler );
if (JammingSubscriptionHdl > 0)
{
TRACE((JAM_TRACE_LEVEL, "[jamInit] Jamming Detection Initialised OK"));
result = OK;
}
else
{
TRACE((JAM_TRACE_LEVEL, "jamInit] Jamming Detection Initialised ERROR: %d", JammingSubscriptionHdl));
result = ERROR;
}
return result;
}
static void jamHandler (_wm_JammingEventId_e EventID, _wm_JammingStatus_e JammingStatus)
{
if ((EventID == WM_JAMMING_FINAL_EVENT) && (JammingStatus == WM_JAMMING_JAMMED_STATUS))
{
TRACE((JAM_TRACE_LEVEL, "GSM Jamming detected"));
alert(GSM_JAMMING_DETECTED);
}
else if ((EventID == WM_JAMMING_INTERMEDIATE_EVENT) && (JammingStatus >= WM_JAMMING_MEDIUM_STATUS))
{
TRACE((JAM_TRACE_LEVEL, "Possible GSM Jamming detected"));
alert(GSM_JAMMING_DETECTED);
}
else
{
TRACE((JAM_TRACE_LEVEL, "No GSM Jamming Detected"));
alert(GSM_JAMMING_DETECTED);
}
}
The code is as simple as can be.
What could be different here with the SL6087?
Thanks!