Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello everyone

I am trying to communicate with a device by using windows messaging and through a USB port. I will be writing the code in C# and WPF.
The device has a an interface board that uses a Cypress USB driver chip (CY7C6###). I have installed their generic drives and change the PID (product ID) and VID (Vendor ID) numbers to match the device. So, my PC can see the cypress USB driver. Beyond this point I don't know what to do since neither the interface nor the device come with a DLL. I can not find any online either.
The device takes text commands to perform certain tasks. So, my plan is to use windows messaging and send and receive texts through USB to this device.
I am open to any other suggestions you might have to communicate with this device.
If windows messaging is a good idea please provide me with any information you can.
Thanks.
HB
Posted

1 solution

Hi,

Could you tell us the aim you want to connect Cypress to PC? Is this something like storage device or the kind of ADC? I mean do you have some requirements or requests to the target device?

As I know CY7C6### is a microprocessor, so you need to write the software, compile and flash the resulting binary (.hex... or something else) into it. This firmware could respond to your "USB-side" requests.

P.S. In general case it is not a problem to write/read into/to the USB device. The work with such device is similar to the file operations (Open (CreateFile(...)), Read (ReadFile(...)) and Write (WriteFile(...))).

P.P.S. By the all, maybe this thing "SuiteUSB 3.4 - USB Development tools for Visual Studio" will help you...
http://www.cypress.com/?rID=34870

Thanks!

BR,
Viktor Signaievkyi
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900