Shop OBEX P1 Docs P2 Docs Learn Events
How could I wirte data to a SD card and then later retrieve? — Parallax Forums

How could I wirte data to a SD card and then later retrieve?

CameronMCameronM Posts: 57
edited 2010-09-06 23:36 in Propeller 1
How could I wirte data to a SD card and then later retrieve the data to be used in a spin program? Basically I want to use nick's magic ir object to record the ir signal and save it to an SD card. Then go back to the SD card and play the signal back. I am able to write to the SD card, but I am not sure how to get the data back into the program to use. I am using fsrwFemto as my object to read and write to the SD card.

Thank you,

CameronM

Comments

  • Cluso99Cluso99 Posts: 18,069
    edited 2010-09-06 05:26
    IIRC Femto reads a file to see if it should execute it as a batch file. If not, then see PropCmd for an example. Failing this, look at my RamBlade thread (if you can find the code due to corruption of the forum attachments) for my veriosn of PropCmd that looks as autoexec.bat.
  • Mike GreenMike Green Posts: 23,101
    edited 2010-09-06 07:23
    You say you're using fsrwFemto to read and write data on the SD card. You're implying that you're already writing the IR information to an SD card file. What part do you not understand? You should be able to read from the SD card file and get back exactly what you've written. Are you concerned about taking that information and producing an IR signal? Please explain.
  • CameronMCameronM Posts: 57
    edited 2010-09-06 12:26
    Yes I am able to write data, I understand that, but I do not know how to take the data off the SD card and use it to produce the signal, do I have to put the signal in a variable and then produce the signal or can I use it directly off the SD card? Would it be possible to do this for a list of signals. So say power is 714825 and the length is 6 and channel up is 714835 and the length is 6, and I push the power button and it uses 714825 and the length 6 to produce a signal or if I push channel up it uses 714835 and the length 6 produce a signal.

    Thank you,

    CameronM
  • CameronMCameronM Posts: 57
    edited 2010-09-06 17:18
    Okay I think I figured it out, I have to write the ir signal to one file, and the code length to another. I would like to be able to write them to the same file but oh well better then nothing, I guess. Thank you for your time.

    Thank you,

    CameronM
  • CameronMCameronM Posts: 57
    edited 2010-09-06 23:36
    Never mind, I am still stuck on how to plug the data that is saved on the SD card into nick's object that plays the ir signal back. Could I get some help to accomplish this.

    Thank you,

    CameronM
Sign In or Register to comment.