[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] DLR3 support for 6310 ? request for testing
From: |
Pavel Machek |
Subject: |
Re: [patch] DLR3 support for 6310 ? request for testing |
Date: |
Thu, 11 Jul 2002 05:04:25 +0200 |
User-agent: |
Mutt/1.3.28i |
Hi!
> > the following code snipplet from links/fbus.c works for
> > a ___ 7110 ___ with a dlr-3. pay attention to three
> > things. the first dtr_low/dtr_high ensures AT command
> > mode (this resets the phone). the second dtr_low/dtr_high
> > would reset the phone to AT mode therefore it is commented.
> > this code example leaves dtr/rts high. if the device read
> > wouldn't block a dau-9 would work on the first run because
> > the power isn't removed.
>
> Tests with 6310 (firmware 4.10): for me your code works better then Pawel's
> (about 75% succesfull connections).
> I fiddled with the sleep()s to this almost 100% reliable init-sequence:
> (the sleep() between device_setdtrrts(1,1) and device_changespeed(19200) is
> important for my 6310, and the low value after device_write("AT*NOKIAFBUS")
> is important also):
>
> device_setdtrrts(0, 0);
> sleep(1);
> device_setdtrrts(1, 1);
> sleep(1);
> device_changespeed(19200);
> usleep(500000);
> device_write("AT\r", 3);
> usleep(1000000);
> device_write("AT&F\r", 5);
> usleep(10000);
> device_write("AT*NOKIAFBUS\r", 13);
> usleep(1000);
Unless you have HZ=1000,usleep(1000) is equivalent to
usleep(10000). Oh, you might want to setserial /dev/ttyS0
low_latency. That should at least make the results repeatable.
> device_changespeed(115200);
> for (count = 0; count < 32; count++) {
> device_write(&init_char, 1);
> }
> device_write(&end_init_char, 1);
> usleep(500000);
Pavel
--
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?