Duinotech WXC4394 Handmatig - Pagina 4
Blader online of download pdf Handmatig voor {categorie_naam} Duinotech WXC4394. Duinotech WXC4394 4 pagina's. Lora gateway
Webcam:
The following commands will install packages to allow a webcam to be used to take (jpg) photos.
Run:
opkg update
opkg install kmod-video-uvc fswebcam
We tested this following on our
QC3203
Webcam, and also some cheap generic webcams, but your
mileage may vary, and extra drivers may be needed.
Use the following command to capture an image to the /tmp folder:
fswebcam -S 10 /tmp/image.jpg
Image Manipulation:
Run the following:
opkg update
opkg install ffmpeg
After capturing a .jpg as above, run this command:
ffmpeg -i /tmp/image.jpg -vf scale=640:-1 /tmp/image.bmp
This will scale the file to 640 pixels wide and convert to bitmap format. This may be handy of you are
using the Arduino to display or manipulate the image, as it is difficult to read .jpg files due to the
compression, but .bmp files are uncompressed.
Audio:
Using our
XC4953 USB
Soundcard, we were able to play MP3's and stream audio from the internet:
opkg update
opkg install kmod-usb-audio kmod-sound-core madplay
To play sounds:
madplay test.mp3
To stream from an internet MP3 stream:
wget -O - http://live-radio01.mediahubaustralia.com/PBW/mp3/ | madplay –
USB Storage:
By default, drivers should be installed for USB flash drives, and should work as long as they have a
FAT or FAT32 partition. Flash drives appear at:
/mnt/sda1
For example, enter the following to work in the root directory of the flash drive:
cd /mnt/sda1
Multiple drives may have names like /mnt/sdb1.