Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
234
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---------------------wvdial.conf----------------------------------
  2.  
  3. [Dialer Defaults]
  4. Init1= ATZ
  5. Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  6. Init3 = AT+CGDCONT=1,"IP","apnname"
  7. Modem Type = Analog Modem
  8. ISDN = 0
  9. Modem = /dev/ttyAMA0
  10. Baud = 115200
  11. Phone = *99#
  12. Username = { }
  13. Password = { }
  14. Stupid Mode = 1
  15. ISDN = 0
  16. New PPPD = yes
  17. FlowControl=Hardware(CRTSCTS)
  18. Auto DNS = 1
  19. Carrier Check = off
  20.  
  21. ----------- output of "sudo wvdial"-----------------------------------
  22.  
  23. --> WvDial: Internet dialer version 1.61
  24. --> Initializing modem.
  25. --> Sending: ATZ
  26. ATZ
  27. OK
  28. --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  29. ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  30. OK
  31. --> Sending: AT+CGDCONT=1,"IP","apnname"
  32. AT+CGDCONT=1,"IP","apnname"
  33. OK
  34. --> Modem initialized.
  35. --> Sending: ATDT*99#
  36. --> Waiting for carrier.
  37. ATDT*99#
  38. CONNECT 3600000
  39. --> Carrier detected. Starting PPP immediately.
  40. --> Starting pppd
  41. --> Pid of pppd: 28116
  42.  
  43.  
  44. -----------output of "ifconfig" after running wvdial-----------
  45.  
  46. eth0 Link encap:Ethernet HWaddr xxxxxxxxxxxxxx
  47. inet addr:10.1.1.13 Bcast:10.1.1.255 Mask:255.255.255.0
  48. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  49. RX packets:22576 errors:0 dropped:1 overruns:0 frame:0
  50. TX packets:18649 errors:0 dropped:0 overruns:0 carrier:0
  51. collisions:0 txqueuelen:1000
  52. RX bytes:1506155 (1.4 MiB) TX bytes:3495168 (3.3 MiB)
  53.  
  54. lo Link encap:Local Loopback
  55. inet addr:127.0.0.1 Mask:255.0.0.0
  56. UP LOOPBACK RUNNING MTU:65536 Metric:1
  57. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  58. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  59. collisions:0 txqueuelen:0
  60. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  61.  
  62.  
  63. ---------------------------------------------------------------------------
  64. according to my ISP, no username/password are required to connect over 3g
  65. so I added the following:
  66.  
  67. --------------what I added to /etc/ppp/pap-secrets--------------------------
  68. # * password
  69. connectionname * " "
  70.  
  71. ---------------what I added to /etc/ppp/chap-secrets
  72.  
  73. # Secrets for authentication using CHAP
  74. # client server secret IP addresses
  75. myskinny * " " *
  76.  
  77. ------------------------------------------------------------------
  78. some debugging/testing I've tried;
  79.  
  80. -Changed the apn name to something that's definitely invalid. wvdial still gives the same output ie dials in, shows CONNECT 3600000 and says that pppd is started. So somehow the apn isn't even being used
  81.  
  82. -tried using sakis3g script interactively
  83. sakis insists on a password and username for the apn, even though my provider doesn't use one. Entering nothing causes sakis to abort. So I enter a single space for username and for password.
  84.  
  85. --------------------------- sudo ./sakis3g --interactive --debug----------------------------
  86.  
  87. [28225] [18:01:09] Asking user to enter: CUSTOM_APN Please enter APN Enter correct APN, or leave empty to abort. Contact your operator if unsure OK Cancel
  88. [28225] [18:01:09] Variable CUSTOM_APN is not set already.
  89. [28225] [18:01:09] Prompting user to type variable CUSTOM_APN.
  90. [28225] [18:01:14] User pressed button 0 while typed: "myapn"
  91. [28225] [18:01:14] User pressed OK.
  92. [28225] [18:01:14] User typed: myapn
  93. [28225] [18:01:14] Considering selection: 0
  94. [28225] [18:01:14] New value is CUSTOM_APN="myapn". Returning 0.
  95. [28225] [18:01:14] Asking user to enter: APN_USER APN: myapn Enter username required by APN, or leave empty to abort. Contact your operator if unsure. This information, along with APN password, is usually easily retrieved through a fast call to customer support OK Cancel
  96. [28225] [18:01:14] Asking user to enter: APN_USER APN: myapn Enter username required by APN, or leave empty to abort. Contact your operator if unsure. This information, along with APN password, is usually easily retrieved through a fast call to customer support OK Cancel
  97. [28225] [18:01:14] Variable APN_USER is not set already.
  98. [28225] [18:01:15] Prompting user to type variable APN_USER.
  99. [28225] [18:01:17] User pressed button 0 while typed: " "
  100. [28225] [18:01:17] User pressed OK.
  101. [28225] [18:01:17] User typed:
  102. [28225] [18:01:17] Considering selection: 0
  103. [28225] [18:01:17] New value is APN_USER=" ". Returning 0.
  104. [28225] [18:01:17] Asking user to enter: APN_PASS APN: myapn Enter password required by APN, or leave empty to abort. Contact your operator if unsure. This information is usually easily retrieved through a fast call to customer support OK Cancel
  105. [28225] [18:01:17] Asking user to enter: APN_PASS APN: myapn Enter password required by APN, or leave empty to abort. Contact your operator if unsure. This information is usually easily retrieved through a fast call to customer support OK Cancel
  106. [28225] [18:01:17] Variable APN_PASS is not set already.
  107. [28225] [18:01:17] Prompting user to type variable APN_PASS.
  108. [28225] [18:01:18] User pressed button 0 while typed: " "
  109. [28225] [18:01:18] User pressed OK.
  110. [28225] [18:01:18] User typed:
  111. [28225] [18:01:18] Considering selection: 0
  112. [28225] [18:01:18] New value is APN_PASS=" ". Returning 0.
  113. [28225] [18:01:18] Command "DIAL" refers to AT commands: ATD*99#
  114. [28225] [18:01:19] Loaded default value for BAUD: 460800
  115. [28225] [18:01:19] Config file that will be used is: "/tmp/wvdial.tmp.28225".
  116. /-------------------------------------------------------------------------------
  117. [28225] [18:01:19] Will now display contents of: \'/tmp/wvdial.tmp.28225\'
  118. /-------------------------------------------------------------------------------
  119. [Dialer Defaults]
  120. Modem = /dev/ttyAMA0
  121. Modem Type = Analog Modem
  122. ISDN = 0
  123. Baud = 460800
  124. Dial Attempts = 3
  125. Username =
  126. Password =
  127. Phone = *99#
  128. Auto Reconnect = off
  129. Stupid Mode = 1
  130. Init1 = ATZ
  131. \-------------------------------------------------------------------------------
  132. -rw------- 1 root root 194 Dec 19 18:01 /tmp/wvdial.tmp.28225
  133. \-------------------------------------------------------------------------------
  134. [28225] [18:01:19] Connection command that will be used is: /usr/bin/setsid /usr/bin/wvdial --config "/tmp/wvdial.tmp.28225"
  135. [28225] [18:01:19] Verbosing: 28% Initializing modem
  136. Initializing modem [28225] [18:01:19] Using default INITIALIZE.
  137. [28225] [18:01:19] Command "INITIALIZE" refers to AT commands: ATZ OK 'AT&F' OK 'ATQ0 V1 E1' OK 'AT&D2 &C1' OK AT+FCLASS=0 OK ATS0=0 OK 'AT+CGDCONT=1,"IP","myapn"' OK
  138. [28225] [18:01:19] Will send INITIALIZE commands to tty /dev/ttyAMA0: "" '\pAT' OK ATZ OK 'AT&F' OK 'ATQ0 V1 E1' OK 'AT&D2 &C1' OK AT+FCLASS=0 OK ATS0=0 OK 'AT+CGDCONT=1,"IP","myapn"' OK '\pAT' OK
  139. [28225] [18:01:19] We are root already. Proceeding.
  140. [28225] [18:01:19] Device /dev/ttyAMA0 is not busy.
  141. [28225] [18:01:22] Got response from tty:
  142. AT
  143. OK
  144. ATZ
  145. OK
  146. AT&F
  147. OK
  148. [28225] [18:01:22] Unknown command "STAGE7".
  149. [28225] [18:01:22] Unknown command "STAGE8".
  150. [28225] [18:01:22] We are root already. Proceeding.
  151. /-------------------------------------------------------------------------------
  152. [28225] [18:01:22] Will now run command: \'/bin/rm -f "/tmp/sakis3g.3gnet"\'
  153. /-------------------------------------------------------------------------------
  154. \-------------------------------------------------------------------------------
  155. [28225] [18:01:22] Command returned 0.
  156. \-------------------------------------------------------------------------------
  157. [28225] [18:01:22] We are root already. Proceeding.
  158. [28225] [18:01:22] Device /dev/ttyAMA0 is not busy.
  159. [28225] [18:01:22] Verbosing: 35% Connecting
  160. Connecting --> WvDial: Internet dialer version 1.61
  161. [28225] [18:01:23] PID 30702 is still running.
  162. --> Initializing modem.
  163. [28225] [18:01:23] Located "netstat" within PATH (/bin/netstat).
  164. [28225] [18:01:23] Waiting for interface to go up (0 seconds passed).
  165. --> Sending: ATZ
  166. [28225] [18:01:24] PID 30702 is still running.
  167. [28225] [18:01:24] Waiting for interface to go up (1 seconds passed).
  168. [28225] [18:01:25] PID 30702 is still running.
  169. [28225] [18:01:25] Waiting for interface to go up (2 seconds passed).
  170. [28225] [18:01:26] PID 30702 is still running.
  171. [28225] [18:01:26] Waiting for interface to go up (3 seconds passed).
  172. [28225] [18:01:27] PID 30702 is still running.
  173. [28225] [18:01:28] Waiting for interface to go up (4 seconds passed).
  174. --> Sending: ATQ0
  175. --> Re-Sending: ATZ
  176. [28225] [18:01:29] PID 30702 is still running.
  177. [28225] [18:01:29] Waiting for interface to go up (5 seconds passed).
  178. [28225] [18:01:30] PID 30702 is still running.
  179. [28225] [18:01:30] Waiting for interface to go up (6 seconds passed).
  180. [28225] [18:01:31] PID 30702 is still running.
  181. [28225] [18:01:31] Waiting for interface to go up (7 seconds passed).
  182. [28225] [18:01:32] PID 30702 is still running.
  183. [28225] [18:01:32] Waiting for interface to go up (8 seconds passed).
  184. --> Modem not responding.
  185. [28225] [18:01:33] PID 30702 is not running any more.
  186. [28225] [18:01:33] PID 30702 is not running any more.
  187. [28225] [18:01:34] We are root already. Proceeding.
  188. /-------------------------------------------------------------------------------
  189. [28225] [18:01:34] Will now run command: \'/bin/rm -f "/tmp/sakis3g.3gnet"\'
  190. /-------------------------------------------------------------------------------
  191. \-------------------------------------------------------------------------------
  192. [28225] [18:01:34] Command returned 0.
  193. \-------------------------------------------------------------------------------
  194. [28225] [18:01:34] We are root already. Proceeding.
  195. [28225] [18:01:34] Device /dev/ttyAMA0 is not busy.
  196. [28225] [18:01:34] Verbosing: 42% Connecting (second attempt)
  197. Connecting (second attempt) --> WvDial: Internet dialer version 1.61
  198. [28225] [18:01:34] PID 30997 is still running.
  199. --> Initializing modem.
  200. [28225] [18:01:34] Waiting for interface to go up (0 seconds passed).
  201. --> Sending: ATZ
  202. [28225] [18:01:36] PID 30997 is still running.
  203. [28225] [18:01:36] Waiting for interface to go up (1 seconds passed).
  204. [28225] [18:01:37] PID 30997 is still running.
  205. [28225] [18:01:37] Waiting for interface to go up (2 seconds passed).
  206. [28225] [18:01:38] PID 30997 is still running.
  207. [28225] [18:01:38] Waiting for interface to go up (3 seconds passed).
  208. [28225] [18:01:39] PID 30997 is still running.
  209. [28225] [18:01:39] Waiting for interface to go up (4 seconds passed).
  210. --> Sending: ATQ0
  211. --> Re-Sending: ATZ
  212. [28225] [18:01:40] PID 30997 is still running.
  213. [28225] [18:01:40] Waiting for interface to go up (5 seconds passed).
  214. [28225] [18:01:42] PID 30997 is still running.
  215. [28225] [18:01:42] Waiting for interface to go up (6 seconds passed).
  216. [28225] [18:01:43] PID 30997 is still running.
  217. [28225] [18:01:43] Waiting for interface to go up (7 seconds passed).
  218. [28225] [18:01:44] PID 30997 is still running.
  219. [28225] [18:01:44] Waiting for interface to go up (8 seconds passed).
  220. --> Modem not responding.
  221. [28225] [18:01:45] PID 30997 is not running any more.
  222. [28225] [18:01:45] PID 30997 is not running any more.
  223. [28225] [18:01:45] Failed to connect.
  224. [28225] [18:01:45] Error: Failed to connect.
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement