Hi,
I’m trying to get GPS values from an AutoPi motherboard with Quectel EC21 modem. I’m running with a RPI 3 B+, fresh Raspbian install (without autoPi software):
**pi@raspberrypi:~ $ lsusb**
Bus 001 Device 116: ID 2c7c:0121
Bus 001 Device 004: ID 0000:0000
Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
**pi@raspberrypi:~ $ ls /dev/ttyU***
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3
**sudo nano /etc/udev/rules.d/2c7c\:0121.rules**
ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", KERNELS=="1-1.2.3", RUN+="/bin/sh -c 'echo 1 > /sys/bus/usb/devices/1-1.2.3/bConfigurationValue'"
**dmesg**
[125402.340745] usb 1-1.2.3: USB disconnect, device number 85
[125402.341390] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[125402.341477] option 1-1.2.3:1.0: device disconnected
[125402.342182] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[125402.342283] option 1-1.2.3:1.1: device disconnected
[125402.342956] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[125402.343048] option 1-1.2.3:1.2: device disconnected
[125402.344088] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[125402.344205] option 1-1.2.3:1.3: device disconnected
[125402.344688] qmi_wwan 1-1.2.3:1.4 wwan0: unregister 'qmi_wwan' usb-3f980000.usb-1.2.3, WWAN/QMI device
[125416.015951] usb 1-1.2.3: new high-speed USB device number 86 using dwc_otg
[125416.156003] usb 1-1.2.3: New USB device found, idVendor=2c7c, idProduct=0121
[125416.156017] usb 1-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[125416.156027] usb 1-1.2.3: Product: Android
[125416.156035] usb 1-1.2.3: Manufacturer: Android
[125416.156486] usb 1-1.2.3: rejected 1 configuration due to insufficient available bus power
[125416.156497] usb 1-1.2.3: no configuration chosen from 1 choice
[125416.156506] usb 1-1.2.3: No support over 100mA
[125416.188210] usb 1-1.2.3: new config #1 exceeds power limit by 400mA
[125416.189835] option 1-1.2.3:1.0: GSM modem (1-port) converter detected
[125416.190516] usb 1-1.2.3: GSM modem (1-port) converter now attached to ttyUSB0
[125416.192352] option 1-1.2.3:1.1: GSM modem (1-port) converter detected
[125416.192979] usb 1-1.2.3: GSM modem (1-port) converter now attached to ttyUSB1
[125416.194830] option 1-1.2.3:1.2: GSM modem (1-port) converter detected
[125416.195466] usb 1-1.2.3: GSM modem (1-port) converter now attached to ttyUSB2
[125416.196693] option 1-1.2.3:1.3: GSM modem (1-port) converter detected
[125416.197053] usb 1-1.2.3: GSM modem (1-port) converter now attached to ttyUSB3
[125416.198387] qmi_wwan 1-1.2.3:1.4: cdc-wdm0: USB WDM device
[125416.199843] qmi_wwan 1-1.2.3:1.4 wwan0: register 'qmi_wwan' at usb-3f980000.usb-1.2.3, WWAN/QMI device, fa:45:03:3e:6f:34
With minicom I’m able to connect to ttyUSB2, 115200 18N, this is what I get (I tried on ttyUSB3 too):
AT
OK
AT+QGPS?
+QGPS: 1
OK
AT+QGPS=1
+CME ERROR: 504
AT+QGPS=0
+CME ERROR: 501
If I open a minicom on ttyUSB1 9600 18N, I don’t get any data…
Following these tutorials (not exactly the same modem but near)
http://www.embeddedpi.com/documentation/3g-4g-modems/quecetel-modem-gps-setup
504: session ongoing -> what does it mean ?
I also took a look in the autoPiCore code, maybe I mess something?
In addition, I was able to use the modem in ppp mode and use it as data connection with a sim card.
Do I need to put a sim card for GPS too ?
Any support will be appreciate!
Thanks,
Nicolas