This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Format of AT%XOPNAME operator name notification

Hi

I checked how AT%XOPNAME could be used to receive notifications about operator name updates. However I'm wondering about the notification syntax.

According to the specification, the notification might look sth like

"88D6B23CAD7FBB41D7B4BCCC2ECFE7","8B56FD15","556776"

which could be decoded according to 3GPP TS 24.008 Ch. 10.5.3.5a Network Name.

However, when running the at_client example on my devkit (v0.9.0) with modem version v1.2.0 I get:

AT+CFUN?
+CFUN: 0
OK
AT%XOPNAME=1
OK
AT+CFUN=1
OK
%XOPNAME: "80","80","22801"

So I have two questions:

  • Will the <full_name> and <short_name> ever be something different than "80"?
  • Is <oper> always a 5 or 6 character string with MCC and MNC? I'm asking because I couldn't match the example string "556776" to any MCC/MNC tuple.

Thanks for clarifying this.

Parents
  • Hi

    Not fully related to the initial question, but I'm wondering why my nrf9160 devkit does not report any AT%XOPNAME notifications anymore (although it did 10 days ago - see initial question).

    This is the log from at_client example on my devkit with modem version v1.2.0:

    2021-06-18T08:29:38.494Z DEBUG modem << *** Booting Zephyr OS build v2.4.99-ncs1  ***
    2021-06-18T08:29:38.502Z DEBUG modem << The AT host sample started
    2021-06-18T08:29:43.071Z DEBUG modem >> AT+CFUN?
    2021-06-18T08:29:43.082Z DEBUG modem << +CFUN: 0
    2021-06-18T08:29:43.098Z DEBUG modem << OK
    2021-06-18T08:29:48.933Z DEBUG modem >> AT%XOPNAME=1
    2021-06-18T08:29:48.945Z DEBUG modem << OK
    2021-06-18T08:29:55.805Z DEBUG modem >> AT+CEREG=5
    2021-06-18T08:29:55.815Z DEBUG modem << OK
    2021-06-18T08:29:59.494Z DEBUG modem >> AT+CFUN=1
    2021-06-18T08:29:59.536Z DEBUG modem << OK
    2021-06-18T08:30:01.075Z DEBUG modem << +CEREG: 2,"9E98","0076E204",7,0,0,"11100000","11100000"
    2021-06-18T08:30:02.775Z DEBUG modem << +CEREG: 5,"9E98","0076E204",7,,,"11100000","11100000"
    2021-06-18T08:32:32.449Z DEBUG modem << +CEREG: 5,"9E98","0076E305",7,,,"11100000","11100000"

    I would expect a AT%XOPNAME notification when the device gets registered.

    I repeated this after updating the modem to version v1.2.3 but got the same result.

    Can it be that the operator name is stored on the SIM and if it is re-used, no notification is sent?

Reply
  • Hi

    Not fully related to the initial question, but I'm wondering why my nrf9160 devkit does not report any AT%XOPNAME notifications anymore (although it did 10 days ago - see initial question).

    This is the log from at_client example on my devkit with modem version v1.2.0:

    2021-06-18T08:29:38.494Z DEBUG modem << *** Booting Zephyr OS build v2.4.99-ncs1  ***
    2021-06-18T08:29:38.502Z DEBUG modem << The AT host sample started
    2021-06-18T08:29:43.071Z DEBUG modem >> AT+CFUN?
    2021-06-18T08:29:43.082Z DEBUG modem << +CFUN: 0
    2021-06-18T08:29:43.098Z DEBUG modem << OK
    2021-06-18T08:29:48.933Z DEBUG modem >> AT%XOPNAME=1
    2021-06-18T08:29:48.945Z DEBUG modem << OK
    2021-06-18T08:29:55.805Z DEBUG modem >> AT+CEREG=5
    2021-06-18T08:29:55.815Z DEBUG modem << OK
    2021-06-18T08:29:59.494Z DEBUG modem >> AT+CFUN=1
    2021-06-18T08:29:59.536Z DEBUG modem << OK
    2021-06-18T08:30:01.075Z DEBUG modem << +CEREG: 2,"9E98","0076E204",7,0,0,"11100000","11100000"
    2021-06-18T08:30:02.775Z DEBUG modem << +CEREG: 5,"9E98","0076E204",7,,,"11100000","11100000"
    2021-06-18T08:32:32.449Z DEBUG modem << +CEREG: 5,"9E98","0076E305",7,,,"11100000","11100000"

    I would expect a AT%XOPNAME notification when the device gets registered.

    I repeated this after updating the modem to version v1.2.3 but got the same result.

    Can it be that the operator name is stored on the SIM and if it is re-used, no notification is sent?

