![]() ![]() |
Feb 27 2004, 03:14 AM
Post
#16
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
ohh i forgot to mention when you log in, dont enter anything in password and just hit connect.....make sure you freakin enable irda on nokia and you have the irda ports aiming correctly.....i sometimes have a problem with this.
like when im driving, i need to pull over, lay both devices flat about 2-5 inches appart and enable irda and log in.. Cresho |
|
|
|
Feb 27 2004, 03:18 AM
Post
#17
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
also tried it with +++ in front of ATZ
abort on (NO CARRIER) abort on (NO DIALTONE) abort on (BUSY) send (+++ATZ^M) expect (OK) ~^?}#@!}!}!} }4}%}&5^O u}"}&} } } } }'}"}(}"}>~~^?}#@!}!}!} }4}%}&5^O u}"}&} } } } SIGHUP Can't restore terminal parameters: Input/output error |
|
|
|
Feb 27 2004, 03:25 AM
Post
#18
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
the last was with 7650 with 6210 and +++ATZ I got again
abort on (NO CARRIER) abort on (NO DIALTONE) abort on (BUSY) send (+++ATZ^M) expect (OK) +++ATZ^M^M OK -- got it send (ATD0049177123100^M) expect (OK) ^M ATD0049177123100^M^M CARRIER^M ^M CONNECT 9600^M ~^?}#@!}! } }9}"}&} }*} } }#}%B#}%}%}&>}"*}'}'}"}(}"p},~~^?}#@!}!^K} }9}"}&} }*} } }#}%B#}%} %}&>}"*}'}'}"}(}"4W~~^?}#@!}!^L} }9}"}&} }*} } }#}%B#}%}%}&>}"*}'}'}"}(}"y_~~^?}#@! }!^M} }9}"}&} }*} } }#}%B#}%}%}&>}"*}'}'}"}(}"=^D~~^?}#@!}!^N} }9}"}&} }*} } }#}%B#} %}%}&>}"*}'}'}"}(}"qi~~^?}#@!}!^O} }9}"}&} }*} } }#}%B#}%}%}&>}"*}'}'}"}(}"52~~^?}# @!}!^P} }9}"}&} }*} } }#}%B#}%}%}&>}"*}'}'}"}(}"ol~~^?}#@!}!^Q} }9}"}&} }*} } }#}%B #}%}%}&>}"*}'}'}"}(}"+7~~^?}#@!}!^R} }9}"}&} }*} } }#}%B#}%}%}&>}"*}'}'}"}(}"gZ~~^? }#@!}!^S} }9}"}&} }*} } }#}%B#}%}%}&>}"*}'}'}"}(}"#}!~^M NO CARRIER -- failed Failed (NO CARRIER) |
|
|
|
Feb 28 2004, 05:18 AM
Post
#19
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
@guest1:
connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "ATZ" OK "ATD0049177123100" OK "ATD abort on (NO CARRIER) abort on (NO DIALTONE) abort on (BUSY) send (ATZ^M) expect (OK) ATZ^M^M OK -- got it send (ATD0049177123100^M) expect (OK) ^M ATD0049177123100^M^M CARRIER^M ^M CONNECT 9600^M ~^?}#@!}!^V} }9}"}&} }*} } }#}%B#}%}%}&=ku}&}'}"}(}"; ~~^?}#@!}!^W} }9}"}&} }*} } }# }%B#}%}%}&=ku}&}'}"}(}"^?{~~^?}#@!}!^X} }9}"}&} }*} } }#}%B#}%}%}&=ku}&}'}"}(}"09~~ ^?}#@!}!^Y} }9}"}&} }*} } }#}%B#}%}%}&=ku}&}'}"}(}"tb~^M NO CARRIER All right, Modem Reset works, IrDA Communication works. Now after the dial command ATD0049177123100 the modem should repond with a CONNECT <speed> message (CONNECT 9600 in your case, which shows up in the log). But your script is waiting for another OK from the modem. This means an initial line connection is made, but the Zaurus doesn't start the authentification sequence because it keeps waiting for an OK that it never receives. After some seconds a timeout kills the connection (NO CARRIER). Try the following: connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "ATZ" OK "ATD0049177123100" CONNECT (or CONNECT 9600) I think you can omit the last "ATD" Regards Thomas |
|
|
|
Feb 29 2004, 09:41 AM
Post
#20
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "ATZ" OK "ATD0049177123100" OK "ATD
was a mistyping I am using connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "ATZ" OK "ATD0049177123100" OK "ATDT0049177123100" CONNECT' |
|
|
|
Feb 29 2004, 11:30 AM
Post
#21
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
Why dial twice?
IIRC the chatscript works thus: expect : send (to the modem) "" : "ATZ" - reset immediately OK : "ATDT......." - wait for the OK, then dial then you've got something along the lines of: OK : "ATDT...." - once again? Where it ought to be: CONNECT : "" - wait for CONNECT, then give up control to pppd or even: CONNECT : "" - wait for CONNECT, do nothing "~" : "" - wait for first char of ppp comms, give control to pppd Si |
|
|
|
Mar 1 2004, 10:08 AM
Post
#22
|
|
|
Group: Members Posts: 6 Joined: 25-February 04 Member No.: 2,034 |
I tried it this way:
connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "+++ATZ" OK "ATD0049177123100" CONNECT ' got abort on (NO CARRIER) abort on (NO DIALTONE) abort on (BUSY) send (+++ATZ^M) expect (OK) +++ATZ^M^M OK -- got it send (ATD0049177123100^M) expect (CONNECT) ^M ATD0049177123100^M^M CARRIER^M ^M CONNECT -- got it tried connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "+++ATZ" OK "ATD0049177123100" CONNECT "~" ' got abort on (NO CARRIER) abort on (NO DIALTONE) abort on (BUSY) send (+++ATZ^M) expect (OK) +++ATZ^M^M OK -- got it send (ATD0049177123100^M) expect (CONNECT) ^M ATD0049177123100^M^M CARRIER^M ^M CONNECT -- got it send (~^M) |
|
|
|
Mar 1 2004, 04:02 PM
Post
#23
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
Perhaps you should change (but I'm flailing about in the dark here I'm afraid):
connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "+++ATZ" OK "ATD0049177123100" CONNECT "~" ' To: connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "+++ATZ" OK "ATD0049177123100" CONNECT "" "~" ""' So you expect CONNECT, send nothing, then expect the start of ppp comms "~" and send nothing, then hand over. Si |
|
|
|
Mar 2 2004, 03:17 AM
Post
#24
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
This is quite interesting:
bash-2.05# more /tmp/qpe-pppd-log Mar 2 11:26:32 localhost pppd[329]: pppd 2.4.0 started by root, uid 0 Mar 2 11:26:33 localhost chat[331]: abort on (NO CARRIER) Mar 2 11:26:33 localhost chat[331]: abort on (NO DIALTONE) Mar 2 11:26:33 localhost chat[331]: abort on (BUSY) Mar 2 11:26:33 localhost chat[331]: send (+++ATZ^M) Mar 2 11:26:33 localhost chat[331]: expect (OK) Mar 2 11:26:33 localhost chat[331]: +++ATZ^M^M Mar 2 11:26:33 localhost chat[331]: OK Mar 2 11:26:33 localhost chat[331]: -- got it Mar 2 11:26:33 localhost chat[331]: send (ATD0049177123100^M) Mar 2 11:26:34 localhost chat[331]: expect (CONNECT) Mar 2 11:26:34 localhost chat[331]: ^M Mar 2 11:26:38 localhost chat[331]: ATD0049177123100^M^M Mar 2 11:26:38 localhost chat[331]: CARRIER^M Mar 2 11:26:54 localhost chat[331]: ^M Mar 2 11:26:54 localhost chat[331]: CONNECT Mar 2 11:26:54 localhost chat[331]: -- got it Mar 2 11:26:54 localhost chat[331]: send (~^M) Mar 2 11:26:54 localhost pppd[329]: Serial connection established. Mar 2 11:26:54 localhost pppd[329]: using channel 1 Mar 2 11:26:54 localhost pppd[329]: Using interface ppp0 Mar 2 11:26:54 localhost pppd[329]: Connect: ppp0 <--> /dev/ircomm Mar 2 11:26:54 localhost pppd[329]: Hangup (SIGHUP) Mar 2 11:26:54 localhost pppd[329]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <ma gic 0x2f7286e1> <pcomp> <accomp>] Mar 2 11:26:54 localhost pppd[329]: Timeout 0x20084bc:0x203b440 in 3 seconds. Mar 2 11:26:54 localhost pppd[329]: Modem hangup Mar 2 11:26:54 localhost pppd[329]: Untimeout 0x20084bc:0x203b440. Mar 2 11:26:54 localhost pppd[329]: Connection terminated. Mar 2 11:26:55 localhost pppd[329]: Exit. with connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "+++ATZ" OK "ATD0049177123100" CONNECT "~" ' and bash-2.05# more /tmp/qpe-pppd-log Mar 2 12:13:33 localhost pppd[677]: pppd 2.4.0 started by root, uid 0 Mar 2 12:13:33 localhost pppd[677]: Removed stale lock on ircomm (pid 633) Mar 2 12:13:34 localhost chat[686]: abort on (NO CARRIER) Mar 2 12:13:34 localhost chat[686]: abort on (NO DIALTONE) Mar 2 12:13:34 localhost chat[686]: abort on (BUSY) Mar 2 12:13:34 localhost chat[686]: send (+++ATZ^M) Mar 2 12:13:34 localhost chat[686]: expect (OK) Mar 2 12:13:34 localhost chat[686]: +++ATZ^M^M Mar 2 12:13:34 localhost chat[686]: OK Mar 2 12:13:34 localhost chat[686]: -- got it Mar 2 12:13:34 localhost chat[686]: send (ATD0049177123100^M) Mar 2 12:13:34 localhost chat[686]: expect (CONNECT) Mar 2 12:13:34 localhost chat[686]: ^M Mar 2 12:13:39 localhost chat[686]: ATD0049177123100^M^M Mar 2 12:13:39 localhost chat[686]: CARRIER^M Mar 2 12:13:55 localhost chat[686]: ^M Mar 2 12:13:55 localhost chat[686]: CONNECT Mar 2 12:13:55 localhost chat[686]: -- got it Mar 2 12:13:55 localhost chat[686]: send (^M) Mar 2 12:13:55 localhost chat[686]: expect (~) Mar 2 12:13:55 localhost chat[686]: 9600^M Mar 2 12:14:00 localhost chat[686]: ~ Mar 2 12:14:00 localhost chat[686]: -- got it Mar 2 12:14:00 localhost chat[686]: send (^M) Mar 2 12:14:00 localhost pppd[677]: Serial connection established. Mar 2 12:14:00 localhost pppd[677]: using channel 4 Mar 2 12:14:00 localhost pppd[677]: Using interface ppp0 Mar 2 12:14:00 localhost pppd[677]: Connect: ppp0 <--> /dev/ircomm Mar 2 12:14:00 localhost pppd[677]: Hangup (SIGHUP) Mar 2 12:14:00 localhost pppd[677]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <ma gic 0x48282fff> <pcomp> <accomp>] Mar 2 12:14:00 localhost pppd[677]: Timeout 0x20084bc:0x203b440 in 3 seconds. Mar 2 12:14:00 localhost pppd[677]: Modem hangup Mar 2 12:14:00 localhost pppd[677]: Untimeout 0x20084bc:0x203b440. Mar 2 12:14:00 localhost pppd[677]: Connection terminated. Mar 2 12:14:01 localhost pppd[677]: Exit. with connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "+++ATZ" OK "ATD0049177123100" CONNECT "" "~" "" ' |
|
|
|
Mar 2 2004, 04:13 AM
Post
#25
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
Looks like we've made progress. It also looks like either of those works (in truth my script's probably not ideal as even if you put in "" it sends a ^M char which can cause troubles - not here though - there is a way around this but I can't remeber how off the top of my head).
You might want to try setting the timeout to a longer setting (I think I've got mine at 30sec), then we'll see what happens, but at least pppd is gaining control now. Si |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 18th May 2013 - 12:39 PM |