Thank you for your donation!


[How To] CD playback
#31
lol, "...comment lines"
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#32
(03-09-2020, 12:17 AM)Tim Curtis Wrote: Kent,

Maybe we should try to integrate this into r650 given the rich set of features already completed and planned?

As long as we can detect its a CD we can add some logic to display "16/44.1" and hide the "unknown.../unknown..." line from Playlist.

Artist/album/title lookup would be something to look at post r650

-Tim

A thousand per cent Hell ya!
Reply
#33
(03-07-2020, 04:04 PM)TheOldPresbyope Wrote: @Onionhead 

Sorry, I've been using the command line for so many years I forget others may not be at the same level of literacy.

First, all the commands I used in my follow-up posts were intended just to illustrate how the filesystems in the two partitions on the uSD card end up as a merged filesystem when moOde is running. That was only because in your first post you said

Quote: Have the sd card with moOde 6.4.2 in my mac. Zip file is on the mac. Using terminal I have navigated to the sd card "boot" and then typed in cd /home/pi which gives error No such file or directory.


I was trying, clumsily as it turns out, to show why, in this Mac-editing mode, you would have to navigate to the sd card "rootfs". (I should have gone a step further and pointed out that you would then type in "cd home/pi" --- e.g., without the leading "/", because the card's filesystem has been mounted at "rootfs" in your Mac's filesystem.)

But now you're trying commands on the RPi so let's start over.

When you ssh into moOde, you are presented with the command-line prompt

Code:
pi@moode:~ $

This says you are logged in as user "pi" on a host named "moode" and in your home directory "~", is the command-line interpreter's shorthand for "/home/pi". The "$" character is the actual prompt. [1] You type in your commands after it.

If you were at some other level in the directory system, you'd see something like

Code:
pi@moodecd:/var/www/command $

which is what you saw in one of my examples: I was logged in as user "pi" on host "moodecd" and in the "/var/www/command" directory. The directory that I was in was irrelevant to the problem I was discussing; I should have taken care to return to my home directory before executing the command I was showing.

The point is that only what comes after the "$" is something you'd want to enter.

So let's go back to square one.

You've booted your moOde player.  You've ssh'ed into it. You're sitting at the command line prompt I showed in the first code block above. Now you should be able to enter the commands just as I gave them in the README in my github repo.


Regards,
Kent

[1] I shall resist the urge to talk about differences in command line interpreters. We're running bash by default in moOde/Raspbian.

@TheOldPresbyope


Clearly my command line skills are non existent, but I trying my best to learn. Without folks like you patiently guiding (folks like me) the learning process  would no doubt be fruitless.  I am going to keep on plugin along.
Reply
#34
hi, there,

i got moode 6.4.2 on rpi 3b, install moodecdplay but no cd tracks display.
Code:
pi@moode:~ $ cd /home/pi/moOdeCDPlay-master
pi@moode:~/moOdeCDPlay-master $ /bin/bash install.sh
Install V0 moOdeCDPlay files in moOde.
Done - please reboot moOde to complete installation.

that's the installation


Code:
pi@moode:~ $ dmesg | tail -20
[   10.873538] 8021q: adding VLAN 0 to HW filter on device eth0
[   10.882359] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   12.243489] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neigh.eth0.retrans_time_ms instead
[   21.662172] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[  167.402971] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[  167.534437] usb 1-1.2: New USB device found, idVendor=05e3, idProduct=0701, bcdDevice= 0.02
[  167.534452] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  167.534462] usb 1-1.2: Product: USB TO IDE
[  167.535420] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  167.535844] usb-storage 1-1.2:1.0: Quirks match for vid 05e3 pid 0701: 520
[  167.535966] scsi host1: usb-storage 1-1.2:1.0
[  168.616024] scsi 1:0:0:0: CD-ROM            TSSTcorp CD/DVDW SH-W162Z TS01 PQ: 0 ANSI: 0
[  168.616795] scsi 1:0:0:0: Attached scsi generic sg1 type 5
[  168.679480] sr 1:0:0:0: Power-on or device reset occurred
[  168.745379] sr 1:0:0:0: [sr0] scsi3-mmc drive: 8x/48x writer cd/rw xa/form2 cdda tray
[  168.745392] cdrom: Uniform CD-ROM driver Revision: 3.20
[  168.746641] sr 1:0:0:0: Attached scsi CD-ROM sr0
[  169.133001] usb 1-1.2: reset high-speed USB device number 6 using dwc_otg
[  182.513301] usb 1-1.2: USB disconnect, device number 6
[  182.532881] scsi 1:0:0:0: rejecting I/O to dead device

the cd drive is in the system





any guidance and suggestions are appreciated.
Reply
#35
(03-21-2020, 10:24 AM)eslei Wrote: hi, there,

i got moode 6.4.2 on rpi 3b, install moodecdplay but no cd tracks display.
Code:
pi@moode:~ $ cd /home/pi/moOdeCDPlay-master
pi@moode:~/moOdeCDPlay-master $ /bin/bash install.sh
Install V0 moOdeCDPlay files in moOde.
Done - please reboot moOde to complete installation.

