Page 1 of 1

USB Driver and INF file

Posted: Tue Nov 23, 2021 1:12 pm
by p.erasmus
Dear Team,

I want to ask some help info regarding the USB component :oops:

1- If I change the VID/PID and vendor names and generate the driver in the Properties panel and then add the generated inf file to the supplied driver package as below and install the driver will the new device be known by windows

P1.jpg
P1.jpg (61.61 KiB) Viewed 2870 times
Changing these properties (below)

P2.jpg
P2.jpg (53.1 KiB) Viewed 2870 times
will it show up here with the new properties

P3.jpg
P3.jpg (34.02 KiB) Viewed 2870 times
I am also thinking for testing to use a Labview project can I use the Miac DLL for LV with no license issues from MATRIX or technical issue

Thansk a million for your help

Re: USB Driver and INF file

Posted: Wed Nov 24, 2021 8:26 am
by p.erasmus
Hi Ben,

I tried generating the inf file for the Custom driver as shown in the wiki may be I am justr to old howver I cannot select Yes for generating the driver ,
if I select the "Yes" property it immidialtly goes to no again ,
If I compile the project I have no inf file .
In my understanding from the Wiki after the generation of the inf file the property will automatically go to "No" however this is working in reverse with me
Please help! :D


P55.jpg
P55.jpg (34.12 KiB) Viewed 2853 times

Re: USB Driver and INF file

Posted: Wed Nov 24, 2021 9:05 am
by p.erasmus
Hi Ben

the next issue if I select the Time out Property to Yes then the code does not compile on 18F4550
P3.jpg
P3.jpg (27.43 KiB) Viewed 2849 times


P2.jpg
P2.jpg (35.1 KiB) Viewed 2849 times
when set to No
P1.jpg
P1.jpg (29.39 KiB) Viewed 2849 times

Re: USB Driver and INF file

Posted: Wed Nov 24, 2021 11:02 am
by Steve-Matrix
p.erasmus wrote:
Wed Nov 24, 2021 8:26 am
I tried generating the inf file for the Custom driver as shown in the wiki may be I am justr to old howver I cannot select Yes for generating the driver ,
if I select the "Yes" property it immidialtly goes to no again ,
If I compile the project I have no inf file .
In my understanding from the Wiki after the generation of the inf file the property will automatically go to "No" however this is working in reverse with me
Hi Peter,

I've just tried this and it seems to be working ok. Changing "Generate Driver" to "yes" will create a .inf file in the same location as the .fcfx project file and then the "yes" will flip back to "no". Changing this property causes the .inf file to be created, and not compiling the project.

FYI: it is done this way because (currently) there is no way to have a button press event for a component property. What we do instead is detect that this property changes to "yes" and then this triggers the event as if a button has been pressed. The component then automatically flips the property back to "no" once the event has been actioned.

Regarding the "timeout" issue, this seems to be a bug and hopefully Ben will fix this soon.

Regards,
Steve.

Re: USB Driver and INF file

Posted: Wed Nov 24, 2021 11:19 am
by p.erasmus
Hi Steve

Thank you so much,
I was looking in the directory looking for an filename.inf extenion and did not see one but after your reply pulling me out of this endless loop
I found the filename that is showed in the Properties I guess it this one I will try it now

Many thanks old age is no joke :D

P111.jpg
P111.jpg (24.59 KiB) Viewed 2840 times

Re: USB Driver and INF file

Posted: Wed Nov 24, 2021 11:36 am
by p.erasmus
Hi Steve,
I have replaced the mm_mchpusb file in the driver files from the wiki and try to run the exe for my win10 64 bit machine and I get the following error

the error is in German it means the" DPInst.exe can not be executed on this Operating system " Sorry of all the trouble I am causing :D
P12.jpg
P12.jpg (43.93 KiB) Viewed 2838 times

Re: USB Driver and INF file

Posted: Wed Nov 24, 2021 11:42 am
by Steve-Matrix
Try right-clicking the generated .inf file and selecting "install". That might work...

Re: USB Driver and INF file

Posted: Wed Nov 24, 2021 11:58 am
by p.erasmus
:D :D
Bingo Steve Thanks a million that worked well

Re: USB Driver and INF file

Posted: Wed Nov 24, 2021 12:10 pm
by Steve-Matrix
Great - thanks for letting us know. :D