SMSLib 3.5.3

org.smslib
Class Settings

java.lang.Object
  extended by org.smslib.Settings

public class Settings
extends java.lang.Object

Configuration/settings class. This class holds information about all the parameters which affect SMSLib operation.


Field Summary
 int AT_WAIT
          Wait time for generic AT commands (milliseconds).
 int AT_WAIT_AFTER_RESET
          Wait time after issuing a RESET command (milliseconds).
 int AT_WAIT_CGMS
          Wait time after issuing a SEND command (milliseconds).
 int AT_WAIT_CMD
          Wait time to give the modem after entring COMMAND mode (milliseconds).
 int AT_WAIT_CNMI
          Wait time before retrying a failed CNMI command (milliseconds).
 int AT_WAIT_NETWORK
          Wait time before retrying the network status command (milliseconds).
 int AT_WAIT_SIMPIN
          Wait time after entering the PIN (milliseconds).
 java.lang.String CACHE_DIRECTORY
          SMSLib cache directory.
 int CNMI_EMULATOR_INTERVAL
          Sync message processor interval: If CNMI detection fails, SMSLib will emulate and still act as an asynchronous reader, by implementing a background polling technique and pushing the read messages via the callback methods.
 boolean CONCURRENT_GATEWAY_START
          Should all defined gateways start up concurrently?
 boolean DISABLE_CMMS
          Disable the use of the CMMS command
 boolean DISABLE_CMTI
           
 boolean DISABLE_COPS
          Disable the use of the COPS command
 int HOURS_TO_ORPHAN
          Hours used to detect an orphaned message part.
 boolean MASK_IMSI
          Mask or show the IMSI string.
 int OUTBOUND_RETRIES
          Number of retries for sending a message.
 int OUTBOUND_RETRY_WAIT
          Wait time between retries for sending a message (milliseconds).
 java.lang.String QUEUE_DIRECTORY
          SMSLib queue directory.
 int QUEUE_RETRIES
          Specifies the number of retries the background queue should give to an outbound message before it classifies it as failed.
 int QUEUE_SCHEDULING_INTERNAL
          The queue scheduling interval.
 int SERIAL_BUFFER_CHUNK
          Serial driver settings: Break buffer in chunks and add a delay between chunks.
 int SERIAL_BUFFER_CHUNK_DELAY
           
 int SERIAL_BUFFER_SIZE
          Specifies the buffer size (bytes).
 int SERIAL_CLEAR_WAIT
          Wait time before clearing the queues (milliseconds).
 int SERIAL_KEEPALIVE_INTERVAL
          Specifies the serial ports' keep-alive interval (seconds).
 boolean SERIAL_NOEVENTS
          Specifies whether the serial port callback events are registered.
 boolean SERIAL_NOFLUSH
          Specifies whether the serial port flashing is disabled or enabled.
 boolean SERIAL_POLLING
          Specifies whether the serial port will be polled or SMSLib will be notified by port interrupts.
 int SERIAL_POLLING_INTERVAL
          Specifies the polling interval (milliseconds).
 boolean SERIAL_RTSCTS_OUT
          Specifies whether hardware handshake should be enabled for outbound port traffic.
 int SERIAL_TIMEOUT
          Specifies the serial ports' timeout (milliseconds).
 int WATCHDOG_INTERVAL
          Watchdog - SMSLib background monitoring thread interval (seconds).
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIAL_NOFLUSH

public boolean SERIAL_NOFLUSH
Specifies whether the serial port flashing is disabled or enabled.


SERIAL_NOEVENTS

public boolean SERIAL_NOEVENTS
Specifies whether the serial port callback events are registered.


SERIAL_POLLING

public boolean SERIAL_POLLING
Specifies whether the serial port will be polled or SMSLib will be notified by port interrupts.


SERIAL_POLLING_INTERVAL

public int SERIAL_POLLING_INTERVAL
Specifies the polling interval (milliseconds).


SERIAL_TIMEOUT

public int SERIAL_TIMEOUT
Specifies the serial ports' timeout (milliseconds).


