<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Handling of SCSI PREVENT ALLOW MEDIUM REMOVAL/START STOP in usbdlib/usbdrom in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Handling-of-SCSI-PREVENT-ALLOW-MEDIUM-REMOVAL-START-STOP-in/m-p/723943#M29242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(See Additional comments below after editing)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to port the usbd_rom_msc_ram example from the LCP18S37 samples to the Embedded Artists LPC1788 Development Kit, as an interim step to porting it to some custom hardware based on the LPC1788. I've managed to get it mostly working, including porting the external SDRAM config in to allow me to provide 32MBytes of storage but, (in windows) when I right click on the drive and select "Eject", I get a message that an error occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a bit of research around the place, and using Wireshark to capture the USB packets, it looks like this might be related to the SCSI PREVENT ALLOW MEDIUM REMOVAL command's response being "command failed" (irrespective of whether the command asks for PREVENT or ALLOW. An example of the output in Wireshark is&amp;nbsp;attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the sense information is requested after this, the response (which is included in the file but, to make it obvious,...) includes:&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 13px;"&gt;SCSI Payload (Request Sense Response Data)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [LUN: 0x0000]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Command Set:Direct Access Device (0x00) ]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [SBC Opcode: Request Sense (0x03)]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Request in: 1991]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Response in: 1993]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .111 0000 = SNS Error Type: Current Error (0x70)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Valid: 112&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 0... .... = Filemark: False&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .0.. .... = EOM: False&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ..0. .... = ILI: False&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... 0010 = Sense Key: Not Ready (0x2)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Sense Info: 0x00000000&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Additional Sense Length: 10&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Command-Specific Information: 00000000&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Additional Sense Code+Qualifier: Cannot Read Medium - Unknown Format (0x3001)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Field Replaceable Unit Code: 0x00&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 0... .... = SKSV: False&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .000 0000 0000 0000 0000 0000 = Sense Key Specific: 0x000000&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;Does anyone know whether there is an obvious reason for this (i.e. is there a configuration option I'm missing somewhere)?&lt;/P&gt;&lt;P&gt;I'm assuming that this is happening in the default handler for this message type in the USBD library's MSC stuff; as an alternative to a quick fix, does anyone know how I can override the handling of the message myself? Is this part of the EP0 handling?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help gratefully appreciated.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a bit of further consideration, I don't think it's the handling of the PREVENT ALLOW MEDIUM REMOVAL command that's the issue here. As I understand it (please correct me if I'm wrong), if the command succeeds, Windows (in this case) thinks it's safe to cache data for the drive and only write it when the drive's being ejected. If the command fails, the caching is avoided and writes just happen when they're needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My latest thought is that it's around the SCSI START STOP UNIT command (telling it to stop) that's the problem. This is sent when I select "Eject" on the context menu. The device is responding with command failed.&amp;nbsp;It looks like this is retried then the SCSI TEST UNIT READY command is sent out, which gets a "command passed" response with "Good".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is only an educated guess, but I suspect that Windows is hoping to see START STOP return command passing then, when it sends TEST UNIT READY, get back a CHECK CONDITION response, with MEDIUM NOT PRESENT or something in the sense information. Obviously that's not happening, so it goes back to the question on whether there's any way to capture the SCSI commands and process them in a way that may be more appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, one other weird thing is that the version of usbdlib I'm using, admittedly from a relatively old LPCOpen release (I think), has the SCCS field in the INQUIRY response set to 1 to show SCC is supported (see below). Does that sound reasonable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Frame 1414: 63 bytes on wire (504 bits), 63 bytes captured (504 bits) on interface 0&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Interface id: 0 (\\.\pipe\wireshark_extcap_\\.\USBPcap2_20180321142047)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Interface name: \\.\pipe\wireshark_extcap_\\.\USBPcap2_20180321142047&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Encapsulation type: USB packets with USBPcap header (152)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Arrival Time: Mar 21, 2018 14:20:50.933845000 GMT Standard Time&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time shift for this packet: 0.000000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Epoch Time: 1521642050.933845000 seconds&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time delta from previous captured frame: 0.001000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time delta from previous displayed frame: 0.001000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time since reference or first frame: 3.082000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Frame Number: 1414&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Frame Length: 63 bytes (504 bits)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Capture Length: 63 bytes (504 bits)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Frame is marked: False]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Frame is ignored: False]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Protocols in frame: usb:usbms]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt;USB URB&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Source: 2.7.1]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Destination: host]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; USBPcap pseudoheader length: 27&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; IRP ID: 0xfffffa801660c010&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; IRP USBD_STATUS: USBD_STATUS_SUCCESS (0x00000000)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; URB Function: URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER (0x0009)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; IRP information: 0x01, Direction: PDO -&amp;gt; FDO&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 0000 000. = Reserved: 0x00&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... ...1 = Direction: PDO -&amp;gt; FDO (0x1)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; URB bus id: 2&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Device address: 7&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Endpoint: 0x81, Direction: IN&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 1... .... = Direction: IN (1)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... 0001 = Endpoint number: 1&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; URB transfer type: URB_BULK (0x03)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Packet Data Length: 36&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Request in: 1413]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time from request: 0.001000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [bInterfaceClass: Mass Storage (0x08)]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt;USB Mass Storage&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt;SCSI Payload (Inquiry Response Data)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [LUN: 0x0000]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Command Set:Direct Access Device (0x00) ]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [SBC Opcode: Inquiry (0x12)]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Request in: 1413]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Response in: 1415]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Peripheral: 0x00, Qualifier: Device type is connected to logical unit, Device Type: Direct Access Device&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 000. .... = Qualifier: Device type is connected to logical unit (0x0)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ...0 0000 = Device Type: Direct Access Device (0x00)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry RMB Flags: 0x80, Removable&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 1... .... = Removable: This is a REMOVABLE device&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Version: No Compliance to any Standard (0x00)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry ACA Flags: 0x01, Response Data Format: Unknown&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ..0. .... = NormACA: Normaca is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ...0 .... = HiSup: Hierarchical addressing mode is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... 0001 = Response Data Format: Unknown (1)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Additional Length: 32&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry SCCS Flags: 0x80, SCCS, TPGS: Asymmetric LU Access not supported&lt;/SPAN&gt;
&lt;STRONG style="font-size: 13px;"&gt; 1... .... = SCCS: SCC is SUPPORTED&lt;/STRONG&gt;
&lt;SPAN style="font-size: 13px;"&gt; .0.. .... = ACC: Access control coordinator NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ..00 .... = TPGS: Asymmetric LU Access not supported (0)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... 0... = 3PC: Third party copy is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... ...0 = Protect: Protection information NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry BQue Flags: 0x00&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 0... .... = BQue: Bque is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .0.. .... = EncServ: Enclosed services is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ...0 .... = MultiP: This is NOT a multiport device&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry RelAdr Flags: 0x00&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... ..0. = CmdQue: Command queuing is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Vendor Id: NXP &lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Product Id: LPC Mem Disk &lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Product Revision Level: 1.0 &lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt;SCSI transfer limited due to allocation_length too small: SCSI truncated]&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2018 17:38:29 GMT</pubDate>
    <dc:creator>jmccabe</dc:creator>
    <dc:date>2018-03-21T17:38:29Z</dc:date>
    <item>
      <title>Handling of SCSI PREVENT ALLOW MEDIUM REMOVAL/START STOP in usbdlib/usbdrom</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Handling-of-SCSI-PREVENT-ALLOW-MEDIUM-REMOVAL-START-STOP-in/m-p/723943#M29242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(See Additional comments below after editing)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to port the usbd_rom_msc_ram example from the LCP18S37 samples to the Embedded Artists LPC1788 Development Kit, as an interim step to porting it to some custom hardware based on the LPC1788. I've managed to get it mostly working, including porting the external SDRAM config in to allow me to provide 32MBytes of storage but, (in windows) when I right click on the drive and select "Eject", I get a message that an error occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a bit of research around the place, and using Wireshark to capture the USB packets, it looks like this might be related to the SCSI PREVENT ALLOW MEDIUM REMOVAL command's response being "command failed" (irrespective of whether the command asks for PREVENT or ALLOW. An example of the output in Wireshark is&amp;nbsp;attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the sense information is requested after this, the response (which is included in the file but, to make it obvious,...) includes:&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 13px;"&gt;SCSI Payload (Request Sense Response Data)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [LUN: 0x0000]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Command Set:Direct Access Device (0x00) ]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [SBC Opcode: Request Sense (0x03)]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Request in: 1991]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Response in: 1993]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .111 0000 = SNS Error Type: Current Error (0x70)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Valid: 112&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 0... .... = Filemark: False&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .0.. .... = EOM: False&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ..0. .... = ILI: False&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... 0010 = Sense Key: Not Ready (0x2)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Sense Info: 0x00000000&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Additional Sense Length: 10&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Command-Specific Information: 00000000&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Additional Sense Code+Qualifier: Cannot Read Medium - Unknown Format (0x3001)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Field Replaceable Unit Code: 0x00&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 0... .... = SKSV: False&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .000 0000 0000 0000 0000 0000 = Sense Key Specific: 0x000000&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;Does anyone know whether there is an obvious reason for this (i.e. is there a configuration option I'm missing somewhere)?&lt;/P&gt;&lt;P&gt;I'm assuming that this is happening in the default handler for this message type in the USBD library's MSC stuff; as an alternative to a quick fix, does anyone know how I can override the handling of the message myself? Is this part of the EP0 handling?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help gratefully appreciated.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a bit of further consideration, I don't think it's the handling of the PREVENT ALLOW MEDIUM REMOVAL command that's the issue here. As I understand it (please correct me if I'm wrong), if the command succeeds, Windows (in this case) thinks it's safe to cache data for the drive and only write it when the drive's being ejected. If the command fails, the caching is avoided and writes just happen when they're needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My latest thought is that it's around the SCSI START STOP UNIT command (telling it to stop) that's the problem. This is sent when I select "Eject" on the context menu. The device is responding with command failed.&amp;nbsp;It looks like this is retried then the SCSI TEST UNIT READY command is sent out, which gets a "command passed" response with "Good".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is only an educated guess, but I suspect that Windows is hoping to see START STOP return command passing then, when it sends TEST UNIT READY, get back a CHECK CONDITION response, with MEDIUM NOT PRESENT or something in the sense information. Obviously that's not happening, so it goes back to the question on whether there's any way to capture the SCSI commands and process them in a way that may be more appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, one other weird thing is that the version of usbdlib I'm using, admittedly from a relatively old LPCOpen release (I think), has the SCCS field in the INQUIRY response set to 1 to show SCC is supported (see below). Does that sound reasonable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Frame 1414: 63 bytes on wire (504 bits), 63 bytes captured (504 bits) on interface 0&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Interface id: 0 (\\.\pipe\wireshark_extcap_\\.\USBPcap2_20180321142047)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Interface name: \\.\pipe\wireshark_extcap_\\.\USBPcap2_20180321142047&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Encapsulation type: USB packets with USBPcap header (152)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Arrival Time: Mar 21, 2018 14:20:50.933845000 GMT Standard Time&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time shift for this packet: 0.000000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Epoch Time: 1521642050.933845000 seconds&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time delta from previous captured frame: 0.001000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time delta from previous displayed frame: 0.001000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time since reference or first frame: 3.082000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Frame Number: 1414&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Frame Length: 63 bytes (504 bits)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Capture Length: 63 bytes (504 bits)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Frame is marked: False]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Frame is ignored: False]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Protocols in frame: usb:usbms]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt;USB URB&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Source: 2.7.1]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Destination: host]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; USBPcap pseudoheader length: 27&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; IRP ID: 0xfffffa801660c010&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; IRP USBD_STATUS: USBD_STATUS_SUCCESS (0x00000000)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; URB Function: URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER (0x0009)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; IRP information: 0x01, Direction: PDO -&amp;gt; FDO&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 0000 000. = Reserved: 0x00&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... ...1 = Direction: PDO -&amp;gt; FDO (0x1)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; URB bus id: 2&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Device address: 7&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Endpoint: 0x81, Direction: IN&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 1... .... = Direction: IN (1)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... 0001 = Endpoint number: 1&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; URB transfer type: URB_BULK (0x03)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Packet Data Length: 36&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Request in: 1413]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Time from request: 0.001000000 seconds]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [bInterfaceClass: Mass Storage (0x08)]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt;USB Mass Storage&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt;SCSI Payload (Inquiry Response Data)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [LUN: 0x0000]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Command Set:Direct Access Device (0x00) ]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [SBC Opcode: Inquiry (0x12)]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Request in: 1413]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; [Response in: 1415]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Peripheral: 0x00, Qualifier: Device type is connected to logical unit, Device Type: Direct Access Device&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 000. .... = Qualifier: Device type is connected to logical unit (0x0)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ...0 0000 = Device Type: Direct Access Device (0x00)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry RMB Flags: 0x80, Removable&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 1... .... = Removable: This is a REMOVABLE device&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Version: No Compliance to any Standard (0x00)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry ACA Flags: 0x01, Response Data Format: Unknown&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ..0. .... = NormACA: Normaca is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ...0 .... = HiSup: Hierarchical addressing mode is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... 0001 = Response Data Format: Unknown (1)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Additional Length: 32&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry SCCS Flags: 0x80, SCCS, TPGS: Asymmetric LU Access not supported&lt;/SPAN&gt;
