GPS Jamming Detection By MC60 OpenCpu Mode

hi
i work with MC60 OpenCpu

SDK_VER: OpenCPU_GS3_SDK_V1.6

CORE_VER: MC60CAR01A13

For Get Gps Jamming I Set This Command:

char strAT[50];
s32 REET;
Ql_memset(strAT, 0x0, sizeof(strAT));
Ql_sprintf(strAT, “$PMTK838,1*2C\0”);
REET = RIL_GPS_CMD_Send(0, strAT, GPS_JAMMING_STA);

but i dont get any URC…!
What Can I do Please Help Me
Thanks alot

Hi
Because this URC is filtered out internally, the sdk will only recognize the urc in ril_urc, you can try the following changes to get the raw data that core sends to the sdk:

in CallBack_UART_Hdlr() add:
else if (m_myVirtualPort == port)
{
s32 totalBytes = ReadSerialPort(port, m_RxBuf_VirtualPort2, sizeof(m_RxBuf_VirtualPort2));
if (totalBytes > 0)
{
ret = Ql_UART_Write(m_myUartPort, m_RxBuf_VirtualPort2, totalBytes);
if (ret < totalBytes)
{
Ql_Debug_Trace(“Only part of bytes are written, %d/%d”, ret, totalBytes);
// TODO: Need to handle event ‘QL_EVENT_UART_READY_TO_WRITE’
}
}
}