VOGONS


USB ISA cards?

Topic actions

Reply 80 of 125, by Jinxter

User metadata
Rank Member
Rank
Member
FreddyV wrote on 2022-06-17, 20:01:

Did anybody test my driver ?

I have tested your drivers v0.21 on my 80286 10Mhz.
I tried with the CH375V86.SYS, CH375V88.SYS and the CH375286.SYS. Sadly none of them worked. I got the exact same error on all three drivers. See picture.
Suggestion: Maybe you should have a text in each driver telling which version (88,86 or 286) it is.

My original CH375dos.SYS works. I only have versjon V1.9 (and 2.0A) - Not the V1.9A - Maybe you could upload it?
The USB stick is formatted as Fat16 with 991MB

Attachments

  • Freddy V0.21.jpg
    Filename
    Freddy V0.21.jpg
    File size
    396.77 KiB
    Views
    932 views
    File comment
    FreddyV V0.21 USBDOS Driver
    File license
    Public domain

Check out my YouTube channel: Retro Erik https://www.youtube.com/c/RetroErik
My collection: https://retro.hageseter.com

Reply 82 of 125, by FreddyV

User metadata
Rank Oldbie
Rank
Oldbie

Hi,

Here is the V0.22 Driver version, with 286 supported and some small changes.

30/06/22 V0.22
- BUG Fix : IRQ and Speed parameters were reversed, so the Speed was 3 by Default
- 286 Version tested on 286 8MHz
- Some Useless code removed
- Added some display : DOS Version, Chip Version, Partition number

Attachments

Reply 86 of 125, by cyberluke

User metadata
Rank Member
Rank
Member

Hi, long time no see

1) do you have github or some website or cloud storage for this project?

2) what is A1? I can burn eeprom there

2) I bought it on Aliexpress, twice. The chip manufacturer is WCH. They already have this DOS driver for usb storage. I had some communication with them. I have links for documentation and example projects. It is possible to add support for many different usb devices, but you need to compile their example project and write some interface for USB HID. For example I would like it works with Zip drive USB version. I found out it just simulates SCSI over USB bridge as other Zip driver. But did not have time to investigate this further.

Reply 87 of 125, by FreddyV

User metadata
Rank Oldbie
Rank
Oldbie
cyberluke wrote on 2022-07-06, 19:05:
Hi, long time no see […]
Show full quote

Hi, long time no see

1) do you have github or some website or cloud storage for this project?

2) what is A1? I can burn eeprom there

2) I bought it on Aliexpress, twice. The chip manufacturer is WCH. They already have this DOS driver for usb storage. I had some communication with them. I have links for documentation and example projects. It is possible to add support for many different usb devices, but you need to compile their example project and write some interface for USB HID. For example I would like it works with Zip drive USB version. I found out it just simulates SCSI over USB bridge as other Zip driver. But did not have time to investigate this further.

Hi,

The more doc we can have the better it is of course.
It is really usefull for disk, and Mouse can be nice.

As I use their code decompiled, I am not sure I can share it.... (Even if it is simple to decompile)

Reply 88 of 125, by FreddyV

User metadata
Rank Oldbie
Rank
Oldbie

Hi,

@Cyberluke Do you have experince in the CH375/CH376 Code ?

It seems that the Command =0Ah and =0Bh can be used to do multiple sub commands.

In the Driver, they are used to so things I can't identify... These "Advanced" Command are not present in the BIOS.

For example:

               mov     ah, 31h ; '1'
call CH375_SendCMD_0A
and al, 3Fh
mov ah, 31h ; '1'
call CH375_SendCMD_0B
mov ah, 32h ; '2'
call CH375_SendCMD_0A
shr al, 1
shr al, 1
shr al, 1
shr al, 1
and al, 0Fh
or al, 80h
mov ah, 41h ; 'A'
call CH375_SendCMD_Data
mov ah, 33h ; '3'
call CH375_SendCMD_0A
shr al, 1
shr al, 1
shr al, 1
shr al, 1
and al, 0Fh
mov ah, 41h ; 'A'
call CH375_SendCMD_Data

Command 0Ah, Sub command 32h,33h
Command 0Bh, Sub Command 31h

CH375_GetIRQStatus_And_CMD_0A_20 proc near
call CH375_GetIRQStatus
mov ah, 20h ; ' '
call CH375_SendCMD_0A
and al, 20h
retn
CH375_GetIRQStatus_And_CMD_0A_20 endp

