|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eurotech.framework.net.admin.modem.sierra.CnS
public class CnS
Describes CnS object.
CnS format:
| Byte offset | Content |
|---|---|
| 0-1 | Object ID |
| 2 | Operation Type |
| 3 | Reserved |
| 4-7 | Application ID |
| 8-9 | Length of payload (0�246) |
| [10-255] | Parameter (if needed for the object) |
The maximum length of a CnS message is 255 bytes. The minimum length is 10.
Copyright (c) 2009 Eurotech Inc. All rights reserved.
| Field Summary | |
|---|---|
static int |
PAYLOAD_OFFSET
|
| Constructor Summary | |
|---|---|
CnS(byte[] msg)
CnS reply constructor. |
|
CnS(int objectID,
byte opType,
int appID)
CnS message constructor. |
|
CnS(int objectID,
byte opType,
int appID,
byte[] pload)
CnS message constructor |
|
CnS(int objectID,
byte opType,
int appID,
int param)
CnS message constructor |
|
CnS(int objectID,
byte opType,
int appID,
long param)
CnS message constructor |
|
| Method Summary | |
|---|---|
long |
getApplicationId()
Reports CnS Application ID |
int |
getObjectId()
Reports CnS object ID |
int |
getOperationType()
Reports CnS operation type |
byte[] |
getPayload()
Reports payload of CnS message |
int |
getPayloadLength()
Reports the length of Cns payload |
byte[] |
getRequest()
Reports CnS request |
int |
getReserved()
Reports reserved word |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PAYLOAD_OFFSET
| Constructor Detail |
|---|
public CnS(int objectID,
byte opType,
int appID)
CnS request constructor
objectID - - object IDopType - - operation typeappID - - application ID
public CnS(int objectID,
byte opType,
int appID,
byte[] pload)
objectID - - object IDopType - - operation typeappID - - application IDpload - CnS payload
public CnS(int objectID,
byte opType,
int appID,
int param)
objectID - - object IDopType - - operation typeappID - - application IDparam - - payload
public CnS(int objectID,
byte opType,
int appID,
long param)
objectID - - object IDopType - - operation typeappID - - application IDparam - - payloadpublic CnS(byte[] msg)
msg - byte array to hold CnS reply from modem| Method Detail |
|---|
public byte[] getRequest()
public byte[] getPayload()
public long getApplicationId()
public int getObjectId()
public int getOperationType()
public int getPayloadLength()
public int getReserved()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||