This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

When during initialization should I run MAGPIO command?

Hi,

I have a custom 9160/mfw1.3.1 board with a set of matching networks and I need to setup MAGPIO to control these. This will only be used for cellular, not for GPS.

When I run AT%XMAGPIO=… prior to calling lte_lc_connect_async, it returns with an error. Running the same command after CFUN=1 succeeds, but isn't it a bit late for that at the point? I. e. the modem already started scanning for networks. Is there a specific LTE_LC_EVT_ that i should send MAGPIO on or is there some other method?

Thank you.

Parents
  • Hi,

    I am sorry for the late reply.

    When I run AT%XMAGPIO=… prior to calling lte_lc_connect_async, it returns with an error.

    Does the error happens before or after you call lte_lc_connect_async? And can you share the log output with us as well?

    It should be OK to run AT%XMAGPIO without CFUN=1, a quick test here seems to work alright:

    The AT host sample started
    AT+CFUN?
    +CFUN: 0
    OK
    AT%XMAGPIO=1,1,1,7,1,746,803,2,698,748,2,1710,2200,3,824,894,4,880,960,5,791,849,7,1565,1586
    OK

    Best regards,

    Marjeris

Reply
  • Hi,

    I am sorry for the late reply.

    When I run AT%XMAGPIO=… prior to calling lte_lc_connect_async, it returns with an error.

    Does the error happens before or after you call lte_lc_connect_async? And can you share the log output with us as well?

    It should be OK to run AT%XMAGPIO without CFUN=1, a quick test here seems to work alright:

    The AT host sample started
    AT+CFUN?
    +CFUN: 0
    OK
    AT%XMAGPIO=1,1,1,7,1,746,803,2,698,748,2,1710,2200,3,824,894,4,880,960,5,791,849,7,1565,1586
    OK

    Best regards,

    Marjeris

Children
No Data
Related