Smart Home Gateway Reference Design