On Mon, Nov 03, 2008 at 07:37:22PM +0000, Julian Rush wrote:
> Using it in IP modem mode, it connects OK but it usually drops out 
> saying the device needs a password (even though it's been set in pppob). 
>   It does, however, charge properly and I can browse folders as a mass 
> storage device.  In IPmodem mode, almost invariably, the phone resets 
> itself sooner or later; for example, it will reset itself 10 to 20 secs 
> after running 'btool -l'.

Hi Julian,

Thanks for your report.

The part I found most suspicious was when you said you can reset the device
when running btool -l.  Do you run btool while you are connected to
the internet via USB?

Do you have a Mass Storage (usb_storage kernel module) drive mounted?

If these are true, you might try disabling Mass Storage, and running the
modem alone.


> Two questions: first, just to make life a little easier really, can I
> put 'bcharge -o' into the pppd script using pppd's init option, given
> it's benign if repeated?  The man page suggests pppd runs the init
> command in a shell to set up the serial link before running the connect
> script.  Though if the pty option has already grabbed the serial line,
> then I guess it won't fly?

I'd recommend changing the bcharge -o setting in the udev scripts as
Niels suggested, if that works for you.

As for pppd, I don't see any reason why it wouldn't work, but I haven't
experimented with the init option, so I can't say for sure.  Note that
if bcharge does actually change the Blackberry's mode, the Blackberry will
reset, so you need to put a delay in your script, before pppob runs.


> It would mean I can use pon/poff from a graphical interface without
> having to drop to a terminal to run bcharge -o first.  It doesn't seem
> to work when I try it though, but I'm no programmer, so I'm not sure if
> I'm doing anything else wrong or if it's just a bad idea!

Make sure you add a delay to deal with the reset.


> Second, since the serial line is driven by pty/pppob, do I need to worry
> about the modem/local, serial speed and handshaking commands in the pppd
> script - are they used at all?  In limited testing, changing them does
> seem to make no difference.

I don't believe they make any real difference in this case.  Pppob certainly
doesn't worry about those settings, it just transfers data as fast as it can.

- Chris


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to