Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3807002
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:55:20+00:00 2026-05-19T14:55:20+00:00

I’m working on an embedded home surveillance system. I want to interface a couple

  • 0

I’m working on an embedded home surveillance system. I want to interface a couple of serial-enabled JPEG capture cameras, maybe a couple of door sensors, etc. Problem is, I can’t for the life of me figure out how to interface a camera to a microcontroller. Stills, streaming video, it doesn’t matter – I can’t find any how-to documentation on this.

I understand serial communications, and most of the camera documentation I’ve found out there describes the protocol necessary to instruct the camera to send the datastream down to the uC for capture. What they don’t show is what you’re supposed to do with the data once you get it.

Here’s an example.

They show a great little video, and the datasheet describes which bytes must be sent to the camera to retrieve the image. What I need is an example or tutorial of some sort that will explain what to do with the stream of bytes that make up the image itself. How do I arrange those bytes into an image and save it as a file?

I’ve looked all over the place for a tutorial of some sort, but have come up dry. I’m not sure which processor I’ll use for this project just yet, but this question isn’t really processor-dependent. All I need is the algorithm, maybe a peek at a library, if one exists. I’ll take that process and adapt it to my hardware, I just can’t seem to find a place to get started.

Have any of you done this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:55:21+00:00Added an answer on May 19, 2026 at 2:55 pm

    I think the details are pretty clear in page 10 inside this document:

    http://www.4dsystems.com.au/downloads/micro-CAM/Docs/uCAM-DS-rev4.pdf

    First, one package is between 64 to 512 bytes – flexibly defined by the programmer. Image size is the actual JPEG image itself….nothing more or less….just pure JPEG image. So the equation to calculate the number of package based on image_size / package_size is given in page 10.

    Next, is that (package_size – 6) is to be consistently used everywhere, because 6 bytes are used up for non-data purpose, so (package_size – 6) will be just the data – but u have to reassemble it yourself.

    To assemble the data from the package, u have to strip the 4 byte header + 2 byte trailer and concatenate all these from all the package sequentially one after another.

    Other facts:

    a. “Set Package Size” command must be sent from host to CAM – before “SNAPSHOT” command, which capture the image from the camera into the CAM memory buffer.

    b. Next is to send “SNAPSHOT” command to capture the image into memory buffer.

    c. Last is to send “GET PICTURE” command (only one time, but data will come back multiple times – see diagram in page 15) to extract out all the images….and it will come back in the form of “package” as we have defined the size earlier in “set package size”. Since u have calculate the formula u will know when to stop asking for the next package. And there is a verification byte – u have to used that to make sure data is correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
i want to parse a xhtml file and display in UITableView. what is the
I want to construct a data frame in an Rcpp function, but when I
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.