Añado informacion;
He estado estudiando el tema VID y PID,
dentro del archivo "inf" tengo la siguiente informacion :
Hasta ahi todo correcto.
Supuestamente el archivo usb_desc_cdc.h contiene la informacion del VID y el PID,
por mas que lo cambio, lo trasteo, lo compilo y lo cargo al pic 18f4550 del proteus, cuando inicio la simlacion me detecta un dispositivo con el nombre "serial demo", que era el que trae por defecto la libreria de proteus, y no consigo instalar el driver de ninguna manera.
Sabeis por donde pueden ir los tiros??
He estado estudiando el tema VID y PID,
dentro del archivo "inf" tengo la siguiente informacion :
Código:
;------------------------------------------------------------------------------
; Vendor and Product ID Definitions
;------------------------------------------------------------------------------
; When developing your USB device, the VID and PID used in the PC side
; application program and the firmware on the microcontroller must match.
; Modify the below line to use your VID and PID. Use the format as shown below.
; Note: One INF file can be used for multiple devices with different VID and PIDs.
; For each supported device, append ",USB\VID_xxxx&PID_yyyy" to the end of the line.
;------------------------------------------------------------------------------
[SourceDisksFiles]
[SourceDisksNames]
[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_04D8&PID_000B
[DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall, USB\VID_04D8&PID_000B
;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------
;Modify these strings to customize your device
;------------------------------------------------------------------------------
[Strings]
MFGFILENAME="mchpcdc"
DRIVERFILENAME ="usbser"
MFGNAME="MoyaPIC_USB"
INSTDISK="Microchip Technology, Inc. Installation Disc"
DESCRIPTION="MoyaPIC_USB28_CDC"
SERVICE="USB RS-232 Emulation Driver"
Hasta ahi todo correcto.
Supuestamente el archivo usb_desc_cdc.h contiene la informacion del VID y el PID,
Código:
const char USB_DEVICE_DESC[USB_DESC_DEVICE_LEN] ={
//starts of with device configuration. only one possible
USB_DESC_DEVICE_LEN, //the length of this report ==0
0x01, //the constant DEVICE (DEVICE 0x01) ==1
0x10,0x01, //usb version in bcd ==2,3
0x02, //class code. 0x02=Communication Device Class ==4
0x00, //subclass code ==5
0x00, //protocol code ==6
USB_MAX_EP0_PACKET_LENGTH, //max packet size for endpoint 0. (SLOW SPEED SPECIFIES 8) ==7
USB_CONFIG_VID & 0xFF, ((USB_CONFIG_VID >> 8) & 0xFF), //vendor id ==9, 10
USB_CONFIG_PID & 0xFF, ((USB_CONFIG_PID >> 8) & 0xFF), //product id, don't use 0xffff ==11, 12
USB_CONFIG_VERSION & 0xFF, ((USB_CONFIG_VERSION >> 8) & 0xFF), //device release number ==13,14
0x01, //index of string description of manufacturer. therefore we point to string_1 array (see below) ==14
0x02, //index of string descriptor of the product ==15
0x00, //index of string descriptor of serial number ==16
USB_NUM_CONFIGURATIONS //number of possible configurations ==17
};
//////////////////////////////////////////////////////////////////
///
/// start string descriptors
/// String 0 is a special language string, and must be defined. People in U.S.A. can leave this alone.
///
/// You must define the length else get_next_string_character() will not see the string
/// Current code only supports 10 strings (0 thru 9)
///
//////////////////////////////////////////////////////////////////
#if !defined(USB_STRINGS_OVERWRITTEN)
//the offset of the starting location of each string. offset[0] is the start of string 0, offset[1] is the start of string 1, etc.
char USB_STRING_DESC_OFFSET[]={0,4,12};
// Here is where the "CCS" Manufacturer string and "SERIAL DEMO" are stored.
// Strings are saved as unicode.
// These strings are mostly only displayed during the add hardware wizard.
// Once the operating system drivers have been installed it will usually display
// the name from the drivers .INF.
char const USB_STRING_DESC[]={
//string 0
4, //length of string index
USB_DESC_STRING_TYPE, //descriptor type 0x03 (STRING)
0x09,0x04, //Microsoft Defined for US-English
//string 1
8, //length of string index
USB_DESC_STRING_TYPE, //descriptor type 0x03 (STRING)
'C',0,
'C',0,
'S',0,
//string 2
24, //length of string index
USB_DESC_STRING_TYPE, //descriptor type 0x03 (STRING)
'C',0,
'D',0,
'C',0,
'_',0,
'U',0,
'S',0,
'B',0,
'_',0,
'P',0,
'I',0,
'C',0,
};
por mas que lo cambio, lo trasteo, lo compilo y lo cargo al pic 18f4550 del proteus, cuando inicio la simlacion me detecta un dispositivo con el nombre "serial demo", que era el que trae por defecto la libreria de proteus, y no consigo instalar el driver de ninguna manera.
Sabeis por donde pueden ir los tiros??