USB flash utilities

28 views
Skip to first unread message

Glenn Roberts

unread,
May 16, 2013, 6:24:45 AM5/16/13
to se...@googlegroups.com
Now that some of you are getting your USB boards built you will want to try them out. I've written four small utilities that should help. These are written in C and work for both HDOS and CP/M. Norberto will make them available on his web site. Here are brief descriptions of each:

VDIR performs a directory listing on the flash drive. It can only list the full directory - no wild card support yet.

VGET is used to retrieve files from the flash drive. It currently can do only one file at a time (no wild card or multi file support yet). It must use the same file name on both devices. Since there are some characters allowed in DOS style names that are illegal in HDOS and CP/M you may have to rename some files before copying. It also gives no warning before overwriting a file and does not check to see if there is enough room for the file before beginning the transfer.

VPUT is the opposite of VGET and the above caveats apply. Both utilities copy data in 256-byte blocks and make no distinction between text and binary content. Since HDOS uses Unix style end-of-line conventions (NL) and CP/M uses DOS style (CR/LF) I may need to add a switch to handle this. In the mean time a workaround for copying from HDOS to/from CP/M is to use a utility like Notepad++ on the PC to change the EOL setting for the file.

VTALK let's you communicate directly with the system-on-a-chip device which has a DOS-like command interface. The commands are described in the VDIP firmware manual on the FTDI web site. One useful use of VTALK is to change to a different subdirectory on the flash drive. Control-C exits back to the command prompt.

I will continue to improve and enhance these utilities an am interested in your feedback and suggestions!

- Glenn

Sent from my iPad

Norberto Collado

unread,
May 16, 2013, 9:51:34 AM5/16/13
to se...@googlegroups.com
Website link: vtalkzip.pkg


Rename vtalkzip.pkg to vtalk.zip

Norberto

--
You received this message because you are subscribed to the Google Groups "SEBHC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sebhc+un...@googlegroups.com.
To post to this group, send email to se...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Norberto Collado

unread,
May 18, 2013, 1:44:50 AM5/18/13
to se...@googlegroups.com
Attached is an HDOS image I created which contains Glenn's HDOS utilities.
This is version -1 because I was not able to compile latest version in HDOS.
Also this image contains the latest CP/M utilities from Glenn. I do not have
the means to create an H8D image in CP/M with Dan's utilities; only HDOS.

This should help for the time being.

Norberto

-----Original Message-----
From: se...@googlegroups.com [mailto:se...@googlegroups.com] On Behalf Of
Glenn Roberts
Sent: Thursday, May 16, 2013 3:25 AM
To: se...@googlegroups.com
Subject: [sebhc] USB flash utilities

USBHDOS.h8d
USBHDOS.zip

Norberto Collado

unread,
May 18, 2013, 3:11:04 AM5/18/13
to se...@googlegroups.com
Attached are the USB HDOS utilities using latest version. I forgot to change
the end-of-line conventions on the vutil.c file to compile properly.

Unzip attached file and copy the contents into a USB key drive, and by using
the vget.abs utility transfer all the files into your HDOS system. Also it
contains the HDOS source files. I assuming that you already loaded the h8d
image send previously to your H8 HDOS system which contains previous
version.

Norberto

-----Original Message-----
From: Norberto Collado [mailto:norberto...@koyado.com]
Sent: Friday, May 17, 2013 10:45 PM
To: 'se...@googlegroups.com'
Subject: RE: [sebhc] USB flash utilities

Attached is an HDOS image I created which contains Glenn's HDOS utilities.
This is version -1 because I was not able to compile latest version in HDOS.
Also this image contains the latest CP/M utilities from Glenn. I do not have
the means to create an H8D image in CP/M with Dan's utilities; only HDOS.

This should help for the time being.

Norberto

-----Original Message-----
From: se...@googlegroups.com [mailto:se...@googlegroups.com] On Behalf Of
Glenn Roberts
Sent: Thursday, May 16, 2013 3:25 AM
To: se...@googlegroups.com
Subject: [sebhc] USB flash utilities

USBHDOS.zip

Norberto Collado

unread,
May 18, 2013, 2:17:00 PM5/18/13
to se...@googlegroups.com
Attached is the updated HDOS H8D image. Besides Glenn's USB utilities, I
added Dan's utilities and Stanley utilities for a complete solution.

The above will support the VDIP1 and the FT245 USB solutions. Also it
supports the H8-RTC board and the H8 Speed board as well.

Have fun,
USBHDOS.h8d
USBHDOS.zip

hl...@aol.com

unread,
May 19, 2013, 9:40:16 AM5/19/13
to se...@googlegroups.com
Norberto,
Sorry to bother you but I've installed the latest USB utilities and for some reason I'm having problems.
 
The following is what I did:
 
1. Turn on H8 and reset. I observed the following:
        VDIP1 chip  D2 LED on, D3 LED off
        FT245R chip D1 LED off, D0 LED blinking ~2/sec
