Zardoz
Posts: 59
Joined: Thu Jul 04, 2013 10:18 am
Location: Kingdom of Spain

Cassete tapes storage

Wed Jul 10, 2013 8:47 am

Is there any way to store data in cassete tapes like in the old computer with the raspberry pi?
I'm sure linux can do that somehow.

ghans
Posts: 7886
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Cassete tapes storage

Wed Jul 10, 2013 9:06 am

Interesting question . I guess you could start trying with
Ham radio software.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

PiGraham
Posts: 4771
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Cassete tapes storage

Wed Jul 10, 2013 9:07 am

It's certainly possible. If a 4Mhz Z80 in a ZX80 can do it a 700MHz RasPi can do it.
The Sinclairs did it just by recording logic level transitions. It would be more reliable to use FSK - two or more different frequency tones. I'm old enough to remember the frustrations of tying to get a program to load from a C90 onto a Spectrum, tweaking the volume and tone controls to find the sweet spot where it worked half the time. Happy days.

As to whether it's a sensible idea, the data rate and capacity is poor, tapes are rare and longevity is short. Solid state is faster, bigger, cheaper and more reliable.

If you have a go at this you have to play the sound and flash the screen border.

Given the popularity of Spectrum emulators I assume there are PC Linux tape loaders around that use a sound card.
It should be possible to use Pi GPIO.

Zardoz
Posts: 59
Joined: Thu Jul 04, 2013 10:18 am
Location: Kingdom of Spain

Re: Cassete tapes storage

Wed Jul 10, 2013 9:14 am

I used to do it when I was a kid with an msx computer and a regular tape recorder. It was lots of fun the noise it made while recording in the tape or from the tape.
As linux could do this also, and in some places they do still record information in 1Tb tapes (yes 1Tb!), I'm sure there is a way to do it. It used to be done with the command $tar. But I'm not sure this command has this ability anymore.

ghans
Posts: 7886
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Cassete tapes storage

Wed Jul 10, 2013 9:23 am

Hey , there is a difference between using streamers
with tape cartridges and "real" audio casettes.

The first thing is still done with specialised interfaces ,
cartridges and drives.

The latter can be done by everybody with some cables
and a casette deck - what we are missing is the modem
software. Checking out emulators and ham radio
software is my suggestion . I found a program named
minimodem which looks interesting.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Zardoz
Posts: 59
Joined: Thu Jul 04, 2013 10:18 am
Location: Kingdom of Spain

Re: Cassete tapes storage

Wed Jul 10, 2013 9:49 am

It looks that linux can do this with the command:
# tar -czf /dev/st0 file.dat
This command will store file.dat in a tape. I have tried and the command does not give errors. However I did not hear any noise from the speakers. I wonder what is the output and if any particular additional hardware is needed.

http://www.cyberciti.biz/faq/linux-tape ... and-howto/

PiGraham
Posts: 4771
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Cassete tapes storage

Wed Jul 10, 2013 10:11 am

Zardoz wrote:It looks that linux can do this with the command:
# tar -czf /dev/st0 file.dat
This command will store file.dat in a tape. I have tried and the command does not give errors. However I did not hear any noise from the speakers. I wonder what is the output and if any particular additional hardware is needed.

http://www.cyberciti.biz/faq/linux-tape ... and-howto/
/dev/st0 is a very different thing - a SCSI digital tape system. That won't work with audio cassettes.

Maybe this will lead somewhere
http://ramsoft.bbk.org.omegahg.com/maketzx.html

ghans
Posts: 7886
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Cassete tapes storage

Wed Jul 10, 2013 12:04 pm

Compile minimodem and try this :

Code: Select all

gzip -c anyfile | minimodem -t 1200
Decode :

Code: Select all

minimodem -r 1200 | gzip -cd
It works with audio files (not tried it with casettes) on my desktop box.

ghans

EDIT : minimodem seems to be in the repos.
http://archive.raspbian.org/raspbian/po ... minimodem/
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Zardoz
Posts: 59
Joined: Thu Jul 04, 2013 10:18 am
Location: Kingdom of Spain

Re: Cassete tapes storage

Wed Jul 10, 2013 6:08 pm

Thanks a lot...I will try to see what happens!

petergodward
Posts: 1
Joined: Tue Nov 21, 2017 1:43 pm

Re: Cassete tapes storage

Tue Nov 21, 2017 2:27 pm

Maybe
http://www.worldofspectrum.org/utilities.html#tzxtools or
http://www.worldofspectrum.org/faq/reso ... lities.htm
can be of help.
The emulator Fuse, for Unix and Mac OS X has "tapeconv" and "tzxlist" in the 'additional utilities' package.
There maybe an issue with needing a USB sound card to record an initial audio file.
SEE ALSO in

Code: Select all

man fuse-utils 

Return to “Other projects”