com.eurotech.framework.net.admin.modem.sierra
Class CnS

java.lang.Object
  extended by com.eurotech.framework.net.admin.modem.sierra.CnS

public class CnS
extends Object

Describes CnS object.

CnS format:

Byte offset Content
0-1Object ID
2Operation Type
3Reserved
4-7Application ID
8-9Length 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

PAYLOAD_OFFSET

public static final int PAYLOAD_OFFSET
See Also:
Constant Field Values
Constructor Detail

CnS

public CnS(int objectID,
           byte opType,
           int appID)
CnS message constructor.

CnS request constructor

Parameters:
objectID - - object ID
opType - - operation type
appID - - application ID

CnS

public CnS(int objectID,
           byte opType,
           int appID,
           byte[] pload)
CnS message constructor

Parameters:
objectID - - object ID
opType - - operation type
appID - - application ID
pload - CnS payload

CnS

public CnS(int objectID,
           byte opType,
           int appID,
           int param)
CnS message constructor

Parameters:
objectID - - object ID
opType - - operation type
appID - - application ID
param - - payload

CnS

public CnS(int objectID,
           byte opType,
           int appID,
           long param)
CnS message constructor

Parameters:
objectID - - object ID
opType - - operation type
appID - - application ID
param - - payload

CnS

public CnS(byte[] msg)
CnS reply constructor.

Parameters:
msg - byte array to hold CnS reply from modem
Method Detail

getRequest

public byte[] getRequest()
Reports CnS request

Returns:
CnS request as byte array

getPayload

public byte[] getPayload()
Reports payload of CnS message

Returns:
payload as byte array

getApplicationId

public long getApplicationId()
Reports CnS Application ID

Returns:
application ID

getObjectId

public int getObjectId()
Reports CnS object ID

Returns:
object ID

getOperationType

public int getOperationType()
Reports CnS operation type

Returns:
operation type

getPayloadLength

public int getPayloadLength()
Reports the length of Cns payload

Returns:
payload length

getReserved

public int getReserved()
Reports reserved word

Returns:
- reserved word


Copyright © 2013. All Rights Reserved.