Export (0) Print
Expand All
Expand Minimize

Media Status Notification Test

Note  This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.

Type: Manual Test

Overview

The Media Status Notification (MSN) specification v1.03 test contains two scenarios: one to test the ejectability of a device, and one to test the media status bits.

Details

If a device also supports the Removable Media Feature set, the test will check that Lock, Unlock, and Eject behave correctly with MSN enabled.

The test checks the media status bits. The test also checks the response to GetMediaStatus when MSN is disabled and checks each that each bit is activated correctly with MSN enabled.
Run Time: 20 min
Log File:
System Restart Required: No
Test Category:
Supported operating systems for Logo or Signature testing:
  • Windows 7

  • Windows Vista

  • Windows Server 2003

  • Windows XP

Program:

Requirements

Software Requirements

The test tool requires the following software:

  • Supported operating system (see list above)

  • Software components included with the device that is being tested

Hardware Requirements

The test tool requires the following hardware:

  • Device to be tested

  • Computer that meets the minimum software requirements

  • Windows keyboard

  • Two-button pointing device

  • Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz

  • Hard drive with a minimum of 20 GB available on partition C:

  • Removable drive with eject option

Processor

The test tool runs on the following processor architectures:

  • x86

  • x64

  • Itanium

Running Media Status Notification Test

To run this test manually, you must insert and remove media in your device.

Command Syntax

Command optionDescription

MEDIASN.EXE <drive>

 

Code Tour

File Manifest

FileLocation

mediasn.exe

...\tests\%ARCHITECTURE%\nttest\driverstest\storage\wdk

 

Test Assertions

Device must expose a drive letter and permit the test to open a handle to the drive.
Test Assertion GUID: 0ad01f0c-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Device must support ATA or ATAPI Identify, and set the Media Status Notification bits (word 127[1:0] = 0b01)
Test Assertion GUID: 0ad01f0d-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
If the Removable Media feature set is supported, it must not interfere with Media Status Notification.
Test Assertion GUID: 0ad01f0e-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Device must support enabling of MSN (95h) and report this in the IDENTIFY DEVICE response. (word 86[4] = 1)
Test Assertion GUID: 0ad01f0f-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Device must support disabling of MSN (31h) and report this in the IDENTIFY DEVICE response. (word 86[4] = 0)
Test Assertion GUID: 0ad01f10-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
If the Removable Media feature set is implemented the device should support the Media Lock command.
Test Assertion GUID: 0ad01f11-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
If the Removable Media feature set is implemented the device should support the Media Eject command, regardless of locked/unlocked state.
Test Assertion GUID: 0ad01f12-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
The following ATA commands must return the no media bit when media is ejected: Unlock, Eject, Read Verify Sector, Lock, Read Sector, and Write Sector.
Test Assertion GUID: 0ad01f13-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
If the Removable Media feature set is implemented the device should support the Media Unlock command.
Test Assertion GUID: 0ad01f14-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
User must insert media when prompted and media must become available within 7.5 seconds after user clicks ok.
Test Assertion GUID: 0ad01f15-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Media must remain available after user presses eject button.
Test Assertion GUID: 0ad01f16-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Device must suppourt Get Media Status command.
Test Assertion GUID: 0ad01f17-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Get Media Status should return 0 for WP, MC, MCR and NM when MSN is disabled.
Test Assertion GUID: 0ad01f18-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Media Change Request bit should be asserted when eject button is pressed.
Test Assertion GUID: 0ad01f19-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
No media bit should be asserted when media is not present.
Test Assertion GUID: 0ad01f1a-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Write protect bit should be asserted when write-protected media present.
Test Assertion GUID: 0ad01f1b-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Media Change bit should be asserted when media is inserted.
Test Assertion GUID: 0ad01f1c-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Media Change bit should be cleared when Get Media Status is called.
Test Assertion GUID: 0ad01f1d-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements
Device must properly implement Media Status Notification.
Test Assertion GUID: 0ad01f1e-c51a-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0001 Storage devices meet industry standards and Windows requirements

 

 

Build date: 9/14/2012

Community Additions

ADD
Show:
© 2014 Microsoft