|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Pcn1001Service
Defines IPcn1001Service - passenger counter service.
Field Summary | |
---|---|
static int |
DFLT_NUM_RETRIES
Default value SNP number of retries |
static int |
DFLT_SNP_CMD_TOUT
Default value SNP command timeout in msec |
static int |
DFLT_SNP_POLL_TOUT
Default value for SNP poll timeout in msec |
static byte |
DISABLE_AUTOLED_OPCODE
'Disable autoled' opcode |
static byte |
DISABLE_COUNTING_OPCODE
'Disable Counting' opcode |
static byte |
DISABLE_DIAGNOSTICS_OPCODE
'Disable diagnostic' opcode |
static byte |
ENABLE_AUTOLED_OPCODE
'Enable autoled' opcode |
static byte |
ENABLE_COUNTING_OPCODE
'Enable Counting' opcode |
static byte |
ENABLE_DIAGNOSTICS_OPCODE
'Enable diagnostic' opcode |
static Hashtable |
htCommSerialMode
|
static Hashtable |
htEnableDisableAutoLed
|
static Hashtable |
htEnableDisableCounting
|
static Hashtable |
htEnableDisableDiagnostics
|
static Hashtable |
htOptInFunction
Hash tables that describe operation codes |
static short |
OPTINP_CNT_ENABLE_DISABLE_OPCODE
|
static short |
OPTINP_CNT_RESET_OPCODE
|
static short |
OPTINP_DISABLED_OPCODE
Digital input functionality 0 - disabled 1 - reset IN/OUT counts 2 - enable/disable counting |
static int |
OPTINP0
Digital inputs (input0/1) |
static int |
OPTINP1
|
static int |
OPTOUT_MAX_VALUE
|
static int |
OPTOUT_MIN_VALUE
|
static int |
OPTOUT0
Digital outputs open time (outtime0/1) |
static int |
OPTOUT1
|
static String |
SERVICE_NAME
name of this service |
Method Summary | |
---|---|
void |
clearReplyErrors()
Clears the number of reply errors and communication errors |
void |
enableDisableAutoLed(byte opcode)
|
void |
enableDisableCounting(byte enOpcode)
Enables/disables counting. |
void |
enableDisableDiagnostics(byte opcode)
Enables/disables diagnostics. |
int |
getSnpCmdTimeout()
Reports SNP command timeout in milliseconds. |
int |
getSnpNumRetries()
|
int |
getSnpPollTimeout()
Reports SNP poll timeout in milliseconds. |
boolean |
isFunctional()
Reports if passenger counter is accessible via SNP protocol by sending a poll to it and obtaining a reply. |
void |
obtainDateAndTime()
Obtains date and time information. |
void |
obtainDiagnosticStatus()
Obtains diagnostic status. |
void |
obtainFpgaFirmwareVersion()
Obtains PCN-1001 FPGA firmware version. |
void |
obtainImgServerVersion()
Obtains PCN-1001 counting software version. |
void |
obtainInOutCounters()
Obtains IN/OUT counters. |
void |
obtainInputLineLevel(int line)
Obtains level of specified Input Line. |
void |
obtainKernelVersion()
Obtains kernel version from passenger counter |
void |
obtainOsVersion()
Obtains PCN-1001 operating system version. |
void |
resetInOutCounters(boolean verifyReset)
Resets IN/OUT counters. |
void |
setDateAndTime(Calendar calendar)
Sets date and time information. |
void |
setInputLine(int line,
short function)
Sets function of digital input line specified. |
void |
setIpAddress(String ipAddress)
Sets IP address. |
void |
setLedLightIntensity(int lightIntensity)
Sets LED light intensity. |
void |
setOutputOpenTime(int line,
short openTime)
Sets open time for specified optocoupled output |
void |
setSnpCmdTimeout(int snpCmdTimeout)
Sets SNP command timeout in milliseconds. |
void |
setSnpNumRetries(int snpNumRetries)
Sets SNP number of retries before disabling |
void |
setSnpPollTimeout(int snpPollTimeout)
Sets SNP poll timeout in milliseconds. |
Methods inherited from interface com.eurotech.framework.protocol.pcn.Pcn1001VersionInfoService |
---|
getFpgaFirmwareVersion, getImgServerVersion, getKernelVersion, getOsVersion |
Methods inherited from interface com.eurotech.framework.protocol.pcn.Pcn1001CountInfoService |
---|
getCommunicationErrors, getDiagnosticStatus, getInCount, getOutCount, getReplyErrors, getSnpAddress, isAutoLedEnabled, isCountingEnabled, isDiagnosticsEnabled, isSnpDisabled, setInCount, setOutCount |
Methods inherited from interface com.eurotech.framework.protocol.pcn.Pcn1001InputLineInfoService |
---|
isInput0Level, isInput1Level |
Methods inherited from interface com.eurotech.framework.protocol.pcn.Pcn1001DateAndTimeService |
---|
getDateAndTime |
Methods inherited from interface com.eurotech.framework.protocol.pcn.Pcn1001AddressInfoService |
---|
getSnpAddress |
Field Detail |
---|
static final String SERVICE_NAME
static final int DFLT_SNP_POLL_TOUT
static final int DFLT_SNP_CMD_TOUT
static final int DFLT_NUM_RETRIES
static final byte DISABLE_COUNTING_OPCODE
static final byte ENABLE_COUNTING_OPCODE
static final byte DISABLE_AUTOLED_OPCODE
static final byte ENABLE_AUTOLED_OPCODE
static final int OPTINP0
static final int OPTINP1
static final short OPTINP_DISABLED_OPCODE
static final short OPTINP_CNT_RESET_OPCODE
static final short OPTINP_CNT_ENABLE_DISABLE_OPCODE
static final byte DISABLE_DIAGNOSTICS_OPCODE
static final byte ENABLE_DIAGNOSTICS_OPCODE
static final Hashtable htOptInFunction
static final Hashtable htEnableDisableCounting
static final Hashtable htEnableDisableDiagnostics
static final Hashtable htEnableDisableAutoLed
static final Hashtable htCommSerialMode
static final int OPTOUT0
static final int OPTOUT1
static final int OPTOUT_MIN_VALUE
static final int OPTOUT_MAX_VALUE
Method Detail |
---|
int getSnpPollTimeout()
int
void setSnpPollTimeout(int snpPollTimeout)
snpPollTimeout
- - SNP poll timeout as int
int getSnpCmdTimeout()
int
void setSnpCmdTimeout(int snpCmdTimeout)
snpCmdTimeout
- - SNP command timeout as int
int getSnpNumRetries()
void setSnpNumRetries(int snpNumRetries)
snpNumRetries
- - SNP number of retries as int
boolean isFunctional() throws EsfException
boolean
EsfException
void obtainKernelVersion() throws EsfException
EsfException
void obtainOsVersion() throws EsfException
EsfException
void obtainFpgaFirmwareVersion() throws EsfException
EsfException
void obtainImgServerVersion() throws EsfException
EsfException
void obtainInOutCounters() throws EsfException
EsfException
void resetInOutCounters(boolean verifyReset) throws EsfException
verifyReset
- - verify reset with 'gcounters' command as boolean
EsfException
void enableDisableCounting(byte enOpcode) throws EsfException
enOpcode
- - enable/disable opcode as byte
EsfException
void enableDisableAutoLed(byte opcode) throws EsfException
EsfException
void enableDisableDiagnostics(byte opcode) throws EsfException
enOpcode
- - enable/disable opcode as byte
EsfException
void setInputLine(int line, short function) throws EsfException
line
- - digital input line as int
function
- - function of digital input line as int
EsfException
void setOutputOpenTime(int line, short openTime) throws EsfException
line
- - digital output line as int
openTime
- - open time (range 8~1020, must be multiple of 4) as short
EsfException
void setLedLightIntensity(int lightIntensity) throws EsfException
lightIntensity
- - LED light intensity (from 0 to 255) as int
EsfException
void setIpAddress(String ipAddress) throws EsfException
ipAddress
- - IP address as String
EsfException
void obtainInputLineLevel(int line) throws EsfException
line
- - digital input line as int
EsfException
void obtainDateAndTime() throws EsfException
EsfException
void obtainDiagnosticStatus() throws EsfException
EsfException
void setDateAndTime(Calendar calendar) throws EsfException
calendar
- - date and time information as Calendar
EsfException
void clearReplyErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |