electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

HidLibrary.dll problem for C# and PIC18F4550 usb interface


Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> HidLibrary.dll problem for C# and PIC18F4550 usb interface
Author Message
akhter900



Joined: 07 Jun 2009
Posts: 17


Post08 Jul 2009 10:15   

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


Last edited by akhter900 on 10 Jul 2009 4:45; edited 1 time in total
Back to top
Google
AdSense
Google Adsense




Post08 Jul 2009 10:15   

Ads




Back to top
akhter900



Joined: 07 Jun 2009
Posts: 17


Post10 Jul 2009 4:44   

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 ---.

Good bye
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> HidLibrary.dll problem for C# and PIC18F4550 usb interface
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Problem with HID USB (PIC18F4550 and EasyHID) (3)
PIC18F4550 interface with PC through USB (7)
USB interface with PIC18F4550.... help please. (2)
PIC18F4550 and USB - help needed (15)
USB Driver for PIC18F4550 (5)
Connection USB PIC18F4550 and Nokia 6230B (8)
A dll file for interface Serial port and parallel port (1)
What interface is needed for pc when using PIC18F4550 ? (1)
Making a usb controller or usb interface with avr and pic (1)
USB Interface Problem PDIUSBD12 (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS