Click here to Skip to main content
13,456,475 members
Rate this:
Please Sign up or sign in to 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[^]

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 12-Nov-12 5:38am
Updated 12-Nov-12 5:58am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01-2016 | 2.8.180322.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100