# \[WR31\] Use the serial port from within python

**URL:** <https://forums.digi.com/t/wr31-use-the-serial-port-from-within-python/23004>\
**Category:** Python\
**Tags:** serial, wr31, python\
**Created:** [March 15, 2022, 8:22am UTC](https://forums.digi.com/t/wr31-use-the-serial-port-from-within-python/23004 "2022-03-15T08:22:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janztec](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@janztec](https://forums.digi.com/u/janztec)\
**Post date:** [March 15, 2022, 8:22am UTC](https://forums.digi.com/t/wr31-use-the-serial-port-from-within-python/23004/1 "2022-03-15T08:22:59Z")

</div>

Hello,

I want to utilize the serial port of the Digi WR31 from within Python. Is that possible? Pyserial is not listed as one of the supported python packages.

---

<div class="post-metadata">

**Author:** ![NicholasYourIoT](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/nicholasyouriot/32/27_2.png) [@NicholasYourIoT](https://forums.digi.com/u/NicholasYourIoT)\
**Post date:** [March 16, 2022, 3:33am UTC](https://forums.digi.com/t/wr31-use-the-serial-port-from-within-python/23004/2 "2022-03-16T03:33:40Z")

</div>

If you are looking at a new project, I would highly suggest you just don’t.

The way you access the serial port is documented here:  
[https://www.digi.com/resources/documentation/digidocs/90001537/Default.htm#References/r\_Serial\_Port\_Transport.htm](https://www.digi.com/resources/documentation/digidocs/90001537/Default.htm#References/r_Serial_Port_Transport.htm)

I can’t stress enough how bad this is. It can be done, and you can also add modules if they were supported in python 2.6/2.7 but again unless you have a fleet of WR31s then don’t.

The newer IX10 is a much better proposition which runs linux and more importantly python 3.10 and you have access to the serial port very easily.

What exactly are you trying to do with the serial port?

Nicholas Wilson  
Your IoT  
[https://www.YourIoT.com.au](https://www.YourIoT.com.au)
