libqmi / Quectel EC21/EC25

Dan Williams dcbw at redhat.com
Wed Oct 12 15:01:09 UTC 2016


On Wed, 2016-10-12 at 12:57 +0200, Sebastian Sjoholm wrote:
> > 
> > 
> > Try this patch and let me know how it does...
> > 
> > Dan
> > 
> > 
> > 
> Hi Dan,
> 
> Tested, and works.

For the EC21/25, what port is used for AT commands?  The question I've
got is whether it should really go to qcserial or option.  qcserial
already has code for the EC20.

Thanks,
Dan

> I did as well remove the  additions in drivers/usb/serial/usb_wwan.c,
> so
> now only the changes in option.c (by you) and in qmi_wwan.c (by
> Björn) are
> active. The kernel still 4.7.7.
> 
> Thanks.
> 
> -Sebastian
> 
> # diff -u drivers/usb/serial/option.c_original
> drivers/usb/serial/option.c
> --- drivers/usb/serial/option.c_original 2016-10-08
> 10:21:35.940236877 +0200
> +++ drivers/usb/serial/option.c 2016-10-12 04:41:47.557307987 +0200
> @@ -233,6 +233,14 @@
>  #define BANDRICH_PRODUCT_1012 0x1012
> 
>  #define QUALCOMM_VENDOR_ID 0x05C6
> +/* These Quectel products use Qualcomm's vendor ID */
> +#define QUECTEL_PRODUCT_UC15 0x9090
> +#define QUECTEL_PRODUCT_UC20 0x9003
> +
> +#define QUECTEL_VENDOR_ID 0x2c7c
> +/* These Quectel products use Quectel's vendor ID */
> +#define QUECTEL_PRODUCT_EC21 0x0121
> +#define QUECTEL_PRODUCT_EC25 0x0125
> 
>  #define CMOTECH_VENDOR_ID 0x16d8
>  #define CMOTECH_PRODUCT_6001 0x6001
> @@ -1159,7 +1167,14 @@
>   { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6613)}, /* Onda H600/ZTE MF330
> */
>   { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x0023)}, /* ONYX 3G device */
>   { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000)}, /* SIMCom SIM5218 */
> - { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9003), /* Quectel UC20 */
> + /* Quectel products using Qualcomm vendor ID */
> + { USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)},
> + { USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20),
> +  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
> + /* Quectel products using Quectel vendor ID */
> + { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC21),
> +  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
> + { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC25),
>    .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
>   { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) },
>   { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CMU_300) },
> #
> 
> *** Quectel EC25
> 
> # ./cmd.py -c raw,ati
> ati
> Quectel
> EC25
> Revision: EC25EFAR02A03M4G
> OK
> # /usr/bin/qmicli -d /dev/cdc-wdm0 -e
> raw-ip
> # /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-start-
> network=lte1.dynamic.com
> --client-no-release-cid
> [/dev/cdc-wdm0] Network started
> Packet data handle: '2266931008'
> [/dev/cdc-wdm0] Client ID not released:
> Service: 'wds'
>    CID: '19'
> # /sbin/udhcpc -q -f -S -n -i wwan0
> udhcpc (v1.22.1) started
> Sending discover...
> Sending select for 10.39.13.222...
> Lease of 10.39.13.222 obtained, lease time 7200
> ip: RTNETLINK answers: File exists
> # /sbin/route -v add -host 172.32.98.1 dev wwan0
> # ping -c 5 172.32.98.1
> PING 172.32.98.1 (172.32.98.1) 56(84) bytes of data.
> 64 bytes from 172.32.98.1: icmp_seq=1 ttl=62 time=258 ms
> 64 bytes from 172.32.98.1: icmp_seq=2 ttl=62 time=29.3 ms
> 64 bytes from 172.32.98.1: icmp_seq=3 ttl=62 time=27.9 ms
> 64 bytes from 172.32.98.1: icmp_seq=4 ttl=62 time=37.1 ms
> 64 bytes from 172.32.98.1: icmp_seq=5 ttl=62 time=35.6 ms
> 
> --- 172.32.98.1 ping statistics ---
> 5 packets transmitted, 5 received, 0% packet loss, time 4005ms
> rtt min/avg/max/mdev = 27.979/77.819/258.981/90.648 ms
> # /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-stop-network=2266931008
> --client-cid=19
> Network cancelled... releasing resources
> [/dev/cdc-wdm0] Network stopped
> #
> 
> *** Quectel EC21
> 
> # ./cmd.py -c raw,ati
> ati
> Quectel
> EC21
> Revision: EC21EFAR02A02M4G
> OK
> # /usr/bin/qmicli -d /dev/cdc-wdm0 -e
> raw-ip
> # /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-start-
> network=lte1.dynamic.com
> --client-no-release-cid
> [/dev/cdc-wdm0] Network started
> Packet data handle: '2275253216'
> [/dev/cdc-wdm0] Client ID not released:
> Service: 'wds'
>    CID: '19'
> # /sbin/udhcpc -q -f -S -n -i wwan0
> udhcpc (v1.22.1) started
> Sending discover...
> Sending select for 10.39.4.240...
> Lease of 10.39.4.240 obtained, lease time 7200
> ip: RTNETLINK answers: File exists
> # /sbin/route -v add -host 172.32.98.1 dev wwan0
> # ping -c 5 172.32.98.1
> PING 172.32.98.1 (172.32.98.1) 56(84) bytes of data.
> 64 bytes from 172.32.98.1: icmp_seq=1 ttl=62 time=191 ms
> 64 bytes from 172.32.98.1: icmp_seq=2 ttl=62 time=36.4 ms
> 64 bytes from 172.32.98.1: icmp_seq=3 ttl=62 time=34.7 ms
> 64 bytes from 172.32.98.1: icmp_seq=4 ttl=62 time=33.6 ms
> 64 bytes from 172.32.98.1: icmp_seq=5 ttl=62 time=31.2 ms
> 
> --- 172.32.98.1 ping statistics ---
> 5 packets transmitted, 5 received, 0% packet loss, time 4005ms
> rtt min/avg/max/mdev = 31.250/65.471/191.237/62.906 ms
> # /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-stop-network=2275253216
> --client-cid=19
> Network cancelled... releasing resources
> [/dev/cdc-wdm0] Network stopped
> #
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libqmi-devel


More information about the libqmi-devel mailing list