Camera; Wi-Fi - VIA Technologies VAB-950 Quick Start Manual

Hide thumbs Also See for VAB-950:
Table of Contents

Advertisement

3.8 Camera

To preview an image from the CSI camera, use the following command:
root@aiv8385-linux:~# gst-launch-1.0 v4l2src device=/dev/video5 io-mode=mmap ! video/x-
raw,format=YUY2, width=1280,height=720, framerate=30/1 ! mtkmdp width=1280 height=720 !
mtkwaylandsink sync=false
To capture an image from the CSI camera, use the following command:
root@aiv8385-linux:~# gst-launch-1.0 -v v4l2src device=/dev/video5 num-buffers=1 ! video/x-
raw, format=YUY2, width=1280,height=720, framerate=30/1 ! jpegenc ! filesink location=/data/
sda1/test.jpg
To record a video file from the CSI camera, use the following command:
root@aiv8385-linux:~# gst-launch-1.0 -v v4l2src device="/dev/video5" ! video/x-raw,format=\
(string\)YUY2,width=1280,height=720 , framerate=30/1 ! mtkmdp width=1280 height=720 ! video/
x-raw,format=I420 ! v4l2h264enc bitrate= 9000000 gop=1 ! avimux ! filesink location=/data/
test.avi
To playback a record video file from the CSI camera, use the following command:
root@aiv8385-linux:~# gst-launch-1.0 -q playbin uri=file:/data/test.avi flags=0x42 video-
sink="mtkmdp width=640 height=480 ! mtkwaylandsink" audio-sink="fakesink"

3.9 Wi-Fi

To check the current Wi-Fi AP "ssid" and "psk", use the follwing command:
root@aiv8385-linux:~# cat /data/wifi/wpa_supplicant.conf
ctrl_interface=/tmp/wpa_supplicant
update_config=1
network={
ssid="via_test"
psk="12345678"
key_mgmt=WPA-PSK
priority=100
}
p2p_no_group_iface=1
config_methods=display push_button keypad
driver_param=use_p2p_group_interface=1
wowlan_triggers=disconnect
wps_cred_processing=2
p2p_disabled=1
root@aiv8385-linux:~#
To change the Wi-Fi AP "ssid" and "psk", use the following command:
root@aiv8385-linux:~# vi /data/wifi/wpa_supplicant.conf
The output will be displayed as follows. Update the "ssid" and "psk" values to the desired values and save.
ctrl_interface=/tmp/wpa_supplicant
update_config=1
network={
ssid="via_test"
psk="12345678"
key_mgmt=WPA-PSK
priority=100
}
p2p_no_group_iface=1
config_methods=display push_button keypad
driver_param=use_p2p_group_interface=1
wowlan_triggers=disconnect
VIA VAB-950 Yocto 3.1 EVK Quick Start Guide
12

Advertisement

Table of Contents
loading

Table of Contents