Click here to Skip to main content
15,894,003 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
i want to send the image to the external hardware through serial port. Kindly help me in giving some information about the protocols and how to write it. I have converted the pixel components of the image into hexadecimal values. What is the next step i have to do now? Do i need to append any new value to it? How do i send it to the serial port?

Kindly reply.

Thank you,
Prashant
Posted

 
Share this answer
 
Comments
Dalek Dave 7-Dec-10 10:11am    
Good Link.
Sending it to the serial port is the easy bit:
SerialPort sp = new SerialPort("COM1",9600, Parity.None, 8, StopBits.One);
sp.Open();
sp.Write(myArrayOfBytes, 0, myArrayOfBytes.Length);
Where the parameters will depend on your configuration.

The fun bit is working out what the remote equipment is going to take.

That will depend on the hardware you are expecting to talk to. Look at your hardware manual, and work out what it is expecting.
 
Share this answer
 
Comments
Dalek Dave 7-Dec-10 10:11am    
Good 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