Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

usb communication using PIC18F4550

Hello everybody. I got a question here. I am trying tu stablish a usb communication using a PIC18F4550. I found on the net a little program called EasyHID wich makes a little code (pbp in my case) and I decide the VendorID and the ProductID.... after all I followed the steps in this page:
 
but when I pluged it in just nothing happens... my computer does not recognize the device and I really need it working by the end of next week... I´d appreciate any help. Everything will make me be thankfull. Please spit at me any advice or hint.
 
Thanks to all of you.
 
Best Regards.
 
Armando Hernandez
0 Kudos
Message 1 of 10
(20,306 Views)
Well even if the driver you created in VISA does not work, Windows should still prompt you to locate the appropriate driver when you plug in the device.  If it does not do this, and there is no VISA Device or Unknown Device in the device manager, then it sounds like the USB implentation on your PIC controller does not work properly.

Do you have appropriate vendor and product IDs, or did you just use random values?  If you used random values, it is possible that you selected values which correspond to a Driver signed driver on your system, which would cause the (incorrect) driver to be loaded transparently when you plug in the USB device.

-tuba
Message 2 of 10
(20,289 Views)

Thanks tuba for your response. You know, I have the correct vendor Id and Product Id, this is the diagram I´m using

Thanks a lot!

Armando Hernández

0 Kudos
Message 3 of 10
(20,276 Views)
I actually have no idea how to implement a USB device with this PIC microcontroller.  My intent was to help you narrow down the cause of the problem.  If Windows does not even enumerate the USB device, and never prompts you to install a driver, then most likely there is a problem with the PIC setup or code.  If this is the case, you would probably be better served by posting to a PIC discussion group somewhere in order to consult with users who have done what you are doing before on the microcontroller end of things.

Once Windows is able to detect that you are connecting the USB device, you will be able to install your VISA driver for it, and the users in these forums will be able to be of more help from that point.

-tuba
Message 4 of 10
(20,274 Views)
I guess you´re right.... thank you anyways for your help tuba.
 
Armando H.
0 Kudos
Message 5 of 10
(20,269 Views)
Hello everyone,

I need a help..i just search in this forum but i heve the problems yet.



I use labview 8.5 to communicate with microcontroler (PIC 18F4550 too).I programmed PIC by MirkoC, use HID Library for USB communication.
the pic received a information in your A/D and send to the graphc in labview.
I dont want use the NI_VISA Driver wizard for USB because i dont hope the any driver...only the labview, for this i like use a DLL. in the "DLL call" I just use the "mpusbapi.dll" but it need a driver too.
I find the hid.dll, but i dont know if this is functional

Please..any sugestion...anybody just use the hid.dll or other dll for this comunication } without drivers}


Thanks again!
0 Kudos
Message 6 of 10
(17,029 Views)

Hi do you the schematic for the pic184550?

 

0 Kudos
Message 7 of 10
(16,115 Views)

Hi brazil
Would you please tell me whether you got response from Labview with Mikroc?

I  have checked the HID library in Microc with the HID terminal and it works fine but it doesn't work with VISA?

I have made the driver and it recognizes it quite well but when i press the "bulk in"in the "USB RAW-Bulk.vi" it says "VISA:  (Hex 0xBFFF003A) Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state)."

What should i do?

Any suggestion?

Thanks a lot in advance.

0 Kudos
Message 8 of 10
(13,423 Views)

Use interrupts... Mikroc hid uses interrupt calling.

0 Kudos
Message 9 of 10
(8,383 Views)