Problem getting Info from USB device

Hi All,
I have a device connected to the USB Port.I am able to get the data
from the device.For interpreting the data from the device,I should have sent
a command to the device and expect a response from the same.Does any body
have suggestions/samplecode for the same.My device supports interrupt
transfer.The doubt which I have is I am building an IRP with
IOBuildDeviceIOControlRequest to build an IRP but if in the URB I specify
the direction as 0 and buffer as the command I want to send the data,whether
the device responds back.If so where can I see the response sent by it ?

Cheers,
Sai Prasad

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

When you call UsbBuildInterruptOrBulkTransferRequest to build your URB, you
specify the buffer in there. This is just a macro, so if you want to do it
by hand, look at that macro definition and see what URB struct member the
buffer goes in…

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division

-----Original Message-----
From: Sai_Prasad [mailto:xxxxx@satyam.com]
Sent: Friday, March 22, 2002 8:33 AM
To: NT Developers Interest List
Subject: [ntdev] Problem getting Info from USB device

Hi All,
I have a device connected to the USB Port.I am able to get the data
from the device.For interpreting the data from the device,I should have sent
a command to the device and expect a response from the same.Does any body
have suggestions/samplecode for the same.My device supports interrupt
transfer.The doubt which I have is I am building an IRP with
IOBuildDeviceIOControlRequest to build an IRP but if in the URB I specify
the direction as 0 and buffer as the command I want to send the data,whether
the device responds back.If so where can I see the response sent by it ?

Cheers,
Sai Prasad

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to %%email.unsub%%

Hi Merill,
I am setting the command I want to send to the device in a buffer and
setting urb->UrbBulkOrInterruptTransfer.TransferBuffer to the buffer and
length in urb->UrbBulkOrInterruptTransfer.TransferBufferLength.But my doubt
is where do i receive the data sent from the device in response to the
command I am sending ?

Guess this is clear.

Cheers,
Sai Prasad


From: xxxxx@thermonicolet.com[SMTP:xxxxx@thermonicolet.com]
Reply To: NT Developers Interest List
Sent: Friday, March 22, 2002 8:40 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

When you call UsbBuildInterruptOrBulkTransferRequest to build your URB,
you
specify the buffer in there. This is just a macro, so if you want to do
it
by hand, look at that macro definition and see what URB struct member the
buffer goes in…

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division

-----Original Message-----
From: Sai_Prasad [mailto:xxxxx@satyam.com]
Sent: Friday, March 22, 2002 8:33 AM
To: NT Developers Interest List
Subject: [ntdev] Problem getting Info from USB device

Hi All,
I have a device connected to the USB Port.I am able to get the data
from the device.For interpreting the data from the device,I should have
sent
a command to the device and expect a response from the same.Does any body
have suggestions/samplecode for the same.My device supports interrupt
transfer.The doubt which I have is I am building an IRP with
IOBuildDeviceIOControlRequest to build an IRP but if in the URB I specify
the direction as 0 and buffer as the command I want to send the
data,whether
the device responds back.If so where can I see the response sent by it ?

Cheers,
Sai Prasad

**************************************************************************

This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
distribution or forwarding of any or all of the contents in this message
is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@bla.satyam.com
To unsubscribe send a blank email to %%email.unsub%%

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

If this is an interrupt out, the data you send goes in the transferbuffer.
If this is an interrupt in, the data you receive will be in the
transferbuffer.

If you need to send and then receive data, you need to formulate two
different URB’s to do this (one an out and one an in).

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division

-----Original Message-----
From: Sai_Prasad [mailto:xxxxx@satyam.com]
Sent: Friday, March 22, 2002 9:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

Hi Merill,
I am setting the command I want to send to the device in a buffer and
setting urb->UrbBulkOrInterruptTransfer.TransferBuffer to the buffer and
length in urb->UrbBulkOrInterruptTransfer.TransferBufferLength.But my doubt
is where do i receive the data sent from the device in response to the
command I am sending ?

Guess this is clear.

Cheers,
Sai Prasad


From: xxxxx@thermonicolet.com[SMTP:xxxxx@thermonicolet.com]
Reply To: NT Developers Interest List
Sent: Friday, March 22, 2002 8:40 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

