GPRS-AT icon indicating copy to clipboard operation
GPRS-AT copied to clipboard

UNABLE TO ESTABLISH A CONNECTION USING AT COMMAND OF MQTT AND HTTP

Open futechiot opened this issue 7 years ago • 9 comments

hello there, I'm trying to send GPS signal raw data of A9G pudding board to Microsoft Azure platform or any third party cloud. I have three questions. 1). im getting GPS raw data in NMEA string. but don't know how to convert them into LATTITUDE AND LONGITUDE OF GOOGLE MAP. 2). I'm unable to connect to testing MQTT broker can you please explain this command

everything is going fine till network establishment. AT+MQTTCONN="www.anthinkerwx.com",1883,"12345",120,0,"Ai-thinker","123456" //The client waits and connects to the server while sending CONNECT

Broker = test.mosquitto.org port=1883 "12345" why is this digits for? AI-thinker is client or username ?? 3). Can you help me with HTTP secure connection? for mqtt I have to attach a certificate which is a string so how can I attach this?

@Neutree can you provide any examples or guidance. thanks

futechiot avatar Jul 06 '18 06:07 futechiot

Just check the NMEA standard then you get everything!

the nmea output of longitude & latitude belong to WGS-84 coordinate, and format is dddmm.mmmm & ddmm.mmmm, e.g. 2212.3456 means 22°12.3456', you can convert to unit degree: (22+12.3456/60)° refer C SDK code here

AT+MQTTCONN=<host>,<port>,<clientid>,<aliveSeconds>,<cleansession>,<username>,<password>

AT not support ssl yet

Neutree avatar Jul 06 '18 07:07 Neutree

@Neutree THANK YOU FOR YOUR quick response so as you're saying as of now MQTT SSL is not supported yet. can you tell me after how much time update of AT COMMANDS will come?

i'm able to use HTTP GET and POST.. but can you please tell me how can i connect to HTTPS I want to send data to Microsoft Azure or Amazon AWS cloud. HTTPS is supported in AT COMMAND yet?? for this platform i have to attach certificates (for security) so for at command how can i achieve this?

@Neutree please help me with this 0_o thankss:)

futechiot avatar Jul 06 '18 12:07 futechiot

hello, @Neutree I'm able to use MQTT without SSL. now I'm trying to send data to secure cloud using HTTP can you tell me how can I attach security token or certificate in AT command?? In older version of AT command files, there is nothing about HTTP and MQTT? do you have any pdf file for "newer version" Im able to send data to test.mosquitto.org successfully, Now I'm using THINGS BOARD PLATFORM. I have device id which I'm using for clientid and there is access token so can you tell me how can I parse ACCESS TOKEN in URL OR IN THIS AT COMMAND??

AT+MQTTCONN=<host>,<port>,<clientid>,<aliveSeconds>,<cleansession>,<username>,<password> But as you mentioned Thank you

futechiot avatar Jul 13 '18 10:07 futechiot

Hi fu-techiot, Please can you tell me Howto the POST command and the version of your A9G, I'm trying but the only command that works is the GET,

Thanks

Rogil avatar Dec 10 '18 19:12 Rogil

Hi fu-techiot, Please can you tell me Howto the POST command and the version of your A9G, I'm trying but the only command that works is the GET,

Thanks


Hi Rogil, I am trying to make a GET request with the A9G module, but I always get the response "HTTP/1.1 500 Internal Server Error".

I am sending the following command:

AT+HTTPGET="http://esmeraldasoftware.ddns.net/req.php?req=HelloWorld"<CR>

Response :

OK <CR><LF> HTTP/1.1 500 Internal Server Error <CR><LF>

What am I doing wrong? Do I need to send a previous command? Do you hace an example using GET request with A9G. Thanks!!

AlexSp3 avatar Sep 05 '20 18:09 AlexSp3

@alexpalapine2003 http://esmeraldasoftware.ddns.net/req.php?req=HelloWorld can no access

Neutree avatar Sep 07 '20 06:09 Neutree

@Neutree , sorry, I am using xampp and yesterday I disconected te server. However, when I click the link It works, It appears "Respuesta = Hello world"

AlexSp3 avatar Sep 07 '20 12:09 AlexSp3

I always get +CME: error53 with some AT command such as AT+MQTTCONN="soldier.cloudmqtt.com",17539,"12345",120,0,"ctcabemw","GuQElRZTSdcj" AT+MQTTCONN="www.mqtt-dashboard.com",1883,"12345",120,0 what i'm doing wrong. Please help me!

nguyenquickd avatar Sep 30 '20 13:09 nguyenquickd

Hello, I have a situation, where I use "AT + HTTPPOST" towards an API of my server and it responds with: Response:

okay HTTP / 1.1 200 SUCCESS, but after 6 requests the request is no longer sent until I restart the device, does anyone know why this happens? or how can it be solved without rebooting the device?

davidalvarez93 avatar May 26 '21 19:05 davidalvarez93