# WR31 - How to retreive Signal Strength and details of cellular connection via Python

**URL:** <https://forums.digi.com/t/wr31-how-to-retreive-signal-strength-and-details-of-cellular-connection-via-python/19881>\
**Category:** Python\
**Tags:** rssi, cellular, wr31, python\
**Created:** [September 17, 2018, 12:48pm UTC](https://forums.digi.com/t/wr31-how-to-retreive-signal-strength-and-details-of-cellular-connection-via-python/19881 "2018-09-17T12:48:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickyhoughton](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@rickyhoughton](https://forums.digi.com/u/rickyhoughton)\
**Post date:** [September 17, 2018, 12:48pm UTC](https://forums.digi.com/t/wr31-how-to-retreive-signal-strength-and-details-of-cellular-connection-via-python/19881/1 "2018-09-17T12:48:14Z")

</div>

Can you point me to where I might learn how to retrieve the RSSI and other details of the cellular connection via python?

I have been pouring over the documentation, however I don’t fully understand the organization of the documentation, there is a lot of stuff on ZigBee, but I can’t find any examples of reading cellular details via python.

Thanks for your time,

Ricky Houghton

---

<div class="post-metadata">

**Author:** ![James.Wilson](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@James.Wilson](https://forums.digi.com/u/James.Wilson)\
**Post date:** [September 24, 2018, 3:12am UTC](https://forums.digi.com/t/wr31-how-to-retreive-signal-strength-and-details-of-cellular-connection-via-python/19881/2 "2018-09-24T03:12:50Z")

</div>

Hi the easy way to get this information is to send the command

modemstat ?

through the cli command this can be done with the

import sarcli

def CLI( str ):  
---- cli = sarcli.open()  
---- cli.write( str )  
---- res = cli.read()  
---- cli.close()  
---- return( res )

the return would be the result from the command then you can parse the result for the information you are looking for
