SD player UI development

Anything to do with computer audio, hardware, software etc.
Post Reply
jkeny
Posts: 2387
Joined: Sun Jan 17, 2010 9:37 pm

Re: SD player UI development

Post by jkeny »

aidan959 wrote: Tue Apr 17, 2018 2:50 pm He its aidan, tonys son,
Was told to check out this thread by him so I thought i would.

If by any chance could a Git repository be started for the code in this project for easier reading and updating?

I'm not sure if any of you have heard of Kodi before, but the version for the Raspberry Pi does all of this natively, and has a nice mobile web interface thats give you full control :)
https://osmc.tv/
Hi Aidan
Good to see you on board - I won't say anything about following in your father's footsteps as that would mean you would blow things up :)

You seem to be interested in coding - great! We need some talent on here :)

There is a github interface for this Flashair SD card which looks better than the crude UI we are using - it's on my other computer - I'll post a link to it soon

In the meantime there is a Google drive https://docs.google.com/document/d/14LN ... sp=sharing

Which is just a collection of documents containing thoughts & links to useful info.

Remember what we are interfacing with is not a computer, like the Pi, it is just a SD card audio player that has WiFi transmitter/receiver on it so we are hampered by the restricted functionality of this. There is Lua scripting available on the card& we can do a lot of browser HTML & Javascripting to control it so hopefully we can get a useful interface?

What we are trying to achieve is to have a playlist folder on the SD card which is managed via WiFi by a control PC/phone. Ideally we want a nice Ui ion the PC which is synched with the SD card so when we add a fie to the PC playlist it gets sent via WiFi to the SD card. When we delete, it gets deleted from the SD card. When we press play on PC, it plays the same file on the SD card player.
www.Ciunas.biz
For Digital Audio playback that delivers WHERE the performers are on stage but more importantly WHY they are there.
jkeny
Posts: 2387
Joined: Sun Jan 17, 2010 9:37 pm

Re: SD player UI development

Post by jkeny »

Here's the github which has a better ui for the flashair SD card
https://github.com/DrLex0/FlashAirUI
www.Ciunas.biz
For Digital Audio playback that delivers WHERE the performers are on stage but more importantly WHY they are there.
jkeny
Posts: 2387
Joined: Sun Jan 17, 2010 9:37 pm

Re: SD player UI development

Post by jkeny »

That github has lua scripts for moving files/folders, renaming folders, deleting files/folders? but they ain't working

Maybe someone with Lua experience could have a look?
www.Ciunas.biz
For Digital Audio playback that delivers WHERE the performers are on stage but more importantly WHY they are there.
aidan959
Posts: 2
Joined: Tue Apr 17, 2018 2:31 pm

Re: SD player UI development

Post by aidan959 »

jkeny wrote: Tue Apr 17, 2018 10:52 pm That github has lua scripts for moving files/folders, renaming folders, deleting files/folders? but they ain't working

Maybe someone with Lua experience could have a look?
Might be a stupid question, but is the card in read only? Or is it returning any errors anywhere?
jkeny
Posts: 2387
Joined: Sun Jan 17, 2010 9:37 pm

Re: SD player UI development

Post by jkeny »

aidan959 wrote: Tue Apr 17, 2018 11:12 pm
jkeny wrote: Tue Apr 17, 2018 10:52 pm That github has lua scripts for moving files/folders, renaming folders, deleting files/folders? but they ain't working

Maybe someone with Lua experience could have a look?
Might be a stupid question, but is the card in read only? Or is it returning any errors anywhere?
No, card isn't locked - just that the guy who wrote the scripts admits that they're a bit of a hack & they were his first use of Lua
If you download the sources from github, & open the html file LIST in your browser, you will see the screen
I can choose a file from my HDD bt Upload button does nothing - create folder button does nothing - I suspect the Lua scripts?
www.Ciunas.biz
For Digital Audio playback that delivers WHERE the performers are on stage but more importantly WHY they are there.
jkeny
Posts: 2387
Joined: Sun Jan 17, 2010 9:37 pm

Re: SD player UI development

Post by jkeny »

Oops, I've overlooked the obvious - there's a Flashair developers IoT hub here - right under my nose (RTFM)
https://flashair-developers.com/en/docu ... s/iot-hub/

Which may be the way to go? Just registered for it & will investigate

BTW, I uploaded via WiFi (Upload.cgi) a 400MB file while the SD player was playing music - no effect on the sound - took about 2.5 mins
www.Ciunas.biz
For Digital Audio playback that delivers WHERE the performers are on stage but more importantly WHY they are there.
nige2000
Posts: 4253
Joined: Thu Feb 14, 2013 10:47 am
Location: meath

Re: SD player UI development

Post by nige2000 »

jkeny wrote: Tue Apr 17, 2018 11:57 pm Oops, I've overlooked the obvious - there's a Flashair developers IoT hub here - right under my nose (RTFM)
https://flashair-developers.com/en/docu ... s/iot-hub/

Which may be the way to go? Just registered for it & will investigate

BTW, I uploaded via WiFi (Upload.cgi) a 400MB file while the SD player was playing music - no effect on the sound - took about 2.5 mins
Confirm uploaded 350 mb wav file no change in sq
sd card player, modded soekris dac, class a lifepo4 amp or gb class a/b amp, diy open baffle speakers based on project audio mundorf trio 10's
jkeny
Posts: 2387
Joined: Sun Jan 17, 2010 9:37 pm

Re: SD player UI development

Post by jkeny »

Bit of a maze to join up on Flashair IoT - haven't used it yet

But just another feature of this card - it has a pin on the SD Card which is not used by the SD Player, I believe. It's called SDIO - secure digital IO - for communicating with smart devices.

We could probably use this pin as the way to communicate up/down/play/stop/ etc buttons to the SD player - probably through an ESP arduino board?

https://en.wikipedia.org/wiki/Secure_Digital#SDIO_cards
www.Ciunas.biz
For Digital Audio playback that delivers WHERE the performers are on stage but more importantly WHY they are there.
nige2000
Posts: 4253
Joined: Thu Feb 14, 2013 10:47 am
Location: meath

Re: SD player UI development

Post by nige2000 »

The link I posted previous has a flashair pinout
Which is supported to be same as an rpi
Here below has more details
https://www.google.ie/url?sa=t&source=w ... c4y872exds
sd card player, modded soekris dac, class a lifepo4 amp or gb class a/b amp, diy open baffle speakers based on project audio mundorf trio 10's
randytsuch
Posts: 395
Joined: Mon Aug 11, 2014 4:19 am

Re: SD player UI development

Post by randytsuch »

Looking at the table on bottom of page 13 of Nige's link, looks like the flashair has three modes: SD, SPI and GPIO.

Since it only has 8 pins, the pins had different functions depending on what mode its in. Looks like you can send it commands to put it in different modes, but I'm not sure how this would be implemented on the SD Player card. I expect the SD player wants the flashair to always be a SD card, and won't be happy if it can't access the card because its in another mode.

So, IMHO, while this sounds cool, I think it's adding complexity by trying to add functions in the flashair card than can be implemented in an ESP card fairly simply.

Randy
MSI H81-P33 MB, Xeon E3-1225 V3, LPS/LIFEPO4 and Astron RS-12A, 240gb SSD music, 2nd SSD for OS, Mod SS PCIE USB card, Server2012 R2 Ess+AO+MQn, Amanero USB to DACEND ES9018 to Schiit Lyr amp to Senn HD 700 headphones
Post Reply