I2C Device Detection and Reset Command via python

Hello everyone, I’m completely new to using NCDIO devices and serial communication. Therefore, I need some assistance.

I’m trying to detect devices ( AD5254 Digital Potentiometer over I2C using a serial-to-I2C converter) on the I2C bus using Python (I can do it via AnyI2C GUI application), specifically I want to see if devices with addresses 0x2C and 0x2D are connected. Once detected, I want to send a reset command to the devices. Could you guide me through the process?
I’m opening the COM port and would like to know the correct procedure to detect these devices and send a reset command using Python.
I tried using pyserial library and i can open the port but maybe I am missing the proper syntax to send and read the information over the port.

Reference pages:
I am using 2 of these devices and I2C converter:

Serial to I2C Conversion - NCD USART to I2C Converter Protocol

Thank you!

hi,
did you test with any i2c ?

Hello Bhaskar,

I’m using the USB to I2C Converter with Virtual COM Port (FT230X) and it’s working fine. I can send data and receive responses from my AD5254 digital potentiometer devices (addresses 0x44 and 0x45), so I know the USB-I2C adapter is alive and working.

However, I’m not getting any response when I try to use the I2C Bus Scan Command. I saw in the documentation that this command requires Firmware version 6 or later.

My questions are:

  1. How can I check the firmware version of this USB to I2C converter?
  2. Is there another way to scan the I2C bus to detect connected devices, without relying on the scan command?
  3. I would like to perform a soft reset of the AD5254 devices before using them. Will firmware limitations affect that?

Any help or clarification would be appreciated!

Thank you.