# Serial communication with AC power supply

**URL:** https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590
**Category:** Support
**Created:** [August 25, 2022, 2:44pm UTC](https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590 "2022-08-25T14:44:22Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Zeineb\_BO](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/zeineb_bo/32/3514_2.png) [@Zeineb\_BO](https://discuss.pynq.io/u/Zeineb_BO)
#### Post date: [August 25, 2022, 2:44pm UTC](https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590/1 "2022-08-25T14:44:22Z")

</div>

Good afternoon,

I would like to have support regarding the board PYNQ-Z2. Actually, I want to configure the power supply by sending different voltages and frequencies through a python code. The device support USB protocol and in order to connect the board to the device I need to know the port.  
Could anyone help me with this please ?  
Thank you

---

<div class="post-metadata">

### Author: ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)
#### Post date: [August 25, 2022, 4:00pm UTC](https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590/2 "2022-08-25T16:00:13Z")

</div>

Do you mean your power supply has a USB interface and you want to know what the “port” is for the connected power supply?

Cathal

---

<div class="post-metadata">

### Author: ![Zeineb\_BO](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/zeineb_bo/32/3514_2.png) [@Zeineb\_BO](https://discuss.pynq.io/u/Zeineb_BO)
#### Post date: [August 26, 2022, 11:13am UTC](https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590/3 "2022-08-26T11:13:13Z")

</div>

Yes, I want to connect the PYNQ-Z2 board and the power supply via USB interface so I need to know the port exactly in order to connect and configure the power supply from the board through specific commands dveloped in python code.

Thank you

---

<div class="post-metadata">

### Author: ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)
#### Post date: [August 26, 2022, 11:46am UTC](https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590/4 "2022-08-26T11:46:31Z")

</div>

We won’t be able to give you much help. The device if supported will be connected to the PS (ARM).  
You will need to check if the device is supported by Ubuntu running on ARM, and if you need to install a driver, then how you program it, if there is a command line interface or Python library for it.

Cathal

---

<div class="post-metadata">

### Author: ![Zeineb\_BO](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/zeineb_bo/32/3514_2.png) [@Zeineb\_BO](https://discuss.pynq.io/u/Zeineb_BO)
#### Post date: [August 26, 2022, 6:45pm UTC](https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590/5 "2022-08-26T18:45:04Z")

</div>

Thank you for your reply and help. I will check more on that to see if it works or not. Because, before connecting the device, I tried the test with my PC and it works fine even with PuTTY, but couldn’t import pyserial ( I already installed the package) …

Zeineb

---

<div class="post-metadata">

### Author: ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)
#### Post date: [August 26, 2022, 8:44pm UTC](https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590/6 "2022-08-26T20:44:02Z")

</div>

Ok, if it is a serial device, you may be able to see it in /dev or try one of these:  
dmesg | grep tty  
dmesg | grep -i serial  
dmesg | grep -i FTDI

Cathal

---

<div class="post-metadata">

### Author: ![Zeineb\_BO](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/zeineb_bo/32/3514_2.png) [@Zeineb\_BO](https://discuss.pynq.io/u/Zeineb_BO)
#### Post date: [August 26, 2022, 10:31pm UTC](https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590/7 "2022-08-26T22:31:25Z")

</div>

Yes, it’s a serial device. Okay, I’ll try this method.  
Thank you very much for your support

Zeineb

---

<div class="post-metadata">

### Author: ![briansune](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/briansune/32/3087_2.png) [@briansune](https://discuss.pynq.io/u/briansune)
#### Post date: [August 27, 2022, 12:17am UTC](https://discuss.pynq.io/t/serial-communication-with-ac-power-supply/4590/8 "2022-08-27T00:17:27Z")

</div>

Zeineb,

I will suggest you ask with a datasheet or a module document shared here (unless there are any NDA concern) so we can directly know what you really need next time.

Turns out it is just a simple UART device under Linux.

Bests
