Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.development > #8356 > unrolled thread

USB CBI Floppy Drive

Started by"Benjamin David Lunt" <zfysz@fysnet.net>
First post2015-07-13 13:35 -0700
Last post2015-07-15 02:47 -0400
Articles 8 — 5 participants

Back to article view | Back to alt.os.development


Contents

  USB CBI Floppy Drive "Benjamin David Lunt" <zfysz@fysnet.net> - 2015-07-13 13:35 -0700
    Re: USB CBI Floppy Drive "James Harris" <james.harris.1@gmail.com> - 2015-07-13 21:57 +0100
      Re: USB CBI Floppy Drive "Benjamin David Lunt" <zfysz@fysnet.net> - 2015-07-13 18:31 -0700
      Re: USB CBI Floppy Drive "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-07-13 22:06 -0400
        Re: USB CBI Floppy Drive "James Harris" <james.harris.1@gmail.com> - 2015-07-14 06:43 +0100
        Re: USB CBI Floppy Drive "wolfgang kern" <nowhere@never.at> - 2015-07-14 09:06 +0200
        Re: USB CBI Floppy Drive "s_dubrovich@yahoo.com" <s_dubrovich@yahoo.com> - 2015-07-14 08:29 -0700
          Re: USB CBI Floppy Drive "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-07-15 02:47 -0400

#8356 — USB CBI Floppy Drive

From"Benjamin David Lunt" <zfysz@fysnet.net>
Date2015-07-13 13:35 -0700
SubjectUSB CBI Floppy Drive
Message-ID<mo17lc$fem$1@speranza.aioe.org>
Hi guys,

Just a quick announcement that Bochs
  http://bochs.sourceforge.net/
now supports and emulates a USB Floppy Drive via the CBI interface.

If you are working on your USB code, this addition might help
you a little bit.

I tried to make the code self explanatory, but if you have any
questions, feel free to ask.

Also, Chapter 18 in my book
  http://www.fysnet.net/the_universal_serial_bus.htm
explains this process in much more detail.

The current emulation within bochs only supports a 1.44meg disk,
and there isn't anyway to change disks while the guest is being
emulated, but the core part of the USB is there.  One of the
maintainers of Bochs is working on adding a few more features
and the two of us are trying to find out why it doesn't work
on some Linux Guests.  However, the core part is there and you
should be able to understand how it works, if you are interested.

Just thought I would let you know.

Thanks,
Ben

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Forever Young Software
http://www.fysnet.net/index.htm
http://www.fysnet.net/osdesign_book_series.htm
To reply by email, please remove the zzzzzz's

Batteries not included, some Assembly required. 

[toc] | [next] | [standalone]


#8357

From"James Harris" <james.harris.1@gmail.com>
Date2015-07-13 21:57 +0100
Message-ID<mo18ke$9u2$1@dont-email.me>
In reply to#8356
"Benjamin David Lunt" <zfysz@fysnet.net> wrote in message 
news:mo17lc$fem$1@speranza.aioe.org...
> Hi guys,
>
> Just a quick announcement that Bochs
>  http://bochs.sourceforge.net/
> now supports and emulates a USB Floppy Drive via the CBI interface.

For the uninitiated like me, what is a CBI interface?

> Just thought I would let you know.

Thanks.

James

[toc] | [prev] | [next] | [standalone]


#8358

From"Benjamin David Lunt" <zfysz@fysnet.net>
Date2015-07-13 18:31 -0700
Message-ID<mo1pgc$hta$1@speranza.aioe.org>
In reply to#8357
"James Harris" <james.harris.1@gmail.com> wrote in message 
news:mo18ke$9u2$1@dont-email.me...
> "Benjamin David Lunt" <zfysz@fysnet.net> wrote in message 
> news:mo17lc$fem$1@speranza.aioe.org...
>> Hi guys,
>>
>> Just a quick announcement that Bochs
>>  http://bochs.sourceforge.net/
>> now supports and emulates a USB Floppy Drive via the CBI interface.
>
> For the uninitiated like me, what is a CBI interface?

CBI, or Control Bulk Interrupt, is the transport interface used
by the USB to communicate with the device.

http://www.usb.org/developers/docs/devclass_docs/usb_msc_cbi_1.1.pdf

The USB Floppy Drive follows the UFI class, which is a subset
of the Mass Storage Class as the form of data it transfers.

www.usb.org/developers/docs/devclass_docs/usbmass-ufi10.pdf

