15 questions
0
votes
0
answers
36
views
need to know how use a wildcard output with Spidev -> io::Result in Rust
Would be grateful for some help here with my Rust code! I'm trying to set up the MCP 3002 SPI chip with the
raspberry pi 5 using the spidev crate, to show the output from the MCP3002 on an egui screen....
0
votes
1
answer
146
views
SpiDev.xfer() raises Errno 22 Invalid Argument
I'm trying to use Spidev to connect to a peripheral, and I have suddenly started getting the error:
OSError: [Errno 22] Invalid argument.
I restarted the device and the error went away, but came back ...
0
votes
0
answers
92
views
Initializing LAN9252 as EtherCAT Slave on Toradex iMX7 Colibri Board using spidev library
I'm currently working on implementing EtherCAT communication on the Toradex iMX7 Colibri evaluation board using the spidev library. However, I'm encountering an issue with initializing the LAN9252 as ...
0
votes
1
answer
779
views
Python spidev xfer2 clarification
I've not found good answer to the following, and the spidev documentation isn't much help:
Assume I have a SPI device where you send two bytes plus a pad byte before reading back a four byte response. ...
0
votes
0
answers
480
views
How to solve fatal error: 'linux/spi/spidev.h' file not found on mac
I am a newbie. Currently, I am using the terminal on MAC to compile a C code. I encountered the following errors:
fatal error: 'linux/spi/spidev.h' file not found
Maybe spidev was not installed on ...
1
vote
2
answers
148
views
Rcpp error with linking external library?
I'm banging my head against the wall trying to get Rcpp to build a package for SPI on a Raspberry Pi.
My code/package is found at my GitHub: https://github.com/mnr/rpigpior/
When I run Rcpp::...
0
votes
0
answers
123
views
Why the received SPI data is not continuous when using Python?
I have tested with mraa and spidev, both cannot receive continuous data.
For example, when send some bytes and expect receiving data in slave device like [1,2,3,4,5,6,7,8,9], I may get some data like [...
1
vote
0
answers
416
views
SPI on Toradex Verdin iMX8M Plus
I'm new to device tree and I'm trying to get spidev0.1, spidev 1.0, spidev 1.1, spidev 2.0 and spidev2.1. Currently I only have spidev0.0 in /dev.
I've tried to modify my device tree as follows but it ...
0
votes
0
answers
135
views
No MISO data & SCLK at low level after WR using spidev from userland
I am trying to communicate via SPI in Linux user space using the spidev driver. Physically, this SPI interface is a 4 bus (SCLK, CS, MOSI, MISO).
For this purpose I have attached to my dts the ...
1
vote
1
answer
806
views
How i understanding AD9833 SPI communication using Python with my raspberry?
Hi i had an issue to discuss,
and i dont realy understand to send data with SPI with Python
I want to send data with my Raspberry Pi 4 ver.b using Python to send data to my module named AD9833 DDS. ...
0
votes
1
answer
2k
views
Master-Slave Communication Between Two Jetson Nano over SPI
I have two Jetson Nano devices that need to exchange data over SPI protocol. It is my first and only project with Jetson Nano, so I am completely new to the SPI or anything regarding low-level coding.
...
0
votes
0
answers
111
views
SystemError with spidev after upgrade
I'm getting the following error:
Traceback (most recent call last):
File "/home/hydro1/hydroponic_newloop.py", line 6, in
import spidev
SystemError: Type does not define the tp_name field.
...
1
vote
1
answer
1k
views
How to find out who loads specific Linux kernel module?
I built a certain driver as module (m) for Linux, the spi-imx by NXP. Nontheless, Linux probes this driver when booting. I'm struggling to find out what process/other module/driver requests this spi-...
0
votes
1
answer
389
views
Decoding the received data from ATM90E32AS energy meter IC
I wrote a python code (raspberry pi) to receive voltage, current and power values from ATM90E32AS energy meter IC. Iam using spidev library for SPI communication with the energy meter IC. I ...
3
votes
0
answers
1k
views
Failed building wheel for spidev
Following the documentation I am installing spidev with
pip3 install spidev
in Python 3.7.3 on a MacOS 11.4 and getting the following error:
Defaulting to user installation because normal site-...