Skip to content
Python script for Raspberry pi hat using #ublox lara r2# LTE module.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin initialize Jun 21, 2018
test Changed **AT+CSIM?** to **AT+CPIN?** May 24, 2019
ublox_lara_r2 use the raspi-gpio tool to control the gpio Nov 11, 2019
.gitignore Initial commit Jun 21, 2018
LICENSE Update LICENSE Jul 16, 2018 modified Jun 28, 2018
package_description.rst update description Jun 28, 2018 remove unneccessary requirement module Jun 28, 2018


This python module is used for Ublox lara r2 cellular module should only runs on Raspberry Pi.

Using pip to install

pip install ublox_lara_r2


Download the source code to install

git clone
sudo python install


from ublox_lara_r2 import *

u = Ublox_lara_r2()

# Close debug massage 
u.debug = False

# show module name
if u.sendAT("AT+CGMM\r\n", "OK\r\n"):
    print "\r\nmodule name: ", u.response.split('\r\n')[1]

# get SIM card state
if u.sendAT("AT+CSIM?\r\n", "OK\r\n"):
    print "\r\nSIM state: ", u.response.split('\r\n')[1]

# check rssi
rssi = u.getRSSI()
print "RSSI: ", rssi
40-pin GPIO header detected
Enabling CTS0 and RTS0 on GPIOs 16 and 17
rts cts on
waking up...
module name:  LARA-R211
RSSI:  3
You can’t perform that action at this time.