CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB Development Kit

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PaulK



Joined: 08 Dec 2004
Posts: 2
Location: Norfolk, UK

View user's profile Send private message

USB Development Kit
PostPosted: Fri Nov 03, 2006 10:25 am     Reply with quote

I've been using the CCS USB Development Kit and so far everything has worked fine with PCWH V4.013 and ICD-U40.

Now I would like to write my own PC application to communicate with the USB PIC. This would be a replacement for the OScope example. However, the OScope example is written in a form of Pascal whereas I would like to write in MS C++ (.NET).

I think I am right saying that I can use the same USB Bulk Driver as supplied by CCS, but I'm not sure how to connect to it. The OScope example opens a '\\.\BulkUSBDemoDevice0' file and does fairly standard reads/writes on it. Is this the way to do it?

I've tried opening the file but this has always failed so far. Is there a particular open mode, share mode, permission mode to use?

Thanks
Paul
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Sun Nov 05, 2006 7:31 am     Reply with quote

Doing standard reads and writes will work. Another approach is to use Microchip's device driver. With this you don't have to mimic a standard device but can call directly the usb driver to discover enumerated ( Microchip) devices and select one to open r/w and close. Look in the code section of this board for ideas.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group