SERIAL_KEEPALIVE_INTERVAL

public int SERIAL_KEEPALIVE_INTERVAL
Specifies the serial ports' keep-alive interval (seconds).


SERIAL_BUFFER_SIZE

public int SERIAL_BUFFER_SIZE
Specifies the buffer size (bytes).


SERIAL_CLEAR_WAIT

public int SERIAL_CLEAR_WAIT
Wait time before clearing the queues (milliseconds).


SERIAL_RTSCTS_OUT

public boolean SERIAL_RTSCTS_OUT
Specifies whether hardware handshake should be enabled for outbound port traffic.


QUEUE_RETRIES

public int QUEUE_RETRIES
Specifies the number of retries the background queue should give to an outbound message before it classifies it as failed.


AT_WAIT

public int AT_WAIT
Wait time for generic AT commands (milliseconds).


AT_WAIT_AFTER_RESET

public int AT_WAIT_AFTER_RESET
Wait time after issuing a RESET command (milliseconds).


AT_WAIT_CMD

public int AT_WAIT_CMD
Wait time to give the modem after entring COMMAND mode (milliseconds).


AT_WAIT_CGMS

public int AT_WAIT_CGMS
Wait time after issuing a SEND command (milliseconds).


AT_WAIT_NETWORK

public int AT_WAIT_NETWORK
Wait time before retrying the network status command (milliseconds).


AT_WAIT_SIMPIN

public int AT_WAIT_SIMPIN
Wait time after entering the PIN (milliseconds).


AT_WAIT_CNMI

public int AT_WAIT_CNMI
Wait time before retrying a failed CNMI command (milliseconds).


OUTBOUND_RETRIES

public int OUTBOUND_RETRIES
Number of retries for sending a message.


OUTBOUND_RETRY_WAIT

public int OUTBOUND_RETRY_WAIT
Wait time between retries for sending a message (milliseconds).


WATCHDOG_INTERVAL

public int WATCHDOG_INTERVAL
Watchdog - SMSLib background monitoring thread interval (seconds).


CNMI_EMULATOR_INTERVAL

public int CNMI_EMULATOR_INTERVAL
Sync message processor interval: If CNMI detection fails, SMSLib will emulate and still act as an asynchronous reader, by implementing a background polling technique and pushing the read messages via the callback methods.


MASK_IMSI

public boolean MASK_IMSI
Mask or show the IMSI string.


DISABLE_CMTI

public boolean DISABLE_CMTI

HOURS_TO_ORPHAN

public int HOURS_TO_ORPHAN
Hours used to detect an orphaned message part.


CONCURRENT_GATEWAY_START

public boolean CONCURRENT_GATEWAY_START
Should all defined gateways start up concurrently?


DISABLE_CMMS

public boolean DISABLE_CMMS
Disable the use of the CMMS command


DISABLE_COPS

public boolean DISABLE_COPS
Disable the use of the COPS command


CACHE_DIRECTORY

public java.lang.String CACHE_DIRECTORY
SMSLib cache directory.


QUEUE_DIRECTORY

public java.lang.String QUEUE_DIRECTORY
SMSLib queue directory.


QUEUE_SCHEDULING_INTERNAL

public int QUEUE_SCHEDULING_INTERNAL
The queue scheduling interval. This serves as a global setting - it can be overidden on the gateway level (see AGateway.java and descendants).


SERIAL_BUFFER_CHUNK

public int SERIAL_BUFFER_CHUNK
Serial driver settings: Break buffer in chunks and add a delay between chunks. Used for compatibility with earlier models. Ref: http://smslib.org/forum/topic/patch-to-support-sending-long-sms-messages-using-sonyericsson-k800i Thanks to Niels for noticing and fixing this. Reference table for specific models: Sony Ericsson K800i: SERIAL_BUFFER_CHUNK=250, SERIAL_BUFFER_CHUNK_DELAY=50


SERIAL_BUFFER_CHUNK_DELAY

public int SERIAL_BUFFER_CHUNK_DELAY

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org