BG77, IPv6 and MQTT Problems

Hi,

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?

Best regards,

Edu

What is BROKER_IPV6 - is this an IP address or FQDN?
Can you ping it from the modem?
Don’t forget to configure APN.

Hi jfrog,

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:

AT+CGACT?
+CGACT: 1,1
+CGACT: 2,0

OK

Best regards,

Edu

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

AT+CFUN=4 is only used in the first configuration run, the command was repeated in the list by mistake, the sequence is now corrected.

I repeated the test but did not use the AT+CGACT=1,1 command and now I can ping the broker and publish messages without issues.

Thanks for your help jfrog!