Author Topic: Linux/Windows compatible USB or RS232 I2C tool  (Read 1447 times)

0 Members and 1 Guest are viewing this topic.

Offline jpyeronTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: us
    • PD Inc
Linux/Windows compatible USB or RS232 I2C tool
« on: July 24, 2021, 12:07:10 am »
Looking for a device that can act as a master or slave for I2C and does not require proprietary software.

Bought ViewTool Ginkgo USB to I2C Adapter Support Windows/Linux/Mac/Android/Raspberry Pi, USB-I2C IIC Compatible with CAN/SPI/UART/ADC/DAC/GPIO https://www.amazon.com/gp/product/B00ZW45VYY , but read the vendor page and it does not look very opensource friendly. They only provide binaries and binary libraries.

Suggestions? Looking in the similar price point +/- 100% . Supporting other capabilities are nice too.

I see https://www.digikey.com/en/products/detail/ftdi-future-technology-devices-international-ltd/C232HM-DDHSL-0/2714139 and https://www.digikey.com/en/products/detail/ftdi-future-technology-devices-international-ltd/UMFT200XD-WE/6173760
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: Linux/Windows compatible USB or RS232 I2C tool
« Reply #1 on: July 24, 2021, 02:30:56 am »
If you want to write all of the application code, an Arduino can work as an I2C Master or Slave

https://www.arduino.cc/en/Tutorial/LibraryExamples/MasterReader

Any of the ARM chips can do it better and may have more I2c peripherals.  The Teensy 4.1 has 3 such peripherals and runs at 600 MHz.  There is an 'Arduino like' library so the code should nearly port between the Teensy and the Arduino.


 

Offline djacobow

  • Super Contributor
  • ***
  • Posts: 1151
  • Country: us
  • takin' it apart since the 70's
Re: Linux/Windows compatible USB or RS232 I2C tool
« Reply #2 on: July 24, 2021, 02:41:31 am »
If you want something cooked, look at a Bus Pirate or an FTDI 2232 breakout board.

Bus Pirate takes commands directly to do i2c stuff and FTDI has nice library support. Check out PyFTDI.
« Last Edit: July 24, 2021, 02:52:01 am by djacobow »
 

Offline richmit

  • Contributor
  • Posts: 43
  • Country: us
    • https://www.mitchr.me/
Re: Linux/Windows compatible USB or RS232 I2C tool
« Reply #3 on: July 25, 2021, 11:59:16 pm »
In addition to the bus pirate, I also have these:

I2C driver is nice.  It only knows about I2C, so it is a much more limited device than the bus pirate or the Binho Nova.  But sometimes a dedicated tool is more useful. It has good python support.  It comes with a GUI (python) and command line tool.   The tiny little display is actually useful.

https://i2cdriver.com/

The Binho Nova is more like the bus pirate in that it understands lots of protocols.  It has a nice GUI and very good python API.  Unlike the bus pirate, this one is not very comfortable to use directly via a serial terminal -- for interactive use I think they expect people to use the GUI.  For the most part I only use this one via the API, and it is really good for that use case.

https://binho.io/

Lastly I have the Digital Discovery.  This is more of a digital swiss army knife.  I mostly use it as a logic analyzer, but it has very good support for I2C.  Programming is done via JavaScript inside a proprietary application.

https://reference.digilentinc.com/test-and-measurement/digital-discovery/start

-mitch
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf