Hi John,

On 05/08/2019 06:13 PM, John Tobias wrote:
Hi all,

I was trying to integrate the quectel <https://www.quectel.com/UploadImage/Downlad/Quectel_BG96_TCP(IP)_AT_Commands_Manual_V1.0.pdf> tcp/ip connection in the ofono driver. I used AT+QIOPEN for opening the socket, AT+QIRD for receiving data from the server and AT+QISENDEX for sending data to the server.


Out of curiosity, why? Since you're running oFono, which runs on Linux, you should have a fully-featured and much easier to use IP stack available to you?

The 3 functions are working correctly if I executed it directly in the serial port. I had issue with ofono when it send the AT+QISENDEX. Below is the command:

char const *command2 = "AT+QISENDEX=2,\"48656c6c6f\"";
g_at_chat_send(data->aux, command2, none_prefix, NULL, NULL,NULL);


The first execution of the QISENDEX works. My server received the data but when I try it again, the ofono stuck somewhere where the it couldn't run any AT commands anymore. Then, I killed the ofono and opened the serial, I ran this command AT+QISENDEX=2,"48656c6c6f" and it works fine.

You may want to enable AT command debugging. See HACKING for details. One possibility is that the firmware gets AT command response formatting wrong. E.g. something in the response confuses GAtSyntax.

Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to