On 11/27/2015 6:50 AM, [email protected] wrote:
> Hey everyone,
> 
> I am working on a project where an STM32F0 microcontroller generates 220 
> bytes of data from an sensor array every millisecond.
> 
> Now I want to have this data on my beaglebone black so I can write it to 
> files and send it away with FTP.
> But I only have an time gap of 200-300 usec where I can send data to the 
> beaglebone.
> I can buffer some bytes on the STM32 but is had limited memory size (like 
> 3-4 ms). 
> 
> Can anybody give me an solution?
> 
> I looked into SPI but the beaglebone is only working in master mode, so i 
> wanted to trigger it with an interrupt but it is only responding in 1-3 
> milliseconds. 
> I also looked for an SD card buffer between the two but I think it is to 
> slow with this amount of data.
> 
> Does anybody know a way of creating an sort of FIFO buffer between the 
> beaglebone and the STM of some other way of fast data handling.

Switch to a real-time kernel (PREEMPT_RT or Xenomai) and you can get
interrupt latencies in the 50-100 uS range, which ought to be fast
enough to use SPI.

Alternatively, you could modify the PRU code from the BeagleLogic
project to recognize a data/strobe handshake from the STM32 which
would get the data into the BBB where you can use the reset of the
BeagleLogic framework to buffer it in DRAM on it's way to wherever
else it's headed (network, uSD card, etc).

-- 
Charles Steinkuehler
[email protected]

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to