When you call UsbBuildInterruptOrBulkTransferRequest to build your URB,
you
specify the buffer in there. This is just a macro, so if you want to do
it
by hand, look at that macro definition and see what URB struct member the
buffer goes in…

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division

-----Original Message-----
From: Sai_Prasad [mailto:xxxxx@satyam.com]
Sent: Friday, March 22, 2002 8:33 AM
To: NT Developers Interest List
Subject: [ntdev] Problem getting Info from USB device

Hi All,
I have a device connected to the USB Port.I am able to get the data
from the device.For interpreting the data from the device,I should have
sent
a command to the device and expect a response from the same.Does any body
have suggestions/samplecode for the same.My device supports interrupt
transfer.The doubt which I have is I am building an IRP with
IOBuildDeviceIOControlRequest to build an IRP but if in the URB I specify
the direction as 0 and buffer as the command I want to send the
data,whether
the device responds back.If so where can I see the response sent by it ?

Cheers,
Sai Prasad

**************************************************************************

This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
distribution or forwarding of any or all of the contents in this message
is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@bla.satyam.com
To unsubscribe send a blank email to %%email.unsub%%

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to %%email.unsub%%

Hi,
Interrupt pipe are always used to receive data from device, and in
this case TransferFlag of URB must be USBD_TRANSFER_DIRECTION_IN. Device
returns data in buffer associated with USB(TransferBuffer). The Value of
URB->UrbBulkOrInterruptTransfer.TransferBufferLength will specify the number
of bytes returned.

Jagdeesh

-----Original Message-----
From: xxxxx@thermonicolet.com [mailto:xxxxx@thermonicolet.com]
Sent: Friday, March 22, 2002 9:30 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

If this is an interrupt out, the data you send goes in the transferbuffer.
If this is an interrupt in, the data you receive will be in the
transferbuffer.

If you need to send and then receive data, you need to formulate two
different URB’s to do this (one an out and one an in).

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division

-----Original Message-----
From: Sai_Prasad [mailto:xxxxx@satyam.com]
Sent: Friday, March 22, 2002 9:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

Hi Merill,
I am setting the command I want to send to the device in a buffer and
setting urb->UrbBulkOrInterruptTransfer.TransferBuffer to the buffer and
length in urb->UrbBulkOrInterruptTransfer.TransferBufferLength.But my doubt
is where do i receive the data sent from the device in response to the
command I am sending ?

Guess this is clear.

Cheers,
Sai Prasad


From: xxxxx@thermonicolet.com[SMTP:xxxxx@thermonicolet.com]
Reply To: NT Developers Interest List
Sent: Friday, March 22, 2002 8:40 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

When you call UsbBuildInterruptOrBulkTransferRequest to build your URB,
you
specify the buffer in there. This is just a macro, so if you want to do
it
by hand, look at that macro definition and see what URB struct member the
buffer goes in…

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division

-----Original Message-----
From: Sai_Prasad [mailto:xxxxx@satyam.com]
Sent: Friday, March 22, 2002 8:33 AM
To: NT Developers Interest List
Subject: [ntdev] Problem getting Info from USB device

Hi All,
I have a device connected to the USB Port.I am able to get the data
from the device.For interpreting the data from the device,I should have
sent
a command to the device and expect a response from the same.Does any body
have suggestions/samplecode for the same.My device supports interrupt
transfer.The doubt which I have is I am building an IRP with
IOBuildDeviceIOControlRequest to build an IRP but if in the URB I specify
the direction as 0 and buffer as the command I want to send the
data,whether
the device responds back.If so where can I see the response sent by it ?

Cheers,
Sai Prasad

**************************************************************************

This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
distribution or forwarding of any or all of the contents in this message
is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@bla.satyam.com
To unsubscribe send a blank email to %%email.unsub%%

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@dcmtech.co.in
To unsubscribe send a blank email to %%email.unsub%%

Hi Merill,
Thanks for the reply.I am sure that my device has got Interrupt Endpoint
but not sure whether it has interrupt in/out.How to cross check this.I used
to think that an Interrupt EndPoint can be used for both IN/OUT.

Kindly see the descriptors about my device below .

