NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
xhakan
Posts: 3
0 Kudos

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
Member
tuba
Posts: 48

Re: usb communication using PIC18F4550

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
Member
xhakan
Posts: 3
0 Kudos

Re: usb communication using PIC18F4550

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

Member
tuba
Posts: 48

Re: usb communication using PIC18F4550

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
Member
xhakan
Posts: 3
0 Kudos

Re: usb communication using PIC18F4550

I guess you´re right.... thank you anyways for your help tuba.
 
Armando H.
Member
brazil
Posts: 1
0 Kudos

Re: usb communication using PIC18F4550

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!
Member
superdog
Posts: 3
0 Kudos

Re: usb communication using PIC18F4550

Hi do you the schematic for the pic184550?

 

Member
dariush
Posts: 2
0 Kudos

Re: usb communication using PIC18F4550

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.

Member
dm13dv1b
Posts: 1
0 Kudos

Re: usb communication using PIC18F4550

Use interrupts... Mikroc hid uses interrupt calling.

Member
ANTONINO
Posts: 5
0 Kudos

Rif.: usb communication using PIC18F4550

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page