Você está na página 1de 38

Android

,
, :

Android smartphones tablets,


(remote authorization request)
.

Arduino ,
LED
.

Windows

.

,
,

Microcontroller Arduino UNO ,


.

Arduino (Beacon)
(, ), .

-
servers .

mobile Android,
Bluetooth,
.

(Android) Arduino,
Bluetooth Credentials .
Arduino , USB,
, Validation
.

, Arduino,
/.
, ,
/ .
(1/2)

Android Java, XML


(User Interface).

Arduino Beacon Arduino,


C/C++ Wiring,
/ .

Beacon ,
.NET C#.

, Beacons
, MySQL.
(2/2)

GitLab Languages Graph


(1/2)


(Android App, Arduino Beacon, Administration Application)
Message
: Beacon.
: #MSG^This is a message$

Action Command
: Beacon .
: #CMD^5^$

User Login
: (Android App)
/.
: #USR^username^password^$
(2/2)

Trace Log
: Arduino Beacon / BtAdmin
(Administration Application).
: #LOG^Tracing out log text$
Action with Message
: Beacon
.
: #INF^cmd^message$
Display State
: Beacon .
: #STA^$
Reset Beacon
: BtAdmin (Administration Application) Beacon
.
: #RST^$

ID LED #1 LED #2

0 ERROR Blink Red Red

1 OFFLINE Beacon () Off Off

2 IDLE Beacon Off Red


3 CONNECTED Blink Blue Aqua
Beacon

4 TRIGGERED Beacon Blink Green Green

5 LOCKDOWN Red Red

6 MANUAL OPEN Beacon Blink Green Green

7 FREE ACCESS Green Green

8 LOGIN - -
Android Application
Android App SplashScreen

SplashScreen
.

.

5
, .
Android App (1/2)

,
Monitoring .

Bluetooth Bluetooth
Android App (2/2)

Enable/Disable Bluetooth:
/ Bluetooth .


Start/Stop Service: / Service

Beacon.
Start/Stop Scan: /
.
Paired Devices:
.
Show/Hide Console: ,
Monitoring .

Monitor
Android App App Menu

Settings:

Set Device Name:


Bluetooth

User Credentials: /

Debugger: Log
( Debug)
Android App Settings (1/2)

Discoverable time (sec):


Show Console on Start: Monitoring

Show Paired Devices on Scan:

Disable Bluetooth on Exit: Bluetooth

Stop BtService on Exit: Service

Authorization request timeout:
Beacon
Bluetooth signal sensitivity:

Scan Duration (sec):
Android App Settings (2/2)

Enable Debug Mode: Debug


Enable LogCat: LogCat

Log Bluetooth state changes: Monitor ,


Bluetooth

Log Found Devices Signal: Monitor ,


Bluetooth

Log Device UUID: Monitor , UUID


Write Log to file: Logs


Android App Set Device Name

Set Device Name


Bluetooth
,
.
Android App User Credentials

User Credentials
Pop Up,

, Beacon
Android App

Start Scan


.



Monitor

.
Android App
(1/3)

,
.

Bluetooth
Bluetooth
Major Bluetooth
Minor Bluetooth
Android App
(2/3)

Pair / Unpair, /

Android App
(3/3)

Actions,


Login,
.
Android App Console / Debugger


Console / Debugger,

Monitoring .


,
service Beacon

.

Console/Debugger,

Debug,


.
Arduino
Arduino (1/2)
Arduino (2/2)

ID LED #1 LED #2

0 ERROR Blink Red Red

1 OFFLINE Beacon () Off Off

2 IDLE Beacon Off Red


3 CONNECTED Blink Blue Aqua
Beacon

4 TRIGGERED Beacon Blink Green Green

5 LOCKDOWN Red Red

6 MANUAL OPEN Beacon Blink Green Green

7 FREE ACCESS Green Green

8 LOGIN - -
Administration Application
Administration Application Login

BtAdmin,
Login,

.


server
,
Database Settings
.
Administration Application Main

sidebar username

Remaining Time,

authorization .

,
Beacon ,

,
Beacon
Administration Application Database Settings

Database Settings
.

Username:

Password:
Server: MySQL Server
Database: BtAdmin


Test Database
Connection.
Administration Application Serial Settings

Serial Settings

Beacon:

Port Name:
Baud Rate:

Data Bits:

Parity:
Stop Bits:
Administration Application General Settings

General Settings

Beacon

Beacon ID: Beacon


(A Alias)
Beacon Alias: Beacon
( )
Beacon Location: Beacon
( )

Log all incoming messages:



Authorization Timeout (sec):

(authorization)
Administration Application Monitor (1/2)

Monitor
(logging)
Beacon.

:
{ } | STATE [ { Beacon } ]
{ } | > { }
{ } | * { authorizations }
{ } | --> { Beacon }
{ } | <-- { Beacon }
Administration Application Monitor (2/2)

:
,
( )
,

, ,

iOS Windows Phones. ,


Raspberry Pi Beacon,
Internet Of Things (IoT) .

Você também pode gostar