kemonine
/
lollipopcloud
Archived
1
0
Fork 0
This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
lollipopcloud/hardware/quectel_ec25.md

4.3 KiB

Quectel EC25 LTE Modem

This is not a simple configuration and requires a lot of potentially dangerous changes to your system. The Quectel EC25 modems need a package from the testing Debian apt tree which is not available on stable or stretch. Having multiple trees setup at the same time on Debian can quickly de-stabilize your Lollipop can cause strange problems.

Only perform these steps and operations if you must have a Quectel EC25 and cannot find a modem that's supported by default by Debian stretch or Debian stable.

Inspiration / Further Reading

Setup Apt Repos

See the advanced/debian_multi_repo.md documentation and setup the testing apt tree at a minimum.

Once complete, continue. The Quectel EC25 will NOT work without this step being complete.

Setup LTE/3G/etc Support


apt-get update
apt-get install -t testing libqmi-utils
systemctl reboot

Setup NetworkManager/ModemManager

After rebooting in the previous step the modem should work 100% with our standard NetworkManager and ModemManager docs. Head over to them for your appropriate distribution for final setup of the modem internet connection.

Setup GPS (Optional)

Prior to setting up GPS make sure you have an antenna connected to the EC25. We've had reasonable success with this one: https://www.mouser.com/ProductDetail/673-GPSMOD1333

GPS Tools (Per lollipop cloud docs)


apt-get install picocom gpsd gpsd-clients python-gps gpsbabel

Setup / Testing GPS on Quectel


tmux new -s gps testing
picocom /dev/ttyUSB2 -b 115200
    AT+QGPS=1 # Turns on GNSS module
    AT+QGPSEND # Turns off GNSS module
    AT+QGPSCFG="autogps",1 # Enable GPS whenever module comes online

picocom /dev/ttyUSB1 -b 9600

systemctl stop gpsd.socket
gpsd -n -N -D 3 -S 2948 /dev/ttyUSB1
gpsmon 127.0.0.1:2948 # more reliable with quectel gps for some reason (may need to work WITH cgps)
cgps 127.0.0.1:2948 # the "usual" way we like to monitor gps status

Setup gpsd defaults for the EC25


/etc/default/gpsd # Add /dev/ttyUSB1 to device
                  # Add -n -D 3 to options (for debugging)