This one is used at the begining of all the Function (Check if device changed, Read and Write sector)
I suspect this is to verify if the Chip is busy or something like this.
Command 0Ah, Sub command 20h Return something in the Bit 5

I found some commands for 0Ah like :
CMD_GET_TOGGLE EQU 0AH ;Get the synchronization status of an OUT transaction
; input: data 1AH
; output: sync status
; If bit 4 is 1, the OUT transaction is synchronized, otherwise the OUT transaction is not synchronized
CMD_GET_MAX_LUN EQU 0AH ;Host method: Get the maximum logical unit number of the USB memory
; input: data 38H
; output: maximum logical unit number

and 0Bh:
CMD_CHK_SUSPEND EQU 0BH ;Device Mode: Set the way to check the USB bus suspend status
; Input: data 10H, check mode
; 00H=Do not check for USB suspend, 04H=Check for USB suspend at 50mS intervals, 05H=Check for USB suspend at 10mS intervals

CMD_SET_RETRY EQU 0BH ;Host mode: Set the number of retries for USB transaction operations
; input: data 25H, number of retries
; If bit 7 is 0, do not retry when receiving NAK, if bit 7 is 1, bit 6 is 0, retry infinitely when receiving NAK,
; if bit 7 is 1, bit 6 is 1, retry for up to 2 seconds when receiving NAK, Bit 5~bit 0 is the number of retries after timeout

CMD_SET_DISK_LUN EQU 0BH ;Host mode: Set the current logical unit number of the USB memory
; Input: data 34H, new current logical unit number (00H-0FH)

CMD_SET_PKT_P_SEC EQU 0BH ;Host mode: Set the total number of packets per sector of the USB memory
; Input: data 39H, new total number of packets per sector(08H,10H,20H,40H)

Reply 89 of 125, by Jinxter

User metadata
Rank Member
Rank
Member
FreddyV wrote on 2022-07-05, 06:12:

The driver just above work only on the lotech board with A1 Wired on the chip.

By mistake i tested the CH375216.SYS - on my USBISA card i bought on AliExpress. It works on my 286 10 Mhz machine. I copied PlanetX3 fropm USB to CF. 566KB tok 46Sec. Speed = 12KB/Sec.

Last edited by Jinxter on 2022-07-12, 16:37. Edited 1 time in total.

Check out my YouTube channel: Retro Erik https://www.youtube.com/c/RetroErik
My collection: https://retro.hageseter.com

Reply 90 of 125, by Jinxter

User metadata
Rank Member
Rank
Member
FreddyV wrote on 2022-06-30, 20:19:

Here is the V0.22 Driver version, with 286 supported and some small changes.

I just tested the CH375286.SYS. v0.22 It works on my 286 10 Mhz machine. I copied PlanetX3 from USB to CF. 566KB tok 36Sec. Speed = 15,7KB/Sec. The original driver (V2.0A) was 9,25KB/Sec. And original V1.9 (no A) was also 15,7KB/Sec.

I am not using the lotec card, but the Aliexpress card.

Attachments

Check out my YouTube channel: Retro Erik https://www.youtube.com/c/RetroErik
My collection: https://retro.hageseter.com

Reply 91 of 125, by FreddyV

User metadata
Rank Oldbie
Rank
Oldbie

Hi,

It is strange, it is too slow.... Are you sure you used the good one ?

The CH375216.SYS I shared was buggy, I published the correct version on the Vintage Computer Forum thread.

But you need the LoTech for this.

Reply 92 of 125, by FreddyV

User metadata
Rank Oldbie
Rank
Oldbie
Jinxter wrote on 2022-07-12, 16:35:

I just tested the CH375286.SYS. v0.22 It works on my 286 10 Mhz machine. I copied PlanetX3 from USB to CF. 566KB tok 36Sec. Speed = 15,7KB/Sec. The original driver (V2.0A) was 9,25KB/Sec. And original V1.9 (no A) was also 15,7KB/Sec.

Can you test with disktest ?

Reply 93 of 125, by Jinxter

User metadata
Rank Member
Rank
Member
FreddyV wrote on 2022-07-13, 09:56:

The CH375216.SYS I shared was buggy, I published the correct version on the Vintage Computer Forum thread.
But you need the LoTech for this.

I downloaded a newers version of the CH375216.SYS from Vintage Computer Forum. Now the driver wont work on my Aliexopress card - as expected.

Check out my YouTube channel: Retro Erik https://www.youtube.com/c/RetroErik
My collection: https://retro.hageseter.com

