Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

HidLibrary.dll problem for C# and PIC18F4550 usb interface

Status
Not open for further replies.

akhter900

Junior Member level 1
Joined
Jun 7, 2009
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,456
hidlibrary.dll

Hi........

I am facing some problems to read data from PIC18F4550 through USB. I am using C# express edition and HidLibrary.dll. As for firmware I am using CCS compiler.

Anyone please help me to read USB packet using C#?
Also let me have a good documentation about this.

Here is my sample code.... (not working)

==========================
HidDevice myDevice;
HidDeviceData myData;

public bool initialize();
public String read_data()
{
myData = myDevice.Read();
return myData.Data[0].ToString();
}

==========================

The program stopped at myDevice.Read(); and can not read.

I am eagerly expecting your help.

Akhter
 

hidlibrary

hie..........

Thanks a lot.
I just did a silly mistake. offfff......... It was a pain of my [spam].

..........
#define USB_EP1_TX_SIZE 2 // I defined 1 except 2........oh!!
..........
usb_put_packet(1, out_data, 2,USB_DTS_TOGGLE);
..........

Any way.........
Its working so well.

Thanks GOD.

Good bye
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top