All of lore.kernel.org
 help / color / mirror / Atom feed
* U-Blox modem sends unprintable chars before "AT+CGMS=<seq>" reply: ofono (1.16) close the serial port ?
@ 2015-11-24  9:45 Fabio
  2015-11-29 21:47 ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio @ 2015-11-24  9:45 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

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?

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 ?

Thanks in advance,
FabioT


-- 
****************************************************************************************************************************

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

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1021 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: U-Blox modem sends unprintable chars before "AT+CGMS=<seq>" reply: ofono (1.16) close the serial port ?
  2015-11-24  9:45 U-Blox modem sends unprintable chars before "AT+CGMS=<seq>" reply: ofono (1.16) close the serial port ? Fabio
@ 2015-11-29 21:47 ` Denis Kenzior
  2015-12-01 10:43   ` Fabio
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2015-11-29 21:47 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 735 bytes --]

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: U-Blox modem sends unprintable chars before "AT+CGMS=<seq>" reply: ofono (1.16) close the serial port ?
  2015-11-29 21:47 ` Denis Kenzior
@ 2015-12-01 10:43   ` Fabio
  0 siblings, 0 replies; 3+ messages in thread
From: Fabio @ 2015-12-01 10:43 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1750 bytes --]

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(a)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]
****************************************************************************************************************************

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-01 10:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-24  9:45 U-Blox modem sends unprintable chars before "AT+CGMS=<seq>" reply: ofono (1.16) close the serial port ? Fabio
2015-11-29 21:47 ` Denis Kenzior
2015-12-01 10:43   ` Fabio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.