Using Raspberry Pi 3 to allow Pepper Robot to connect to WPA2 Enterprise Network…

Raspberry Pi
This procedure allows you to create a router/AP using a Pi3 that connects to a WPA2 Enterprise network over it's external wireless interface (wlan1) and allows clients to connect through it's wired ethernet (eth0) and internal wireless ethernet (wlan0) to access the internet through the NAT interface. So here are the requirements: Pepper Robot has wireless and wired connections. Wireless connections can be made to AP's using WPA2/PSK (Pre-shared Keys) networks. Wired connections are standard and can be configured with DHCP (plugin to the bot's head). In our scenario we can not use the built in wireless functionality since our campus wide wireless network uses WPA2/Enterprise system (ie you need to supply login credentials, not a pre-shared key). So we opt to use the wired connection The developer needs to…
Read More

Latest Raspbian (2017-07-05-raspbian-jessie) dd: /dev/rdiskX: Invalid argument on OSX and other potential issues with “apt-get” post install

OSX, Raspberry Pi, Tip
So this morning I was trying to install the latest rasbian image onto an uSD card and was getting a strange error when I issued dd. I was using rdisk (BSD raw disk) device to speed up the image writing process (note: I don't think you get this error if you just use /dev/diskX). The dd process would finish and this error would come up:   dd: /dev/rdisk6: Invalid argument 4445+1 records in 4445+0 records out 4660920320 bytes transferred in 133.242184 secs (34980816 bytes/sec) At first I ignored the error and proceeded to boot the Pi, but as soon as I did apt-get update; apt-get upgrade, I would get dpkg errors like: dpkg: unrecoverable fatal error, aborting: files list file for package 'qdbus' is missing final newline E: Sub-process /usr/bin/dpkg…
Read More

Getting the most out of plymouth or how to make raspbian jessie boot with a full splash screen

Raspberry Pi
Assuming you want the fancy splash screen (ie you want to hide the ugly boot messages), add "quiet splash logo.nologo plymouth.ignore-serial-consoles" to the end of the single line in /boot/cmdline.txt file. This enables the splash screen. Now you need to choose one (I like spinfinity), so issue the following command to switch from default (bland grey screen): sudo plymouth-set-default-theme spinfinity There are other themes as well (some don't seem to work properly for me. To find out what's installed and use it in the above command issue: sudo plymouth-set-default-theme -l You might notice that there is a black border on your splash screen. Overscan problem, so disable it by adding (uncommenting) this line to /boot/cmdline.txt disable_overscan=1 To disable console from blanking out add "consoleblank=0" to the end of the single line…
Read More

Designing a six channel 24/7 streaming video player for digital signage

Raspberry Pi
So here are the design goals: Provide atleast 6 channels of streaming video. Allow "hot" switching between streams using a remote control. Allow network to fail and be able to have the stream automatically recover. Allow the Pi to autostart on a particular stream when powered. Be flexible enough to potentially provide more than 6 channels of streaming video. System will be hosted on a read-only Micro-SD card to lessen the chance of long term SD corruption. Here are the assumptions: System is based on Raspberry Pi 2 B+ as a minimum (old Pi 1 and Pi zero have not been tested, but should work). System uses HDMI audio and or analogue audio out from Pi's 3.5mm jack. System is limited to 720p and 1080p output. System has been tested…
Read More

Media RSS (MRSS) generator script

Uncategorized
I came across a DOS batch file that generates the necessary xml manifest for Video files on BrightSign's Developer Resources and Utilities page. Since I'm serving my video content to our BrightSign infrastructure from a LAMP stack I ended up rewriting their bat file as a shell script. This enables me to host the shell script in a local directory (/usr/local/bin) and run it from cron every 5 minutes against a folder full of mp4 files and have the MRSS manifest written to this folder as well. Then all that needs to be done is to point the BrightSign MRSS widget at the URL for the xml file (http://server-FQDN.com/VideoMRSS.xml). The crontab entry looks like: */5 * * * * /usr/local/bin/VideoMRSS.sh /var/vhosts/jrnsignage/ >/var/vhosts/jrnsignage/VideoMRSS.xml The script itself is pretty simple. I've tried…
Read More

sweet captcha site has been hacked – rhpop javascript

Uncategorized
Fresh after recovery, I figured I write a small piece before I go home. If you're seeing ad pop-ups or pop-unders from sites that load up something like rhpop-xxxxxx.js then you might have the sweetcaptcha plugin installed on your wordpress site. Let's hope you're the one who installed it -- not the hacker :-), you might want to de-activate it and remove it from your system. Their site has been compromised and the wordpress plugin has also been pulled off the list. More general info here: https://blog.sucuri.net/2015/06/sweetcaptcha-service-used-to-distribute-adware.html Happy hunting.....
Read More

IRadio = Raspberry Pi + Adafruit PiTFT (with buttons) + MPD + NCMPCPP + Bluetooth BeatsPill Speaker + Custom Frame Buffer Pygame code

Apache, audio, Bluetooth, Codec, Electronics, flac, LCD, Linux, Music, Opensource, Raspberry Pi, Tutorial
So over christmas holidays I spent about 5 days to perfect my raspberry pi based internet radio player. You’ll need the following hardware: Raspberry Pi model B USB Wifi dongle (something that works with Raspbian would be nice). I got this one (http://www.adafruit.com/products/1030) from Adafruit. SD card (I’m using a 16GB card, but I think 8GB should be good to start with) Bluetooth 4.0 dongle. I’m using this one from ASUS (http://www.asus.com/ca-en/Networking/USBBT400/) that seems to work fine in Linux/Raspbian PiTFT resistive touch screen assembled from Adafruit (http://www.adafruit.com/products/1601) Pack of 20 tactile buttons from Adafruit (http://www.adafruit.com/products/1489) for the above screen (You need to solder these in…..very simple) Appropriate power USB power supply. Again I’m using the one from Adafruit (http://www.adafruit.com/products/501) Standard A to micro-B USB cable (http://www.adafruit.com/products/592) (optional) PiTFT Enclosure from…
Read More

JWPlayer 6.x plugin for WordPress….RTMP and HLS stream short code definition.

Uncategorized
Not sure why this is such a mystery, but it took the better part of the day to troubleshoot. The main issue with forum posts is that people have the right idea/intention, but the forum software mistreats the actual command line/short code. Spacing really really (did I say really) matters. I'm assuming that you're using the default player definition that comes with the plugin. If you need to change it then make the appropriate change to this code as well. The code to get both RTMP and HLS working depends on defining both of those sources. In my case the source is my Wowza Server and I have two URI's: 1) For HLS I use http://wowza.server.ip.address:1935/live/many/playlist.m3u8 2) For RTMP I use rtmp://wowza.server.ip.address:1935/live/many Obviously as you can see my Wowza application is "live"…
Read More

NAB2014 Report

audio, Codec, conversion, DCinema, HDTV, Media, NAB, NERD, Ryerson University, Technology, Video
DEKTEC: DekTec introduced the DTA-2180 low profile PCIe H.264 encoder. The DTA-2180 is a low latency — 150 to 600 ms -- H.264 hardware encoder based on the Magnum chipset. It supports MPEG-2 and H.264 and up to 16 channels of audio. Audio can be encoded as AC-3, AAC or MPEG-1 Layer 2. The DTA-2180 offers a 10 bit 4:2:2 option for contribution encoding.The DTA-2180 has a 3G –SDI and HDMI input and an ASI output. The compressed stream output — TS encapsulated H.264 or mpeg-2 — is also available on the PCIe for real time streaming, processing and recording. NIMBUS: The WiMi6400T and WiMi6400R provides high quality Full HD encoding/decoding function with low latency of 40ms for encoding and decoding, each. It supports wide range of encoding rate from 1Mbps ~…
Read More