-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed IndexOutOfBoundsException when deleting.
Added Readme.
- Loading branch information
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
BLE RC Switch Control | ||
======= | ||
|
||
### About | ||
|
||
This Project contains an Android app and an Arduino sketch to sniff 433/315Mhz device codes | ||
from a remote, and reproduce the same codes, essentially replacing the remote. | ||
|
||
### The Arduino GATT Server | ||
|
||
The Arduino GATT server is comprised of: | ||
|
||
1. An Arduino Mega | ||
2. The BLE112 Module from Silicon Labs | ||
3. A Generic RF Receiver | ||
4. A Generic RF Transmitter | ||
|
||
An Arduino Mega, while not necessary is preferred because of the avaialabilty of more than 1 hardware serial. | ||
An Uno is fine provided debug messages are fed to a software serial, but the BLE communication should always use a hardware serial | ||
as it is way more Reliable. | ||
|
||
### The Android GATT Client | ||
|
||
The Android GATT client provides a convenient UI for the server. After following the prompts to | ||
a connect to a Arduino server, the app will automatically attempt to connect to it whenever it is within range. | ||
|
||
The app assumes the switches it controls has 2 states, ON and OFF. To Create a switch, the app prompts a user to sniff the ON code and OFF code | ||
consecutively, after which a switch will be created with a UI to toggle between the ON and OFF states. Once a switch is created, it is persisted | ||
in the app unless it is deleted with a swipe on the UI. Long pressing a switch brings up a dialog to rename the switch. | ||
|
||
![alt text](http://i.imgur.com/MnurD22.png "Connections") | ||
|
||
|
||
|
||
|