Difference between revisions of "X635-Software"

From Geekworm Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
<big>X635 Software Guide base on  Raspberry Pi OS bullseye</big>
 
<big>X635 Software Guide base on  Raspberry Pi OS bullseye</big>
  
* To use the HDMI to CSI-2 bridge, you will need to enable '''[[How to enable camera support in Raspberry Pi OS|Enable legacy camera support]]'''.  
+
1. To use the HDMI to CSI-2 bridge, you will need to enable '''[[How to enable camera support in Raspberry Pi OS|Enable legacy camera support]]'''.  
  
* Again open a terminal window and type the following command:
+
2. Again open a terminal window and type the following command:
 
  sudo wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/dt-blob.bin
 
  sudo wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/dt-blob.bin
 
  #Download the required file /boot/dt-blob.bin
 
  #Download the required file /boot/dt-blob.bin
  
* Reboot for the dt-blob.bin file to be read
+
3. Reboot for the dt-blob.bin file to be read
 
  sudo reboot
 
  sudo reboot
  
* Open the Terminal and run the command to check if the HDMI to CSI-2 bridge is being seen by the operating system.
+
4. Open the Terminal and run the command to check if the HDMI to CSI-2 bridge is being seen by the operating system.
  
 
[[File:X635-software-15.png|700px]]
 
[[File:X635-software-15.png|700px]]
Line 17: Line 17:
 
Note: You should get back <big>supported=1, detected=1</big>, indicating that the CSI-2 bridge is detected and supported by the operating system. If you get detected=0, then the CSI-2 bridge is not being seen by the operating system.
 
Note: You should get back <big>supported=1, detected=1</big>, indicating that the CSI-2 bridge is detected and supported by the operating system. If you get detected=0, then the CSI-2 bridge is not being seen by the operating system.
  
* Connect the HDMI in device to x635 carrier board.
+
5. Connect the HDMI in device to x635 carrier board.
 
connection sample diagram
 
connection sample diagram
  
 
<big>IMPORTANT! The HDMI to CSI-2 bridge only accepts HDMI input: 1080p30, 1080p25, 720p30, 720p25</big>
 
<big>IMPORTANT! The HDMI to CSI-2 bridge only accepts HDMI input: 1080p30, 1080p25, 720p30, 720p25</big>
  
* Test x635 shield via command line
+
6. Test x635 shield via command line
1. Record a sample picture: open a terminal window and run the following command to take a still picture and save it to the Desktop:
+
6.1). Record a sample picture: open a terminal window and run the following command to take a still picture and save it to the Desktop:
 
  raspistill -o Desktop/image.jpg
 
  raspistill -o Desktop/image.jpg
  
 
When the command runs, you can see the camera preview open for five seconds before a still picture is taken.
 
When the command runs, you can see the camera preview open for five seconds before a still picture is taken.
  
2. Record a sample video using the following raspivid command:
+
6.2). Record a sample video using the following raspivid command:
 
  raspivid -o Desktop/video.h264
 
  raspivid -o Desktop/video.h264
 
[[File:X635-software-18.png|700px]]
 
[[File:X635-software-18.png|700px]]
  
 
In order to play the video file, double-click the video.h264 file icon on the Desktop to open it in VLC Media Player.
 
In order to play the video file, double-click the video.h264 file icon on the Desktop to open it in VLC Media Player.
 +
 +
7. Install GStreamer on CM4 - For advanced programmers and advanced applicaitons
 +
7.1) Check out this link -  https://qengineering.eu/install-gstreamer-1.18-on-raspberry-pi-4.html
 +
 +
7.2) GStreamer official website: https://gstreamer.freedesktop.org/
  
 
<!--Add review function! -->
 
<!--Add review function! -->

Revision as of 19:48, 24 April 2023

X635 Software Guide base on Raspberry Pi OS bullseye

1. To use the HDMI to CSI-2 bridge, you will need to enable Enable legacy camera support.

2. Again open a terminal window and type the following command:

sudo wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/dt-blob.bin
#Download the required file /boot/dt-blob.bin

3. Reboot for the dt-blob.bin file to be read

sudo reboot

4. Open the Terminal and run the command to check if the HDMI to CSI-2 bridge is being seen by the operating system.

X635-software-15.png

Note: You should get back supported=1, detected=1, indicating that the CSI-2 bridge is detected and supported by the operating system. If you get detected=0, then the CSI-2 bridge is not being seen by the operating system.

5. Connect the HDMI in device to x635 carrier board. connection sample diagram

IMPORTANT! The HDMI to CSI-2 bridge only accepts HDMI input: 1080p30, 1080p25, 720p30, 720p25

6. Test x635 shield via command line 6.1). Record a sample picture: open a terminal window and run the following command to take a still picture and save it to the Desktop:

raspistill -o Desktop/image.jpg

When the command runs, you can see the camera preview open for five seconds before a still picture is taken.

6.2). Record a sample video using the following raspivid command:

raspivid -o Desktop/video.h264

X635-software-18.png

In order to play the video file, double-click the video.h264 file icon on the Desktop to open it in VLC Media Player.

7. Install GStreamer on CM4 - For advanced programmers and advanced applicaitons 7.1) Check out this link - https://qengineering.eu/install-gstreamer-1.18-on-raspberry-pi-4.html

7.2) GStreamer official website: https://gstreamer.freedesktop.org/

Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.