Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The issues related to reading photos are a result of an issue in the
Legato le_tty interface. Opening a serial connection using all system
calls solves this problem nicely. Thanks to wiringPi for providing some
code for this.
All the log statements are cleaned up. The stream functions could use
some feedback to let the developer know things are still alive.
There are also doc comments for each function except some of the motion
detection stuff that I have not quite figured out yet.
|
|
|
|
|
|
We were experience issues where the readPicture command would become
unresponsive after exactly 10 reads 32 bytes in size. We were able to
"solve" this by simply closing and re-opening the serial connection file
descriptor after reading a block. This may be a limitation in the le_tty
interface meaning it may be worth implementing this using only Linux
system calls (e.g open et al).
The sendCommand function now pays attention to the return status of the
calls to fd helpers.
|
|
|
|
|
|
Seg fault was caused by attemtping to write a NULL pointer. The pointer
is now checked before writing and will fail gracefully.
|
|
|
|
|
|
There is a gross segfault... but only when it timesout for some reason.
|
|
Turns out uint8_t is passed by reference by default since it's just a
typedef for char. As a result the length of args cannot be computed in
runCommand. The caller is now responsible for computing the number of
args and then passing them to runCommand
openCameraFd now returns the result and writes the file descriptor in
the fd pointer.
Fix an inverted if statement in runComamnd
Fix inverted read logic in snapShotToFile function
|
|
|
|
Thanks to @dpfrey for the excellent support resolving our build issues
related to this file
|
|
1. Put the serial connection in 'raw mode'
2. Use the write and read calls properly
3. Add support for flushing the buffer
|
|
|
|
|
|
|
|
I think this is correct...
|
|
Mostly lifted from here https://github.com/adafruit/Adafruit-VC0706-Serial-Camera-Library/tree/master/examples/Snapshot
|
|
|
|
These function should be called from a seperate component which I may or
may not include in this repository
|
|
Most of this is ported directly from the Adafruit repo with some small
changes
Still lots of magic numbers floating around that I would like to squash
but I'm not sure if there is really any point.
|
|
|
|
|
|
|
|
|
|
|