iotcreators.com web
    • Login
    • Search
    • forum.iotcreators.com
    • docs.iotcreators.com
    • Tags
    • Popular
    • Recent
    • Register

    Connect to LTE-M for quectel BG-96

    iotcreators.com portal & API
    3
    4
    5224
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Eric Barten iotcreators.com team last edited by Eric Barten

      I think this should be the sequence to connect to LTE-M for the BG-96

      //First do a reboot
      AT+CFUN=1,1

      //Set APN
      AT+CGDCONT=1,“IP”,“smartsites.t-mobile”

      //Choose Operator and RAT type
      AT+COPS=1,2,“20416”,8

      //Choose communication band for LTE-M to 1800MhZ ->Band 3
      (relates to 4 in below AT command)
      AT+QCFG=“band”,0,4,80,1

      //Configure Network Category to be Searched
      AT+QCFG=“iotopmode”,2,1

      //Set scanning network to LTE-M first than NB network
      AT+QCFG=“nwscanseq”,020301,1

      //Configure RAT(s) to be Searched (LTE-M - band 3 = 0x4)
      AT+QCFG=“nwscanmode”,3,1

      // enable scrambling
      AT+QCFG=“nbsibscramble”,0

      //Switch the module to full functionality
      AT+CFUN=1

      //Show PDP Address
      AT+CGPADDR=1

      //Check if the device is attached to the network
      AT+CGATT?

      If the response is 1 it means attached
      +CGATT: 1

      //Setup a UDP socket (put your target here)
      AT+QIOPEN=1,0,“UDP”,“172.27.131.100”,15683

      //Send some text data
      AT+QISEND=0,5

      //Type for example “Hello World”

      Hello World

      //And a second time, since the first ever UDP message is used for registration. This message you should now receive in your own environment.

      Hello World

      //You can also send data via UDP in HEX as follows
      AT+QISENDEX=0,”48656c6c6f20576f726c64”

      You have now successfully sent your first UDP message(s)!

      W A 2 Replies Last reply Reply Quote 0
      • W
        wesley-TOP @Eric Barten last edited by

        @eric-barten Thanks for sharing these commands!
        i do have 1 comment regarding the AT-commands.

        AT+QCFG=“nwscanmode”,3,4,8
        doesn’t seem to work on firmware version: BG96MAR03A03M1G
        so i think it should be: AT+QCFG=“nwscanmode”,3,1

        and AT+QCFG=“gprsattach”,0 is no longer a supported command in this firmware version.

        if all other commands are followed you can get a succesfull connection with LTE-M.

        1 Reply Last reply Reply Quote 1
        • A
          Anup Bhattacharjee @Eric Barten last edited by

          @eric-barten Thank you for sharing these commands :)

          I would like to point out a minor change that would be required in the AT+COPS command for operator selection.
          I think it should be:
          AT+COPS=1,2,“20416”,8 instead of AT+COPS=1,2,“20416”,9

          As ‘9’ is for CAT-NB1 and 8 is for CAT-M ;)

          E 1 Reply Last reply Reply Quote 1
          • E
            Eric Barten iotcreators.com team @Anup Bhattacharjee last edited by

            @anup-bhattacharjee and @wesley-TOP thanks for your updates I will change the post accordingly

            1 Reply Last reply Reply Quote 3
            • 1 / 1
            • First post
              Last post