that's the installation


Code:
pi@moode:~ $ dmesg | tail -20
[   10.873538] 8021q: adding VLAN 0 to HW filter on device eth0
[   10.882359] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   12.243489] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neigh.eth0.retrans_time_ms instead
[   21.662172] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[  167.402971] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[  167.534437] usb 1-1.2: New USB device found, idVendor=05e3, idProduct=0701, bcdDevice= 0.02
[  167.534452] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  167.534462] usb 1-1.2: Product: USB TO IDE
[  167.535420] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  167.535844] usb-storage 1-1.2:1.0: Quirks match for vid 05e3 pid 0701: 520
[  167.535966] scsi host1: usb-storage 1-1.2:1.0
[  168.616024] scsi 1:0:0:0: CD-ROM            TSSTcorp CD/DVDW SH-W162Z TS01 PQ: 0 ANSI: 0
[  168.616795] scsi 1:0:0:0: Attached scsi generic sg1 type 5
[  168.679480] sr 1:0:0:0: Power-on or device reset occurred
[  168.745379] sr 1:0:0:0: [sr0] scsi3-mmc drive: 8x/48x writer cd/rw xa/form2 cdda tray
[  168.745392] cdrom: Uniform CD-ROM driver Revision: 3.20
[  168.746641] sr 1:0:0:0: Attached scsi CD-ROM sr0
[  169.133001] usb 1-1.2: reset high-speed USB device number 6 using dwc_otg
[  182.513301] usb 1-1.2: USB disconnect, device number 6
[  182.532881] scsi 1:0:0:0: rejecting I/O to dead device

the cd drive is in the system





any guidance and suggestions are appreciated.

Hi,

I have CDPlay working in moOde 6.4.2 on an RPi4B at the moment. Similar entries show up in dmesg, most importantly, the "Attached scsi CD-ROM sr0" line, but not your last three lines. I don't know what's resetting your drive and disconnecting it. The final line is just the system saying the drive is no longer there.

What do you mean "no cd tracks display"? Was this before the drive disconnected? If so, was it after you've installed my code, rebooted moOde, and then inserted a CD into the drive? FYI, nothing happens if the CD is already present when moOde boots, only when the drive detects the insertion of a CD after moOde has fully initialized.

Stay safe.

Regards,
Kent

PS - here's the comparable dmesg output for my player, edited to remove other initialization messages:

Code:
...

[    1.423145] usb 1-1.1: New USB device found, idVendor=0e8d, idProduct=1887, bcdDevice= 0.00
[    1.423190] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.423221] usb 1-1.1: Product: Portable Super Multi Drive
[    1.423247] usb 1-1.1: Manufacturer: Hitachi-LG Data Storage Inc
[    1.423272] usb 1-1.1: SerialNumber: M03J3E12019
...
[    2.495193] scsi 0:0:0:0: CD-ROM            HL-DT-ST DVDRAM GP65NB60  PF00 PQ: 0 ANSI: 0
...
[    3.481908] scsi 0:0:0:0: Attached scsi generic sg0 type 5
[    3.526870] sr 0:0:0:0: Power-on or device reset occurred
[    3.542801] sr 0:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[    3.542815] cdrom: Uniform CD-ROM driver Revision: 3.20
[    3.544345] sr 0:0:0:0: Attached scsi CD-ROM sr0
...
Reply
#36
@ TheOldPresbyope

i got the cd in the drive before boot, after take the disk out reboot moode, it works.


thank you
Reply
#37
Hello Kent,
would you please be so kind to accept a suggestion? Due the noise of a lot of external device, would you please add the command "eject -x 2" to your code every time you open a new CD: it will permit to have enough time to fill the buffer and to have not the maximum speed (default) that is often noisy.
Thanks a lot and best regards,
Francesco
Reply
#38
(04-08-2020, 07:54 PM)fdealexa Wrote: Hello Kent,
would you please be so kind to accept a suggestion? Due the noise of a lot of external device, would you please add the command "eject -x 2" to your code every time you open a new CD: it will permit to have enough time to fill the buffer and to have not the maximum speed (default) that is often noisy.
Thanks a lot and best regards,
Francesco

Hi, Francesco.

Interesting issue. The two CD players I test with are pretty quiet so I haven't thought any about it.

I'm working on version 1.0 now that moOde 6.5.0 is firming up. It may not make it into this release but it will be compatible with it. It will be available in my github repo. I'll look into your noise issue at the same time.

Regards,
Kent
Reply
#39
Thanks again and regards,
Francesco
Reply
#40
Hello everybody,
I have discovered that it is possible run CD playback with the "SoX Resampling" function ON. It is enough to increase the "Audio buffers".
I tried at 32K and it is OK... anyway I keep the value at max (65535).
I hope it is usefull.
Regards,
Francesco
Reply


Forum Jump: