Go to advanced search

by 6by9
Sat May 19, 2018 4:57 pm
Forum: Camera board
Topic: Official V4L2 driver
Replies: 518
Views: 358256

Re: Official V4L2 driver

Is there any way to set the quantisation parameter with this? (-qp on raspivid) Not currently, but it looks like V4L2_CID_MPEG_VIDEO_H264_I_FRAME_QP, V4L2_CID_MPEG_VIDEO_H264_P_FRAME_QP, V4L2_CID_MPEG_VIDEO_H264_MIN_QP, and V4L2_CID_MPEG_VIDEO_H264_MAX_QP (see https://www.linuxtv.org/downloads/v4l-...
by 6by9
Sat May 19, 2018 4:52 pm
Forum: Camera board
Topic: Raspistill vs Raspivid quality issue
Replies: 2
Views: 59

Re: Raspistill vs Raspivid quality issue

You don't say which version of the camera module you are using. Fortunately the JPEG has retained the EXIF information so I can deduce that it is the V1 Omnivision OV5647, probably a clone seeing as that module hasn't been sold by RPT since 2015. You don't say exactly what aspect of the image qualit...
by 6by9
Fri May 18, 2018 4:08 pm
Forum: Camera board
Topic: PPM/TGA support in MMAL image encoder
Replies: 5
Views: 171

Re: PPM/TGA support in MMAL image encoder

OK, so this has started debate on whether we actually add support so you can throw almost anything and everything at image_decode / encode. There's no licencing issue, but it's unknown if it actually works.
I'll have a play to see what happens.
by 6by9
Fri May 18, 2018 3:03 pm
Forum: General discussion
Topic: Labview with Raspberry pi 3 problem
Replies: 11
Views: 396

Re: Labview with Raspberry pi 3 problem

Prove your LED works correctly. LabView for whatever reason have chosen to renumber the GPIOs to their own liking, which means it doesn't match anything else. For header pin 7, it is the SoC GPIO 4, so sudo apt install raspi-gpio raspi-gpio set 4 op dh raspi-gpio set 4 op dl should install the raspi...
by 6by9
Fri May 18, 2018 11:58 am
Forum: Camera board
Topic: PPM/TGA support in MMAL image encoder
Replies: 5
Views: 171

Re: PPM/TGA support in MMAL image encoder

Thanks for the heads up on that. Yes, currently using the MMAL_PARAMETER_SUPPORTED_ENCODINGS call to check supported encoding types. Are you planning any changes to the MMAL_PARAMETER_ENCODING_T struct at all to signify whether support is built in? I can look into it, but hadn't been planing on doi...
by 6by9
Fri May 18, 2018 10:17 am
Forum: Compute Module
Topic: CM3 - Netboot using ENC28j60 ethernet module
Replies: 1
Views: 67

Re: CM3 - Netboot using ENC28j60 ethernet module

The bootrom only knows how to netboot via a SMSC951x or LAN78xx based device. You can put the boot partition on the SDcard/EMMC with a Linux kernel that includes ENC28j60 driver as a built-in driver (not a module), and that would enable you to NFS mount everything else. It's going to be slow over 10...
by 6by9
Fri May 18, 2018 9:31 am
Forum: Camera board
Topic: PPM/TGA support in MMAL image encoder
Replies: 5
Views: 171

Re: PPM/TGA support in MMAL image encoder

Regression tests for MMALSharp have picked up an issue with the image encoder component throwing ENOSPC errors for PPM/TGA encodings. I was just wondering if anyone could confirm these encoding types work ok in MMAL natively so I know if it's an issue on my end? Buffer num and buffer size for outpu...
by 6by9
Thu May 17, 2018 4:11 pm
Forum: General discussion
Topic: (gstreamer) two camera streaming to one single display
Replies: 5
Views: 218

Re: (gstreamer) two camera streaming to one single display

Sending the data from two devices to the same port on the same remote node is going to cause problems. The receiving device has no easy way to separate out the stream. How would you cope if two people were speaking to you and you got three words from person A, then three words from person B, three f...
by 6by9
Thu May 17, 2018 10:40 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 25163

Re: Enable both I2C Busses

There is a way to turn on I2C channel 0 that makes it automatically initialized during boot up. Add the following line to /boot/config.txt dtparam=i2c_vc=on Save the change and reboot. After the reboot, there should be both a /dev/i2c-0 and /dev/i2c-1 . For more details see the forum discussion: ht...
by 6by9
Wed May 16, 2018 3:21 pm
Forum: Camera board
Topic: Raspiraw issue: permanent buffer delay of 1 useless frame
Replies: 9
Views: 433

Re: Raspiraw issue: permanent buffer delay of 1 useless frame

Thanks. vcos_log_error is fine by me, although probably under a switch to disable it to avoid spewing out too much junk. I've copy/pasted some parsing code from the firmware into the callback to do a simple decode of the first few tags, but haven't got time to tidy it up at the moment. There should...
by 6by9
Wed May 16, 2018 3:20 pm
Forum: Camera board
Topic: Hardware camera sync pulses
Replies: 16
Views: 1496

Re: Hardware camera sync pulses

OK, couldn't get the flash driver to work in capture_continuous, but setting disable_camera_led=3 does generate the pulses I need. And driving the IR illuminator directly with these pulses works like a dream. I'm using exposure_mode=off and a fixed shutter speed of just 1-2ms and at 6 frames per se...
by 6by9
Wed May 16, 2018 1:40 pm
Forum: Camera board
Topic: Raspiraw issue: permanent buffer delay of 1 useless frame
Replies: 9
Views: 433

Re: Raspiraw issue: permanent buffer delay of 1 useless frame

I don't suppose you fancy writing a parser for the embedded data and creating a pull requrest? The format is common for almost all Bayer CSI2 sensors, although it does vary slightly between raw 8, 10, and 12 modes. It's documented in the IMX219 datasheet (Google for it). I've already got a simple p...
by 6by9
Wed May 16, 2018 1:36 pm
Forum: Compute Module
Topic: DSI Interface to Non Raspberry Pi Display
Replies: 21
Views: 9944

Re: DSI Interface to Non Raspberry Pi Display

There is no problem in using DSI! Drivers are there for DRM/KMS ie the standard Linux display APIs - https://github.com/raspberrypi/linux/blob/rpi-4.14.y/drivers/gpu/drm/vc4/vc4_dsi.c. Yes DRM is different from the DispmanX and MMAL APIs that many Pi apps will use, but it's the way we're trying to ...
by 6by9
Wed May 16, 2018 1:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C wrong returned value by i2cget
Replies: 1
Views: 54

Re: I2C wrong returned value by i2cget

Where has you value of 0x05 come from in your "sudo i2cget -y 1 0x20 0x05" command? i2cget and i2cset are designed around SMBus devices and so send a register address value before sending or reading the data value. The PCF8574 is NOT an SMBus device and only has one register that it reads or writes....
by 6by9
Wed May 16, 2018 12:40 pm
Forum: Camera board
Topic: Raspiraw issue: permanent buffer delay of 1 useless frame
Replies: 9
Views: 433

Re: Raspiraw issue: permanent buffer delay of 1 useless frame

All the ones with flags 0084 will be immediately returned as they are the embedded metadata (not used on IMX219 IIRC), but they are there. FYI, it seems the embedded metadata on the IMX219 contains a bunch of registers with the settings for that frame. I've been using it as a simple bit of debuggin...
by 6by9
Wed May 16, 2018 9:51 am
Forum: Camera board
Topic: Hardware camera sync pulses
Replies: 16
Views: 1496

Re: Hardware camera sync pulses

Thanks for responding, yes I should have said capture_continuous using PiCamera in Python. To be precise, I want to drive an IR illuminator with the pulse signal, if not directly then via some custom pulse shaping network. Any advise would be much appreciated. I'll be using the camera in fully manu...
by 6by9
Wed May 16, 2018 9:48 am
Forum: Compute Module
Topic: DSI Interface to Non Raspberry Pi Display
Replies: 21
Views: 9944

Re: DSI Interface to Non Raspberry Pi Display

I just don't get this. Unless I'm missing something, you can use any 2-lane MIPI DSI panel you want with an stm32l4+ microcontroller, or stm32f7x9, and probably some others too.They have an lcd tft display controller which provides acceleration too (chrom-art). What's Broadcom's problem? Ask Broadc...
by 6by9
Tue May 15, 2018 2:53 pm
Forum: Camera board
Topic: Hardware camera sync pulses
Replies: 16
Views: 1496

Re: Hardware camera sync pulses

I'm trying to use the LED flash sync feature in continuous grab mode on a Pi3B with a v2 camera. I followed the instructions from above and was able to get the flash pulse(s) for single grabs but in continuous grab mode (with exposure_mode off) I get no pulses. Should this possible? Thanks for your...
by 6by9
Tue May 15, 2018 1:26 pm
Forum: General discussion
Topic: RPi 3 crashed
Replies: 10
Views: 621

Re: RPi 3 crashed

Heater wrote:
Tue May 15, 2018 12:54 pm
Except if that chip is getting hot as reported then it may be shorting the power rails. So nothing will run.
I was working on the basis of the previous line of Gavinmc42's post
you might be able to smash it all off to remove short.
by 6by9
Tue May 15, 2018 1:25 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Does anyone know of an I2C device that just deals with the interfacing?
Replies: 16
Views: 485

Re: Does anyone know of an I2C device that just deals with the interfacing?

You don't define what "the right inputs and outputs" are. For digital I/O, the MCP23017 will give you 16 I/O channels per chip. For analogue inputs the ADS1015 gives you 4 channels at 12bit resolution. Do you really need PWM control on the motors? We don't need a bus expander or an A/D chip , we ne...
by 6by9
Tue May 15, 2018 1:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RTC module and I2C-0 problem
Replies: 10
Views: 253

Re: RTC module and I2C-0 problem

Any idea on this ? It seems like raspivid makes I2C devices off or something.... This is why the device tree alias is called i2c_vc - it's nominally reserved for VideoCore (the GPU), and is used by VC to control the camera and display. If you wish to use either of those peripherals then it is off l...
by 6by9
Tue May 15, 2018 12:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Does anyone know of an I2C device that just deals with the interfacing?
Replies: 16
Views: 485

Re: Does anyone know of an I2C device that just deals with the interfacing?

Bear in mind that the total length of an I2C bus is limited (something like 500mm, IIRC). There's a nominal max total bus capacitance of 400pF which supposedly limits to a few meters, but the other option is to drop the link rate. The default on the Pi is 100kHz, but there's nothing stopping you dr...
by 6by9
Tue May 15, 2018 12:38 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Does anyone know of an I2C device that just deals with the interfacing?
Replies: 16
Views: 485

Re: Does anyone know of an I2C device that just deals with the interfacing?

You don't define what "the right inputs and outputs" are.

For digital I/O, the MCP23017 will give you 16 I/O channels per chip.
For analogue inputs the ADS1015 gives you 4 channels at 12bit resolution.
Do you really need PWM control on the motors?
by 6by9
Tue May 15, 2018 12:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using of four lane LVDS DSI Interface on CM3
Replies: 5
Views: 198

Re: Using of four lane LVDS DSI Interface on CM3

There is no support for DSI through the firmware other than the standard 7" panel. There is some support for DSI through the upstream DRM/KMS driver, and various people have been starting to get that working with other random panels. Eric has written up some notes at https://github.com/anholt/linux/...
by 6by9
Tue May 15, 2018 12:23 pm
Forum: General discussion
Topic: RPi 3 crashed
Replies: 10
Views: 621

Re: RPi 3 crashed

Not sure then what the OS will do if it cannot find the RF combo chip. Add "dtoverlay=pi3-disable-bt" and "dtoverlay=pi3-disable-wifi" to /boot/config.txt and the OS won't go looking for it and will be quite happy. Generally it will probe for the device during initialisation and abort if it fails t...

Go to advanced search