Skip to main content

Python utility to interact with the telephone functionality of the Sierra Wireless EM73xx modems, present in Lenovo Thinkpads (tested on a Thinkpad X250) and possibly others.

Install

Either retrieve from pypi using pip:

$ pip install em73xx

or clone this repo, and install using setup.py:

$ git clone https://github.com/smcl/py-em73xx
$ cd py-em73xx
$ python setup.py install

Documentation

(TODO, haha!)

Examples

Find which device the modem using the find_device.sh script - here it’s /dev/ttyACM0:

$ ./find_device.sh
/dev/ttyACM0 - Sierra_Wireless_Inc._Sierra_Wireless_EM7345_4G_LTE_013937006578445
/dev/input/event14 - SunplusIT_Inc_Integrated_Camera
/dev/video0 - SunplusIT_Inc_Integrated_Camera

Initialising the modem:

from em73xx import Modem

em7345 = Modem("/dev/ttyACM0", pin="1234", debug=True)

receiving/reading SMS messages:

messages = em7345.getSMS()

sending an SMS message:

em7345.sendSMS("775123456", "test message from em73xx!")

getting a GPS fix (None returned if failed):

gps = em7345.getGPS()
if gps:
    print(gps.latitude)
    print(gps.longitude)

TODO

  • write documentation - methods, types, etc

  • add more functionality, sms and gps alone won’t cut it. poking around with the at commands text file in /docs should help

  • there’s heaps of info returned by the XLCSLSR command, investigate if there’s anything useful we can provide

Metadata

Release files for em73xx 0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for em73xx 0.11
File Size Uploaded Provenance Actions
em73xx-0.11.tar.gz 5.2 kB Without provenance Details for em73xx-0.11.tar.gz

Release files / em73xx-0.11.tar.gz

Download URL em73xx-0.11.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a413bfecfc55b93eda6fe0faae4ba249341c5a84028d6109355736fbdebe68bc
BLAKE2b-256 checksum
How to use checksums
6d89474052b4bb0ad2771b339ff66fa6506d9ebe3c29a3414789aad2f189e48f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for em73xx 0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page