Therefore, the CBI interface is used by the USB, while the UFI interface
is used by the mass storage device itself.

In other words, you use the CBI interface to send it commands where
these commands conform to the UFI specification.

For an example, you might send the Inquiry command to receive
informational data from the device.

To do so, you send a 12-byte Setup packet on the Control endpoint,
then a receive a number of bytes on the Bulk endpoint, then receive
a 2-byte packet status packet on the Interrupt endpoint.

Control, Bulk, Interrupt.

The UFI specs describe what the 12-byte Control packet should be,
and what the data looks like in the Bulk In packet, while the CBI
specs describe how to send and receive said data.

Clear as mud?

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Forever Young Software
http://www.fysnet.net/index.htm
http://www.fysnet.net/osdesign_book_series.htm
To reply by email, please remove the zzzzzz's

Batteries not included, some Assembly required.


[toc] | [prev] | [next] | [standalone]


#8359

From"Rod Pemberton" <boo@fasdfrewar.cdm>
Date2015-07-13 22:06 -0400
Message-ID<op.x1qqseqzyfako5@localhost>
In reply to#8357
On Mon, 13 Jul 2015 16:57:09 -0400, James Harris  
<james.harris.1@gmail.com> wrote:
> "Benjamin David Lunt" <zfysz@fysnet.net> wrote in message  
> news:mo17lc$fem$1@speranza.aioe.org...

>> Just a quick announcement that Bochs
>> now supports and emulates a USB Floppy Drive via the CBI interface.
>
> For the uninitiated like me, what is a CBI interface?
>

I don't know either, but even so ...

Unbelievably, I now get to recommend this link for James:

GIYF
http://www.giyf.com/

:-)


Apparently, as found from Google search results, it's CBI as in:

USB "Mass Storage Control/Bulk/Interrupt (CBI) Specification 1.1"
http://www.usb.org/developers/docs/devclass_docs/usb_msc_cbi_1.1.pdf

v1.4
http://www.usb.org/developers/docs/devclass_docs/Mass_Storage_Specification_Overview_v1.4_2-19-2010.pdf


Rod Pemberton
P.S. Do you guys ever get tired of me pointing you to the obvious?
First Ben, now James, next ...

-- 
Tolerance and socialism attracts intolerance and terrorism.  See:
France, United Kingdom, Germany, Denmark, Belgium, Netherlands, ...
UK: Strong encryption, non-issue. GR: Eurozone currency, priority.

[toc] | [prev] | [next] | [standalone]


#8363

From"James Harris" <james.harris.1@gmail.com>
Date2015-07-14 06:43 +0100
Message-ID<mo27f8$uag$1@dont-email.me>
In reply to#8359
"Rod Pemberton" <boo@fasdfrewar.cdm> wrote in message 
news:op.x1qqseqzyfako5@localhost...
> On Mon, 13 Jul 2015 16:57:09 -0400, James Harris 
> <james.harris.1@gmail.com> wrote:
>> "Benjamin David Lunt" <zfysz@fysnet.net> wrote in message 
>> news:mo17lc$fem$1@speranza.aioe.org...
>
>>> Just a quick announcement that Bochs
>>> now supports and emulates a USB Floppy Drive via the CBI interface.
>>
>> For the uninitiated like me, what is a CBI interface?
>>
>
> I don't know either, but even so ...
>
> Unbelievably, I now get to recommend this link for James:
>
> GIYF
> http://www.giyf.com/
>
> :-)

Grr. Now you are being annoying, Before asking I *did* use Google. Not 
knowing whether CBI was something to do with bochs or usb I searched for 
these before finding an answer.

  cbi interface
  bochs cbi interface
  bochs usb cbi interface
  usb cbi interface

Even then the answer from Google was overly detailed. I thought it would 
be a better idea to ask Ben what he meant, and that would save others 
going through the same process. Note the wording: "For the uninitiated 
like me".

James

[toc] | [prev] | [next] | [standalone]


#8364

From"wolfgang kern" <nowhere@never.at>
Date2015-07-14 09:06 +0200
Message-ID<mo2cf9$r2u$1@speranza.aioe.org>
In reply to#8359
Hi Rod, 

...

> P.S. Do you guys ever get tired of me pointing you to the obvious?
> First Ben, now James, next ...

perhaps me ? :)

I appreciate your very often helpful searching skills ...
whenever I try google or similar I find myself hopelessly lost 
somewhere and see many interesting but distracting things so 
I sometimes forget what I actually searched for and give up.

