# BPI-G1 smart home gateway project

![](https://3328098389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtR1ORXGh8cjr34f%2F-M2HWvRKw6XOIl6BxR3U%2F-M2HXKlSqVvi0Bdoq9Zn%2FBPI%20smart%20home.jpg?generation=1584080197301753\&alt=media) we try to use BPI-G1 as a smart home gateway ,let you to control all zigbee slave unit.

now ,all project source code have public ,you can free download.

file name: G1\_OpenSource english.rar

all projcet source code Download link:

[https://drive.google.com/file/d/0B4PAo2nW2KfnWWJNd3pLWFVubFU/view?usp=sharing](https://drive.google.com/file/d/0B4PAo2nW2KfnWWJNd3pLWFVubFU/view?usp=sharing)

code catalog:

![](https://3328098389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtR1ORXGh8cjr34f%2F-M2HWvRKw6XOIl6BxR3U%2F-M2HXKlUlWel6N4maVO6%2FG1%20code.png?generation=1584080197243096\&alt=media)

readme:

* MasterController :     STM32F103 sorce code, please uee IAR ARM 7.3 open project&#x20;
* MasterControllerBLE:  CC2540 source code,please use IAR 8051 8.10 open project
* MasterControllerRF:   CC2530 source code,please use IAR 8051 8.10 open project (include Zigbee  slave unit code：light，socket，electronic switch，BRAHMA,WR-RFIR product control code )
* MasterControllerWIFI :  CC3200 source code  please uee IAR ARM 7.3 open project

BPI-G1 run as below:

![](https://3328098389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtR1ORXGh8cjr34f%2F-M2HWvRKw6XOIl6BxR3U%2F-M2HXKlW3nhhHG1rRlSj%2Fquick%20demo.png?generation=1584080197171527\&alt=media)

all above is base on BPI-G1, it can working fine . make BPI-G1 as a smarthome geteway ,support WIFI，BT，zigbee all function. and work together .

smartHome\_IPHONE IOS ios source code ，please use xCode open it. this app is for IOS , use it ,you can easy to control all zigbee slave unit .

![](https://3328098389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtR1ORXGh8cjr34f%2F-M2HWvRKw6XOIl6BxR3U%2F-M2HXKlYG-TFokf2LU7k%2FIMG_2942.PNG?generation=1584080197413915\&alt=media) so you can use APP to control something you want with zigbee slave unit.

zigbee module:

![](https://github.com/bananapi/bpi-g1/tree/53443e8f269df54ebc1c108032faa7e2628c3e9d/zh/zigbee%20module%204.JPG)

all code demo function as :banana pi BPI G1 use app demo all function

[https://www.youtube.com/watch?v=wQWgF0733FY](https://www.youtube.com/watch?v=wQWgF0733FY)

how to debugger BPI-G1 with BPI-debugger tooling :

[https://www.youtube.com/watch?v=mqyq-oLIxCY](https://www.youtube.com/watch?v=mqyq-oLIxCY)

**discuss this project on forum:**

[http://forum.banana-pi.org/t/bpi-g1-as-a-smart-home-gateway-all-code-open-source/1889](http://forum.banana-pi.org/t/bpi-g1-as-a-smart-home-gateway-all-code-open-source/1889)