Children
  • I could collect some more data, but the behavior does not make sense to me.

    If I force to use a specific PLMN, then AT%XOPNAME does produce notifications, but only for one of the operators!!

    In my example, I get only notifications if mccmnc changes to 22801, but not when it changes to 22802.

    2021-06-18T08:55:02.203Z DEBUG modem << *** Booting Zephyr OS build v2.4.99-ncs1  ***
    2021-06-18T08:55:02.223Z DEBUG modem << The AT host sample started
    2021-06-18T08:55:06.072Z DEBUG modem >> AT%XOPNAME=1
    2021-06-18T08:55:06.088Z DEBUG modem << OK
    2021-06-18T08:55:07.175Z DEBUG modem >> AT+CFUN=1
    2021-06-18T08:55:07.215Z DEBUG modem << OK
    2021-06-18T08:55:10.453Z DEBUG modem << %XOPNAME: "80","80","22801"
    2021-06-18T08:55:18.012Z DEBUG modem >> AT+CFUN=0
    2021-06-18T08:55:19.020Z ERROR Error: 'AT+CFUN=0
    ' timed out
    2021-06-18T08:55:19.747Z DEBUG modem << OK
    2021-06-18T08:55:27.303Z DEBUG modem >> AT%XOPNAME=1
    2021-06-18T08:55:27.314Z DEBUG modem << OK
    2021-06-18T08:55:28.597Z DEBUG modem >> AT+CFUN=1
    2021-06-18T08:55:28.638Z DEBUG modem << OK
    2021-06-18T08:55:31.095Z DEBUG modem << %XOPNAME: "80","80","22801"
    2021-06-18T08:55:43.320Z DEBUG modem >> AT+COPS=1,2,"22802"
    2021-06-18T08:55:44.321Z ERROR Error: 'AT+COPS=1,2,"22802"
    ' timed out
    2021-06-18T08:55:50.445Z DEBUG modem << OK
    2021-06-18T08:55:59.442Z DEBUG modem >> AT+COPS?
    2021-06-18T08:55:59.456Z DEBUG modem << +COPS: 1,2,"22802",7
    2021-06-18T08:55:59.461Z DEBUG modem << OK

    It seems that this feature is not reliable - I won't use it!

  • Ah playing around with COPS=1,2,"xxxx" and CFUN=0 and CFUN=1 showed me that the modem (or the SIM?) stores the last used PLMN when shutting down and there will be no notification if a transition occurs to that specific PLMN.

    It's ok for me that there is no notification on startup when the same PLMN is chosen, but I think this is a bug that there is no notification, if the PLMN transitions back to the "default" PLMN when it was a different one before. See this example:

    2021-06-18T09:39:10.522Z DEBUG modem << *** Booting Zephyr OS build v2.4.99-ncs1 ***
    2021-06-18T09:39:10.534Z DEBUG modem << The AT host sample started
    2021-06-18T09:39:14.622Z DEBUG modem >> AT+CFUN?
    2021-06-18T09:39:14.634Z DEBUG modem << +CFUN: 0
    2021-06-18T09:39:14.639Z DEBUG modem << OK
    2021-06-18T09:39:16.012Z DEBUG modem >> AT%XOPNAME=1
    2021-06-18T09:39:16.022Z DEBUG modem << OK
    2021-06-18T09:39:17.613Z DEBUG modem >> AT+CEREG=5
    2021-06-18T09:39:17.623Z DEBUG modem << OK
    2021-06-18T09:39:21.180Z DEBUG modem >> AT+CFUN=1
    2021-06-18T09:39:21.220Z DEBUG modem << OK
    2021-06-18T09:39:21.292Z DEBUG modem << +CEREG: 0,"02C3","01007906",7,0,0,"11100000","11100000"
    2021-06-18T09:39:22.687Z DEBUG modem << +CEREG: 2,"02C3","01007906",7,0,0,"11100000","11100000"
    2021-06-18T09:39:24.183Z DEBUG modem << +CEREG: 5,"02C3","01007906",7,,,"11100000","11100000"
    2021-06-18T09:39:24.201Z DEBUG modem << %XOPNAME: "80","80","22801"
    2021-06-18T09:39:45.099Z DEBUG modem >> AT+CFUN=0
    2021-06-18T09:39:45.248Z DEBUG modem << +CEREG: 0,"02C3","01007906",7,0,0,"11100000","11100000"
    2021-06-18T09:39:48.160Z DEBUG modem << OK
    2021-06-18T09:39:50.585Z DEBUG modem >> AT%XOPNAME=1
    2021-06-18T09:39:50.600Z DEBUG modem << OK
    2021-06-18T09:39:51.280Z DEBUG modem >> AT+CEREG=5
    2021-06-18T09:39:51.290Z DEBUG modem << OK
    2021-06-18T09:39:52.440Z DEBUG modem >> AT+CFUN=1
    2021-06-18T09:39:52.482Z DEBUG modem << OK
    2021-06-18T09:39:52.572Z DEBUG modem << +CEREG: 0,"02C3","01007906",7,0,0,"11100000","11100000"
    2021-06-18T09:39:53.968Z DEBUG modem << +CEREG: 2,"02C3","01007906",7,0,0,"11100000","11100000"
    2021-06-18T09:39:54.830Z DEBUG modem << +CEREG: 5,"02C3","01007906",7,,,"11100000","11100000"
    2021-06-18T09:39:54.838Z DEBUG modem << %XOPNAME: "80","80","22801"
    2021-06-18T09:40:16.375Z DEBUG modem >> AT+COPS=1,2,"22802"
    2021-06-18T09:40:16.492Z DEBUG modem << +CEREG: 5,"9E98","0076E204",7,,,"11100000","11100000"
    2021-06-18T09:40:18.738Z DEBUG modem << +CEREG: 2,"9E98","0076E204",7,0,10,"11100000","11100000"
    2021-06-18T09:40:25.870Z DEBUG modem << +CEREG: 5,"9E98","0076E204",7,,,"11100000","11100000"
    2021-06-18T09:40:25.888Z DEBUG modem << OK
    2021-06-18T09:40:32.118Z DEBUG modem >> AT+CFUN=0
    2021-06-18T09:40:32.272Z DEBUG modem << +CEREG: 0,"9E98","0076E204",7,0,0,"11100000","11100000"
    2021-06-18T09:40:33.877Z DEBUG modem << OK
    2021-06-18T09:40:35.200Z DEBUG modem >> AT%XOPNAME=1
    2021-06-18T09:40:35.216Z DEBUG modem << OK
    2021-06-18T09:40:36.303Z DEBUG modem >> AT+CEREG=5
    2021-06-18T09:40:36.322Z DEBUG modem << OK
    2021-06-18T09:40:37.480Z DEBUG modem >> AT+CFUN=1
    2021-06-18T09:40:37.521Z DEBUG modem << OK
    2021-06-18T09:40:37.610Z DEBUG modem << +CEREG: 0,"9E98","0076E204",7,0,0,"11100000","11100000"
    2021-06-18T09:40:39.007Z DEBUG modem << +CEREG: 2,"9E98","0076E204",7,0,0,"11100000","11100000"
    2021-06-18T09:40:40.032Z DEBUG modem << +CEREG: 5,"9E98","0076E204",7,,,"11100000","11100000"
    2021-06-18T09:40:54.421Z DEBUG modem >> AT+COPS?
    2021-06-18T09:40:54.436Z DEBUG modem << +COPS: 1,2,"22802",7
    2021-06-18T09:40:54.441Z DEBUG modem << OK
    2021-06-18T09:41:03.762Z DEBUG modem >> AT+COPS=1,2,"22801"
    2021-06-18T09:41:03.853Z DEBUG modem << +CEREG: 5,"02C3","01007906",7,,,"11100000","11100000"
    2021-06-18T09:41:03.971Z DEBUG modem << +CEREG: 2,"02C3","01007906",7,0,9,"11100000","11100000"
    2021-06-18T09:41:07.463Z DEBUG modem << +CEREG: 5,"02C3","01007906",7,,,"11100000","11100000"
    2021-06-18T09:41:07.470Z DEBUG modem << OK
    2021-06-18T09:41:07.488Z DEBUG modem << %XOPNAME: "80","80","22801"
    2021-06-18T09:41:16.108Z DEBUG modem >> AT+COPS=1,2,"22802"
    2021-06-18T09:41:16.250Z DEBUG modem << +CEREG: 5,"9E98","0076E204",7,,,"11100000","11100000"
    2021-06-18T09:41:16.443Z DEBUG modem << +CEREG: 2,"9E98","0076E204",7,0,10,"11100000","11100000"
    2021-06-18T09:41:20.192Z DEBUG modem << +CEREG: 5,"9E98","0076E204",7,,,"11100000","11100000"
    2021-06-18T09:41:20.198Z DEBUG modem << OK
    2021-06-18T09:41:21.644Z DEBUG modem >> AT+COPS?
    2021-06-18T09:41:21.655Z DEBUG modem << +COPS: 1,2,"22802",7
    2021-06-18T09:41:21.670Z DEBUG modem << OK

Related