LinuxFanatic777 wrote: ↑Tue Feb 26, 2019 5:00 pm
Very interesting! Correct me If I wrong, heard that CSI-2 interface can be used for data transmission, not only video capture/output. Is this function supported on Raspberry Pi or perhaps on it's analogues?
Of course, special device with data transmission/reception must be present for this mode.
Define your data.
The CSI2 bus is very image-centric. It has signalling for start/end of lines, as well as start/end of frame. Each line is checksummed.
The receiver peripheral on the Pi has parameters for image stride as well as overall buffer sizes. The driver generates an interrupt when the end of frame short packet is received, but also requires an interrupt after the start of frame to know that it is safe to update the buffer pointers (normally done after a number of line interrupts).
If your data comes in as one huge block with no "lines", then you may cause problems due to not swapping buffers at a suitable point.
The V4L2 driver for the receiver is at
https://github.com/raspberrypi/linux/bl ... 5-unicam.c. If you have the capabilities then feel free to go and hack it for general reception, but don't underestimate the size of the task.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.