View previous topic :: View next topic |
Author |
Message |
falcon_za Tux's lil' helper


Joined: 31 Aug 2004 Posts: 136 Location: Nara - Japan
|
Posted: Sun Sep 12, 2004 8:29 am Post subject: *RESOLVED* I can't get my dial-up connexion (airH) to work |
|
|
Hi,
I am now in japan, and trying to use a system call airH" to get online. It is a pc-card dial-up modem using the mobile phone network instead of a simple telephone plug. the bandwidth is 128kb/s. Of course, this thing is shiped wth drivers for windows and mac OS, but they don't care about linux users.
So until now i have been trying to follow these two tutorials (japanese language):
http://www.deer-n-horse.jp/linux/gentoo/airh.html
http://takeposo.dyndns.org/unix/setting/airh.rhtml
But I can't get the thing to work. Maybe my japanese is too poor, and i missed something in the tutorials, but whatever the reason, I am stuck. Note that i am quite new to linux, so what i missed might be trivial.
As far as I understand i have managed with the hardware part of it. serial_cs kernel module is installed, and apparenlty working. after running "cardmgr" or "/etc/init.d/pcmcia start", the log corectly responds when Insert the ariH card.
Then I tried to set up the "/etc/conf.d/net.ppp0". I must have done it wrong, because when I run "/etc/init.d/net.ppp0 start" the system says it started properly with a nice green OK, but nothing happens. It does not seem to try to establish the connexion, and takes no time for dialing. and obvisously, internet is not working. When I run "/etc/init.d/net.ppp0 stop", i am told that the interface is already down.
I don't know if that is relevant, but i am running 2.6 kernel, on x86 platform. please also note that i curently have no other connexion that this airh thing (which works properly under windows).
any idea?
Last edited by falcon_za on Sat Sep 18, 2004 12:15 am; edited 1 time in total |
|
Back to top |
|
 |
dambacher Apprentice

Joined: 11 Feb 2003 Posts: 290 Location: Germany
|
Posted: Sun Sep 12, 2004 5:42 pm Post subject: |
|
|
I'm not familiar with this driver type, but wit ppp im familiar.
But this kind of error smells like ppp having problems with it's config.
So for me, the first thing would be to look into the syslog, but before doing this, add two lines to your ppp options file:
Then post the syslog entrys ppp sends when you do net.ppp0 start |
|
Back to top |
|
 |
falcon_za Tux's lil' helper


Joined: 31 Aug 2004 Posts: 136 Location: Nara - Japan
|
Posted: Fri Sep 17, 2004 1:47 am Post subject: |
|
|
here it is:
pppd[20540]: pppd options in effect:
pppd[20540]: debug # (from command line)
pppd[20540]: holdoff 60 # (from command line)
pppd[20540]: idle 600 # (from command line)
pppd[20540]: persist # (from command line)
pppd[20540]: demand # (from command line)
pppd[20540]: linkname ppp0 # (from command line)
pppd[20540]: ktune # (from command line)
pppd[20540]: dump # (from command line)
pppd[20540]: noauth # (from command line)
pppd[20540]: user prin # (from command line)
pppd[20540]: remotename airh # (from command line)
pppd[20540]: /dev/ttyS7 # (from command line)
pppd[20540]: 115200 # (from command line)
pppd[20540]: lock # (from command line)
pppd[20540]: connect /usr/sbin/chat -v -f
/etc/ppp/chat-airh # (from /etc/ppp/peers/airh)
pppd[20540]: crtscts # (from command line)
pppd[20540]: modem # (from command line)
pppd[20540]: asyncmap 0 # (from command line)
pppd[20540]: mru 768 # (from command line)
pppd[20540]: mtu 1500 # (from command line)
pppd[20540]: hide-password # (from command line)
pppd[20540]: ipparam ppp0 # (from command line)
pppd[20540]: defaultroute # (from command line)
pppd[20540]: usepeerdns # (from command line)
pppd[20540]: netmask 255.255.255.0 # (from command line)
pppd[20542]: pppd 2.4.1 started by root, uid 0
pppd[20542]: Using interface ppp0
pppd[20542]: local IP address 10.64.64.64
pppd[20542]: remote IP address 10.112.112.112
It seems that I get an IP. I am quite suprised about that, since it takes absolutely no time to dial.
Anyway i tried to ping something to see. I can't ping urls, since i don't have a dns, and i tried some ips, and got no answer.
I hope that this log will help you understand. |
|
Back to top |
|
 |
dambacher Apprentice

Joined: 11 Feb 2003 Posts: 290 Location: Germany
|
Posted: Fri Sep 17, 2004 5:10 am Post subject: ppp-trouble |
|
|
Hi falcon_za
The IP-Number you see is auto-assigned by pppd because you did not specify any other adress. If you know the called computers ip, you may assign some adress for your and the other computer, but it is better to let ppp do that.
Add
Code: |
ipcp-accept-local
ipcp-accept-remote
|
to do that.
next: Your pppd does not seem to try to dial. Did you set a route to this ppp device?
Try to ping the given remote ip adress (in your case it was 10.112.112.112) and see if it dials
Is this your connection to the outer world and you don't have any other network interfaces, try to add a
to your ppp script.
Anyway, watch the logs for errors and warnings, and post the suspicious here...
bye
Ulf |
|
Back to top |
|
 |
falcon_za Tux's lil' helper


