Portál AbcLinuxu, 6. května 2025 09:17
SAY "\nDisconnect...\n" "" "\K" "" "+++ATH" SAY "\nDisconnected.\n"Dalsi script je GC75 (nazev souboru GC75)
#!/bin/sh # # # The files have been made by the Script Generator program, which made by Gabor Pinter (pinter.gabor@linuxuser.hu) for the GPRS Easy Connect program. # The generated files is came and usable under and GNU General Public License! # # 14-3-2004 23:03 # #Enables connection debugging facilities. debug #Port /dev/ttyS0 #Speed 115200 #Use hardware flow control (i.e. RTS/CTS) to control the flow of data on the serial port. crtscts #Use the modem control lines. modem #Specifies that pppd should create a UUCP-style lock file for the serial device to ensure exclusive access to the device. lock #With this option, pppd will accept all control characters from the peer. receive-all #Disable protocol field compression negotiation in both the receive and the transmit direction. nopcomp #Disable Address/Control compression in both directions (send and receive). noaccomp #Disable magic number negotiation. With this option, pppd cannot detect a looped-back line. nomagic #Disable Compression Control Protocol (CCP) negotiation. noccp #Disable Van Jacobson style TCP/IP header compression in both the transmit and the receive direction. novj #Disable the connection-ID compression option in Van Jacobson style TCP/IP header compression. novjccomp #Don't detach from the controlling terminal. nodetach #Disables the default behaviour when no local IP address is specified, which is to determine (if possible) the local IP address from the hostname. noipdefault #This option causes pppd to create such a default route when IPCP comes up, and delete it when the link is terminated. defaultroute #Ask the peer for up to 2 DNS server addresses. #usepeerdns #Do not require the peer to authenticate itself. noauth #Connect script. connect '/usr/sbin/chat -e -f /opt/gprs/GC75-connect -v' #Disconnect script. disconnect '/usr/sbin/chat -e -f /opt/gprs/disconnect -v'No a posledni je skript GC75-connect (nazev souboru GC75-connect)
# # The files have been made by the Script Generator program, which made by Gabor Pinter (pinter.gabor@linuxuser.hu) for the GPRS Easy Connect program. # The generated files is came and usable under and GNU General Public License! # # 14-3-2004 23:03 # '' AT TIMEOUT 240 #OK ATE0 OK ATX3 #OK ATV1 #OK AT+CGMI OK AT+CFUN=1,1 #OK 'AT+CGDCONT=2,"IP","internet"' OK 'AT+CGDCONT=1,"IP","internet"' OK ATDT*99***1# TIMEOUT 22 CONNECT ""Tak snad jsem to nezvoral a pochopite to z toho
cardmnr (pcmcia-cs) hlasi, ze nenasiel nic
cardmgr[8236]: no pcmcia driver in /proc/devices
Skusil som este spustit na Knopix (3.3) s jadrom 2.4.22 a ten kartu nasiel aj vytvoril zariadenie:
ttyS02 at port 0x03e8 (irq = 3) is a 16550A
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 20:50:29 Oct 3 2003
usb-uhci.c: High bandwidth mode enabled
Ked som vsak spustil "pppd file gc85" (gc85 je identicky s gc75, iba premenovany), vysledok bol nasledovny:
OK
OK
OK
OK
OK
+CME ERROR: 3
Connect script failed.
Viete mi niekto poradit, ako ozivit tuto kartu pod MDK (predpodkladam, ze je potrebne iba spravne nastavit niektore moduly...)
pppd file Script-JmenoModemu &
AT+CPIN="1234"
Serial connection established. using channel 6 Using interface ppp0 Connect: ppp0 <--> /dev/ttyS0 sent [LCP ConfReq id=0x1 asyncmap 0x0] rcvd [LCP ConfAck id=0x1 asyncmap 0x0] rcvd [LCP ConfReq id=0x8a mru 1500 asyncmap 0x0 auth pap magic 0xc7bf9 pcomp accomp] sent [LCP ConfRej id=0x8a magic 0xc7bf9 pcomp accomp] rcvd [LCP ConfReq id=0x8b mru 1500 asyncmap 0x0 auth pap] sent [LCP ConfAck id=0x8b mru 1500 asyncmap 0x0 auth pap] sent [PAP AuthReq id=0x1 user="eurotel" password=hidden] rcvd [PAP AuthAck id=0x1 "PAP access OK"] Remote message: PAP access OK PAP authentication succeeded kernel does not support PPP filtering sent [IPCP ConfReq id=0x1 addr 0.0.0.0] rcvd [IPCP ConfReq id=0x8a addr 127.0.0.2 ms-dns1 160.218.43.200 ms-dns3 160.218.10.200] sent [IPCP ConfRej id=0x8a ms-dns1 160.218.43.200 ms-dns3 160.218.10.200] rcvd [IPCP ConfNak id=0x1 addr 10.177.15.146] sent [IPCP ConfReq id=0x2 addr 10.177.15.146] rcvd [IPCP ConfReq id=0x8b addr 127.0.0.2] sent [IPCP ConfAck id=0x8b addr 127.0.0.2] rcvd [IPCP ConfAck id=0x2 addr 10.177.15.146] Peer is not authorized to use remote address 127.0.0.2 Connect time 0.1 minutes. Sent 46 bytes, received 52 bytes. sent [IPCP TermReq id=0x3 "Unauthorized remote IP address"] rcvd [IPCP TermAck id=0x3] sent [LCP TermReq id=0x2 "No network protocols running"] rcvd [LCP TermAck id=0x2] Connection terminated.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.