I´m trying to establish a GPRS connection with a SL6087 and implementing the XM0110 with Location Plug-In.
My application works fine when running it with no Location Plug-In included (obviously without getting XM0110 reports). I mean, it connects perfectly to the server.
But when I include the Location Plug-In (it works fine, i´m getting NMEA $GPRMC sentences as I needed), the bearerOpen function responses me “WIP_BERR_BAD_STATE”. Then, I made a test code to get information about this error:
case WIP_BERR_BAD_STATE: adl_atSendResponse(ADL_AT_UNS, " WIP_BERR_BAD_STATE, Subscribed Bearer Name: "); bearerList = wip_bearerGetList(); adl_atSendResponse(ADL_AT_UNS, bearerList->name); adl_atSendResponse(ADL_AT_UNS,", Type: "); wm_itoa(bearerList->type, btype); adl_atSendResponse(ADL_AT_UNS, btype); adl_atSendResponse(ADL_AT_UNS, "\r\n"); break;
And I get this: “WIP_BERR_BAD_STATE, Subscribed Bearer Name: UART1, Type: 1”
It is very strange, because my hardware shares UART1 with a keypad, so I´m using a Telnet software through USB to debug using some AT responses, and before sending wopen=1 I send at+wmfm=0,0,1, so UART1 is unavailable to the application. Then, why Location Plug-In is starting a bearer in UART1 if it´s connected to UART2, and UART1 is unavailable?
And the worst issue, I couldn´t find where this Plug-In is subscribing a bearer before my application!
Anyone experienced something similar?
Thanks in advance!