Sending remote AT Command on ConnectPort X4

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

“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!