Changes

Jump to navigation Jump to search

X630-Software

2,780 bytes removed, 12 March
no edit summary
{{GD Template Impl}}
This wiki describes how to use x630 on the Raspberry Pi OS. <span style="color:red;">Note: The software can currently be used directly on Raspberry Pi 4B, it 3B+/3B/Zero series. Software support for Raspberry Pi 5 software is just a demonot available which need to be tested.
==For The Raspberry Pi OS==X630 Foundation has two reset mode: '''Hardware reset''' and '''Software reset''' modes, we strongly recommend you use software reset mode if you use it on raspberry pi hardware or raspberry pi os, software reset uses GPIO 509 to reset operation through GPIO, which can prevent you from restarting the Raspberry Pi repeatedly, which is very convenient. And on other hardware platforms, X630 actually reserves pins to facilitate you to use custom GPIO pin to implement software reset operations or use directly hardware reset mode.updated several versions recently;
First, please choose your reset mode based The use guide of X630 depends on your hardware and the official Raspberry Pi OS (default is software reset mode), version you can skip this step if are using. Different versions have different usage methods. If you use software resethave some questions, it should be noted that disconnect power supply to please contact us and attach the Raspberry Pi before changing dip switch positionsos version you are using.(<span style="color:red;">Email: support@geekworm.com</span>)
[[File:Dip-switches.jpg|none|dip switch]]{| class="wikitable"! SELECTION !! SWITCH SETTINGS !! |-| Hardware reset || HW = 1 || SW = 0|-| Software reset || HW = 0 || SW = 1|} Explain:* Hardware reset: After starting RASPISTILL or RASPIVID <span style="color:red;">once</span> then you will need to reboot For Raspberry Pi to restart it again* Software reset: Starting RASPISTILL or RASPIVID <span styleOS=="color:red;">multiple times</span> and don't need to reboot Raspberry Pi ('''Recommend''')* Default setting is 'Software reset';* Please remove the yellow protective film before change dip switch.<hr/>'''PreparationsNOTE:'''1. Once booted, update your Raspberry Pi by running the following commands in a terminal window: sudo apt-get update sudo apt-get upgrade
2Since the X630 V1.5 version removes the software reset&hardware reset DIP switch, for the V1. Run 5 version, please ignore the following command use of software reset or directly visit to go into the Raspberry Pi configuration tool sudo raspi[[X630-Hardware-configReset]]
[[FileX630 v1.3 has two reset mode:Raspi-config-1.jpg]]'''Hardware reset''' and '''Software reset''' modes;
3. Navigate to ''''Interfacing Options'''' and hit Enter. Now select the ''''Camera'''' option, and hit the Enter key to enable it. Select “Finish” and select to '''reboot''' your Raspberry Pi.
[[File:Raspi-config-2.jpg]]
sudo reboot
4. Once rebooted, you need to make sure that the ‘/dev/video0’ device is available. Use this command to check in a terminal window:
ls /dev/video0
[[File:Raspi-config-3.jpg]]
If You can use hardware reset mode if you see anything other than ‘file not found‘use it on raspberry pi hardware or raspberry pi os, then it’s availablesoftware reset uses GPIO 509 to reset operation through GPIO, which can prevent you from restarting the Raspberry Pi repeatedly, which is very convenient.
<hr/>
'''For Software Reset''' - Starting RASPISTILL or RASPIVID multiple times and no need to reboot Raspberry Pi
You can skip The user guide of X630 is similar to step 12 if you use [[HDMI TO CSI-2|C779]] when X630 is in hardware reset mode;, but X630 supports audio when used with X630-A2, and [[HDMI TO CSI-2|C779]] does not support audio
5. Execute CAM GPIO initialization at startup, need to add scripts in /etc/rc.local file.
Run the following two commends;
sudo sed -i '$ i echo "509" > /sys/class/gpio/export' /etc/rc.local
sudo sed -i '$ i echo "out" > /sys/class/gpio/gpio509/direction' /etc/rc.local
sudo sed -i '$ i echo "1" > /sys/class/gpio/gpio509/value' /etc/rc.local
Or
sudo nano /etc/rc.local
Scroll down, and just before the 'exit 0' line, enter the following comment:
echo "509" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio509/direction
echo "1" > /sys/class/gpio/gpio509/value
[[File:Raspi-config-4-1.jpg]]
Save and exit with ctrl + xFirst, followed by y when prompted to saveplease confirm & select X630 work mode according the picture; After November 2021, and then enter.the default factory mode is hardware mode;
6. Create a script to reset the X630 module cd ~ sudo nano reset.shEnter the following: echo "0" > /sys/class/gpio/gpio509/value sleep 1 echo "1" > /sys/class/gpio/gpio509/valueSave and exit with ctrl + xWe found that some users prefer hardware mode, followed by y when prompted so our factory default settings have been changed to save, and then enter.hardware mode
NOTE[[File:Don't forget the folder where the resetDip-switches.sh file is locatedjpg|none|dip switch]]
7. Reboot your <span style="color:red;">Disconnect power to the Raspberry Pi sudo rebootbefore changing dip switch positions!!!</span>
8.To take first '''photo''' with the X630 Module{| class="wikitable"! SELECTION !! SWITCH SETTINGS !! |-| Hardware reset(Default) || HW = 1 || SW = 0|-| Software reset || HW = 0 || SW = 1|}
Return the fold of reset.sh file after restart cd ~ sudo bash reset.sh raspistill [[File:X630-Reset-o image1.jpgHere, "image101.jpg" is the name of your image that will be saved to your Raspberry Pi|none|800px|X630 dip switch setting]]
9. To take second '''photo''' with the X630 ModuleExplain: sudo bash * Hardware reset.sh raspistill -o image2.jpgHere, : After starting RASPISTILL or RASPIVID <span style="image2.jpgcolor:red;" is the name of your image that >once</span> then you will be saved need to your reboot Raspberry Pi 10. Record first '''video''' with to restart it again (Please use when operating system cannot control the X630 modulevia GPIO509) sudo bash * Software reset.sh raspivid -o video1.h264 -t 10000Here, : Starting RASPISTILL or RASPIVID <span style="video1color:red;" is the name of your video >multiple times</span> and "10000" is the number of milliseconds. 11. Record second don'''video''' with the X630 module sudo bash reset.sh raspivid -o video2.h264 -t 10000Here, "video2" is the name of your video and "10000" is the number of millisecondsneed to reboot Raspberry Pi'''Note''': "sudo bash reset.sh" * Default setting is always required to execute before starting RASPISTILL or RASPIVID. the CAM LED will go off for 1 second then turn on.<hr> '''For Hardware Resetreset''' - Starting RASPISTILL or RASPIVID once then reboot your Raspberry Pi.* Please use remove the following guide if your yellow protective film before change dip switch is changed to 'Hardware reset' position.<hr/>
12. To take a photo with the X630 Module
raspistill -o image.jpg
Here, "image.jpg" is the name of your image that will be saved to your Raspberry Pi
13. If you need '''For Hardware Reset''' refer to take second image, then you will need to reboot the Raspberry Pi and execute the "raspistill" again. sudo reboot[[X630-Hardware-Reset]]
14. To record a video with the '''For Software Reset''' refer to [[X630 module raspivid -o video.h264 Software-t 10000Here, "video" is the name of your video and "10000" is the number of milliseconds.Reset]]
15. If you need to record second video, then you will need to reboot the Raspberry Pi and execute the "raspivid" again.
sudo reboot
==How Return to check kernel version==Please run the following command to get the linux kernel version uname -a[[File:Raspi-kernel-version.jpgX630]]
<!--Add review function! -->

Navigation menu