TotalLUNs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

TotalLUNs

1,022件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by danhauck on Wed Feb 13 06:25:43 MST 2013
Hi, has anybody tested the TotalLUNs functionality for the usb-stack? When I`m defining it to 3 there is only the scsi inquiry, request sense, ... for lun 0. Lun 1 and 2 is ignored.

Does anybody knows whats going wrong?

Regards

Daniel
ラベル(1)
  • USB

0 件の賞賛
返信
1 返信

1,011件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by danhauck on Wed Mar 06 02:14:24 MST 2013
Hi all,

I solved the problem. Windows prohibits Multiple LUNs if theres no serialnumber in the usb descriptor

So I changed the .SerialNumStrIndex in the Descriptors.c to 0x04 and added

uint8_t SerialNoString[] =
{
  USB_STRING_LEN(12),
  DTYPE_String,
  WBVAL('U'),
  WBVAL('C'),
  WBVAL('R'),
  WBVAL(' '),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('1'),
};
USB_Descriptor_String_t *SerialNoStringPtr = (USB_Descriptor_String_t*)SerialNoString;


and added in function CALLBACK_USB_GetDescriptor in case DTYPE_String the case 0x04

Address = SerialNoStringPtr;
Size    = pgm_read_byte(&SerialNoStringPtr->Header.Size);
break;

Regards

Daniel


0 件の賞賛
返信