&lt;STRONG style="font-size: 13px;"&gt; 1... .... = SCCS: SCC is SUPPORTED&lt;/STRONG&gt;
&lt;SPAN style="font-size: 13px;"&gt; .0.. .... = ACC: Access control coordinator NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ..00 .... = TPGS: Asymmetric LU Access not supported (0)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... 0... = 3PC: Third party copy is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... ...0 = Protect: Protection information NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry BQue Flags: 0x00&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; 0... .... = BQue: Bque is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .0.. .... = EncServ: Enclosed services is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; ...0 .... = MultiP: This is NOT a multiport device&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Inquiry RelAdr Flags: 0x00&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; .... ..0. = CmdQue: Command queuing is NOT supported&lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Vendor Id: NXP &lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Product Id: LPC Mem Disk &lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt; Product Revision Level: 1.0 &lt;/SPAN&gt;
&lt;SPAN style="font-size: 13px;"&gt;SCSI transfer limited due to allocation_length too small: SCSI truncated]&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:38:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Handling-of-SCSI-PREVENT-ALLOW-MEDIUM-REMOVAL-START-STOP-in/m-p/723943#M29242</guid>
      <dc:creator>jmccabe</dc:creator>
      <dc:date>2018-03-21T17:38:29Z</dc:date>
    </item>
  </channel>
</rss>