Reply 94 of 125, by Jinxter

User metadata
Rank Member
Rank
Member
FreddyV wrote on 2022-07-13, 14:48:
Jinxter wrote on 2022-07-12, 16:35:

I just tested the CH375286.SYS. v0.22 It works on my 286 10 Mhz machine. I copied PlanetX3 from USB to CF. 566KB tok 36Sec. Speed = 15,7KB/Sec. The original driver (V2.0A) was 9,25KB/Sec. And original V1.9 (no A) was also 15,7KB/Sec.

Can you test with disktest ?

With the new disktest i got very good results. Check out my video on the speed test: https://youtu.be/A37MQ0HgEpE

Check out my YouTube channel: Retro Erik https://www.youtube.com/c/RetroErik
My collection: https://retro.hageseter.com

Reply 95 of 125, by FreddyV

User metadata
Rank Oldbie
Rank
Oldbie
Jinxter wrote on 2022-07-13, 19:26:

With the new disktest i got very good results. Check out my video on the speed test: https://youtu.be/A37MQ0HgEpE

Hi,

Yes, better 😀
What is your 286 machine ?
On my 286 8MHz, SpeedTest is at 400Kb/s for Write. (Tandy 1000 TL/2)

It can be faster with the LoTech board and the "216" driver, this boost the speed +20%
Or you need to replace A0 by A1 on the chip input.

Also, How is configured your XTIDE ? Is it a V2, with the optimized driver ? (286, 16Bit)
I ask but I am quite sure it is. Not everybody change the XTIDE BIOS on 286, so the speed is really lower most of the time.

At this speed, I am sure that USB is a good alternative to XTIDE/Compact Flash.
It will be at least when a BIOS Will be ready.

Reply 96 of 125, by Jinxter

User metadata
Rank Member
Rank
Member
FreddyV wrote on 2022-07-13, 20:32:
What is your 286 machine ? On my 286 8MHz, SpeedTest is at 400Kb/s for Write. (Tandy 1000 TL/2) […]
Show full quote

What is your 286 machine ?
On my 286 8MHz, SpeedTest is at 400Kb/s for Write. (Tandy 1000 TL/2)

Also, How is configured your XTIDE ? Is it a V2, with the optimized driver ? (286, 16Bit)

It will be at least when a BIOS Will be ready.

My 286 is running at 10Mhz.
I beleive that my ISB thumbdrive is slow. I will try another.
My XT IDE bios is for 286 Machine. (ide_at.bin)

I look forward to an BIOS that will let ut boot from the USB.

Check out my YouTube channel: Retro Erik https://www.youtube.com/c/RetroErik
My collection: https://retro.hageseter.com

Reply 97 of 125, by 8bitbubsy

User metadata
Rank Member
Rank
Member

So, does it make sense to use the new 286 driver on a 486DX4-100? Will it work and give faster speeds?

486:
- Motherboard: "SIS 486G 3.3/5V Ver:E" w/ 256kB L2 cache
- CPU: Intel 486DX2 66MHz
- RAM: 16MB 60ns FPM
- VGA: S3 Vision864 2MB VLB
- Audio: SB16 CT2800 (real OPL3)
- ISA PS/2 mouse card
- ISA USB
- MS-DOS 6.22 + WfW 3.11

Reply 98 of 125, by Jinxter

User metadata
Rank Member
Rank
Member
8bitbubsy wrote on 2022-07-14, 11:26:

So, does it make sense to use the new 286 driver on a 486DX4-100? Will it work and give faster speeds?

YES !

Check out my YouTube channel: Retro Erik https://www.youtube.com/c/RetroErik
My collection: https://retro.hageseter.com

Reply 99 of 125, by 8bitbubsy

User metadata
Rank Member
Rank
Member
Jinxter wrote on 2022-07-14, 18:33:
8bitbubsy wrote on 2022-07-14, 11:26:

So, does it make sense to use the new 286 driver on a 486DX4-100? Will it work and give faster speeds?

YES !

EPIC !
Will give it a try one day.

486:
- Motherboard: "SIS 486G 3.3/5V Ver:E" w/ 256kB L2 cache
- CPU: Intel 486DX2 66MHz
- RAM: 16MB 60ns FPM
- VGA: S3 Vision864 2MB VLB
- Audio: SB16 CT2800 (real OPL3)
- ISA PS/2 mouse card
- ISA USB
- MS-DOS 6.22 + WfW 3.11