Author Topic: Irda Dial Up Problem  (Read 7261 times)

Anonymous

  • Guest
Irda Dial Up Problem
« Reply #15 on: February 27, 2004, 06:14:00 am »
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

Anonymous

  • Guest
Irda Dial Up Problem
« Reply #16 on: February 27, 2004, 06:18:59 am »
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

Anonymous

  • Guest
Irda Dial Up Problem
« Reply #17 on: February 27, 2004, 06:25:24 am »
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)

Anonymous

  • Guest
Irda Dial Up Problem
« Reply #18 on: February 28, 2004, 08:18:27 am »
@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

Anonymous

  • Guest
Irda Dial Up Problem
« Reply #19 on: February 29, 2004, 12:41:22 pm »
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\'

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Irda Dial Up Problem
« Reply #20 on: February 29, 2004, 02:30:37 pm »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ffelgenh

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://
Irda Dial Up Problem
« Reply #21 on: March 01, 2004, 01:08:56 pm »
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)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Irda Dial Up Problem
« Reply #22 on: March 01, 2004, 07:02:09 pm »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest
Irda Dial Up Problem
« Reply #23 on: March 02, 2004, 06:17:36 am »
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 \"\" \"~\" \"\" \'

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Irda Dial Up Problem
« Reply #24 on: March 02, 2004, 07:13:40 am »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva