Click here to Skip to main content
15,912,069 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
am ordered to write an algorithm for a c# program that sends bits to a device using USB port ... the number of bits varies upto 2 raise to 32 ... and the number of pins is 15 ... any idea how to do it ...

What I have tried:

i have no experience in this field ... and sorry i cant post anything specific coz the project is a little classified.
Posted
Updated 19-Sep-16 2:30am
Comments
BillWoodruff 19-Sep-16 9:14am    
without hardware details, we can't help you. Two the fiteenth is 32,768, so, if the hardware can handle two the 32nd. power, it must have some form of buffer/multiplex facility.

No one here can write code for your requirements .
You should try from your end and ask questions based on what you have coded .

Please have a look on the below links and see whether it helps to start coding.

Working with USB devices in .NET and C# - .NET tutorial - developer Fusion[^]

Serial Comms in C# for Beginners[^]

Communicating with Serial Port in C#[^]

Arduino, C#, and Serial Interface[^]

http://www.codeproject.com/Questions/187388/USB-Port-Communication-in-C[^]
 
Share this answer
 
Quote:
i cant post anything specific coz the project is a little classified

Then we can't help you. This will depend hugely on the hardware, which we have no idea about except "it's usb". Go see your supervisor and ask him for help - he should know your abilities and be able to guide you.
 
Share this answer
 
Quote:
and sorry i cant post anything specific coz the project is a little classified.

Unfortunately, only specific information can lead to some help !
Quote:
am ordered to write an algorithm for a c# program that sends bits to a device using USB port ... the number of bits varies upto 2 raise to 32 ... and the number of pins is 15 ... any idea how to do it ...

Your statements are inconsistent with USB
-USB devices a 4 pins to communicate with host and you have 15 pins ?
-USB protocol is using bytes, not bits.

Either you declassify things, or you are alone.
 
Share this answer
 

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