Documente Academic
Documente Profesional
Documente Cultură
S/N
A
B
C
D
E
F
G
H
I
J
Content
Chapter
Start page No.
SMART-BUS android
3
Demo free version And
Official Professional
version
Install android
5
application to android
device
Install windows
6
software
SQLiteExpertPersSetup
for windows on your
computer
Open database
7
database.db3
Room Settings
10
Lighting settings of the
14
room
Moods Settings of
16
Room
HVAC Settings of
Room
SHADE and Fan
Copy your database to
android device(update
database)
23
24
http://www.sqliteexpert.com/download.html
software.
On the software SQLite Expert Personal , click the button Open Database on the
toolbar
E. Room Settings
before we make the configuration on the database, please do not change the structure of
database.
For example:
Do not delete any table
Do not change any table name
Do not add/change/delete any fields of tables
We just need add/edit/delete data on the tables.
We store the data of room to table room, Select the table room on the left side
RoomName
RoomIconID
Remark
This is room ID, its very
important for programming.
It also will be use for other
tables.
this is room name; it will be
show on the room list of
main page of android
Application.
this field is for room icon,
Please see the following
Value
Number, Start from 1
from 0 to 15
define of RoomIconID
The define of RoomIconID
Define of RoomIconID
RoomIconID
0
Remark
Default icon
Bed room
Dining room
Entrance
Exhibition
Family room
Icon
GYM
Guest room
Kitchen
Lobby
10
Manager room
11
12
Office/study room
13
Outside/garden
14
Parking
15
Stair
16
parlor
17
Rest room
18
Training room
19
Children`s Room
20
KTV/Bar
21
Demo kit
22
Hotel Demo
Add room
ID=1
RoomName=Meeting Room,
RoomIconID=12 (check the define RoomIconID above )
Delete room
The table light_of_room has 9 fields ,please see the define following:
Table light_of_room
Field
Remark
RoomID
You can know the RoomID from the table room. For
example , the RoomID of meeting room is 1 which we
have already added above
LightID
ID of light
LightRemark
Light remark
SubnetID
SubnetID and DeviceID are the address of Dimmer of
Relay
DeviceID
SubnetID and DeviceID are the address of Dimmer of
Relay
ChannelNo
Channel no of light
BrightnessValue This is the percentage of lighting brightness , 0-100
CanDim
0 or 1
(1: the light can be dimmed, 0 : the light can not be
dimmed the light, only on/off)
LightTypeID
Light type icon define (please see the following define)
The define of LightTypeID
LightTypeID
1
Remark
incandescent light
Icon
Value
Start from 1
Start from 1
0-254
0-254
0-254
0-100
0 or 1
1-4
spot light
fluorescent light
chandelier light
lamp
6
Add light 1 surround , Press
Remark
Default mood
Goodbye
Listen to music
Mafia
Meeting
Presentation
Relax
Romantic
watch movie
watch TV
Icon
10
All on
Step 2:
Value
Start from 1
Start from 1
Start from 0
Start from 0
0-254
0-254
0-12
0-255
0-255
0-65535
Start from 0 ,
unit: Millisecond
FirstParamete
r
SecondPa
rameter
ThirdParameter
Zone No
(0-254)
Zone No
(0-254)
Scene No
(0-254)
Sequence
No
(0-254)
Switch
Unused
(set 0 )
Unused
(set 0 )
Universal
Unused
al
Switch
Control
3
Invalid
Single
Channel
Control
Broadca
st scene
Broadca
st All
channel
s
Curtain
Control
Timer
Control
GPRS
Control
Switch ID
(0-255)
Invalid
command,
it will not
take any
actions
Run the
specific
scene in
all area of
current
module
Control all
the
channels
of current
module
Control
curtain if
you are
using our
curtain
module
Control
our GPRS
module
(SMS
module) ,
Before you
use this
GPRS
command,
You need
use GPRS
managem
ent
software
Control
status
(255:on
0: off)
Any value
(0-255)
(set 0 )
Channel No
(1-254)
Broadcast area
(Must be set
255)
Scene No
(0-254)
Broadcast all
channels
(Must be set
255)
Curtain No
(1-4)
Curtain
Control
Status
(0: Stop
1: Open
2: Close)
Unused
(set 0 )
Channel No
(1-255)
Control
Status
(255: open
0:
close)
GPRS
Command
No
(0-255)
Unused
(set 0 )
Type ID
(
0: invalid
1: SMS
Message
)
Unused
(set 0 )
Unused
(set 0 )
to make
some
configurati
ons
10
Panel
control
FirstParamet
er
(TypeID)
0
(invalid)
1
(enable/disable
IR receive
function of
DLP)
2
(enable/disable
key lock of
DLP)
3
(Power on/off
of Air
condition)
4
(Set cool
temperature)
5
(FAN Speed)
6
(AC mode)
7
(Set Heat
SecondPa
rameter
(Value)
0
ThirdParameter
(unused)
0
0:
0
(disable)
1: (enable)
0: disable
key lock
of DLP
1: enable
key lock
of DLP
0: (power
off)
1: (power
on)
0-30
(cool
settings
temperatur
e, you can
see the
temperatur
e range
from DLP
of SBUS
software)
0: (auto)
1: (High)
2:
(Medium)
3: (low)
0: (Cool)
1: (Heat)
2: (FAN)
3: ( Auto)
0-30
(heat
temperature)
11
Security
Mode
control
Zone no
( 1-8)
12
Security
Alarm
Zone no
(1-8)
settings
temperatur
e, you can
see the
temperatur
e range
from DLP
of SBUS
software)
Mode No
1: vacation
2: away
3: night
4: Night with
guest
5: Day
6: Disarm
Alarm No
1: vacation
2: Away
4: Night
8: Night with
guest
16: Day
32: Siren
64: Power
128:
Temperature
256: Fire
512: Gas
1024: Panic
2048:
Emergency
4096:
Current
Unused
(set 0)
Unused
(set 0)
Value
SubnetIDOfDLP
DeviceIDOfDLP
0-254
0-254
I:
Add shades to the Zone
select table ShadesInZone
Table: ShadesInZone
FileName
DESC
ZoneID
ZoneID can get from the table Zones
ShadeID
ShadeID start from 1
ShadeName
The Name of shade
ShadeIconID
Always 1
SequenceNo
The order of show
HasStop
Table: ShadesCommands
FileName
ZoneID
DESC
ZoneID can get from the table Zones
ShadeID
ShadeControlType
CommandID
SequenceNo
Remark
SubnetID
DeviceID
CommandTypeID
ConmandTypeID Definition
Command
TypeID
Command Type
Name
Scene control
Sequence
Control
Universal Switch
Control
Invalid
Single Channel
Control
Broadcast scene
Remark
FirstParameter
SecondPa
rameter
ThirdParameter
Zone No
(1-254)
Zone No
(1-254)
Scene No
(0-254)
Sequence
No
(0-254)
Switch
Control
status
(255:on
0: off)
Unused
(set 0 )
Unused
(set 0 )
Any value
(0-255)
Channel No
(1-255)
Brightness
percentag
e
(0 -100)
Broadcast area
(Must be set
255)
Scene No
(0-254)
Unused
(set 0 )
Universal Switch
ID
(0-255)
Invalid
command, it
will not take
any actions
Run the
specific
scene in all
Unused
(set 0 )
Broadcast All
channels
Curtain Control
Timer Control
SMS Control
10
Panel control
area of
current
module
Control all
the channels
of current
module
Control
curtain if you
are using g3
curtain
module
Broadcast all
channels
(Must be set
255)
Curtain No
(1-4)
Brightness
percentag
e
(0 -100)
Curtain
Control
Status
(0: Stop
1: Open
2: Close)
Channel No
(1-255)
Control G3
SMS module
Control
Unused
Status
(set 0 )
(255: open
0 : close)
Type ID
SMS
Unused
( 0: invalid
Command (set 0 )
1: SMS
No
Message)
(0-255)
Panel control for A/C
FirstParameter
SecondParameter
(TypeID)
(Value)
0=(invalid)
0
1=(enable/disable IR
0: (disable)
receive function of
1: (enable)
DLP)
3=(Power on/off A/C)
0: (power off)
1: (power on)
4=(cool Set point)
0-30 c
32-86F
5=(FAN Speed)
0: (auto)
1: (High)
2: (Medium)
3: (low)
6=(AC mode)
0: (Cool)
1: (Heat)
2: (FAN)
3: ( Auto)
7=(Heat set point)
0-30 c
32-86F
8=(Auto Set point)
0-30 c
32-86F
Invoking DDP
Button
18
ThirdParameter
0
0
0
0
0
1 byte DDP
button number
Scope 1-32
1 = left of the first
button of Pag1 from
top to bottom
2 = right of the first
button of Pag1 from
top to bottom
3 = left of the
second button from
top to bottom of
Pag1
4 = 2R P1 , 5 = 3L
P1, 6 = 3R P1, 7 =
4L P1, 8 = 4R P1;
9 = 1L P2, 10 = 1R
P2, 11 = 2L P2, 12
= 2R P2, 13 = 3L
P2, 14 = 3R
P2 .
32 = right of the
fourth button of
Pag4
18
Go to Page
0x16
11
Security Mode
control
Zone no
( 1-8)
12
Security Alarm
Zone no
(1-8)
Mode No
1: vacation
2: away
3: night
4: Night with
guest
5: Day
6: Disarm
Alarm No
1: vacation
2: Away
4: Night
8: Night with
guest
16: Day
32: Siren
64: Power
128:
Temperature
256: Fire
512: Gas
1024: Panic
2048:
Emergency
4096: Current
18
Z-Audio
Z-Audio
33
Has one more
byte,(0=All
off;1=All on)
Page No
1-7
Unused
(set 0)
Unused
(set 0)
FirstParameter
(Type ID)
SecondParameter
(Value)
ThirdParamet
er
1=Music Source
Music Source No
N/A
SD card =1
Audio In =2
FTP Server =3
FM Radio =4
3=Song List / Radio
List Control
Song List No
/ Radio No
(only available
when Second
Parameter is
equal 3 or 6)
4=Play Control
Previous Song=1
Next Song=2
Play=3
Stop=4
N/A
5=Volume Control
Percentage of VOL
(0~ 100, 100% is max. VOL,
0 is mute)
N/A
6=Specify Song
Control
Song List No
(1byte,0-255, Song List No
0 is for alarm voice)
Song No (1
999 )
Fan control
Like this setup into database
fanTypeID
1
You dont need install the application again, because you just modify the database, the
application file APK and database is separated.
Go to run SMART-BUS application, you will see the results what you did.
If have anything wrong, please check your database settings.
If you have any questions, please contact me.