Skip to contentSkip to conversation

SPI device sniffing/mirror feature

DISCUSSION root 1 participant 1 message Jul 16, 2016 SPI

lore
Share & tools
lore

root

author
#0 lore raw

Hi everyone,

I'm dealing with an embedded Linux, where an application opens the /dev/spidev1.0 device and constantly talks through with another MCU.
Now if I I try to look at what exchanges (that's what I'd need), doing
a hexdump /dev/spidev1.0 shows something in the beginning but causes the application to crash. The app is very sensitive and I think it crashes because the app uses and it can't be used for viewing simultaneously.

Would there be a way to create an alias, or something like a mirror of this device if I write some extra code/driver? Or is there no chance for me to sniff the traffic like that (in software) ?

Many thanks in advance!
Alex

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html