Home Page Forums Raspberry Pi Shields Slow download speeds

This topic contains 3 replies, has 2 voices, and was last updated by  Saeed 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37065

    scott.walker
    Participant

    Hello,

    I have setup my device as per your tutorials. Have not had any major problems but the speeds are no where near expected. 4-7 MB download on average.
    When I run the same on my Samsung device (same location) using the same APN I am averaging 70MB download.
    Is there some sort of bottle neck between the pi and the hat?

    I am using a Raspberry Pi 3G-4G/LTE Base Shield V2 with EC25 Mini PCle 4G/LTE Module

    [email protected]:~ $ uname -a
    Linux raspberrypi 4.19.27-v7+ #1206 SMP Wed Mar 6 14:40:18 GMT 2019 armv7l GNU/Linux
    [email protected]:~ $ date
    Fri Mar 15 17:54:04 EDT 2019
    [email protected]:~ $ ifconfig -a
    eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    ether b8:27:eb:3c:66:1a txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Local Loopback)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.1.69 netmask 255.255.255.0 broadcast 192.168.1.255
    inet6 fe80::f1d2:e49b:af4d:4ef5 prefixlen 64 scopeid 0x20<link>
    ether b8:27:eb:69:33:4f txqueuelen 1000 (Ethernet)
    RX packets 8434 bytes 6838144 (6.5 MiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 7722 bytes 2989559 (2.8 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    wwan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 169.254.70.1 netmask 255.255.0.0 broadcast 169.254.255.255
    inet6 fe80::f23d:5001:ece5:607c prefixlen 64 scopeid 0x20<link>
    ether 12:47:f4:56:86:cd txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 54 bytes 14554 (14.2 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    [email protected]:~ $ sudo pon
    pppd options in effect:
    debug # (from /etc/ppp/peers/provider)
    updetach # (from /etc/ppp/peers/provider)
    dump # (from /etc/ppp/peers/provider)
    noauth # (from /etc/ppp/peers/provider)
    remotename 3gppp # (from /etc/ppp/peers/provider)
    /dev/ttyUSB3 # (from /etc/ppp/peers/provider)
    115200 # (from /etc/ppp/peers/provider)
    lock # (from /etc/ppp/peers/provider)
    connect chat -s -v -f /etc/chatscripts/chat-connect -T isp.telus.com # (from /etc/ppp/peers/provider)
    disconnect chat -s -v -f /etc/chatscripts/chat-disconnect # (from /etc/ppp/peers/provider)
    nocrtscts # (from /etc/ppp/peers/provider)
    modem # (from /etc/ppp/peers/provider)
    asyncmap 0 # (from /etc/ppp/options)
    lcp-echo-failure 4 # (from /etc/ppp/options)
    lcp-echo-interval 30 # (from /etc/ppp/options)
    hide-password # (from /etc/ppp/peers/provider)
    novj # (from /etc/ppp/peers/provider)
    novjccomp # (from /etc/ppp/peers/provider)
    ipcp-accept-local # (from /etc/ppp/peers/provider)
    ipcp-accept-remote # (from /etc/ppp/peers/provider)
    ipparam 3gppp # (from /etc/ppp/peers/provider)
    noipdefault # (from /etc/ppp/peers/provider)
    ipcp-max-failure 30 # (from /etc/ppp/peers/provider)
    defaultroute # (from /etc/ppp/peers/provider)
    usepeerdns # (from /etc/ppp/peers/provider)
    noccp # (from /etc/ppp/peers/provider)
    noipx # (from /etc/ppp/options)
    abort on (BUSY)
    abort on (NO CARRIER)
    abort on (NO DIALTONE)
    abort on (ERROR)
    abort on (NO ANSWER)
    timeout set to 30 seconds
    send (AT^M)
    expect (OK)
    ^M
    OK
    — got it

    send (ATE0^M)
    expect (OK)
    ^M
    ^M
    OK
    — got it

    send (ATI;+CSUB;+CSQ;+COPS?;+CGREG?;&D2^M)
    expect (OK)
    ^M
    ^M
    Quectel^M
    EC25^M
    Revision: EC25AFAR05A04M4G^M
    ^M
    SubEdition: V06^M
    ^M
    +CSQ: 15,99^M
    ^M
    +COPS: 0,0,”TELUS”,7^M
    ^M
    +CGREG: 0,1^M
    ^M
    OK
    — got it

    send (AT+CGDCONT=1,”IP”,”isp.telus.com”,,0,0^M)
    expect (OK)
    ^M
    ^M
    OK
    — got it

    send (ATD*99#^M)
    expect (CONNECT)
    ^M
    ^M
    CONNECT
    — got it

    Script chat -s -v -f /etc/chatscripts/chat-connect -T isp.telus.com finished (pid 1790), status = 0x0
    Serial connection established.
    using channel 3
    Using interface ppp0
    Connect: ppp0 <–> /dev/ttyUSB3
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4e5eaa8f> <pcomp> <accomp>]
    rcvd [LCP ConfReq id=0x6 <asyncmap 0x0> <auth chap MD5> <magic 0xc3666866> <pcomp> <accomp>]
    No auth is possible
    sent [LCP ConfRej id=0x6 <auth chap MD5>]
    rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4e5eaa8f> <pcomp> <accomp>]
    rcvd [LCP ConfReq id=0x7 <asyncmap 0x0> <magic 0xc3666866> <pcomp> <accomp>]
    sent [LCP ConfAck id=0x7 <asyncmap 0x0> <magic 0xc3666866> <pcomp> <accomp>]
    sent [LCP EchoReq id=0x0 magic=0x4e5eaa8f]
    sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    rcvd [LCP DiscReq id=0x8 magic=0xc3666866]
    rcvd [LCP EchoRep id=0x0 magic=0xc3666866 4e 5e aa 8f]
    rcvd [IPCP ConfReq id=0x4]
    sent [IPCP ConfNak id=0x4 <addr 0.0.0.0>]
    rcvd [IPCP ConfNak id=0x1 <addr 10.46.247.184> <ms-dns1 75.153.171.39> <ms-dns2 75.153.171.40>]
    sent [IPCP ConfReq id=0x2 <addr 10.46.247.184> <ms-dns1 75.153.171.39> <ms-dns2 75.153.171.40>]
    rcvd [IPCP ConfReq id=0x5]
    sent [IPCP ConfAck id=0x5]
    rcvd [IPCP ConfAck id=0x2 <addr 10.46.247.184> <ms-dns1 75.153.171.39> <ms-dns2 75.153.171.40>]
    Could not determine remote IP address: defaulting to 10.64.64.64
    not replacing default route to wlan0 [192.168.1.1]
    local IP address 10.46.247.184
    remote IP address 10.64.64.64
    primary DNS address 75.153.171.39
    secondary DNS address 75.153.171.40
    [email protected]:~ $ netstat -rn
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
    10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
    169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wwan0
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
    [email protected]:~ $ sudo route del default
    [email protected]:~ $
    [email protected]:~ $ sudo route add default ppp0
    [email protected]:~ $ netstat -rn
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
    0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
    10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
    169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wwan0
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
    [email protected]:~ $ ifconfig ppp0
    ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
    inet 10.46.247.184 netmask 255.255.255.255 destination 10.64.64.64
    ppp txqueuelen 3 (Point-to-Point Protocol)
    RX packets 4 bytes 52 (52.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 4 bytes 58 (58.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    [email protected]:~ $ ./speedtest-cli
    Retrieving speedtest.net configuration…
    Testing from Telus Communications (209.171.88.184)…
    Retrieving speedtest.net server list…
    Selecting best server based on ping…
    Hosted by TELUS (Toronto, ON) [12.83 km]: 88.972 ms
    Testing download speed……………………………………………………………………..
    Download: 5.22 Mbit/s
    Testing upload speed……………………………………………………………………………………
    Upload: 1.83 Mbit/s
    [email protected]:~ $ sudo busybox microcom /dev/ttyUSB2

    OK
    ati
    Quectel
    EC25
    Revision: EC25AFAR05A04M4G

    OK
    AT+QNWINFO
    +QNWINFO: “FDD LTE”,”302220″,”LTE BAND 4″,2325

    OK
    AT+QSPN
    +QSPN: “TELUS”,”TELUS”,””,0,”302220″

    OK
    AT+CSQ
    +CSQ: 15,99

    OK
    [email protected]:~ $

    #37084

    Saeed
    Moderator

    among the connection types, PPP is slower than QMI. You can try QMI interface.

    #37094

    scott.walker
    Participant

    Hi Saeed,

    Thanks for the reply. I have actaully found a solution, accidently, to my problem but it really confuses me even more. I ran though your hotspot tutorial and got that working and noticed my speeds were up to expected. I reloaded my backup image to try to find out where it started to work. Speeds were slow again but one of the first commands brought the speeds up. “sudo apt-get install dnsmasq hostapd” jumped the speeds up. Doing a remove brought the speeds down. I thought I would add this incase someone comes along with a similar problem.

    #37201

    Saeed
    Moderator

    Thank you for sharing your experience.

    I will test it in your way too.

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

You must be logged in to reply to this topic.