I am an undergraduate student and I am working on a project ( hardware ) with my group , we are finished 75% of our project but now we need to make a software module to interface with linksprite jpeg camera !
this camera has its own commands and this is the manual
we are trying now to write 2 functions ::
2- ReadJpegFileContents ( then store the bytes in memory stream then display the image )
we are finding difficulties in writting the 2 functions because we are a beginners
in c# and we didnt study it in our course .
we will appreciate any help in this feild or any references that might help
The first thing to do is to make sure you have established communications with the camera.
Assuming you can talk to it in some way already, the manual is pretty clear about what you have to do. To take a picture:
Send the camera a sequence of 5 bytes: 0x56 0x00 0x36 0x01 0x00
It will talk back to you and return 5 bytes: 0x76 0x00 0x36 0x00 0x00
This presumably means "Taken ok".
To read the file doesn't look too difficult either.
To be honest, the manual isn't the best I've seen, but it by no means the worst.
It's a little more complex to return a JPG file, because the data is sent in blocks, but it's not complex. All you have to do is request each block in turn - there is even a flow chart explaining how to do it!
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)