pyftdi | FTDI device driver written in pure Python
kandi X-RAY | pyftdi Summary
kandi X-RAY | pyftdi Summary
PyFtdi aims at providing a user-space driver for popular FTDI devices, implemented in pure Python language.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Set a property
- Set the xprop value for the given position
- Set bus control value
- Set a bus control value
- Configure the device
- Enable adaptive clock mode
- Write data to the USB device
- Write data
- Write data to the port
- Return hexadecimal representation of data
- Read data from specified address
- Send a command to buffer
- Open a bitbang device
- Open the FTDI device
- Poll the I2C controller
- Commit the EPROM file
- Start the speaker
- Load configuration from file
- Write to the specified address
- Get a SPI port
- Open a MPSSE device
- Poll for a specified condition
- Add custom devices
- Exchange the contents of an address to out
- Exchange the contents of the packet
- Return a hexadecimal representation of data
- Scan a given URL
pyftdi Key Features
pyftdi Examples and Code Snippets
Community Discussions
Trending Discussions on pyftdi
QUESTION
I am wishing to use the Sync FIFO interface of a FT232H on a custom board from python on a RaspberryPi. I would use PyFTDI, but PyFTDI doesn't implement the Sync FIFO interface mode. The constant for the Sync FIFO mode is defined in PyFTDI but never used. I plan on accessing Sync FIFO by using PyUSB directly with PyFTDI as a reference. However as PyFTDI doesn't ever use the Sync FIFO mode, I don't know what FTDI commands are used for the mode on the USB endpoints. The documentation I have been able to find from FTDI tell how to use the proprietary library as opposed to the low level command structure actually sent to the chip. I have done a bit of searching, but FTDI provides many documents and it is a bit of information overload.
Does anyone know where the documentation is which covers the low level command codes and arguments which are sent to the FTDI USB end points? I am assuming the authors of PyFTDI were referencing something besides wire sniffing.
...ANSWER
Answered 2021-May-11 at 13:58According to their knowledge base FTDI provides an API document under an NDA for some circumstances.
In some circumstances, it may be desirable to develop a custom driver for an exotic operating system or an embedded system. In these circumstances, an API document may be obtained from FTDI under NDA to allow driver development for FTDI devices. To request a copy of the API document, please contact FTDI Support support1@ftdichip.com.
QUESTION
I'm trying to install the library above on a Raspberry Pi 4 running Raspbian Buster / RetroPi .
Setup collects packages, and then fails on setup.py
stating:
ANSWER
Answered 2021-Apr-26 at 16:14SuperStormer suggested sudo apt install python3-dev
- which worked!
I have no idea why this works, as This post suggests that it's usage is for Python extensions, not regular libraries.
It apparently contains the Python C headers, so maybe the library needed those for some reason.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyftdi
You can use pyftdi like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page