[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: |
Vitezslav Samel |
Subject: |
Re: [patch] DLR3 support for 6310 ? request for testing |
Date: |
Tue, 9 Jul 2002 15:22:18 +0200 |
User-agent: |
Mutt/1.4i |
On Tue, Jul 09, 2002 at 12:56:37AM +0200, Manfred Jonsson wrote:
> hi all
>
> 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);
device_changespeed(115200);
for (count = 0; count < 32; count++) {
device_write(&init_char, 1);
}
device_write(&end_init_char, 1);
usleep(500000);
Cheers,
Vita Samel