linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Vogl <vogl@soft.uni-linz.ac.at>
To: Burjan Gabor <buga@elte.hu>
Cc: Greg KH <greg@kroah.com>, linux-kernel@vger.kernel.org
Subject: Re: 2.4.22 usbserial/pl2303 oops
Date: Wed, 29 Oct 2003 10:06:23 +0100	[thread overview]
Message-ID: <3F9F830F.6010803@soft.uni-linz.ac.at> (raw)
In-Reply-To: <20031029001731.GA20355@odin.sis.hu>

I have a different problem with the pl2303 module, but have
no clue where to search: I have an ericsson cradle that I
check repeatedly if a cell phone is plugged in or not.

I wrote a small program that sends AT commands to the modem
every few seconds, and when an OK arrives, everythings fine.
It is indeed fine, until I unplug the phone and insert it again:
The program writes the 'AT\r\n' correctly, and I do get an answer
of the right length, but the read buffer does contain only zeros,
although the right length is returned.

Some things get me out of this loop of hell:
	o reloading the pl2303 module
	o when I re-insert the phone, I get correct data about every
		tenth try.
	o minicom seems to do additional initialization that cures
		the problem as well.
I looked through straces of minicom as well as the other programs,
but did not find any significant difference. I did also load pl2303
with debug on, and found that it receives the right values in its
internal buffer, but they are not getting out of the module.

Can anyone give me a clue where I should look next?

thanks
Simon



-- 
------------------------------------------------
Dr. Simon Vogl
Department  of   Computer  Science
Johannes Kepler University of Linz
Altenberger Straße 69
A-4040 Linz - Austria

Tel: +43 70 2468 8517  vogl@soft.uni-linz.ac.at
Fax: +43 70 2468 8426   www.soft.uni-linz.ac.at


  parent reply	other threads:[~2003-10-29  9:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-27  8:34 2.4.22 usbserial/pl2303 oops Burjan Gabor
2003-10-27 23:42 ` Greg KH
2003-10-29  0:17   ` Burjan Gabor
2003-10-29  3:44     ` Greg KH
2003-10-29  9:06     ` Simon Vogl [this message]
2003-10-29 15:55       ` Greg KH
2003-10-30  8:19         ` Simon Vogl
2003-10-29  0:18 Christian Kögler
2003-10-29  3:42 ` Greg KH
2003-10-29  6:52   ` Christian Kögler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F9F830F.6010803@soft.uni-linz.ac.at \
    --to=vogl@soft.uni-linz.ac.at \
    --cc=buga@elte.hu \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).