BX3105 MQTT Connexion Aborted after One second

I m trying to create a session with MQTT on BX3105 but the connection aborted after a second

AT+KMQTTCFG=0,“broker.hivemq.com”,1883,3,“test_id”,60,1,0,“user”,“passwd”

+KMQTTCFG: 1
OK
AT+KMQTTCNX=1

OK

+KMQTT_IND: 1,1

+KMQTT_IND: 1,0
did anyone can help me with this or know what is the problem and thank you.

1 Like

Hi @achref.daabek,

In page 197 of document “AirPrime - BX310x - AT Command Reference - R7.0.pdf” (you can get this document at link: https://source.sierrawireless.com/resources/airprime/hardware_specs_user_guides/airprime_bx310x-at-command-reference/#sthash.M2R2FQLi.dpbs), I can see below:

Currently, with the latest offical FW of this module, MQTT version indicator is only supported with value 4 (version 3.1.1).
But I see you are using value 3 for this parameter:

Can you change this value and try again?

Thanks,

Hi @jerdung ,
Yeah, I have read the document and I tested with the two options, but it always gives me the same result after a while it disconnects from brokers.

Hi @achref.daabek,

I have just tried on my BX310x module with offical FW 2.7.3, this module can create MQTT connection successfully and I have not seen your issue on my module.
You can refer this log:

at+fmm

BX310x
OK
ati3

BX310x.2.7.3
OK
at+srwcfg=1

OK
AT+SRWSTACFG="AP SSID","password",1

OK
at+srwstacon=1

OK

+SRWSTASTATUS: 1,"AP SSID","MAC address of the AP",1,4,-49

+SRWSTAIP: "192.168.0.123","255.255.255.0","192.168.0.1"
AT+KMQTTCFG=0,"broker.hivemq.com",1883,4,"client_ID"

+KMQTTCFG: 1
OK
AT+KMQTTCFG?

+KMQTTCFG: 1,"broker.hivemq.com",1883,4,"client_ID",0,1,0,"0","",0,0,"0","0"
OK
AT+KMQTTCNX=1

OK

+KMQTT_IND: 1,6

+KMQTT_IND: 1,1
AT+KMQTTCFG?

+KMQTTCFG: 1,"broker.hivemq.com",1883,4,"client_ID",0,1,0,"0","",0,0,"0","0"
OK
AT+KMQTTCLOSE=1

OK
AT+KMQTTDEL=1

OK

Can you check again following above commands?

Thanks,

1 Like

Hi @jerdung,
I have tried the AT&K3 to tested with my Arduino but now I want to give it back to Hercules it means to use a USB interface for config but I don’t know how, did you have any idea?

Hi @achref.daabek,

Are you using Windows 10? The main interface for the BX310x is a UART, you would just use the standard CDC-ACM driver, so I think you may not need to install driver.

You can refer at page 36 in this document: https://source.sierrawireless.com/resources/airprime/hardware_specs_user_guides/bx310x-development-board-guide/#sthash.KE0OaoyM.dpbs to get started using the BX310x with Hercules on Windows.
You will see as below picture after attaching the USB cable from your PC to your module:

Please let me know if you have any issues.

Thanks,

hi @jerdung ,
This is not my problem, I have done a lot of tests with Hercules, but after I put the AT&K3 command I lose control from Hercules Interface and there is nothing displayed when click resets or any other command that’s why I asking if there any way to go back to normal at+command using Hercules. I don’t know what is the problem, but I used Tera-Term to connect to the bx3105 and reset all config by AT+F after that I open Hercules and everything goes ok! .

hi @jerdung,
the problem was when I connect to the broker from the bx3105 the node-red flow disconnects from the same broker and when I connect from node-red to the same broker it disconnects from bx3105 I want to send and receive data throw MQTT when my laptop play as AP for bx3105