Re: [casper] Writing data to SD card

2020-05-21 Thread Adam Isaacson
Hi Sean,

The Casperised Red Pitaya is running a Linux OS (Debian/Ubuntu), together,
with tcpborphserver on the PS. Tcpborphserver interacts with casperfpga on
your host PC for comms. I am able to ssh into the Red Pitaya and copy files
across using scp. This is all stored on the SD card, so it should easily be
possible to store data on the SD card. I am not sure what rate.

Check out:
https://casper-toolflow.readthedocs.io/projects/tutorials/en/latest/tutorials/redpitaya/red_pitaya_setup.html?highlight=SD
 and
https://redpitaya.readthedocs.io/en/latest/developerGuide/os/debian.html

I have also used a Raspberry Pi for this type of application in the past
and it works well for data logging. Good luck!

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za



On Wed, May 20, 2020 at 5:47 PM Mugundhan vijayaraghavan <
v.vaishnav151...@gmail.com> wrote:

> Hi Sean,
>
> This help document says that the sd card is mounted as the read only /opt
> file system.
>
> https://redpitaya.readthedocs.io/en/latest/developerGuide/software/clt.html?highlight=store%20data#saving-data-buffers
>
> Having said that, red-pitaya GPIOs provide access to SPI interfaces to the
> PS side to connect a SD card and use that for data storage. This has been
> done with Raspberry Pi. So, in principle, should be possible with the
> RedPitaya as well.
>
> Another option is to use an SPI implementation from the PL side, accessing
> the GPIOs (there are about 16), if one is comfortable with using only hdl.
>
> Sincerely,
>
> Mugundhan
>
>
>
>
> On Wed, May 20, 2020 at 8:55 PM Sean Mckee  wrote:
>
>>  Hello all,
>>
>> I'm working on a project that has a Red Pitaya mounted in a drone. It
>> will be monitoring and correlating two antenna inputs. Because the red
>> pitaya will be in a drone, I need to store the processed data coming out of
>> the FPGA onto the SD card. Is this something anyone has worked with in the
>> Casper framework? I can't seem to find much documentation on accomplishing
>> this. It seems like I might need to write some monitoring software for the
>> programming system separately from the programming of the FPGA.
>>
>> I would like to achieve a continuous stream from the FPGA to the SD card
>> of 2 megabytes/sec.
>>
>> Thanks for any insight you might have into this!
>>
>> -Sean
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "casper@lists.berkeley.edu" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to casper+unsubscr...@lists.berkeley.edu.
>> To view this discussion on the web visit
>> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/efcfb627-b710-4ba9-87d9-e92ec0c466cb%40lists.berkeley.edu
>> 
>> .
>>
>
>
> --
> V. Mugundhan
>
> --
> You received this message because you are subscribed to the Google Groups "
> casper@lists.berkeley.edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to casper+unsubscr...@lists.berkeley.edu.
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAD560xkwqc5%3DVOU_YU1ydXUmZEwXsHNugJ5sqAbBnZvEvf5R%3Dg%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADTJ%3DnEjNN1AGEmsz_9GDcu_CkfFdEavxdgZBdYA%3DKzJm%2Bh8vA%40mail.gmail.com.


Re: [casper] Writing data to SD card

2020-05-20 Thread Mugundhan vijayaraghavan
Hi Sean,

This help document says that the sd card is mounted as the read only /opt
file system.
https://redpitaya.readthedocs.io/en/latest/developerGuide/software/clt.html?highlight=store%20data#saving-data-buffers

Having said that, red-pitaya GPIOs provide access to SPI interfaces to the
PS side to connect a SD card and use that for data storage. This has been
done with Raspberry Pi. So, in principle, should be possible with the
RedPitaya as well.

Another option is to use an SPI implementation from the PL side, accessing
the GPIOs (there are about 16), if one is comfortable with using only hdl.

Sincerely,

Mugundhan




On Wed, May 20, 2020 at 8:55 PM Sean Mckee  wrote:

>  Hello all,
>
> I'm working on a project that has a Red Pitaya mounted in a drone. It will
> be monitoring and correlating two antenna inputs. Because the red pitaya
> will be in a drone, I need to store the processed data coming out of the
> FPGA onto the SD card. Is this something anyone has worked with in the
> Casper framework? I can't seem to find much documentation on accomplishing
> this. It seems like I might need to write some monitoring software for the
> programming system separately from the programming of the FPGA.
>
> I would like to achieve a continuous stream from the FPGA to the SD card
> of 2 megabytes/sec.
>
> Thanks for any insight you might have into this!
>
> -Sean
>
> --
> You received this message because you are subscribed to the Google Groups "
> casper@lists.berkeley.edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to casper+unsubscr...@lists.berkeley.edu.
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/efcfb627-b710-4ba9-87d9-e92ec0c466cb%40lists.berkeley.edu
> 
> .
>


-- 
V. Mugundhan

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAD560xkwqc5%3DVOU_YU1ydXUmZEwXsHNugJ5sqAbBnZvEvf5R%3Dg%40mail.gmail.com.


[casper] Writing data to SD card

2020-05-20 Thread Sean Mckee
 Hello all,

I'm working on a project that has a Red Pitaya mounted in a drone. It will 
be monitoring and correlating two antenna inputs. Because the red pitaya 
will be in a drone, I need to store the processed data coming out of the 
FPGA onto the SD card. Is this something anyone has worked with in the 
Casper framework? I can't seem to find much documentation on accomplishing 
this. It seems like I might need to write some monitoring software for the 
programming system separately from the programming of the FPGA.

I would like to achieve a continuous stream from the FPGA to the SD card of 
2 megabytes/sec.

Thanks for any insight you might have into this!

-Sean

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/efcfb627-b710-4ba9-87d9-e92ec0c466cb%40lists.berkeley.edu.