MBPL - sampleApps - how to Set/Report PDP connection authentication parameters

Hi
In the UK we have a lot of users who require PAP or CHAP authentication.

Is there a way to use the sample app to replicate the AT+CGAUTH / AT$QCPDPP commands?

Many thanks

John

Have you tried option 7 of SampleApps\lite-qmi-connection-manager ?


Please select one of the following options or press <Enter> to exit:

1. Start data session

2. Start Multiple PDN data session

3. Stop the currently active data session

4. Display all the profiles stored on the device

5. Display the settings for a particular profile stored on the device

6. Create a profile on the device

7. Modify the settings of an existing profile stored on the device

8. Delete a profile stored on the device

9. Enable QOS Event

10. Disable QOS Event

11. Request QOS Expaded

12. Get QOS Information

13. Get Packet Statistics

BTW, you might also send AT command via /dev/ttyUSB2 inside the application

Hi Jyi

Great answer - many thanks.

For anyone else trying this - the following is an example of configuring for the UK EE network using context 5 on an RC7602 module.

$ sudo ./lite-qmi-connection-managerrpi

lite-qmi-connection-manager v1.0.2108.1

Open transport "/dev/cdc-wdm0" in QMI mode
ModelID: RC7620
HomeNetwork: 3 UK
Network Selection Preference: auto
SessionStatus (0:ipv4): Disconnected
SessionStatus (1:ipv6): Disconnected
SessionStatus (2:ipv4): Disconnected
SessionStatus (3:ipv6): Disconnected

Please select one of the following options or press <Enter> to exit:
1.      Start data session
2.      Start Multiple PDN data session
3.      Stop the currently active data session
4.      Display all the profiles stored on the device
5.      Display the settings for a particular profile stored on the device
6.      Create a profile on the device
7.      Modify the settings of an existing profile stored on the device
8.      Delete a profile stored on the device
9.      Scan available networks
10.     Enable QOS Event
11.     Disable QOS Event
12.     Request QOS Expaded
13.     Get QOS Information
14.     QOS Indication Register
15.     Get Packet Statistics
16.     Get Current Channel Rate
Option : 7

ID PDPType IPAddress           PrimaryDNS          SecondaryDNS        Auth ProfileName         APNName             UserName
1  0       0.0.0.0             0.0.0.0             0.0.0.0             0        eeb              everywhere
5  0       0.0.0.0             0.0.0.0             0.0.0.0             0                         three.co.uk

Please enter a profile id (1-42) (up to 2 Characters), or press <Enter> to exit: 5

Please enter PDP Type value( 0 - IPv4, 1 - PPP, 2 - IPV6, 3 - IPV4V6 ) (up to 1 Characters), or press <Enter> to exit: 0

Please enter IP Address in xxx.xxx.xxx.xxx format (up to 127 Characters), or press <Enter> to leave the field as blank:

Please enter PrimaryDNS Address Address in xxx.xxx.xxx.xxx format (up to 127 Characters), or press <Enter> to leave the field as blank:

Please enter SecondaryDNS Address Address in xxx.xxx.xxx.xxx format (up to 127 Characters), or press <Enter> to leave the field as blank:

Please enter Authentication value( 0 - None, 1 - PAP, 2 - CHAP, 3 - PAP/CHAP ) (up to 1 Characters), or press <Enter> to leave the field as blank: 1

Please enter Profile Name (up to 16 Characters), or press <Enter> to leave the field as blank: ee

Please enter APN Name (up to 103 Characters), or press <Enter> to leave the field as blank: everywhere

Please enter User Name (up to 128 Characters), or press <Enter> to leave the field as blank: eesecure

Please enter Password (up to 127 Characters), or press <Enter> to leave the field as blank: secure
Profile Settings updated successfully for Profile ID: 5

ID PDPType IPAddress           PrimaryDNS          SecondaryDNS        Auth ProfileName         APNName             UserName
1  0       0.0.0.0             0.0.0.0             0.0.0.0             0    eeb                 everywhere
5  0       0.0.0.0             0.0.0.0             0.0.0.0             1    ee                  everywhere          eesecure

After connection using $ sudo ./lite-qmi-connection-managerrpi

$ ifconfig

...

wwan0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 10.103.253.129  netmask 255.255.255.252  destination 10.103.253.129
        inet6 fe80::36b8:7f58:d3b:248c  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 4  bytes 336 (336.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8  bytes 528 (528.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0