Flex CAM Serial
0.1
This application is for the PC side part of the Flex CAM Serial Demo. Currently, it runs under MS Windows with CygWin Posix environment, facilitating easy adaptation of the code for a native Posix system.
The program must be executed in a command prompt window (Microsoft/Cygwin).
The program uses cygwin1.dll (included in the distribution), that can either be shared through the windows PATH environment variable or be placed in the executable directory.
flex-cam-serial <video|snap> <type> [port]
video : Configure flex for video (continous image stream)
snap : Configure flex for snapshot (single image)
type : Select the type of image:
- gray2 - Gray scale 2 bit
- gray4 - Gray scale 4 bit
- gray8 - Gray scale 8 bit
- rgb16 - RGB 16 bit (R:5 - G:6 - B:5)
- rgb12 - RGB 12 bit (R:4 - G:4 - B:4)
- jpeg - Jpeg compressed image
port : the serial port to connect; default is com1 (windows)
Examples of usage :
flex-cam-serial video jpeg
flex-cam-serial video gray2 com1
flex-cam-serial snap rgb12
The demo has been tested at 38400 bps baud rate. Change the UART1 speed on the Flex side driver to try different baud rates. The run-time errors are defined in the header file flexCAM.h.
The executable is build using the GNU toolchain under CygWin. On the command prompt use $ make
command to compile the project. Use $ make help
command to view build options
Following CygWin packages:
- GNU toolchain (g++, make)
- libjpeg
- FLTK library, version 1.1.8 or higher
IMPORTANT
Make following changes in the header file ‘jmorecfg.h’, usually located under ‘/urs/include’ sub-directory.
Replace
with #if (!defined(HAVE_BOOLEAN)) && (!defined(_RPCNDR_H))
Replace with #if (!defined(XMD_H) && !defined(_BASETSD_H))
Copyright (C) 2007 - Nastasi Christian
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Generated on Wed Apr 23 00:11:08 2008 for Flex CAM Serial by
1.5.4