kemonine
/
lollipopcloud
Archived
1
0
Fork 0

Merge branch 'quectel-ec25' of kemonine/docs into master

This commit is contained in:
KemoNine 2019-01-15 17:38:04 +00:00 committed by Gitea
commit 7ddf44a2d6
1 changed files with 90 additions and 0 deletions

90
hardware/quectel_ec25.md Normal file
View File

@ -0,0 +1,90 @@
# 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
- [http://www.embeddedpi.com/documentation/3g-4g-modems/quecetel-modem-gps-setup](http://www.embeddedpi.com/documentation/3g-4g-modems/quecetel-modem-gps-setup)
- [http://www.embeddedpi.com/documentation/3g-4g-modems/mypi-industrial-raspberry-pi-3g-4g-modem-howto](http://www.embeddedpi.com/documentation/3g-4g-modems/mypi-industrial-raspberry-pi-3g-4g-modem-howto)
- [http://www.embeddedpi.com/documentation/3g-4g-modems/quecetel-modem-gps-setup](http://www.embeddedpi.com/documentation/3g-4g-modems/quecetel-modem-gps-setup)
- [https://git.lollipopcloud.solutions/lollipop-cloud/docs/src/branch/master/hardware/gps.md](https://git.lollipopcloud.solutions/lollipop-cloud/docs/src/branch/master/hardware/gps.md)
- [https://www.cnx-software.com/2018/02/11/how-to-use-3g-and-gps-on-raspberry-pi-with-thaieasyelec-3g-hat-expansion-board/](https://www.cnx-software.com/2018/02/11/how-to-use-3g-and-gps-on-raspberry-pi-with-thaieasyelec-3g-hat-expansion-board/)
- [https://blog.enchose.com/raspberry-pi-runs-ppp-dial-up-quectel-ec25-lte-modem/](https://blog.enchose.com/raspberry-pi-runs-ppp-dial-up-quectel-ec25-lte-modem/)
- [https://www.quectel.com/support/faq.htm](https://www.quectel.com/support/faq.htm)
- [https://osmocom.org/projects/quectel-modems/wiki/EC25](https://osmocom.org/projects/quectel-modems/wiki/EC25)
- [https://truetechembedded.blogspot.com/2018/03/quectel-ec25ec20-software-porting-guide.html](https://truetechembedded.blogspot.com/2018/03/quectel-ec25ec20-software-porting-guide.html)
- [https://www.quectel.com/UploadImage/Downlad/Quectel_WCDMA&LTE_Linux_USB_Driver_User_Guide_V1.8.pdf](https://www.quectel.com/UploadImage/Downlad/Quectel_WCDMA&LTE_Linux_USB_Driver_User_Guide_V1.8.pdf)
- [https://sixfab.com/updated-tutorial-3-make-a-ppp-internet-connection-with-3g-4glte-shields-on-raspberry-pi/](https://sixfab.com/updated-tutorial-3-make-a-ppp-internet-connection-with-3g-4glte-shields-on-raspberry-pi/)
- [https://sixfab.com/product/quectel-ec25-mini-pcle-4glte-module/](https://sixfab.com/product/quectel-ec25-mini-pcle-4glte-module/)
- [https://sixfab.com/gps-tracker-with-3g-4glte-shield/](https://sixfab.com/gps-tracker-with-3g-4glte-shield/)
# 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
``` bash
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)
``` bash
apt-get install picocom gpsd gpsd-clients python-gps gpsbabel
```
## Setup / Testing GPS on Quectel
``` bash
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
``` bash
/etc/default/gpsd # Add /dev/ttyUSB1 to device
# Add -n -D 3 to options (for debugging)
```