Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more: , +
Hi ,

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
http://www.mediafire.com/view/?ec79xt02620zil5[^]

we are trying now to write 2 functions ::

1- TakePicture
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

thank you

[edit]clickable link[/edit]
Posted
Updated 12-Nov-12 5:58am
v2

1 solution

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!
 
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