USB_CONFIGURATION_DESCRIPTOR
bLength = 0x9, decimal 9
bDescriptorType = 0x2 ( USB_CONFIGURATION_DESCRIPTOR_TYPE )
wTotalLength = 0x19, decimal 25
bNumInterfaces = 0x1, decimal 1
bConfigurationValue = 0x1, decimal 1
iConfiguration = 0x0, decimal 0
bmAttributes = 0xa0 ( USB_CONFIG_BUS_POWERED )
MaxPower = 0x32, decimal 50


USB_INTERFACE_DESCRIPTOR #0
bLength = 0x9
bDescriptorType = 0x4 ( USB_INTERFACE_DESCRIPTOR_TYPE )
bInterfaceNumber = 0x0
bAlternateSetting = 0x0
bNumEndpoints = 0x1
bInterfaceClass = 0xff
bInterfaceSubClass = 0xff
bInterfaceProtocol = 0xff
bInterface = 0x0

USB_ENDPOINT_DESCRIPTOR for Pipe00
bLength = 0x7
bDescriptorType = 0x5 ( USB_ENDPOINT_DESCRIPTOR_TYPE )
bEndpointAddress= 0x81 ( INPUT )
bmAttributes= 0x3 ( USB_ENDPOINT_TYPE_INTERRUPT )
wMaxPacketSize= 0x8, decimal 8
bInterval = 0xa, decimal

I have also posted a mail to the list as to how I am building the IRP &
URB,passing it to the USB Stack.

The only difference between the way you have mentioned and the way I am
doing is I am not building 2 URBs 1(OUT,IN).

While building the IRP I am giving both the input buffer and output buffer
and sending it down.Transfer direction is OUT(0) in the URBHeader.
But after I pass the URB down,in the completion routine I see the Status of
IOStatus block to be STATUS_DEVICE_DATA_ERROR.

Any hints/suggestions ?

Cheers,
Sai Prasad


From: xxxxx@thermonicolet.com[SMTP:xxxxx@thermonicolet.com]
Reply To: NT Developers Interest List
Sent: Friday, March 22, 2002 9:30 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

If this is an interrupt out, the data you send goes in the transferbuffer.
If this is an interrupt in, the data you receive will be in the
transferbuffer.

If you need to send and then receive data, you need to formulate two
different URB’s to do this (one an out and one an in).

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division

-----Original Message-----
From: Sai_Prasad [mailto:xxxxx@satyam.com]
Sent: Friday, March 22, 2002 9:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

Hi Merill,
I am setting the command I want to send to the device in a buffer and
setting urb->UrbBulkOrInterruptTransfer.TransferBuffer to the buffer and
length in urb->UrbBulkOrInterruptTransfer.TransferBufferLength.But my
doubt
is where do i receive the data sent from the device in response to the
command I am sending ?

Guess this is clear.

Cheers,
Sai Prasad

> ----------
> From: xxxxx@thermonicolet.com[SMTP:xxxxx@thermonicolet.com]
> Reply To: NT Developers Interest List
> Sent: Friday, March 22, 2002 8:40 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: Problem getting Info from USB device
>
> When you call UsbBuildInterruptOrBulkTransferRequest to build your URB,
> you
> specify the buffer in there. This is just a macro, so if you want to do
> it
> by hand, look at that macro definition and see what URB struct member
the
> buffer goes in…
>
> - Dennis
> —
> Dennis Merrill
> Embedded Systems Engineer
> Thermo Electron Corporation
> Spectroscopy Division
>
>
> -----Original Message-----
> From: Sai_Prasad [mailto:xxxxx@satyam.com]
> Sent: Friday, March 22, 2002 8:33 AM
> To: NT Developers Interest List
> Subject: [ntdev] Problem getting Info from USB device
>
> Hi All,
> I have a device connected to the USB Port.I am able to get the data
> from the device.For interpreting the data from the device,I should have
> sent
> a command to the device and expect a response from the same.Does any
body
> have suggestions/samplecode for the same.My device supports interrupt
> transfer.The doubt which I have is I am building an IRP with
> IOBuildDeviceIOControlRequest to build an IRP but if in the URB I
specify
> the direction as 0 and buffer as the command I want to send the
> data,whether
> the device responds back.If so where can I see the response sent by it ?
>
>
> Cheers,
> Sai Prasad
>
>
**************************************************************************
>
> This email (including any attachments) is intended for the sole use of
the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
> or
> distribution or forwarding of any or all of the contents in this message
> is
> STRICTLY PROHIBITED. If you are not the intended recipient, please
contact
> the sender by email and delete all copies; your cooperation in this
regard
> is appreciated.
>
**************************************************************************
>
> —
> You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
> To unsubscribe send a blank email to %%email.unsub%%
>
> —
> You are currently subscribed to ntdev as: xxxxx@bla.satyam.com
> To unsubscribe send a blank email to %%email.unsub%%
>
**************************************************************************

