Skip to content

Instantly share code, notes, and snippets.

View RavSS's full-sized avatar

Ravjot Singh Samra RavSS

  • New Zealand
View GitHub Profile
@RavSS
RavSS / F5521gwGPS.py
Created December 13, 2018 11:04
A script that allows a user to use the Ericsson F5521gw (HP HS2340) UMTS/GPRS WWAN card with the de facto standard GPS utility on Linux, which is GPSd.
#!/usr/bin/env python3
# -Author: Ravjot Singh Samra (ravss@live.com)-
# This script is intended for using the Ericsson F5521gw (HP HS2340) WWAN card
# with GPSd. As of now (d13/m12/2018) it is still unusable with GPSd without
# configuring it first; however, GPSd does not send the Hayes AT command
# in the first place to start up the GPS. The solution is to send the AT
# commands, set the connection used for sending it to "sleep", and then
# use the device normally. This should seriously be done by GPSd instead.