2. Plug in memory stick. The format is FAT32. The directory contains the VTALK.C files same as you showed,
3. Boot HDOS2.0
4. Run VTALK. Get the following response:
        Enter VDIP commands, Ctrl-C to exit
        Ver 03.68VDAPF  On-Line:  (Note: your version is 03.69VDAPF)
        Device Detected P2
        No Upgrade
        D:\>  (Blinking cursor)
The VDIP chip LED on the right side is now on
5. Now I type VDIR followed by return - Nothing happens!
 
Any ideas?
 
Thanks,
Harold
      
-----Original Message-----
From: Norberto Collado <norberto...@koyado.com>
To: sebhc <se...@googlegroups.com>
Sent: Sat, May 18, 2013 2:16 pm
Subject: RE: [sebhc] USB flash utilities


Subject: [sebhc] USB flash utilities

Now that some of you are getting your USB boards built you will want to try
them out.  I've written four small utilities that should help.  These are
written in C and work for both HDOS and CP/M.  Norberto will make them
available on his web site.  Here are brief descriptions of each:

VDIR performs a directory listing on the flash drive.  It can only list the
full directory - no wild card support yet.

VGET is used to retrieve files from the flash drive.  It currently can do
only one file at a time (no wild card or multi file support yet). It must
use the same file name on both devices.  Since there are some characters
allowed in DOS style names that are illegal in HDOS and CP/M you may have to
rename some files before copying.  It also gives no warning before
overwriting a file and does not check to see if there is enough room for the
file before beginning the transfer.

VPUT is the opposite of VGET and the above caveats apply.  Both utilities
copy data in 256-byte blocks and make no distinction between text and binary
content.  Since HDOS uses Unix style end-of-line conventions (NL) and CP/M
uses DOS style (CR/LF) I may need to add a switch to handle this.  In the
mean time a workaround for copying from HDOS to/from CP/M is to use a
utility like Notepad++ on the PC to change the EOL setting for the file.

VTALK let's you communicate directly with the system-on-a-chip device which
has a DOS-like command interface.  The commands are described in the VDIP
firmware manual on the FTDI web site.  One useful use of VTALK is to change
to a different subdirectory on the flash drive.  Control-C exits back to the
command prompt.

I will continue to improve and enhance these utilities an am interested in
your feedback and suggestions!

- Glenn

Sent from my iPad

-- 
You received this message because you are subscribed to the Google Groups 
"SEBHC" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sebhc+un...@googlegroups.com.
To post to this group, send email to se...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Glenn Roberts

unread,
May 19, 2013, 10:04:58 AM5/19/13
to se...@googlegroups.com
Harold: You are fine.  The VTALK program is really just a diagnostic utility.  It is probably for "advanced" users and you may never need it.  At the D:\> prompt you can only issue the special VDIP commands which are listed in the firmware manual.  Try DIR which is one of the VDIP commands. You should see a listing of files on the drive.  yuo cant transfer files using VTALK, you have to use either VGET or VPUT, so hit control c to get back to HDOS. 

There are three commands that work from the HDOS command prompt.  They are VDIR, VGET, and VPUT.  Use VGET to pull files off the USB stick,  e.g. VGET SAMPLE.DAT would copy the file SAMPLE.DAT from the flash drive to your HDOS disk...

I'll have to put together a little users guide with examples...

Let me know if you have any more problems


Sent from my iPad

Norberto Collado

unread,
May 19, 2013, 12:08:21 PM5/19/13
to se...@googlegroups.com

VDIR is an illegal command.

 

Try the following;

 

1. Insert a FAT32 formatted USB flash device into the VDIP1 controller.

2. From the HDOS prompt type VTALK.ABS

3. Press the enter key to get the VDP1 prompt.

4. Type “DIR” to display USB contents.

5. Type Control-C to exit the VTALK utility.

6. That completes the test of the VDIP1 controller

 

It seems that everything is operational. See picture below!

 

image001.jpg

Norberto Collado

unread,
May 19, 2013, 12:12:46 PM5/19/13
to se...@googlegroups.com

Thanks Glenn! Also the H8-USB Controller contains screen captures on how to use each command (pages 29, 30 & 31);

 

http://koyado.com/Heathkit/H-8_USB_files/H8-USB%20CONTROLLER%20V1_0-1.pdf

 

From: se...@googlegroups.com [mailto:se...@googlegroups.com] On Behalf Of Glenn Roberts
Sent: Sunday, May 19, 2013 7:05 AM
To: se...@googlegroups.com
Subject: Re: [sebhc] USB flash utilities

 

Harold: You are fine.  The VTALK program is really just a diagnostic utility.  It is probably for "advanced" users and you may never need it.  At the D:\> prompt you can only issue the special VDIP commands which are listed in the firmware manual.  Try DIR which is one of the VDIP commands. You should see a listing of files on the drive.  yuo cant transfer files using VTALK, you have to use either VGET or VPUT, so hit control c to get back to HDOS. 

Reply all
Reply to author
Forward
0 new messages