This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
distribution or forwarding of any or all of the contents in this message
is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@bla.satyam.com
To unsubscribe send a blank email to %%email.unsub%%

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

USB pipes only transfer data in one direction (with the exception of control
pipes). If you have an interrupt endpoint, then it is an INPUT endpoint
(look at your EndpointAddress to be sure). If you need to send commands
down to your device, I suggest that you use the control endpoint and send
vendor requests. Look at the USB 1.1 spec for this (Chapter 9).

Also, take advantage of the supplied macros for building your URB rather
than filling the URB yourself. There is less chance for error.

I assume the reason you are getting your error is because you are trying to
send data out an IN pipe.

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division

-----Original Message-----
From: Sai_Prasad [mailto:xxxxx@satyam.com]
Sent: Saturday, March 23, 2002 5:16 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

Hi Merill,
Thanks for the reply.I am sure that my device has got Interrupt Endpoint
but not sure whether it has interrupt in/out.How to cross check this.I used
to think that an Interrupt EndPoint can be used for both IN/OUT.

Kindly see the descriptors about my device below .

USB_CONFIGURATION_DESCRIPTOR
bLength = 0x9, decimal 9
bDescriptorType = 0x2 ( USB_CONFIGURATION_DESCRIPTOR_TYPE )
wTotalLength = 0x19, decimal 25
bNumInterfaces = 0x1, decimal 1
bConfigurationValue = 0x1, decimal 1
iConfiguration = 0x0, decimal 0
bmAttributes = 0xa0 ( USB_CONFIG_BUS_POWERED )
MaxPower = 0x32, decimal 50


USB_INTERFACE_DESCRIPTOR #0
bLength = 0x9
bDescriptorType = 0x4 ( USB_INTERFACE_DESCRIPTOR_TYPE )
bInterfaceNumber = 0x0
bAlternateSetting = 0x0
bNumEndpoints = 0x1
bInterfaceClass = 0xff
bInterfaceSubClass = 0xff
bInterfaceProtocol = 0xff
bInterface = 0x0

USB_ENDPOINT_DESCRIPTOR for Pipe00
bLength = 0x7
bDescriptorType = 0x5 ( USB_ENDPOINT_DESCRIPTOR_TYPE )
bEndpointAddress= 0x81 ( INPUT )
bmAttributes= 0x3 ( USB_ENDPOINT_TYPE_INTERRUPT )
wMaxPacketSize= 0x8, decimal 8
bInterval = 0xa, decimal

I have also posted a mail to the list as to how I am building the IRP &
URB,passing it to the USB Stack.

The only difference between the way you have mentioned and the way I am
doing is I am not building 2 URBs 1(OUT,IN).

While building the IRP I am giving both the input buffer and output buffer
and sending it down.Transfer direction is OUT(0) in the URBHeader.
But after I pass the URB down,in the completion routine I see the Status of
IOStatus block to be STATUS_DEVICE_DATA_ERROR.

Any hints/suggestions ?

Cheers,
Sai Prasad


From: xxxxx@thermonicolet.com[SMTP:xxxxx@thermonicolet.com]
Reply To: NT Developers Interest List
Sent: Friday, March 22, 2002 9:30 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

If this is an interrupt out, the data you send goes in the transferbuffer.
If this is an interrupt in, the data you receive will be in the
transferbuffer.

If you need to send and then receive data, you need to formulate two
different URB’s to do this (one an out and one an in).

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division

