I’m not able to connect to my MQTT broker when using IPv6 with the BG77 module, using the same SIM card on a BG96 and IPv6 works fine.
This is the list of commands and responses from the BG77:
AT+CFUN=4
OK
AT+QCFG=“band”,F,F,8000004
OK
AT+QCFG=“iotopmode”,1,1
OK
AT+QCFG=“nwscanseq”,03,1
OK
AT+CGDCONT= 1,“IPV6”,“APN”,“”,0,0
OK
AT+CFUN=1
OK
AT+COPS=1,2,“OPER”,9
OK
AT+CGACT=1,1
OK
AT+QMTOPEN=0,“<BROKER_IPV6>”,1883
OK
+QMTOPEN: 0,-1
If the modem is configured for IPv4 the AT+QMTOPEN works and I’m able to publish a message without issues, any idea what might be wrong with the IPv6 configuration I’m using?
BROKER_IPV6 is the IP address, the APN config command was not posted correctly I edited the post to correct it.
Regarding the ping command, I’m getting +QPING: 561 (Activate pdp context failed) when pinging the MQTT broker (IPv4 and IPv6) and Google’s DNS server (IPv4 and IPv6).
After querying for the PDP context status I get the following response:
I don’s see why you need AT+CFUN=4
Restart the module, give it a minute to register and check with AT+CFUN? and AT+CGACT? then query with AT+CGPIAF=1,1,1,0;+CGPADDR