# Sending remote AT Command on ConnectPort X4

**URL:** <https://forums.digi.com/t/sending-remote-at-command-on-connectport-x4/19940>\
**Category:** Python\
**Tags:** connectport-x4, xbee-gateway, python2, xbee\
**Created:** [October 16, 2018, 9:18am UTC](https://forums.digi.com/t/sending-remote-at-command-on-connectport-x4/19940 "2018-10-16T09:18:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![filippoN](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@filippoN](https://forums.digi.com/u/filippoN)\
**Post date:** [October 16, 2018, 9:18am UTC](https://forums.digi.com/t/sending-remote-at-command-on-connectport-x4/19940/1 "2018-10-16T09:18:17Z")

</div>

Hi,  
if I want to use the form (for example: “serial”) inside my python application, how do I get on ConnectPort X4?

From my telnet terminal:

#\> python

\>\>\> import serial  
Traceback (most recent call last):  
File “”, line 1, in ?  
ImportError: No module named serial

The goal is Sending AT Commands to Remote XBee using python-serial; from XCTU I can, but I want to replicate this on ConnectPort X4.

thanks

---

<div class="post-metadata">

**Author:** ![habom2310](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@habom2310](https://forums.digi.com/u/habom2310)\
**Post date:** [October 25, 2018, 11:17am UTC](https://forums.digi.com/t/sending-remote-at-command-on-connectport-x4/19940/2 "2018-10-25T11:17:12Z")

</div>

“ImportError: No module named serial” means you need to install the package “serial”. Try install it using  
\>pip install serial  
I recommend you to use the XBee Python library “digi-xbee” for your python application. To install the library  
\>pip install digi-xbee

Good luck!