Joined: 31 Aug 2004 Posts: 136 Location: Nara - Japan
|
Posted: Fri Sep 17, 2004 12:35 pm Post subject: |
|
|
delfault route was already on.
one of the thing that might have been bugging me was "demand", since it said the modem shouldn't try to connect except if needed (and how exactly it dermines that, i don't kno), so i took it out
now it tries to connect
It first sends "ATZ", and gets "OK" as excepted. then it sends the phone number and gets "no carrier", which is obviously not what we want. it just stop here, and no matter how many times it retries, it never can get a carrier.
What do you think might cause that? |
|
Back to top |
|
 |
falcon_za Tux's lil' helper


Joined: 31 Aug 2004 Posts: 136 Location: Nara - Japan
|
Posted: Fri Sep 17, 2004 11:51 pm Post subject: |
|
|
I am not sure how much this can help, but just in case. since i have no carrier, i guess something must be wrong with initialisation, maybe in the initialisation string.
Here is some information I took out of the windows driver. I am not sure exactly how to interpret it, and if this is standard initialisation string, or if i need to change my config files to take this into account. anyway, here it is:
[GenericAddReg]
HKR, Init, 1,, "AT<cr>"
HKR, Init, 2,, "ATZ<cr>"
HKR, Init, 3,, "AT&F<cr>"
HKR, Init, 4,, "ATE0V1&D2X4\V1\X1&C1S0=0<cr>"
HKR, Monitor, 1,, "ATS0=0<cr>"
HKR, Monitor, 2,, "None"
HKR, Answer, 1,, "ATA<cr>"
HKR, Hangup, 1,, "ATH<cr>"
HKR,, Reset,, "ATZ<cr>"
HKR, Settings, Prefix,, "AT"
HKR, Settings, Terminator,, "<cr>"
HKR, Settings, DialPrefix,, "D"
HKR, Settings, DialSuffix,, ""
HKR, Settings, FlowControl_Hard,, "&K3"
HKR, Settings, FlowControl_Off,, "&K"
HKR, Settings, CallSetupFailTimer,, "s7=<#>"
HKR, Settings, InactivityTimeout,, "s30=<#>"
HKR, Responses, "<cr>", 1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<lf>", 1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>RING<cr><lf>", 1, 08, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO CARRIER<cr><lf>", 1, 04, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>ERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>BUSY<cr><lf>", 1, 06, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT<cr><lf>", 1, 02, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO DIALTONE<cr><lf>", 1, 05, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO ANSWER<cr><lf>", 1, 07, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00 ;OK
HKR, Responses, "1<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00 ;CONNECT
HKR, Responses, "2<cr>", 1, 08, 00, 00,00,00,00, 00,00,00,00 ;RING
HKR, Responses, "3<cr>", 1, 04, 00, 00,00,00,00, 00,00,00,00 ;NO CARRIER
HKR, Responses, "4<cr>", 1, 03, 00, 00,00,00,00, 00,00,00,00 ;ERROR
HKR, Responses, "6<cr>", 1, 05, 00, 00,00,00,00, 00,00,00,00 ; NO DIALTONE
HKR, Responses, "7<cr>", 1, 06, 00, 00,00,00,00, 00,00,00,00 ;BUSY
HKR, Responses, "8<cr>", 1, 07, 00, 00,00,00,00, 00,00,00,00 ; NO ANSWER
HKR, Responses, "19<cr>", 1, 02, 00, 00,C2,01,00, 00,00,00,00 ;CONNECT 115200
HKR, Responses, "29<cr>", 1, 03, 00, 00,00,00,00, 00,00,00,00 ;DELAYED
HKR, Responses, "33<cr>", 1, 02, 00, 00,C2,01,00, 00,00,00,00 ;CONNECT 115200 XX YY
HKR, Responses, "<cr><lf>PAGING CONFIG 0<cr><lf>0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 1<cr><lf>0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 0:0<cr><lf>0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 0:1<cr><lf>0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 1:0<cr><lf>0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 1:1<cr><lf>0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 0<cr><lf><cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 1<cr><lf><cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 0:0<cr><lf><cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 0:1<cr><lf><cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 1:0<cr><lf><cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>PAGING CONFIG 1:1<cr><lf><cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT 115200<cr><lf>", 1, 02, 00, 00,C2,01,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT 115200 / 32kPIAFS<cr><lf>", 1, 02, 00, 00,7D,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT 115200 / 32kPACKET<cr><lf>", 1, 02, 00, 00,7D,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT 115200 / 64kPIAFS BE<cr><lf>", 1, 02, 00, 00,FA,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT 115200 / 64kPIAFS GR<cr><lf>", 1, 02, 00, 00,FA,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT 115200 / 64kAO/DI<cr><lf>", 1, 02, 00, 00,FA,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT 115200 / 128kPACKET<cr><lf>", 1, 02, 00, 00,F4,01,00, 00,00,00,00
Can you understand what this says?
Regarding the diffrent possible connexion speeds, i subscribed to the 128k. |
|
Back to top |
|
 |
falcon_za Tux's lil' helper


Joined: 31 Aug 2004 Posts: 136 Location: Nara - Japan
|
Posted: Sat Sep 18, 2004 12:19 am Post subject: |
|
|
There were some real stuff going wrong, and you helped fixing.
also, knowing about the dump command proved usefull
But the last step which was preventing me to get online was.... a stupid mistake. I forgot the leading 0 in the provider phone number. shame on me.
Anyway, That wasn't the probleme in the first place, since it didn't even try to dial, so this thread really helped me, but that should prevent me from being more carefull when i type in some text. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|