Open main menu

Changes

C779

3,934 bytes removed, 12 April
==Overview==
* This is a raspberry pi HDMI to CSI-2 Module with Toshiba TC358743XBG chip, HDMI input supports up to 1080p25fps.
 * According to the customer feedback, this module does not support '''OctoPi'''. == Packing List =* The model of module is C779.<ref name="note1">C779 only supports video, not audio</ref>* 1 x Raspberry Pi HDMI This product is support also raspberry pi Bullseye OS, since raspistill, raspivid series tools are removed by BULLSEYS, you need to use gstreamer tool to CSI-2 Module* 1 x FFC Cable(14cm/5replace raspistill, raspivid etc.51inch length)
==Features==
* Model: C779
* Input signal: HDMI;
* Output signal: CSI;
* Usage: Same as standard Raspberry Pi camera
* Chip: Toshiba TC358743XBG
* Compatible with: Raspberry Pi 5B/4B/3B+/3B/2B/B+/3A+/Pi Zero/Zero W ==User Manual==<!-- 可以参考bli的说明https://wiki.blicube.com/blikvm/zh/hdmi-csi-i2s/#demo -->
* '''Due to the absence of hardware encoding on the Pi 5B, the software usage instructions for Pi platforms are currently divided into two sections: Pi 5B configuration and configuration for other Pi platforms.'''* <span style="color:red">'''In platforms such as Zero, Zero 2, Pi 3B, Pi 4B, etc., there is a reference for testing HDMI to CSI module demo: '''</span> [[C779-Software]] or [https://www.raspberrypi.org/forums/viewtopic.php?f=Document38&t=281972 Raspberry pi official forum post]* <span style="color:red">'''Pi 5B platforms HDMI to CSI module test demo reference: '''</span> [[CSI Manual on Pi 5]]
* Chip Information-EN: [[File:TC358743XBG_datasheet_en_20171026.pdf|none|HDMI TO CSI-2 Chip-EN]]
* Chip Information-CN: [[File:TC358743XBG_datasheet_zh_cn_20151218.pdf|none|HDMI TO CSI-2 Chip-CN]]
==How * Question about 1080p 60Hz HDMI to check whether this module is driven correctly?== '''step1'''. Check this module if be driven? After connecting all the cables, power on the Raspberry Pi, the C779 indicator light is normally green, and after opening the Raspberry Pi terminal, enter the following command: ls /devthen check if video0 appears. If it appears correctly, it means that the module has been successfully driven and is working normally. Please try the following oreration if you can't find 'video0'  '''step2'''. update & upgrade the raspberry pi system (It may be necessary to update the software source according to your country, and this will take a long time) sudo aptCSI-get update sudo apt-get upgrade '''step3'''. Open camera module 2 via raspi-config command; sudo raspi-config[[File:Raspi-camera1.png|none]] [[File:Raspi-camera2.png|none]] Enable camera & reboot the raspberry pi. '''step4''': goto step1 '''step5''': if you still can't find 'video0' file in the /dev path, please try the following methods: A: Confirm whether the HDMI input device has a signalTC358743, (you can test whether it is displayed normally by connecting refer to the screen) B. Confirm whether the resolution and frame rate of the HDMI input device are below the maximum input resolution and frame rate(720p50\720p60\1080i50\1080p25); C: We recommend that you download the lastest official image of Raspberry pi if you still don't solve your questions. Download URL: https://wwwforums.raspberrypi.org/downloads/raspberry-pi-os/==Driver configuration== 1、edit com/ boot / configviewtopic.txt, and add the line to the end of the file. Sudo is required. '''dtoverlayphp?t=tc358743''' If four CSI-2 channels are used to connect C780B to CM3 or CM4 computing module hardware, the following code should be added. '''dtoverlay211802&sid=tc358743,4lane=1''' 2、Use "dmesg | grep CMA" to check the amount of memory allocated to the CMA heap. '''pi@raspberrypi:~ $ dmesg | grep cma''' '''[ 0.000000] cma: Reserved 256 MiB at 0x000000001ec00000''' If the report has less than 96MB of files assigned to CMA, edit / boot / config.txt and adde6fef431928907e63fc8eb539cd75389.
'''dtoverlay=cma,cma-128'''=Notes==<references />
3、Restart raspberry pi==Video==https://youtu.If all goes well, you should get a be/ dev z6Ir254MBBw{{#ev:youtube|https:/ video0 device.Using "arecord - L" will tell you whether the sound card of tc358743 is loaded correctly/youtu.be/z6Ir254MBBw}}
== Video ==
https://youtu.be/L5qbZPrpPp0
{{#ev:youtube|https://youtu.be/L5qbZPrpPp0}}
 
Test video: https://youtu.be/yoAsw189yPI
 
== FAQ ==
Q1: What to do if the module can't work normally?
 
A1:
 
* 1. Please use monitor to test, DO NOT use VNC.(Customer Feedback: During the VNC it spend some of gpu and there is not enough for camera.Based on RPi 4 + Hawkeye Firefly Mini)
* 2. First the HDMI device should be plugged in and have signal output before the Raspberry Pi is started.
* 3. Please check if there is a video related file in the /dev file.
* 4. Please provide us more details for us to confirm the issue.
a. First please send us your '''order number''' and tell us "Call command" "Input Device" and "Using Device".
 
b. What is the HDMI input device, resolution and frequency?
 
c. Which version of Raspberry Pi you use?
 
d. What is the specific calling command?
 
e. What is the terminal error notification?
 
Q2: Some python sample code
 
A2: The HDMI source supported by Raspberry Pi with the module is 720p/50fps,720p/60fps,1080i/50fps,1080p/24fps,1080p/25fps. Lower resolution is also working.
 
This is the python code used in my video.The Pi uses an official image with no other changes.
 
<pre>
from picamera import PiCamera
from time import
camera = PiCamera()
camera.start_preview()
sleep(1000)
camera.stop_preview()
 
</pre>
Q3:Customer Feedback 1 for your reference(https://www.amazon.com/gp/product/B0899L6ZXZ#customerReviews)
 
A3:
If you want to use your Raspberry Pi for HDMI capture, this is the only device I'm aware of that will do it. Furthermore you can do some powerful things that would normally require equipment costing many hundreds of dollars. For example, using always-on camera preview and a few lines of Python code you can easily do image flipping, rotation, and rudimentary scaling. Note that you can't adjust color or exposure, and audio is not passed through.
 
I've tried this with a variety of HDMI devices; half of them work perfectly, half of them don't work at all.
 
Things that worked just fine:
* GoPro Hero2
* Generic no-name HDMI camera
* OREI HD-102 1x2 HDMI splitter with a Google Chromecast attached to it (but see below)
 
There's a downside, though. I could not get any of these to work:
 
* Canon 6D, which causes a "PiCameraMMALError: Failed to enable connection: Out of resources" error
* Blackmagic ATEM Mini, which produces a scrambled picture
* Google Chromecast, because I don't think this device supports HDCP; but it works fine if you strip off the HDCP.
 
This HDMI input module does what I care about (capturing my generic HDMI camera), but it failed at some things that thankfully I didn't need it to do. Your use case may vary so don't be surprised if some HDMI devices don't work with it.
 
Q4: Will this work with i2s hats such as hifiberry amp2?
 
A4: Since this item don't use any GPIO, so we think that it can work with I2S hats.