Hi Denis,


On Wed, May 8, 2019 at 5:21 PM Denis Kenzior <[email protected]> wrote:

> 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 purpose is to put the device in sleep mode. While the device is in
sleep mode, the modem is running
in low power mode and it maintains the TCP/IP connection to the server. If
the server send a data, the modem
will able to wake up the device.


>
> > 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.
>
>
Thanks, I will check it.


> Regards,
> -Denis
>


Regards,

John
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to