This make me hate all Search-Engines. I'll wait until Find-Engines 
become available and meanwhile hope you respond to my questions ;)
__
wolfgang

[toc] | [prev] | [next] | [standalone]


#8374

From"s_dubrovich@yahoo.com" <s_dubrovich@yahoo.com>
Date2015-07-14 08:29 -0700
Message-ID<2791ffc9-960e-440a-beba-66d392bb8213@googlegroups.com>
In reply to#8359
On Monday, July 13, 2015 at 9:05:51 PM UTC-5, Rod Pemberton wrote:
> On Mon, 13 Jul 2015 16:57:09 -0400, James Harris  
> <james.harris.1@gmail.com> wrote:
> > "Benjamin David Lunt" <zfysz@fysnet.net> wrote in message  
> > news:mo17lc$fem$1@speranza.aioe.org...
> 
> >> Just a quick announcement that Bochs
> >> now supports and emulates a USB Floppy Drive via the CBI interface.
> >
> > For the uninitiated like me, what is a CBI interface?
> >
> 
> I don't know either, but even so ...
> 
> Unbelievably, I now get to recommend this link for James:
> 
> GIYF
> http://www.giyf.com/
> 
> :-)
> 
> 
> Apparently, as found from Google search results, it's CBI as in:
> 
> USB "Mass Storage Control/Bulk/Interrupt (CBI) Specification 1.1"
> http://www.usb.org/developers/docs/devclass_docs/usb_msc_cbi_1.1.pdf
> 
> v1.4
> http://www.usb.org/developers/docs/devclass_docs/Mass_Storage_Specification_Overview_v1.4_2-19-2010.pdf
> 
> 
> Rod Pemberton
> P.S. Do you guys ever get tired of me pointing you to the obvious?
> First Ben, now James, next ...
> 
> -- 
> Tolerance and socialism attracts intolerance and terrorism.  See:
> France, United Kingdom, Germany, Denmark, Belgium, Netherlands, ...
> UK: Strong encryption, non-issue. GR: Eurozone currency, priority.

GI*Not*YF

First, the results are tailored to your profile.

CBI srch gives: About 32,700,000 results (0.46 seconds).

So my profiled returns are:

an engineering co.
Mumbai: The Central Bureau of Investigation
CBI stock chart
CBI - Wikipedia, the free encyclopedia
Colorado Bureau of Investigation
Get detailed financial information on Chicago Bridge & Iron Company N.V. 
CBI | The Leader in Conferences for the Pharmaceutical ...
..a couple more stock refs.
and, troubling, to finish the immediate list:
Central Bank of Iraq

Your 'Profiled' May Vary.

Steve

[toc] | [prev] | [next] | [standalone]


#8379

From"Rod Pemberton" <boo@fasdfrewar.cdm>
Date2015-07-15 02:47 -0400
Message-ID<op.x1syhcsyyfako5@localhost>
In reply to#8374
On Tue, 14 Jul 2015 11:29:48 -0400, s_dubrovich@yahoo.com  
<s_dubrovich@yahoo.com> wrote:

> First, the results are tailored to your profile.
>
> CBI srch gives: About 32,700,000 results (0.46 seconds).
>
> So my profiled returns are:
>
> an engineering co.
> Mumbai: The Central Bureau of Investigation
> CBI stock chart
> CBI - Wikipedia, the free encyclopedia
> Colorado Bureau of Investigation
> Get detailed financial information on Chicago Bridge & Iron Company N.V.
> CBI | The Leader in Conferences for the Pharmaceutical ...
> ..a couple more stock refs.
> and, troubling, to finish the immediate list:
> Central Bank of Iraq
>
> Your 'Profiled' May Vary.

OMG! WTF? LOL ...

You'd think you're an L.E.O. or terrorist or drug dealer based on that.

I didn't know they profiled like that.  That's stunning.  I only switched
to Google from Yahoo over the past couple of years.  Yahoo's results
were always great from pages 2 through 10.  Their first page was really
bad.  However, they recently started with that auto-correct, auto-synonym,
search results where thousands of different but vaguely related terms
come up.  Google has begun doing this too ...  I think it's for smartphone
users who can't type an abbreviate everything.  I have to quote everything
know or add '+' in front of the quote to get a precise search.

Of course, I entered something like: "cbi floppy".


RP

[toc] | [prev] | [standalone]


Back to top | Article view | alt.os.development


csiph-web