public class SMLBinaryCommands extends java.lang.Object implements SMLPingerCommands
Constructor and Description |
---|
SMLBinaryCommands() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decreasePulseWidth()
Reduces the configured Pulse Width setting by a pre-set value of 100µSeconds until the minimum limit is reached
|
byte[] |
getSwitchOffCommand()
Switches the pulse generation and timing off and performs a timed sequence power off.
|
byte[] |
getSwitchOnCommand()
Performs a three stage timed sequence power on and switches the pulse
generation and timing on using either the default (upon initial power up)
or last configured values for frequency and timings.
|
byte[] |
increasePulseWidth()
Increases the configured Pulse Width setting by a pre-set value of 100µSeconds until the maximum limit is reached
|
byte[] |
requestAdHocStatusUpdate()
Request the transmission of a single Pinger Status message
|
byte[] |
requestTemperature()
Returns the current temperature measured by the Pinger
|
byte[] |
setNumPulses(int nPulses)
Set the number of pulses to be transmitted
|
byte[] |
setPingFrequency(int pingCode)
Sets the Pinger Output Frequency selection
|
byte[] |
setPulseOnAndRepRate(int tensMicros,
int tenthsSeconds)
Changes the Pulse On Period and Pulse Repetition Rate to the range
checked values specified by tensMicros and tenthsSeconds respectively
|
byte[] |
setPulseOnPeriod(int tensMicros)
Changes the Pulse on period to the range checked value specified
|
byte[] |
setPulseRepRate(int tenthsSeconds)
Changes the Pulse Repetition Rate to the range checked value specified
|
byte[] |
toggleAutoStatusUpdate()
Toggles Active or Inactive the automatic transmission of a Status message every 1 second
|
byte[] |
togglePauseRun()
Toggles the Pinger pulse output state to either active or inactive
without stopping the pulse timing or powering the device down
|
byte[] |
togglePreventSleep()
Toggles an internal flag to enable / disable the
micro-controller entering "Sleep" (low power mode)
|
public byte[] getSwitchOffCommand()
SMLPingerCommands
getSwitchOffCommand
in interface SMLPingerCommands
public byte[] getSwitchOnCommand()
SMLPingerCommands
getSwitchOnCommand
in interface SMLPingerCommands
public byte[] togglePauseRun()
SMLPingerCommands
togglePauseRun
in interface SMLPingerCommands
public byte[] setPulseOnPeriod(int tensMicros)
SMLPingerCommands
setPulseOnPeriod
in interface SMLPingerCommands
tensMicros
- may be 0 to 500 (x 0.0001Seconds)public byte[] setPulseRepRate(int tenthsSeconds)
SMLPingerCommands
setPulseRepRate
in interface SMLPingerCommands
tenthsSeconds
- may be 0 to 600 (x 0.1Seconds)public byte[] setPulseOnAndRepRate(int tensMicros, int tenthsSeconds)
SMLPingerCommands
setPulseOnAndRepRate
in interface SMLPingerCommands
tensMicros
- may be 0 to 500 (x 0.0001Seconds)tenthsSeconds
- may be 0 to 600 (x 0.1Seconds)public byte[] setNumPulses(int nPulses)
SMLPingerCommands
setNumPulses
in interface SMLPingerCommands
nPulses
- 0 = Continuous (default);
1 through to 65,535 = maximum number of pulses to transmit during this
active/On session. Switching the Pinger Off then On again would start another session of nn pulspublic byte[] setPingFrequency(int pingCode)
SMLPingerCommands
setPingFrequency
in interface SMLPingerCommands
pingCode
- public byte[] toggleAutoStatusUpdate()
SMLPingerCommands
toggleAutoStatusUpdate
in interface SMLPingerCommands
public byte[] requestAdHocStatusUpdate()
SMLPingerCommands
requestAdHocStatusUpdate
in interface SMLPingerCommands
public byte[] togglePreventSleep()
SMLPingerCommands
togglePreventSleep
in interface SMLPingerCommands
public byte[] decreasePulseWidth()
SMLPingerCommands
decreasePulseWidth
in interface SMLPingerCommands
public byte[] increasePulseWidth()
SMLPingerCommands
increasePulseWidth
in interface SMLPingerCommands
public byte[] requestTemperature()
SMLPingerCommands
requestTemperature
in interface SMLPingerCommands