You are right, it was my misunderstanding.

What actually happens is that some layer under ofono (maybe the acm-adc driver of our "old" kernel 2.6.37), detects an error in the communication and close the port: simply ofono gets an HUP error on the "modem" port and stop receving any data.
I don't think this issue should be resolved in ofono.

FabioT

_

On Sun, Nov 29, 2015 at 10:47 PM, Denis Kenzior <denkenz@gmail.com> wrote:
Hi Fabio,

On 11/24/2015 03:45 AM, Fabio wrote:
Hello,
I'm using ofono 1.16 with some patch to add sms manager to the Ublox driver.

Someone could confirm that ofono close the serial port when it receives
some unexpected/unprintable character before the "AT+CGMS=<seq>" reply
from the modem?

No, oFono does not close serial ports because of garbage.  The syntax will generally discard / ignore AT commands that are not properly formatted.


If yes, is possible to discard these characters instead of hanging-up
the serial port? Could I have some info about the source I have to patch ?


Feel free to provide AT command logs to help us better understand what is happening.

Regards,
-Denis

_______________________________________________
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono



--
****************************************************************************************************************************
"Solo due cose sono infinite: l'universo e la stupidità umana. Ma della prima non sono sicuro". [Albert Einstein]
****************************************************************************************************************************