# enable serial port only when cell connection is established

**URL:** <https://forums.digi.com/t/enable-serial-port-only-when-cell-connection-is-established/21331>\
**Category:** Digi TransPort WR (Series)\
**Tags:** serial-interface, transport, cellular, wr31\
**Created:** [May 4, 2020, 8:28am UTC](https://forums.digi.com/t/enable-serial-port-only-when-cell-connection-is-established/21331 "2020-05-04T08:28:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonL84](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@JasonL84](https://forums.digi.com/u/JasonL84)\
**Post date:** [May 4, 2020, 8:28am UTC](https://forums.digi.com/t/enable-serial-port-only-when-cell-connection-is-established/21331/1 "2020-05-04T08:28:46Z")

</div>

I have a situation where a terminal is connected to a digi wr31 that uses a cellular connection via a serial cable. In this case I’m looking to have the serial interface be disabled until the cellular connection is established since otherwise it would drop some of the logging information from the terminal.

I’ve considered writing a python script for it but I’m wondering if there is a better way potentially via cli commands that can establish sort of a dependency between the serial interface and the cellular interface.

---

<div class="post-metadata">

**Author:** ![shatman](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@shatman](https://forums.digi.com/u/shatman)\
**Post date:** [May 8, 2020, 2:32pm UTC](https://forums.digi.com/t/enable-serial-port-only-when-cell-connection-is-established/21331/2 "2020-05-08T14:32:45Z")

</div>

Hello and welcome to the Digi Forums Jason L84

This is definitely custom Python application.  
Contact our sales representative will  
get you in touch with Professional Services group at Digi

Regards. Michael S
