summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-27Fix progress computationNick Van Doorn
2017-12-21Increase buff and block size and update prototypesNick Van Doorn
2017-12-21Fix write progress, return photo path & resume vidNick Van Doorn
2017-12-13Update readme for 1.0.0 with sample codeNick Van Doorn
2017-12-13Add example appNick Van Doorn
2017-12-13Update header file for new namesNick Van Doorn
2017-12-13Log feedback when writing image dataNick Van Doorn
2017-12-13Use system serial calls and cleanupNick Van Doorn
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.
2017-12-12Remove un-needed returnNick Van Doorn
2017-12-12Update APINick Van Doorn
2017-12-12Refactor serial helpers to make resets easierNick Van Doorn
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.
2017-12-12Add debug statements & rename io helpersNick Van Doorn
2017-12-04Rename serial definesNick Van Doorn
2017-12-04Fix segfault and refactor I/O functionsNick Van Doorn
Seg fault was caused by attemtping to write a NULL pointer. The pointer is now checked before writing and will fail gracefully.
2017-12-04Update APINick Van Doorn
2017-12-04Update license and readme to give proper creditNick Van Doorn
2017-12-04Attempt to fix I/ONick Van Doorn
There is a gross segfault... but only when it timesout for some reason.
2017-12-01Fix sizeof args bug & cleanupNick Van Doorn
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
2017-11-10Update readme for new prototypesNick Van Doorn
2017-11-10Set methods as shared and lower timeoutNick Van Doorn
Thanks to @dpfrey for the excellent support resolving our build issues related to this file
2017-11-10Fix I/O related issuesNick Van Doorn
1. Put the serial connection in 'raw mode' 2. Use the write and read calls properly 3. Add support for flushing the buffer
2017-11-09Code review bug fixesNick Van Doorn
2017-11-09Re-add component init methodNick Van Doorn
2017-11-09Remove confusing typedefNick Van Doorn
2017-11-06Pass pointer to first element of buffNick Van Doorn
I think this is correct...
2017-11-05Implement method to write snapshot to fileNick Van Doorn
Mostly lifted from here https://github.com/adafruit/Adafruit-VC0706-Serial-Camera-Library/tree/master/examples/Snapshot
2017-11-05Add component init stubNick Van Doorn
2017-11-03Strip out test codeNick Van Doorn
These function should be called from a seperate component which I may or may not include in this repository
2017-11-03Implement all methods suported on the VC0706Nick Van Doorn
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.
2017-11-02Fix argsNick Van Doorn
2017-11-02Fix spacingNick Van Doorn
2017-11-02Merge branch 'master' of https://github.com/brnkl/VC0706-cam-lib-legatoNick Van Doorn
2017-11-04Initial commitNicholas Van Doorn
2017-11-02Initial commitNick Van Doorn