Добавить
Уведомления

Music player Raspberry-pi using Buildroot

1-Raspberry Boots with SSH Enabled and and eth0 is hocked to address static IP 2-Configured audio card and selected it's requirements from buildroot 3-On Booting it automatically plays /root/superMusic/song0.mp3 via 3.5mm audio jack (see video) 3-I put a script in /etc/init.d/ for 2 purposes playing a song and initializing a daemon 4-After Booting song finishes I used a single button to control playing a playlist on the pi (play-pause) it actually "resumes" the song where it have been paused. 5-So On booting the raspberry plays a song then executes a daemon this daemon has a while loop which check for the 3 buttons 6-I added 2 more buttons for prev track and next track using bash arrays cause i couldn't use the next or prev options in (mpg123) as this options was in t a mode which requires keystrokes from keyboard ( I tried to emulate keyboard strokes and pass it to it's file descriptor /proc/$(pidof mpg123)/fd/0 but it doesn't succeed) && by the way mpg123 has a remote mode that accepts commands in which I could make a FIFO pipe and pass arguments (but it doesn't have prev next options unfortunately) 8-Installed Wifi driver as it doesn't exist in buildroot by default 9-Now when I power up my raspberry and type ifconfig -a i can see my wlan0 and when running iwconfig i can see the wlan0 is hocked to my router That is an educational initiative.

12+
16 просмотров
2 года назад
12+
16 просмотров
2 года назад

1-Raspberry Boots with SSH Enabled and and eth0 is hocked to address static IP 2-Configured audio card and selected it's requirements from buildroot 3-On Booting it automatically plays /root/superMusic/song0.mp3 via 3.5mm audio jack (see video) 3-I put a script in /etc/init.d/ for 2 purposes playing a song and initializing a daemon 4-After Booting song finishes I used a single button to control playing a playlist on the pi (play-pause) it actually "resumes" the song where it have been paused. 5-So On booting the raspberry plays a song then executes a daemon this daemon has a while loop which check for the 3 buttons 6-I added 2 more buttons for prev track and next track using bash arrays cause i couldn't use the next or prev options in (mpg123) as this options was in t a mode which requires keystrokes from keyboard ( I tried to emulate keyboard strokes and pass it to it's file descriptor /proc/$(pidof mpg123)/fd/0 but it doesn't succeed) && by the way mpg123 has a remote mode that accepts commands in which I could make a FIFO pipe and pass arguments (but it doesn't have prev next options unfortunately) 8-Installed Wifi driver as it doesn't exist in buildroot by default 9-Now when I power up my raspberry and type ifconfig -a i can see my wlan0 and when running iwconfig i can see the wlan0 is hocked to my router That is an educational initiative.

, чтобы оставлять комментарии