Ai-Thinker-Open / GPRS-AT

Ai-Thinker A9 GPRS AT Module Related
33 stars 16 forks source link

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

Open futechiot opened 6 years ago

futechiot commented 6 years ago

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

Neutree commented 6 years ago

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

futechiot commented 6 years ago

@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 HTTPGET 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 commented 6 years ago

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

Rogil commented 5 years ago

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

AlexSp3 commented 4 years ago

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"

Response :

OK HTTP/1.1 500 Internal Server Error

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

Neutree commented 4 years ago

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

AlexSp3 commented 4 years ago

@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"

nguyenquickd commented 3 years ago

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!

davidalvarez93 commented 3 years ago

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?