Connect to LTE-M for quectel BG-96


  • 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
    AT+COPS=1,2,“20416”,9

    //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”,1,1

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

    //GPRS Attach Mode Configuration, set to manual (0)
    AT+QCFG=“gprsattach”,0

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

    // 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)!



  • @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.


 

Looks like your connection to Internet of Things was lost, please wait while we try to reconnect.