Setting up the PPP connection for Sixfab HAT

Hello,

I need support! I am trying to establish an internect connection with the 4G Base HAT over PPP.
QMI worked without problems with this tutorial QMI Interface Internet Connection Setup Using Sixfab Shield/HAT
But I want to use the HAT without the USB cable so I am trying to set up PPP. First I am trying to set up PPP with the USB cable, then I want to switch the UART version. But I have already problems with the USB version.
This is the error when I run sudo pon

pi@raspberrypi:~ $ sudo pon
/usr/sbin/pppd: The remote system (3gppp) is required to authenticate itself
/usr/sbin/pppd: but I couldn't find any suitable secret (password) for it to use to do so.

I would be very grateful for any help. All debug info is attached.

Best regards!

Environment

  • Raspberry Pi Model / SBC: Raspberry Pi 4 Model B Rev 1.1
  • Operating System (OS): Debian GNU/Linux 11 (bullseye)
  • HAT: Sixfab 3G - 4G/LTE Base HAT
  • Antenna: LTE Main Diversity GNSS Triple Port u. FL Antenna - 100mm
  • Mini PCIe Module: Quectel EG25/EC25 Mini PCIe 4G/LTE Module
  • SIM: Telekom Germany
  • Other peripherals, if any: none

Service or Script Logs:

Installation script of PPP:

pi@raspberrypi:~ $ git clone https://github.com/sixfab/Sixfab_PPP_Installer.git 
cd Sixfab_PPP_Installer 
chmod +x ppp_install.sh
sudo ./ppp_install.sh
Cloning into 'Sixfab_PPP_Installer'...
remote: Enumerating objects: 524, done.
remote: Counting objects: 100% (75/75), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 524 (delta 45), reused 58 (delta 35), pack-reused 449
Receiving objects: 100% (524/524), 92.52 KiB | 1.42 MiB/s, done.
Resolving deltas: 100% (349/349), done.
Sixfab path is created. 
PPP path is created. 
Please choose your Sixfab Shield/HAT: 
1: GSM/GPRS Shield 
2: 3G, 4G/LTE Base Shield 
3: Cellular IoT App Shield 
4: Cellular IoT HAT 
5: Tracker HAT 
6: 3G/4G Base HAT 
6
You chose 3G/4G Base HAT 
Checking requirements... 
Updating headers... 
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
Copying setup files... 
ppp installing... 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ppp is already the newest version (2.4.9-1+1).
ppp set to manually installed.
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
What is your carrier APN? 
telekom.internet
Your Input is : telekom.internet 
Does your carrier need username and password? [Y/n] 
Y
You chose Y 
Enter username 
telekom
Your Input is : telekom 
Enter password 
tm
Your Input is : tm 
What is your device communication PORT? (ttyS0/ttyUSB3/etc.) 
ttyUSB3
Your input is: ttyUSB3 
Do you want to activate auto connect/reconnect service at R.Pi boot up? [Y/n] 
n
You chose n 
To connect to internet run "sudo pon" and to disconnect run "sudo poff" 
Press ENTER key to reboot

Telekom APN information can be found here: | Telekom Hilfe It seems like telekom uses PAP.

After reboot I type in:

pi@raspberrypi:~ $ sudo pon
/usr/sbin/pppd: The remote system (3gppp) is required to authenticate itself
/usr/sbin/pppd: but I couldn't find any suitable secret (password) for it to use to do so.

Outputs of the following Linux commands:

  • cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
  • uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
  • lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  • lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 3: Dev 4, If 0, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 3: Dev 4, If 1, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 3: Dev 4, If 2, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 3: Dev 4, If 3, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 3: Dev 4, If 4, Class=Vendor Specific Class, Driver=qmi_wwan, 480M
  • usb-devices
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=06.01
S:  Manufacturer=Linux 6.1.21-v8+ xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 4
D:  Ver= 2.10 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2109 ProdID=3431 Rev=04.21
S:  Product=USB2.0 Hub
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=01 Dev#=  4 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2c7c ProdID=0125 Rev=03.18
S:  Manufacturer=Quectel
S:  Product=EG25-G
C:  #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#=0x1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
I:  If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 4
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=06.01
S:  Manufacturer=Linux 6.1.21-v8+ xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
  • dmesg | grep tty
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=DC:A6:32:1E:5F:71 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=e217f87d-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=DE
[    0.000400] printk: console [tty1] enabled
[    1.556694] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[    3.406735] systemd[1]: Created slice system-getty.slice.
[    7.949432] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[    8.036157] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[    8.040143] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[    8.041671] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
  • ls -l /sys/bus/usb-serial/devices
total 0
lrwxrwxrwx 1 root root 0 Dec 22 14:22 ttyUSB0 -> ../../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0
lrwxrwxrwx 1 root root 0 Dec 22 14:22 ttyUSB1 -> ../../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/ttyUSB1
lrwxrwxrwx 1 root root 0 Dec 22 14:22 ttyUSB2 -> ../../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.2/ttyUSB2
lrwxrwxrwx 1 root root 0 Dec 22 14:22 ttyUSB3 -> ../../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB3
  • ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Dec 22 14:10 usb-Quectel_EG25-G-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 Dec 22 14:10 usb-Quectel_EG25-G-if01-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 Dec 22 14:10 usb-Quectel_EG25-G-if02-port0 -> ../../ttyUSB2
lrwxrwxrwx 1 root root 13 Dec 22 14:10 usb-Quectel_EG25-G-if03-port0 -> ../../ttyUSB3

  • Responses to all AT commands listed below:
atcom AT     
atcom ATI       
atcom AT+QGMR   
atcom AT+CPIN?  
atcom AT+CPAS   
atcom AT+CFUN?  
atcom AT+COPS?  
atcom AT+QCFG=\"usbnet\"        
atcom AT+QCFG=\"band\"  
atcom AT+CREG?  
atcom AT+CGDCONT?       
atcom AT+CSQ    
atcom AT+CGATT? 
atcom AT+QCFG=\"nwscanseq\"     
atcom AT+QCFG=\"nwscanmode\"    
atcom AT+QCFG=\"iotopmode\"     
atcom AT+QCSQ   
atcom AT+QNWINFO

OK


Quectel
EG25
Revision: EG25GGBR07A08M2G

OK


EG25GGBR07A08M2G_30.200.30.200

OK


+CPIN: READY

OK


+CPAS: 0

OK


+CFUN: 1

OK


+COPS: 0,0,"Telekom.de Telekom.de",0

OK


+QCFG: "usbnet",0

OK


+QCFG: "band",0xbff,0x1e00b0e18df,0x0

OK


+CREG: 0,1

OK


+CGDCONT: 1,"IP","telekom.internet","0.0.0.0",0,0,0,0
+CGDCONT: 2,"IPV4V6","INTERNET.TELEKOM","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 3,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 4,"IPV4V6","hos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0

OK


+CSQ: 31,99

OK


+CGATT: 1

OK


+QCFG: "nwscanseq",0403010205

OK


+QCFG: "nwscanmode",0

OK


ERROR


+QCSQ: "GSM",48

OK


+QNWINFO: "EDGE","26201","GSM 900",70

OK

Hi,

Can you share the contents of your provider file(/etc/ppp/peers/provider) and pap-secrets in /etc/ppp/?

For PAP, the following document may be helpful:

https://tldp.org/HOWTO/PPP-HOWTO/x1034.html