0

CSV program issues



I have written a CSV file for a HD410 that is hooked up to an amp and a sound dome. There is just one audio file on the card that I want to play only when a button mounted near the sound dome is pushed. I want the audio file to play uninterrupted until it is over, even if the button is pressed. When it is over I want it to stop until the button is pressed again. Right now the file does not start playing until the button is pressed but once it starts it is in an infinite loop and the button does nothing. Below is the program I have written. Thank you for any insight into what I might be doing wrong! -Mary Beth Tait GPIOENABLEINPUT 0 EVENTS button:0 audioend STATE B216.mp3 STATE B216.mp3

16 comments

  • 0
    Avatar
    RokuLyndon


    GPIOENABLEINPUT,0,,
    ,,,
    EVENTS,,button:0,audioend
    State,silence.mp3,B216.mp3,
    state,B216.mp3,,silence.mp3


    SHould look more like this. That first state entry is the first file to play. So, if you want nothing playing, you need a dummy file, like an mp3 that's just silence, for example, Then a button press to play it, and no input under button zero for the second state, the actual audio file, which means it can't be i nterrupted. Finally, when it's done, it goes back to silence.

    You can also use our gui brightauthor to build this project very easily.  WIth the latest brightauthor 2.5, i created this project in about 30 seconds...capturing the image, and copying it to my dropbox account so I can post a pic of it.

    The event handler is a generic do nothing state. Button zero plays your mp3, and when it's finished, it goes back to the do nothing state.

    http://dl.dropbox.com/u/3480052/Content/eventhandler-donothing-gpioplayaudio.JPG
  • 0
    Avatar
    drpeppermuseum


    Thank you, I will give these a try!
  • 0
    Avatar
    Dr Pepper Museum

    OK, I downloaded Bright Author and created the program you specified.  Here is what the contents of the card look like once I have published it to the card.

     

     

    I have tried this as is and with adding the actual audio file to the list since it doesn't do that automatically.  I assume it writes it into the program when it publishes it but since it didn't work I thought I would try it.  I have tried the program exactly as you laid it out as well as a couple of different versions (just messing around with it since it didn't work) and sometimes the audio will loop and loop and sometimes it won't respond at all. 

     

    Am I publishing it correctly (using the "local storage" publish option in Bright Author)?  Any advice would be great, thank you!!

     

    -Mary Beth

  • 0
    Avatar
    Dr Pepper Museum

    screen shot of card again since it didn't show up....

     

  • 0
    Avatar
    Dr Pepper Museum

    ...

  • 0
    Avatar
    Lyndon

    That is correct. The content files are actually in the pool folder, renamed with their sha1 hash keys. So, they don't need to be manually copied to the flash card. WHat resolution did you use for your brightauthor project? It's possible it's set to a resolution that's not supported on your screen.

     

    So, if you use 1920x1080 and you're using vga, you would get no signal since the highest supported vga resolution is 1360x768. Can you send us the brightauthor project you created, the bpf file?

  • 0
    Avatar
    Dr Pepper Museum

    Attached is a screen shot of what the contents of the card look like, also the actual file.  There is no screen, it is a Brightsign HD410 hooked up to an amp and a sound dome.  Just audio, no visual.

  • 0
    Avatar
    Lyndon

    I want the actual brightauthor bpf file from your computer, not the published files from the flash card.

  • 0
    Avatar
    Dr Pepper Museum

    OK, I've given up on BrightAuthor for the moment.  Gotta get this up and running by tomorrow.  I downloaded a 60 second silence mp3 and adjusted the CSV file to reflect what you put at the very top of your first reply.  The silence played then just went back to the audio mp3 automatically.  Attached is the latest solution I tried, but it still is only playing the silence once then going back to the audio.  I want the silence to loop continuously until someone presses the button.  Thanks for any guidance!

  • 0
    Avatar
    Dr Pepper Museum

    Hi Lyndon!  I was wondering if you had any further suggestions or guidance on the last comment I posted about the CSV file.  Thanks!

     

    -Mary Beth

  • 0
    Avatar
    Lyndon

    please send the the files from your flash card, everything but the content...

  • 0
    Avatar
    Dr Pepper Museum

    This is the last modification I tried.  I tried the sequence you sent me above:

    GPIOENABLEINPUT,0,,
    ,,,
    EVENTS,,button:0,audioend
    State,silence.mp3,B216.mp3,
    state,B216.mp3,,silence.mp3

    But it did not loop the silence, it played the silence mp3 then looped back to the audio file which is what prompted me to make the modification in the attached file.  

    The only other content on the card are the silence file and the audio file.  

  • 0
    Avatar
    Lyndon

    Can you try copying this autorun.brs file to the flash card... Also, can you try deleting the button:0 line, and retest to see if it still just plays the other mp3 automatically. I wonder if it thinks gpio 0 is stuck on.

  • 0
    Avatar
    Dr Pepper Museum

    OK, attached is the adjusted CSV file and a screenshot of the contents of the card.  Does it look right?

    The .brs file automatically downloaded as a text file, should I change the file extension to just .brs?  

  • 0
    Avatar
    Lyndon

    Yes, it has to be brs or it won't run...

  • 0
    Avatar
    Dr Pepper Museum

    I tried it with the .brs file with and without the "button:0" line.  It still just loops between the two files.  Pressing the button doesn't do anything.  

Please sign in to leave a comment.