Click here to Skip to main content
14,271,891 members
Rate this:
Please Sign up or sign in to vote.
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,
Rate this:
Please Sign up or sign in to vote.

Solution 2

Sending it to the serial port is the easy bit:
SerialPort sp = new SerialPort("COM1",9600, Parity.None, 8, StopBits.One);
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.
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100