Page 6 of 16
Re: SD player UI development
Posted: Tue Apr 17, 2018 3:21 pm
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.
Re: SD player UI development
Posted: Tue Apr 17, 2018 3:46 pm
by jkeny
Here's the github which has a better ui for the flashair SD card
https://github.com/DrLex0/FlashAirUI
Re: SD player UI development
Posted: Tue Apr 17, 2018 10:52 pm
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?
Re: SD player UI development
Posted: Tue Apr 17, 2018 11:12 pm
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?
Re: SD player UI development
Posted: Tue Apr 17, 2018 11:28 pm
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?
Re: SD player UI development
Posted: Tue Apr 17, 2018 11:57 pm
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
Re: SD player UI development
Posted: Wed Apr 18, 2018 12:12 am
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
Re: SD player UI development
Posted: Wed Apr 18, 2018 1:10 am
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
Re: SD player UI development
Posted: Wed Apr 18, 2018 10:38 am
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
Re: SD player UI development
Posted: Wed Apr 18, 2018 3:38 pm
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