Click here to Skip to main content
15,886,693 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
hi,
I have no knowledge on how I can make my program to communicate with some other hardware, but i wanna learn.. So i decided to ask you guys if you can give me some direction..

I want to make a communication with the hardware, but i wanna know what data is send to the computer when some action is taken on the external hardware (it is a Controller/Networking Reader (i don't know if i can link or not (cause of rules) the actual product) and i also wanna know on how can i send some data to the hardware. The pc is connected true the USB port with the hardware. I have few files that should help in the communication: 2x .dll files (Comm.dll & Socket.dll), 2x .lib files (Comm.lib & Socket.lib), 2x .h files (Comm.h & Socket.h) and 2x .def files (also comm.def & socket.def)..
I wanna make my program in C#. So far i read few articles about .dll files ..& etc, but it only made me more confused..

So any intro/direction on how to proceed?

Thanks in forward..
Posted

Just open a SerialPort[^] and you can talk directly to it. This is directly built into .NET so you don't need external DLL files!
 
Share this answer
 
For communicating with hardware you can make use of C language.
You can do your programming in c# and for hardware functinality function you can make use of C which could be combined to your C#program with help of dll(Like in Java we make use of jni so that we can connect our java program with a C language module)
 
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