(SOLVED)How to write or read an external file on the udoo Quad?

Discussion in 'UDOO QUAD' started by lazy_mosquito, May 9, 2016.

  1. lazy_mosquito

    lazy_mosquito New Member

    Joined:
    Jun 28, 2015
    Messages:
    14
    Likes Received:
    0
    Hi,

    Anybody knows how to read or write to an external file on the Udoo quad? preferably on the built-in microsd-card of the quad. Please, if possible ad a working (on the quad) example. All the examples i could find are all talking about an extra sd-card on the ethernet module (which i don't have) and don't work for the internal micro-sd card.

    greetings,

    Pieter
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I suppose you mean from Arduino side write to a file? Well you can't.

    The easiest way to get it done is to write the data with serial to the Linux side and have there a program (C, Python, Perl etc) write the data to a file on the SD card. For examples how to transfer data between Arduino and Linux see
    http://www.udoo.org/tutorial/udoo-serial-libraries-examples/
     
  3. lazy_mosquito

    lazy_mosquito New Member

    Joined:
    Jun 28, 2015
    Messages:
    14
    Likes Received:
    0
    You can, i was just able to read and write from my sd-card, without the use of programs at the external (linux) side.
    If you connect your sd-card to the SPI-header of the UDOO quad as explained in the following posts:
    for the SPI-header of the Udoo:
    http://www.udoo.org/forum/threads/spi-header.74/

    for the connection between the sd-card and the SPI-header: (but be aware normally they number the sdcard pinouts like 912345678 in his post the pinout is numbered 123456789)
    http://forum.arduino.cc/index.php?topic=138517.0 (post 7)

    for explanation and test code:
    http://forum.arduino.cc/index.php/topic,135439.msg1018776.html#msg1018776
    (reply 4 and reply 15)
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Interesting, but then you are not using the built-in SD card reader but an extra one?
     

Share This Page