Go to advanced search

by byterg
Thu Mar 10, 2016 2:52 pm
Forum: C/C++
Topic: OpenCV+Raspberry Pi Camera Module
Replies: 3
Views: 1133

Re: OpenCV+Raspberry Pi Camera Module

With V4L2 API I get ~5FPS on full resolution.
by byterg
Thu Mar 10, 2016 2:35 pm
Forum: C/C++
Topic: Timer interrupts with a LED
Replies: 6
Views: 4297

Re: Timer interrupts with a LED

little program in which each 10 seconds a LED is turned on and after 10 seconds it turns off and cycle, I think you can use linux LED API. Simple example: #define RPI_GREEN_LED "/sys/class/leds/led0" #define RPI_RED_LED "/sys/class/leds/led1" static void set_led_timer(unsigned char red, const char ...
by byterg
Mon Jan 25, 2016 8:02 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 16 bit data read/write from 16 bit address register
Replies: 13
Views: 4773

Re: 16 bit data read/write from 16 bit address register

typedef enum { I2C_8BIT, I2C_16BIT, I2C_24BIT, I2C_MAX } i2c_width; typedef struct { int fd; unsigned short addr; i2c_width reg_width; i2c_width val_width; } i2c_hndl; int i2c_read(const i2c_hndl *hndl, unsigned int reg) { struct i2c_rdwr_ioctl_data data; struct i2c_msg *msgs; __u8 buf[sizeof(__u8)...
by byterg
Mon Sep 21, 2015 7:31 am
Forum: Camera board
Topic: Official V4L2 driver
Replies: 554
Views: 455175

Re: Official V4L2 driver

I confirm, AWB management work only with active overlay.

Code: Select all

~ # cat /proc/version 
Linux version 3.18.16+ ([email protected]) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #23 PREEMPT Thu Aug 27 16:56:11 MSK 2015
by byterg
Fri Sep 04, 2015 1:33 pm
Forum: C/C++
Topic: Mutlithreaded sonic
Replies: 19
Views: 2306

Re: Mutlithreaded sonic

Use pthread_exit for return thread exit code, as sample:

Code: Select all

void * getAvgDistance(void * pinsPtr)
{
    ................
    pthread_exit((void *)0);
}
by byterg
Wed Sep 02, 2015 11:51 am
Forum: C/C++
Topic: Using C, is there a way to take pictures faster than 1/sec?
Replies: 2
Views: 533

Re: Using C, is there a way to take pictures faster than 1/s

Yes, it possible, with V4L2 API I capture 2592x1952: JPEG - 1.93 FPS, YUV420 - 1.2 FPS.
by byterg
Tue Aug 11, 2015 8:27 am
Forum: Camera board
Topic: Official V4L2 driver
Replies: 554
Views: 455175

Re: Official V4L2 driver

Hello! I use V4L2 API for get images from sensor, linux-3.18.16. Unfortunately white balance parameters not apply. Follow my debug output from drivers/media/platforms/bcm2835/controls.c: [ 72.883893] ctrl_set_awb_mode: awb mode 0, result 0 [ 72.889083] ctrl_set_awb_gains: red gain 2500, blue gain 10...
by byterg
Mon Aug 03, 2015 11:44 am
Forum: C/C++
Topic: SPI with C programming
Replies: 32
Views: 14151

Re: SPI with C programming

Thanks again the spidev_test.c does not work. spidev_test.c: In function ‘transfer’: spidev_test.c:116:13: error: ‘SPI_TX_QUAD’ undeclared (first use in this function) spidev_test.c:116:13: note: each undeclared identifier is reported only once for each function it appears in spidev_test.c:117:5: e...
by byterg
Thu Jun 25, 2015 8:53 am
Forum: Camera board
Topic: Official V4L2 driver
Replies: 554
Views: 455175

Re: Official V4L2 driver

Unfortunately image not cropped ;(
by byterg
Wed Jun 24, 2015 2:29 pm
Forum: Camera board
Topic: Official V4L2 driver
Replies: 554
Views: 455175

Re: Official V4L2 driver

MMAL_PARAMETER_INPUT_CROP is using relative values, not absolute pixel counts, so a rectangle of 0,0,0x1000,0x1000 is the full field of view, having cropped the image to the output aspect ratio. This was the reason that I hadn't tackled it before - the way the Broadcom GPU code works didn't seem to...
by byterg
Wed Jun 24, 2015 12:07 pm
Forum: Camera board
Topic: Official V4L2 driver
Replies: 554
Views: 455175

Re: Official V4L2 driver

Hello!
I write simple patch for support VIDIOC_S_CROP, unfortunately output image not changed.
Can you help me modify it for correct work?
Thank you and excuse my bad english.
by byterg
Tue Jun 23, 2015 12:25 pm
Forum: Camera board
Topic: Official V4L2 driver
Replies: 554
Views: 455175

Re: Official V4L2 driver

Hello! Now I try use V4L2 for get image from sensor, linux 3.18 (commit 79176013396e2a84897fd2b871973402adbcbef1). Unfortunately linux log contained follow message: [12744.964927] ------------[ cut here ]------------ [12744.969800] WARNING: CPU: 0 PID: 522 at drivers/media/v4l2-core/videobuf2-core.c...
by byterg
Mon Jun 22, 2015 11:07 am
Forum: Camera board
Topic: Camera maximum height
Replies: 3
Views: 569

Re: Camera maximum height

6by9 wrote: The actual number of pixels read off the sensor is 2592x1944.
This is a very strange because RaspiStillYUV return 2592x1952 YUV.
by byterg
Mon Jun 22, 2015 9:13 am
Forum: Camera board
Topic: Camera maximum height
Replies: 3
Views: 569

Camera maximum height

Hello!
Why V4L2 driver limit maximum height on 1944 if sensor support and work on 1952?
Thank you and excuse my bad english.
by byterg
Tue Feb 03, 2015 9:12 am
Forum: Camera board
Topic: Preview port role
Replies: 0
Views: 248

Preview port role

Hello! Softwar version: linux 0ad86bd133d46aee08ef149d61331776c0e9b7cd firmware 4a66b501473024c143c8c34fb670e009b6a8b8ff tools b9d7a8ac626e377577aa6900da5c5a965cafb66c sdk 3b81b91c18ff19f97033e146a9f3262ca631f0e9 Based on RaspiStill I write application for encode to JPEG and see it via browser, unfo...
by byterg
Tue Feb 03, 2015 8:02 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5020
Views: 1296030

Re: RPi Cam Web Interface

Hello! Based on RaspiMJPEG.c I try add resize modules to my application. Unfortunately mmal can't link vc.ril.camera and vc.ril.resize: mmal: mmal_vc_port_info_set: failed to set port info (2:0): ENOSYS mmal: mmal_vc_port_set_format: mmal_vc_port_info_set failed 0x147630 (ENOSYS) mmal: mmal_connecti...
by byterg
Wed Jan 28, 2015 5:48 am
Forum: Beginners
Topic: Work with SPI in kernel-space
Replies: 2
Views: 603

Work with SPI in kernel-space

Hello!
I have to work with device via SPI.
I success make this from user-space.
But how can I make this in kernel-space, unfortunately BCM2708 specific function from drivers/spi/spi-bcm2708.c not exported?
Thank you and excuse my bad english.
by byterg
Thu Jan 15, 2015 1:54 pm
Forum: Beginners
Topic: Full width ROI incorrect
Replies: 0
Views: 257

Full width ROI incorrect

Hello! I use SDK revision 6f530690af1b6bfc0eab463a804be7bf24fb8d4a Full resolution image: ./raspistill -w 2592 -h 1940 -e jpg -o full.jpg http://postimg.org/image/80c93dgkz/ ROI 640x480: ./raspistill -w 640 -h 480 -e jpg -o crop_640_480.jpg -roi 0.75,0.0,0.25,0.25 http://postimg.org/image/vl9u0qamh/...
by byterg
Tue Jan 13, 2015 7:02 am
Forum: Beginners
Topic: Camera not work with I2C
Replies: 1
Views: 721

Camera not work with I2C

Hello! Software version: Linux - revision f03cd5e1012d3fe8314a944879308cf0f3d9e29b, 3.12.26+ SDK - revision 6f530690af1b6bfc0eab463a804be7bf24fb8d4a tools - revision 472c649d4d631c6f6f043a814a08ce7013afe4e5 custom system based on Busybox v1.22.1 I have strange problem - camera not work when I2C enab...

Go to advanced search