-----Original Message-----
From: Sai_Prasad [mailto:xxxxx@satyam.com]
Sent: Friday, March 22, 2002 9:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

Hi Merill,
I am setting the command I want to send to the device in a buffer and
setting urb->UrbBulkOrInterruptTransfer.TransferBuffer to the buffer and
length in urb->UrbBulkOrInterruptTransfer.TransferBufferLength.But my
doubt
is where do i receive the data sent from the device in response to the
command I am sending ?

Guess this is clear.

Cheers,
Sai Prasad

> ----------
> From: xxxxx@thermonicolet.com[SMTP:xxxxx@thermonicolet.com]
> Reply To: NT Developers Interest List
> Sent: Friday, March 22, 2002 8:40 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: Problem getting Info from USB device
>
> When you call UsbBuildInterruptOrBulkTransferRequest to build your URB,
> you
> specify the buffer in there. This is just a macro, so if you want to do
> it
> by hand, look at that macro definition and see what URB struct member
the
> buffer goes in…
>
> - Dennis
> —
> Dennis Merrill
> Embedded Systems Engineer
> Thermo Electron Corporation
> Spectroscopy Division
>
>
> -----Original Message-----
> From: Sai_Prasad [mailto:xxxxx@satyam.com]
> Sent: Friday, March 22, 2002 8:33 AM
> To: NT Developers Interest List
> Subject: [ntdev] Problem getting Info from USB device
>
> Hi All,
> I have a device connected to the USB Port.I am able to get the data
> from the device.For interpreting the data from the device,I should have
> sent
> a command to the device and expect a response from the same.Does any
body
> have suggestions/samplecode for the same.My device supports interrupt
> transfer.The doubt which I have is I am building an IRP with
> IOBuildDeviceIOControlRequest to build an IRP but if in the URB I
specify
> the direction as 0 and buffer as the command I want to send the
> data,whether
> the device responds back.If so where can I see the response sent by it ?
>
>
> Cheers,
> Sai Prasad
>
>
**************************************************************************
>
> This email (including any attachments) is intended for the sole use of
the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
> or
> distribution or forwarding of any or all of the contents in this message
> is
> STRICTLY PROHIBITED. If you are not the intended recipient, please
contact
> the sender by email and delete all copies; your cooperation in this
regard
> is appreciated.
>
**************************************************************************
>
> —
> You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
> To unsubscribe send a blank email to %%email.unsub%%
>
> —
> You are currently subscribed to ntdev as: xxxxx@bla.satyam.com
> To unsubscribe send a blank email to %%email.unsub%%
>
**************************************************************************

This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
distribution or forwarding of any or all of the contents in this message
is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@bla.satyam.com
To unsubscribe send a blank email to %%email.unsub%%

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to %%email.unsub%%

> pipes). If you have an interrupt endpoint, then it is an INPUT endpoint

USB spec allows OUT interrupt endpoints, but looks like MS’s stack does not support them.

Max

Good observation, although I’m not real sure how useful an interrupt out
pipe would be anyway. IMO, Looking at the endpoint address is the best way.

If endpoint & 0x80 then it is input else it is output.

Simple enough even for me! :slight_smile:

  • Dennis

-----Original Message-----

pipes). If you have an interrupt endpoint, then it is an INPUT endpoint

USB spec allows OUT interrupt endpoints, but looks like MS’s stack does not
support them.

Max

Hi Merill,
The endpoint address is 0x81.

Regards,
Sai Prasad


From: xxxxx@thermonicolet.com[SMTP:xxxxx@thermonicolet.com]
Reply To: NT Developers Interest List
Sent: Monday, March 25, 2002 10:07 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Problem getting Info from USB device

Good observation, although I’m not real sure how useful an interrupt out
pipe would be anyway. IMO, Looking at the endpoint address is the best
way.

If endpoint & 0x80 then it is input else it is output.

Simple enough even for me! :slight_smile:

  • Dennis

-----Original Message-----

> pipes). If you have an interrupt endpoint, then it is an INPUT endpoint

USB spec allows OUT interrupt endpoints, but looks like MS’s stack does
not
support them.

Max


You are currently subscribed to ntdev as: xxxxx@satyam.com
To unsubscribe send a blank email to %%email.unsub%%

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************