public class Packet extends Object
Modifier and Type | Field and Description |
---|---|
static int |
Command_0
Command HEX KEY 0
|
static int |
Command_1
Command HEX KEY 1
|
static int |
Command_2
Command HEX KEY 2
|
static int |
Command_3
Command HEX KEY 3
|
static int |
Command_DOWN
Command DOWN
|
static int |
Command_OFF
Command OFF
|
static int |
Command_ON
Command ON
|
static int |
Command_PROG
Command PROG
|
static int |
Command_STOP
Command STOP
|
static int |
Command_TOGGLE
Command TOGGLE
|
static int |
Command_UP
Command UP
|
static int |
Protocol_AVD
Protocol AVD
Avidsen
Value (4 bits) (0x0 = on ; 0x1 : off)
|
static int |
Protocol_B12
Protocol Simple 12 bits
Monseigneur T1SAW433
|
static int |
Protocol_B12_1 |
static int |
Protocol_BLYP0
Protocol BLYP0
Blyss
Value (4 bits) (0x0 = on ; 0x1 : off)
|
static int |
Protocol_DIO
Protocol DIO
Chacon / DI-O / OTIO / CoCo Technologies / KlikAanKlikUit / Nexa
Value (2 bits) (1bit = all button channel ; 1bit = on/off)
|
static int |
Protocol_DOOYA
Protocol Dooya
DC305,DC306,DC307,DC313,DC1650,DC1651,DC2700
aluprof / yooda
Value (4 bits) (0x1 = up ; 0x3 : down ; stop : 0x5 ; prog : 0xc)
|
static int |
Protocol_EQT
Protocol Equation
Value (8 bits) (0x11 = on ; 0x01 = off)
|
static int |
Protocol_EV1527
Protocol EV1527
Remote with button (A,B,C,D)
Value (4 bits) (0x2 : A ; 0x8 : B ; 0x1 : C ; 0x4 : D)
|
static int |
Protocol_EV1527_1 |
static int |
Protocol_EVF
Protocol Everflourish
Value (4 bits) (0xf = on ; 0x00 = off)
|
static int |
Protocol_FLOR
Protocol Flor
Nice Flor 52 bits
NiceWay, WM001G, WM002G, WM003G, WM004G, WM006G et WM080G
Value (4 bits) (0x1 = up ; 0x4 : down ; stop : 0x2)
Need rolling code
|
static int |
Protocol_GT7000
Protocol GT7000
Globaltronics GT-7000/GT-8000/GT-FSI, Conrad RC-710
Value (3 bits) (1bit = 1:all button channel ; 1bit = 1:on/0:off ; 1bit = 1:dimmer/0:switch)
|
static int |
Protocol_HCTEL
Protocol HCTEL
HomeConfort / SmartHome TEL-010
Value (8 bits) (0x81 = on ; 0x01 : off)
|
static int |
Protocol_OTI
Protocol OTI
OTIO 09HA02, 750060, 750061, 750062
Value (1 bits) (0x1 = on ; 0x0 : off)
|
static int |
Protocol_PT2262
Protocol PrinceTon 2262
Most of DIP / rotary switch
Home Easy, Intertechno, Elro, HomeConfort YC
Value (2 bits) (0x2 = on ; 0x1 : off)
|
static int |
Protocol_RFY
Protocol Somfy
Simu / Somfy 433.42Mhz
Value (4 bits) (0x1 = my ; 0x2 = up ; 0x4 = down ; 0x8 = prog ; 0xf = gate)
Need rolling code
|
static int |
Protocol_X10
Protocol X10
X10
Value (2 bits) (0 = on ; 1 = off ; 2 = bright ; 3 = dim)
|
Constructor and Description |
---|
Packet(int protocolId,
long sourceAddr,
int command)
Constructs a Packet object.
|
Packet(int protocolId,
long sourceAddr,
int command,
int rollingCtr)
Constructs a Packet object.
|
Packet(Packet original)
Constructs a Packet object as equal copy
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
static long |
generateAddress(int protocolId)
Generates an address
|
int |
getCommand()
Gets the command
|
int |
getProtocolId()
Gets the protocol id
|
static String |
getProtocolName(int protocolId)
Returns a string of the protocol name.
|
int |
getRollingCounter()
Gets the rolling counter
|
long |
getSourceAddress()
Gets the source address
|
int |
getValue()
Gets the value
|
public static final int Command_0
public static final int Command_1
public static final int Command_2
public static final int Command_3
public static final int Command_DOWN
public static final int Command_OFF
public static final int Command_ON
public static final int Command_PROG
public static final int Command_STOP
public static final int Command_TOGGLE
public static final int Command_UP
public static final int Protocol_AVD
public static final int Protocol_B12
public static final int Protocol_B12_1
public static final int Protocol_BLYP0
public static final int Protocol_DIO
public static final int Protocol_DOOYA
public static final int Protocol_EQT
public static final int Protocol_EV1527
public static final int Protocol_EV1527_1
public static final int Protocol_EVF
public static final int Protocol_FLOR
public static final int Protocol_GT7000
public static final int Protocol_HCTEL
public static final int Protocol_OTI
public static final int Protocol_PT2262
public static final int Protocol_RFY
public static final int Protocol_X10
public Packet(int protocolId, long sourceAddr, int command) throws UnsatisfiedLinkError
protocolId
- the protocol idsourceAddr
- the source addresscommand
- the commandUnsatisfiedLinkError
- if native dependency not foundpublic Packet(int protocolId, long sourceAddr, int command, int rollingCtr) throws UnsatisfiedLinkError
protocolId
- the protocol idsourceAddr
- the source addresscommand
- the commandrollingCtr
- the rolling counterUnsatisfiedLinkError
- if native dependency not foundpublic Packet(Packet original) throws UnsatisfiedLinkError
original
- an original Packet to copyUnsatisfiedLinkError
- if native dependency not foundpublic static long generateAddress(int protocolId)
protocolId
- the protocol idpublic int getCommand()
public int getProtocolId()
public static String getProtocolName(int protocolId)
public int getRollingCounter()
public long getSourceAddress()
public int getValue()