Previous in Forum: FEA Software Reviews   Next in Forum: Microcontroller with JTAG
Close
Close
Close
5 comments
Rate Comments: Nested
Power-User

Join Date: Jan 2011
Location: Scotland
Posts: 361

Batch File Command Parameters

07/02/2012 5:30 PM

I have a batch file for controlling a program. It is the program that stores stuff on tape.

How do I use the parameters properly? I can get the two parameters -M and -Y to work, but when I add in the -Bn to change the baud rate, it does not accept it. It just says invalid option. The program does have a baud option. It says that 1 = 600 and 2 = 1200. Am I doing something wrong in the batch file?

KCS -M -Y -Bn = 2 1.f 1.wav

Register to Reply
Pathfinder Tags: tape data store
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Jun 2010
Posts: 1296
Good Answers: 104
#1

Re: Batch file command parameters

07/02/2012 5:44 PM

This is pretty much a shot in the dark, but instead of -Bn = 2, I assume you're doing this to get 1200 baud?, it should be -B2. I don't have a clue what the rest of the statement, '1.f 1.wav', is doing.

Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#2

Re: Batch File Command Parameters

07/02/2012 10:51 PM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Power-User

Join Date: Jan 2011
Location: Scotland
Posts: 361
#3
In reply to #2

Re: Batch File Command Parameters

07/03/2012 9:08 AM

No, it is just standard parameters. I changed the standard to CUTS format which is 1200 baud. I am now getting about 500kb on a standard tape. I just record it to tape at an 88200 Hz sample rate when the wav files that it produces are 22050. If I record the tape into the computer to a wav file, I record it at 88200 and change it back to 22050 to keep the baud rates matching. To write a 97kb bitmap image to the tape, it takes 3 minutes and 45 seconds at 4800 baud. This is on my modified high speed tape drive.

Register to Reply
Guru

Join Date: Feb 2012
Posts: 595
#4
In reply to #3

Re: Batch File Command Parameters

07/05/2012 9:52 AM

Another blind guess

if you're under Windows you likely can't change/initialize your COM from command line
you have to set it manually from

My Computer/Properties/Hardware/Device/Manager/Ports/Serial Port (COM?)/Properties/Port Settings

...

another issue is with the RS-232 Cable itself - i've managed top Baud X-on/X-off /!\ with Windows [ Hyper Terminal <~~> Hyper Terminal ]

but there was a percent of error packets

when transmitting (digital as) analog - the error (flow) control is an unknown beast

you likely shoud consider adding a module to your tape drive (PIC based or something - that generates signals locally _ _ _ your data needs to be there ontime (buffer MEM) _ nothing's easy & you do have to reinvent the bike most each time again and again (coz the suystems are unique))

__________________
ci139
Register to Reply
Power-User

Join Date: Jan 2011
Location: Scotland
Posts: 361
#5
In reply to #4

Re: Batch File Command Parameters

07/05/2012 2:30 PM

I have actually found that the CUTS standard is far more stable than KCS. I think I may now be able to get 2Mb on each tape now because I can record different files to each audio channel and turn over the tape and do likewise. The data rate is just under 1Kb/s. I recorded several bitmap images to tape and read them back and there was not one error on the whole tape.

Register to Reply
Register to Reply 5 comments
Copy to Clipboard

Users who posted comments:

bigg (1); ci139 (1); hydrogenhead (2); SolarEagle (1)

Previous in Forum: FEA Software Reviews   Next in Forum: Microcontroller with JTAG

Advertisement