> For the complete documentation index, see [llms.txt](https://bananapi.gitbook.io/bpi-g1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bananapi.gitbook.io/bpi-g1/zh/bpi-g1smarthomegatewayproject.md).

# BPI-G1 smart home gateway project

![](/files/-M2HXKlSqVvi0Bdoq9Zn) 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>

code catalog:

![](/files/-M2HXKlUlWel6N4maVO6)

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:

![](/files/-M2HXKlW3nhhHG1rRlSj)

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 .

![](/files/-M2HXKlYG-TFokf2LU7k) 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>

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

<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>
