Billy Ashmall

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: FTP refusing connection #4724
    Billy Ashmall
    Participant

    eth0 Link encap:Ethernet HWaddr 00:1C:2C:5C:A0:BD
    inet addr:192.168.1.82 Bcast:192.168.1.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:1 dropped:0 overruns:0 frame:0
    TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:322 (322.0 B)
    Interrupt:21 Base address:0x4000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    ppp0 Link encap:Point-to-Point Protocol
    inet addr:10.34.58.140 P-t-P:192.168.111.111 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
    RX packets:3 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:54 (54.0 B) TX bytes:69 (69.0 B)

    and:
    #route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    default * 0.0.0.0 U 0 0 0 ppp0
    192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
    192.168.111.111 * 255.255.255.255 UH 0 0 0 ppp0

    in reply to: http post thru multitech gsm modem with python #4277
    Billy Ashmall
    Participant

    Ok I’m getting much closer. I now actually get connected to the internet and getting an ip. However I seem to not be able to actually access it. Meaning that I can’t ping. Here is the output. Any help is appreciated.

    # pppd call gprs &

    # GSM chat

    Dialing...

    Waiting for CONNECT...

    Connected

    Script /usr/sbin/chat -v -t 90 -f /etc/ppp/chat/gprs finished (pid 651), status = 0x0

    Serial connection established.

    using channel 2

    Using interface ppp0

    Connect: ppp0 <--> /dev/ttyACM0

    Warning - secret file /etc/ppp/pap-secrets has world and/or group access

    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf94bb3b4> <pcomp> <accomp>]

    rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xf94bb3b4> <pcomp> <accomp>]

    rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <magic 0x2eeef2c0> <pcomp> <accomp> <auth pap>]

    sent [LCP ConfAck id=0x1 <mru 1500> <asyncmap 0x0> <magic 0x2eeef2c0> <pcomp> <accomp> <auth pap>]

    Warning - secret file /etc/ppp/pap-secrets has world and/or group access

    sent [PAP AuthReq id=0x1 user="blank" password="blank"]

    rcvd [PAP AuthAck id=0x1 "Welcome!"]

    Remote message: Welcome!

    PAP authentication succeeded

    sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]

    sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]

    rcvd [IPCP ConfReq id=0x1 <addr 192.168.111.111>]

    sent [IPCP ConfAck id=0x1 <addr 192.168.111.111>]

    rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]

    Protocol-Reject for 'Compression Control Protocol' (0x80fd) received

    rcvd [IPCP ConfNak id=0x1 <addr 10.16.146.42> <ms-dns1 63.84.143.13> <ms-dns2 63.84.143.14>]

    sent [IPCP ConfReq id=0x2 <addr 10.16.146.42> <ms-dns1 63.84.143.13> <ms-dns2 63.84.143.14>]

    rcvd [IPCP ConfAck id=0x2 <addr 10.16.146.42> <ms-dns1 63.84.143.13> <ms-dns2 63.84.143.14>]

    local IP address 10.16.146.42

    remote IP address 192.168.111.111

    primary DNS address 63.84.143.13

    secondary DNS address 63.84.143.14

    # ifconfig

    eth0 Link encap:Ethernet HWaddr 00:1C:2C:5C:A0:9C

    UP BROADCAST MULTICAST MTU:1500 Metric:1

    RX packets:0 errors:1 dropped:0 overruns:0 frame:0

    TX packets:1 errors:0 dropped:0 overruns:0 carrier:0

    collisions:0 txqueuelen:1000

    RX bytes:0 (0.0 B) TX bytes:322 (322.0 B)

    Interrupt:21 Base address:0x4000

    lo Link encap:Local Loopback

    inet addr:127.0.0.1 Mask:255.0.0.0

    UP LOOPBACK RUNNING MTU:16436 Metric:1

    RX packets:18 errors:0 dropped:0 overruns:0 frame:0

    TX packets:18 errors:0 dropped:0 overruns:0 carrier:0

    collisions:0 txqueuelen:0

    RX bytes:1296 (1.2 KiB) TX bytes:1296 (1.2 KiB)

    ppp0 Link encap:Point-to-Point Protocol

    inet addr:10.16.146.42 P-t-P:192.168.111.111 Mask:255.255.255.255

    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1

    RX packets:3 errors:0 dropped:0 overruns:0 frame:0

    TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

    collisions:0 txqueuelen:3

    RX bytes:54 (54.0 B) TX bytes:69 (69.0 B)

    # ping http://www.google.com

    ping: bad address 'www.google.com'

    PS. I also tried pinging 74.125.137.113 and it said pinging with 65 bytes and then just hung there until I CTRL c to get out.

    in reply to: http post thru multitech gsm modem with python #4274
    Billy Ashmall
    Participant

    I have made a little headway, but only a little. I have ppp setup and i am now getting a response, but it does not seem to be actually connecting to the internet as I don’t see any data usage on the sim card. It runs thru the process and then terminates the connection almost immediately. Here are the messages that I receive.

    GSM chat

    Dialing…

    Waiting for CONNECT…

    Connected

    Script /usr/sbin/chat -v -t 90 -f /etc/ppp/chat/gprs finished (pid 604), status = 0x0

    Serial connection established.

    using channel 1

    Using interface ppp0

    Connect: ppp0 <–> /dev/ttyACM0

    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x79ecaa15> <pcomp> <accomp>]

    rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x79ecaa15> <pcomp> <accomp>]

    rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp> <auth pap>]

    No auth is possible

    sent [LCP ConfRej id=0x1 <auth pap>]

    rcvd [LCP ConfReq id=0x2 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp>]

    sent [LCP ConfAck id=0x2 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp>]

    [ 1343.220000] PPP BSD Compression module registered

    [ 1343.290000] PPP Deflate Compression module registered

    sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]

    sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]

    rcvd [LCP TermReq id=0x3]

    LCP terminated by peer

    sent [LCP TermAck id=0x3]

    Modem hangup

    Connection terminated.

    Can you point me in the right direction?

    in reply to: http post thru multitech gsm modem with python #4272
    Billy Ashmall
    Participant

    I am using the mtsmc-g2 connected to the SNAP Connect E10 http://www.synapse-wireless.com/e10. I do not seem to have the directories etc/ppp/options, or etc/ppp/peers/gsm. But When I type pppd in the command line I get [340601.690000] PPP generic driver version 2.4.2 and a bunch of garbled stuff. Is there something I need to do further with the ppp stuff first?

    Thanx,

    ~~~BillyZ

    in reply to: http post thru multitech gsm modem with python #4269
    Billy Ashmall
    Participant

    Hi Bryan,

    I am still having trouble. Here is exactly what my code looks like. Can you please tell me what I am doing wrong? The error I get with this code is “socket.error: [Errno 101] Network is unreachable”

    def postData(self, data, postURL, modemAPN):

    self.ser.write('ATZ')

    self.ser.write('AT+CGDCONT=1,"IP","'+modemAPN+'"')

    time.sleep(1)

    print self.ser.readline()

    self.ser.write('ATD*99#')

    self.ser.write('AT#GPRS=1')

    print self.ser.readline()

    time.sleep(10)

    print 'waited 10 seconds'

    print self.ser.readline()

    self.ser.write('AT#GPRS=1')

    print self.ser.readline()

    conn = httplib.HTTPSConnection(postURL)

    print conn

    params = urllib.urlencode({'name': data, 'AnotherTextbox': 'anything'})

    print params

    headers = {"Content-type": "application/x-www-form-urlencoded"}

    print headers

    conn.request("POST", "/mapresources/sensorprocessing/processpost.aspx", params, headers )

    response = conn.getresponse()

    print response

Viewing 5 posts - 1 through 5 (of 5 total)