0% found this document useful (0 votes)
48 views

Stn11Xx: Powersave Functionality

Uploaded by

Hezaber Elamin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Stn11Xx: Powersave Functionality

Uploaded by

Hezaber Elamin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

STN11xx

PowerSave Functionality

© 2010 ScanTool.net, LLC www.ScanTool.net STN11XXPSB


STN11xx PowerSave

Table of Contents
1.0 PowerSave Functionality ..............................................................................................................................3
1.1 Control Modes .............................................................................................................................................3
1.1.1 Native PowerSave Mode.........................................................................................................................3
1.1.2 ELM327 Low Power Mode ......................................................................................................................3
1.2 Sleep Triggers .............................................................................................................................................3
1.2.1 STSLEEP and ATLP commands ............................................................................................................3
1.2.2 UART Inactivity........................................................................................................................................4
1.2.3 External SLEEP Input .............................................................................................................................4
1.2.4 Voltage Level Sleep ................................................................................................................................4
1.3 Wakeup Triggers .........................................................................................................................................4
1.3.1 UART Rx Pulse Wakeup.........................................................................................................................5
1.3.2 External SLEEP Input Wakeup ...............................................................................................................5
1.3.3 Voltage Level Wakeup ............................................................................................................................5
1.3.4 Voltage Change Wakeup ........................................................................................................................5
1.4 Voltage Trigger Considerations ...................................................................................................................5
1.5 External Power Control Output....................................................................................................................6
1.6 Device Specific Details ................................................................................................................................6
1.6.1 OBDLink Hardware Rev 1.x ....................................................................................................................6
1.6.2 OBDLink Hardware Rev 2.0 – 2.4...........................................................................................................6
1.6.3 OBDLink Hardware Rev 2.5 and Above .................................................................................................7
1.6.4 OBDLink S...............................................................................................................................................7
1.6.5 microOBD 200.........................................................................................................................................7
1.6.6 STN1110 .................................................................................................................................................7
1.7 Trigger Summary.........................................................................................................................................8
2.0 PowerSave ST Commands............................................................................................................................9
2.1 Command Summary....................................................................................................................................9
2.2 Command Descriptions ...............................................................................................................................9

2 of 13 www.ScanTool.net STN11XXPSB
STN11xx PowerSave

1.0 PowerSave Functionality


STN11xx features a sophisticated power manage- When the “master enable” bit of the 0E
ment system (PowerSave™) that can be used to put programmable parameter is set and PP 0E is on,
the device in low power mode. The primary purpose of STN11xx is in the ELM327 control mode.
PowerSave is to prevent the vehicle’s battery from In this mode, most PowerSave settings are
being drained when the device is left plugged in for overridden by the PP 0E. However, the following
extended periods of time (e.g., permanent in-vehicle settings that do not have a PP 0E equivalent can still
installations). be adjusted via their corresponding STSL commands:
The concept of a trigger is key to understanding
the operation of PowerSave. A trigger is an event or a • UART wakeup pulse timing (SLUWP)
condition that causes the device to either go to sleep, • External SLEEP input polarity (SLXP)
or wake up from sleep. “Go to sleep after 5 minutes of • Voltage based triggers (SLVL, SLVLS,
UART inactivity” and “wake up when vehicle system SLVLW, SLVG, SLVGW)
voltage goes above 12.8 volts” are examples of
triggers. Each trigger can be independently enabled or By default, instead of the fixed ELM327 minimum
disabled. UART Rx wakeup pulse requirement of 128 μs,
The following sections describe the PowerSave STN11xx pulse width is set to 0 (20 ns). This is done
functionality, while section 2.0 describes the to allow the user to wake up the device by sending
commands and parameters used to configure and characters, even at highest supported UART baud
control the power management system. You can use rate.
the STSLCS command to print a summary of the active In the ELM327 PowerSave control mode, STSLCS
PowerSave configuration settings. command will report the actual active configuration that
is set via the 0E programmable parameter.
STN11xx external SLEEP input functions as the
1.1 Control Modes ELM327 IgnMon input.
There are two control modes for the PowerSave
functionality: native and ELM327. Use bit 7 (“master
enable”) of the programmable parameter 0E (PP 0E) to 1.2 Sleep Triggers
switch between the modes. See the description of the Device can be put to sleep using one of the four
AT PP command for more information about PP 0E. sleep triggers:
By default, STN11xx is operating in the native
PowerSave control mode. • Sleep commands (STSLEEP and ATLP)
• UART inactivity (SLU)
• External SLEEP input (SLX)
1.1.1 Native PowerSave Mode • Voltage level (SLVL)
When the “master enable” bit of PP 0E is cleared,
or PP 0E is off, STN11xx is in the native PowerSave Multiple sleep triggers can be enabled at the same
control mode. time. The first trigger that gets activated will put the
In this mode, the rest of the 0E programmable device to sleep.
parameter bits are ignored and the PowerSave is By default, all sleep triggers are off.
controlled exclusively via STSL commands. In native
mode, the ATLP command is unavailable. Also, the Warning: before you enable a sleep trigger or issue
ELM327 “ACT ALERT” and “LP ALERT” messages are the STSLEEP command, make sure that the wakeup
not displayed. triggers are enabled and properly configured. The only
other means of bringing the device out of the sleep
state is to initiate a hardware reset, either via the
1.1.2 ELM327 Low Power Mode ¯¯¯¯¯ input, or by cycling the power.
RESET
Note: this mode had been implemented for
compatibility with software written for the ELM327. The
native PowerSave mode has a number of important 1.2.1 STSLEEP and ATLP commands
advantages over the ELM327 Low Power mode, The device will go to sleep when it receives the
including greater flexibility, more straightforward ATLP or STSLEEP command. The ATLP command is
configuration, and default settings that had been available only in the ELM327 Low Power Mode.
optimized for more reliable performance. The STSLEEP command has an optional delay
parameter. The purpose of the delay is to prevent the
device from going to sleep prematurely: some hosts
STN11XXPSB www.ScanTool.net 3 of 13
STN11xx PowerSave
randomly toggle the UART communication lines and See section 1.6 for device-specific implementation
can unintentionally wake up the device as they are details.
shutting down or entering the standby mode.

1.2.4 Voltage Level Sleep


1.2.2 UART Inactivity The STN11xx can also enter sleep mode based on
The STN11xx can be configured to go to sleep the voltage on the ANALOG_IN input. This trigger can
automatically after a period of UART inactivity. be configured in the variety of ways. The settings
UART inactivity sleep trigger is turned on/off specify voltage threshold, whether the trigger is active
using the STSLU command (it is off by default). Use above or below the threshold setting, and the amount
the STSLUIT command to set the UART inactivity of time the voltage must stay below or above the
sleep timeout. threshold for the device to enter sleep mode.
The voltage level sleep trigger can be used to put
Warning: STN11xx UART inactivity sleep trigger is the device into the low power mode when the engine
disabled while any command is executing. In other shuts down and the alternator stops generating power.
words, STN11xx must print the command prompt The delay is designed to prevent the device from
before it will act on a sleep trigger. Therefore, entering sleep when the system voltage dips below the
commands which require UART activity to terminate specified threshold due to momentary load changes.
their execution (e.g., ATMA, STMT, etc) will keep the The default settings should work for most vehicles with
device awake indefinitely. A continuous stream of 12 volt lead-acid batteries.
incoming messages may also prevent the device from Use the STSLCS command to verify that the trigger
going to sleep. This may occur, for example, if was properly configured. An exclamation point (‘!’) in
message filters are set up to accept bus traffic front of the voltage setting means that the trigger
intended for other nodes. setting is invalid, and the trigger will never activate.
Refer to section 1.4 “Voltage Trigger Considerations”
for more information.
1.2.3 External SLEEP Input
Note: In order for the voltage level sleep trigger to
Another automatic sleep trigger is the external
operate properly on STN1110 IC or the microOBD 200
SLEEP input. This trigger is off by default. When
module (STN1120), the voltage measurement must be
enabled (using the STSLX command), it allows the
calibrated using the ATCV or STVCAL commands. The
external circuitry to control the sleep state.
calibration is not necessary for the OBDLink scan
When STN11xx senses a logic low on the SLEEP
tools, since it is done at the factory.
pin, it immediately aborts any OBD reception in
progress, or monitoring command that is active at the
time, and prints the command prompt. It then monitors
the SLEEP input and enters the PowerSave mode if 1.3 Wakeup Triggers
the minimum low time (specified by the STSLXST There are four wakeup triggers:
command) is satisfied.
• UART Rx pulse (SLU)
Note: STN1110 and microOBD 200 (STN1120) • External SLEEP input (SLX)
allow the polarity of the external SLEEP input to be • Voltage level (SLVL)
inverted, via the STSLXP command. • Voltage change (SLVG)
The following are some of the possible uses of this After any wakeup trigger timing requirements are
trigger: satisfied, the STN11xx will wake up and perform an
ATWS reset. The wakeup takes several milliseconds,
• “Host present” detect – sleep/wakeup therefore the host must wait for the command prompt
when the host disconnects/connects or before issuing any commands.
starts up/shuts down (goes into standby) The STSLLT command can be used to determine
• Ignition key detect – sleep/wakeup which trigger caused the device to wake up.
depending on the ignition key position By default, UART Rx pulse and external SLEEP
• Direct sleep control via host input wakeup triggers are on, and voltage triggers are
microcontroller off.
The logic state of the SLEEP input state can be
polled using the STSLXS and ATIGN commands.

4 of 13 www.ScanTool.net STN11XXPSB
STN11xx PowerSave
1.3.1 UART Rx Pulse Wakeup amount of time the voltage must stay below or above
the threshold for the device to wake up.
STN11xx can be configured to wake up on an
The voltage level wakeup trigger can be used to
active pulse detected on the UART Rx input. The host
wake up the device when the engine starts up and the
can generate the pulse by holding the Rx line in a logic
alternator causes the system voltage to increase. The
low state, transmitting an RS232 “break” signal, or
default settings should work for most vehicles with
sending a character on UART whose bit pattern
lead-acid batteries.
produces a pulse of the required duration.
Use the STSLCS command to verify that the trigger
The wakeup pulse has minimum and maximum
was properly configured. An exclamation point (‘!’) in
timing requirements, which are set using the
front of the voltage setting means that the trigger
STSLUWP command, and are accurate to within
setting is invalid, and the trigger will never activate.
approximately 5 μs. By default, the minimum wakeup
Refer to section 1.4 “Voltage Trigger Considerations”
pulse width is set to 0, which translates to an absolute
for more information.
minimum pulse width requirement of 20 ns. It can be
increased to improve noise rejection; however,
Note: In order for the voltage level wakeup trigger
increasing the minimum pulse width will limit the
to operate properly on STN1110 IC or microOBD 200
maximum baud rate that the host must use to transmit
module (STN1120), the voltage measurement must be
the wake-up character. Due to the implementation
calibrated using the ATCV or STVCAL commands. The
limitations, setting the minimum wakeup pulse width to
calibration is not necessary for the OBDLink scan
any value below 15 μs will cause it to be rounded down
tools, since it is done at the factory.
to 0 (20 ns).
The purpose of the maximum wakeup pulse
width requirement is to avoid unintentional wakeups.
Some PC hosts (especially ones using the RS232 1.3.4 Voltage Change Wakeup
connection) cause the UART Rx line to go low or The STN11xx can be configured to wake up when
generate a slow (200 ms or longer) pulse as the host is the difference between two consecutive voltage
shutting down or entering standby. The default setting samples taken at the ANALOG_IN input exceeds a
is 30 ms, which allows the device to wake up on a predefined threshold. The settings specify polarity of
character transmitted over UART at baud rates as low the change (rising, falling, or either), the change in
as 300 baud. To disable the maximum pulse volts or ADC steps, and the time between the samples.
requirement and have STN11xx wake up on the high to The voltage level wakeup trigger can be used to
low UART Rx transition (instead of a pulse), set the wake up the device when the starter motor is cranking
maximum pulse timing setting to 0. the engine (battery voltage dips) or when the engine
starts up (voltage rises due to alternator running). This
wakeup trigger can be more reliable than the voltage
1.3.2 External SLEEP Input Wakeup level wakeup trigger, since it does not rely on a specific
voltage level which can vary between vehicles, but
STN11xx can be configured to wake up when it
instead detects voltage change, which happens every
senses logic high on the external SLEEP control input.
time engine starts no matter what the battery level or
The STXWT commands sets the minimum time the
the alternator voltage is.
SLEEP input must remain high in order to bring the
Use the STSLCS command to verify that the trigger
device out of the sleep state. The setting of 0 will result
was properly configured. An exclamation point (‘!’) in
in a minimum time requirement of 15 μs.
front of the voltage setting means that the trigger
setting is invalid, and the trigger will never activate.
Note: STN1110 and microOBD 200 (STN1120)
Refer to section 1.4 “Voltage Trigger Considerations”
allow the polarity of the external SLEEP input to be
for more information.
inverted, via the STSLXP command.
Note: If a non-default voltage scaling is used for the
Section 1.2.3 lists possible applications for the
STN1110 IC or the microOBD 200 module (STN1120),
external SLEEP input.
the voltage measurement must be calibrated using the
ATCV or STVCAL commands, for the voltage change
wakeup trigger to operate properly.
1.3.3 Voltage Level Wakeup
The STN11xx can also wake up based on the
voltage on the ANALOG_IN input. This trigger can be 1.4 Voltage Trigger Considerations
configured in a variety of ways. The settings specify
voltage threshold, whether the trigger is active above Analog voltage that STN11xx “sees” on the
or below the threshold setting, and the minimum ANALOG_IN pin is represented internally by a 12-bit
integer. The conversion is done by an internal Analog

STN11XXPSB www.ScanTool.net 5 of 13
STN11xx PowerSave
to Digital Converter (ADC for short). The voltage 14V, a trigger set at 15V will no longer be inside the
represented by a single bit is called an “ADC step”, and valid range.
is measured in volts per bit (V/bit). Additional examples of invalid settings are a voltage
Since the maximum voltage that can be directly level trigger specified as ‘below 0V’, and voltage
measured by the ANALOG_IN pin is very low (about change trigger parameter set to a value less than one
3V), the pin is normally connected to the voltage ADC step size.
source to be measured via an external voltage divider. Whenever a parameter value falls outside the valid
As its name implies, the voltage divider outputs a range, the STSLCS command will display a ‘!’ in front
voltage that is a fraction of the actual input voltage. For of the voltage setting to indicate that it is invalid, and
example, a 1:10 voltage divider would output 1.2V for the trigger will never activate.
an input voltage of 12V.
Parameters to the voltage based triggers can be
specified either in volts, or as raw ADC values. 1.5 External Power Control Output
When a parameter is specified in volts, STN11xx
internally converts it to a corresponding ADC value. The PWR_CTRL output can be used to put
The size of the ADC step depends on the ratio of the external circuitry into a low power mode. This pin
voltage divider. By default, it is calibrated for a voltage outputs a logic “high” while the device is awake, and a
divider with a ratio of 1:7.2. Keeping in mind that the “low” when STN11xx enters sleep mode.
maximum voltage on the ANALOG_IN pin is STN1110 stand-alone IC allows the polarity of the
approximately equal to VDD (typically, 3.3V), the PWR_CTRL to be changed via the STSLPCP
maximum voltage that can be measured by the ADC command or bit 6 of the 0E programmable parameter
using default calibration is about 24V: (ELM327 LP mode only). The polarity is fixed for all
other STN11xx ICs.
3.3V ÷ 7.2 = 23.76V

To use voltage triggers with a voltage divider that 1.6 Device Specific Details
has a different ratio, and to account for parts
This section describes device-specific PowerSave
tolerances, the device must be calibrated using the
implementation details for the different STN11xx-based
ATCV or STVCAL commands.
ScanTool.net devices.
When a parameter is specified as a raw ADC value,
calibration must be done in the host software. To get
the size of the ADC step, divide the actual measured
voltage by the ADC value reported by the STVRX 1.6.1 OBDLink Hardware Rev 1.x
command. For example, if the actual measured voltage OBDLink devices with hardware revision 1.x have
is 12V, and the STVRX command returns 0x7FF, the the following limitations:
size of the ADC step is: • In sleep mode, current consumption is about
37 mA (54 mA if the USB cable is plugged in
12V ÷ 0x7FF = 0.00586V/bit and the virtual COM port is closed).
• External SLEEP control input is not enabled
To convert voltage to ADC steps, divide it by the (ATIGN always returns “ON”, and STSLXS
ADC step size. For example, using the values above, always returns “WAKE”).
8V is equal to 0x554 steps: • The “STATUS” LED is not controlled by the
STN1100, and remains on during sleep.
8V ÷ 0.00586 = 0x554

Using ADC values instead of volts eliminates the


1.6.2 OBDLink Hardware Rev 2.0 – 2.4
need to convert ASCII to floating point and vice versa,
greatly reducing the load on the host processor. On OBDLink devices with hardware revisions 2.0-
When setting up the voltage triggers, take special 2.4, the SLEEP input detects voltage on the USB
care to make sure that the parameters fall within a connector.
valid range of values. For example, the maximum When enabled, the SLEEP input trigger can put the
voltage that can be represented by an ADC using device to sleep when the chip detects that the host is
default calibration is about 24V. If a parameter is set to no longer present. This can happen when the PC shuts
a higher value – say, 25V – it falls outside the valid down or hibernates, or when the user unplugs the USB
range of values. cable.
A calibration change may put a previously valid Likewise, the SLEEP input can be configured to
value outside of the valid range. For example, if the wake up the device when the chip detects an active
calibration reduces the maximum voltage from 24V to host.

6 of 13 www.ScanTool.net STN11XXPSB
STN11xx PowerSave
The STN1100 turns off the “STATUS” LED during Likewise, the SLEEP input can be configured to
sleep. wake up the device when the chip detects an active
host.
Note 1: In sleep mode about 15 mA of current will The STN1101 turns off the “STATUS” LED during
be drawn from the USB socket if the host is active. To sleep.
maximize power savings, USB must be unplugged or
the host must be shut down or put into standby mode. Note 1: Some non-compliant USB to RS232
Note 2: Wireless add-on modules (Bluetooth, WiFi) converters do not generate valid RS232 voltage levels.
are unpowered in sleep mode. Therefore, it is not The SLEEP input sleep/wakeup triggers should not be
possible to wake up the device over a wireless link; used with such converters. Use the UART Rx pulse
use one of the voltage-based wakeup triggers instead. wakeup trigger (see section 1.3.1) instead. A lower
than normal baud rate may be necessary to wake up
reliably, due to the wakeup requirements of the RS232
1.6.3 OBDLink Hardware Rev 2.5 and transceiver IC.
Note 2: In sleep mode, the RS232 transceiver
Above
remains active if there is a valid voltage on the RS232
OBDLink devices with hardware revision 2.5 and Rx pin. The transmitter can draw up to several mA of
above operate identically to the devices with hardware current, depending on the resistance of the load on the
revisions 2.0 – 2.4 with one exception: SLEEP input in RS232 Tx line. For maximum power savings, disable
revisions 2.0 – 2.4 only detects unplugged USB cable the RS232 transceiver on the host side, shut down the
and host shut down or in hibernate mode. Hardware host, or unplug the serial cable.
revision 2.5 and above devices will also detect when
the host PC is in standby or sleep mode.

Note: Wireless add-on modules (Bluetooth, WiFi)


1.6.5 microOBD 200
are unpowered in sleep mode. Therefore, it is not microOBD 200 has all of the STN1120 PowerSave
possible to wake up the device over a wireless link; I/O exposed for user implementation.
use one of the voltage-based wakeup triggers instead. PWR_CTRL output has its polarity fixed to be active
¯¯¯¯¯¯
low (sleep = low). It is connected to the LP_OUT
module pin.
1.6.4 OBDLink S In order for the voltage-based sleep/wakeup
triggers to operate properly, voltage measurement
In OBDLink S devices, the SLEEP control input is must be calibrated using the ATCV or STVCAL
implemented as “host present”. It is wired to sense commands.
whether a valid RS232 voltage is present on the
RS232 Rx pin (pin 3 of the OBDLink S RS232 DB9
connector).
When enabled, the SLEEP input trigger can put the 1.6.6 STN1110
device to sleep when the chip detects that the host is In order for the voltage-based sleep/wakeup
no longer present. This can happen when the PC shuts triggers to operate properly, voltage measurement
down, enters standby, or when the user unplugs the must be calibrated using the ATCV or STVCAL
serial cable. commands.

STN11XXPSB www.ScanTool.net 7 of 13
STN11xx PowerSave

1.7 Trigger Summary

Sleep Triggers
Trigger Default state
ATLP User initiated. This trigger is available only in ELM327 Low Power mode
STSLEEP User initiated, always available
UART inactivity Off
External SLEEP input Off
Voltage level Off
Wakeup Triggers
Trigger Default state
UART Rx pulse On
External SLEEP input On
Voltage level Off
Voltage change Off

8 of 13 www.ScanTool.net STN11XXPSB
STN11xx PowerSave

2.0 PowerSave ST Commands


The following sections describe the PowerSave ST commands. For brevity, the “ST” prefix is dropped in the
command summary, and throughout the text. However, the STN11xx only accepts the full command, including the
ST prefix. For example, the SLCS command must be entered as STSLCS.

2.1 Command Summary


Command Description
SLCS Print active PowerSave configuration summary
SLEEP [delay] Enter sleep mode with optional delay
SLLT Report last sleep/wakeup triggers
SLPCP 0|1 Set PWR_CTRL output polarity
SLU sleep, wakeup UART sleep/wakeup triggers on/off
SLUIT sec Set UART inactivity timeout
SLUWP min, max Set UART wakeup pulse timing
SLVG on|off Voltage change wakeup trigger on/off
SLVGW [+|-]volts, ms Set configuration of the voltage change wakeup trigger
SLVL sleep, wakeup Voltage level sleep/wakeup triggers on/off
SLVLS <|> volts|0xhhh, sec Set configuration of the voltage level sleep trigger
SLVLW <|> volts|0xhhh, sec Set configuration of the voltage level wakeup trigger
SLX sleep, wakeup External sleep trigger on/off
SLXP 0|1 Set polarity of the external sleep control input
SLXS Print external SLEEP input status
SLXST ms Set minimum active time for external sleep trigger before entering sleep
SLXWT ms Set minimum inactive time for external sleep trigger before wakeup

2.2 Command Descriptions


SLCS
Print active PowerSave configuration summary. See Table 1 for the detailed line-by-line description
This command prints only the currently active of the configuration summary. The “Sec.” column of
configuration. Therefore, to see the native Table 1 contains a reference to the relevant section of
configuration settings, ELM327 control mode must be this document.
turned off by clearing the “master enable” bit of PP 0E
or turning off the PP 0E parameter. The device must Example: CTRL MODE:  NATIVE 
be reset for any PowerSave configuration changes to   PWR_CTRL:   LOW PWR = LOW 
take effect.   UART SLEEP: OFF, 1200 s 
The configuration is printed in the following format:   UART WAKE:  ON,  0‐30000 us 
  EXT INPUT:  LOW = SLEEP 
  EXT SLEEP:  OFF, LOW FOR 3000 ms 
CTRL MODE: <NATIVE/ELM327>
  EXT WAKE:   ON,  HIGH FOR 2000 ms 
PWR_CTRL: LOW PWR = <LOW/HIGH>
  VL SLEEP:   OFF, <13.00V FOR 600 s 
UART SLEEP: <ON/OFF>, <timeout> s
  VL WAKE:    OFF, >13.20V FOR 1 s 
UART WAKE: <ON/OFF>, <pulse min>-<pulse max> us
  VCHG WAKE:  OFF, 0.20V IN 1000 ms 
EXT INPUT: <LOW/HIGH> = SLEEP
or
EXT SLEEP: <ON/OFF>, <LOW/HIGH> FOR <time> ms VL SLEEP:   OFF, <0x8C1 FOR 600 s 
EXT WAKE: <ON/OFF>, <LOW/HIGH> FOR <time> ms   VL WAKE:    OFF, >0x8E3 FOR 1 s 
VL SLEEP: <ON/OFF>, <</>>[!]<level> FOR <time> s   VCHG WAKE:  OFF, 0x022 IN 1000 ms 
VL WAKE: <ON/OFF>, <</>>[!]<level> FOR <time> s
VCHG WAKE: <ON/OFF>, [+/-][!]<change> IN <time> ms
STN11XXPSB www.ScanTool.net 9 of 13
STN11xx PowerSave
Table 1 – PowerSave Configuration Summary Detail

Configuration Summary Line Sec. Description


CTRL MODE: <NATIVE/ELM327> 1.1 PowerSave control mode. Reports whether
PowerSave module is operating in a native
PowerSave control mode, where all settings are
configured via the ST commands, or an ELM327 Low
Power compatibility mode, where some settings are
overridden via the ELM327 programmable parameter
0E.
PWR_CTRL: LOW PWR = <LOW/HIGH> 1.5 PWR_CTRL output pin polarity. Specifies whether
the pin outputs a logic LOW or HIGH in low power
mode.
UART SLEEP: <ON/OFF>, <timeout> s 1.2.2 UART inactivity sleep trigger:
<ON/OFF> trigger on/off
<timeout> inactivity timeout setting in
milliseconds
UART WAKE: <ON/OFF>, <pulse min>-<pulse max> us 1.3.1 UART Rx pulse wakeup trigger:
<ON/OFF> trigger on/off
<pulse min> minimum UART Rx pulse width
in microseconds
<pulse max> maximum UART Rx pulse width
in microseconds (0 = no
maximum)
EXT INPUT: <LOW/HIGH> = SLEEP 1.2.3 SLEEP input polarity. Specifies whether it takes a
LOW or a HIGH on the SLEEP pin to put the device
to sleep.
EXT SLEEP: <ON/OFF>, <LOW/HIGH> FOR <time> ms 1.2.3 External SLEEP input sleep trigger:
<ON/OFF> trigger on/off
<LOW/HIGH> specifies the active logic level
<time> specifies how long the SLEEP
input must be held in the active
(“sleep”) state to put the device
to sleep.
EXT WAKE: <ON/OFF>, <LOW/HIGH> FOR <time> ms 1.3.2 External SLEEP input wakeup trigger:
<ON/OFF> trigger on/off
<LOW/HIGH> specifies the active logic level
<time> specifies how long the SLEEP
input must be held in the
inactive (“wake”) state to wake
the device from sleep.
VL SLEEP: <ON/OFF>, <</>>[!]<level> FOR <time> s 1.2.4 Voltage level sleep trigger:
<ON/OFF> trigger on/off
<</>> specifies whether the trigger
region is below (<) or above (>)
the <level> threshold setting
[!] this designator indicates that the
trigger voltage setting is invalid,
i.e. cannot be achieved with the
current voltage calibration

© 2009 ScanTool.net, LLC www.ScanTool.net STN11XXDSB


STN11xx PowerSave

<level> voltage threshold in volts


([d]d.ddV) or raw ADC steps
(0xhhh)
<time> number of consecutive seconds
the voltage must remain above
or below the threshold value for
the trigger to activate
VL WAKE: <ON/OFF>, <</>>[!]<level> FOR <time> s 1.3.3 Voltage level wakeup trigger. Same format as the
voltage level sleep trigger.
VCHG WAKE: <ON/OFF>, [+/-][!]<change> IN <time> ms 1.3.4 Voltage change wakeup trigger:
<ON/OFF> trigger on/off
[+/-] specifies whether the trigger
detects only rising voltage (+),
only falling voltage (-), or a
voltage change in any direction
(no sign)
[!] this designator indicates that the
voltage change setting is invalid,
i.e. cannot be achieved with the
current voltage calibration
<change> voltage change in volts
([d]d.ddV) or raw ADC steps
(0xhhh)
<time> number of milliseconds between
voltage samples

SLEEP [delay] Wakeup trigger can be one of the following:


Enter sleep mode. Takes optional delay parameter
in seconds. When the delay is specified, the command Trigger Description
prints “OK”, and returns to the command prompt. The Device did not wake up from sleep
sleep mode will be entered after the specified delay NONE
since last reset
time. When the parameter is empty or 0 seconds delay UART UART Rx pulse
is specified, the command will print “OK<CR>” and
immediately put the device to sleep. EXT External sleep control input
VL Voltage level
VCHG Voltage change
SLLT
Report last sleep/wakeup triggers, in this format: Example: SLEEP: CMD 
  WAKE:  UART 
SLEEP: <sleep trigger>
WAKE: <wakeup trigger>
SLPCP 0|1
Sleep trigger can be one of the following: Set polarity of the PWR_CTRL output.

Trigger Description 0: Normal power = HIGH, Low power mode = LOW


Device did not enter sleep mode 1: Normal power = LOW, Low power mode = HIGH
NONE
since last reset
The default setting is 0.
CMD STSLEEP or ATLP command
UART UART inactivity timeout Note: This command is available only for STN1110
EXT External sleep control input stand-alone IC.
VL Voltage level

STN11XXPSB www.ScanTool.net 11 of 13
STN11xx PowerSave
SLU sleep, wakeup SLVLS <|> volts|0xhhh, sec
UART sleep/wakeup triggers on/off. Each of the two Configure voltage level sleep trigger. The “<” or “>”
parameters can be independently configured as “on” or character specifies whether the trigger region is above
“off”. The first parameter specifies sleep trigger (UART or below the threshold voltage: “<” = below, “>” =
inactivity timeout) setting, and the second one specifies above. The threshold voltage can be specified in volts
wakeup trigger (low pulse on UART Rx input) setting. with the maximum precision of two decimal places. It
The defaults are sleep = off, wakeup = on. can also be specified in raw ADC steps by prefixing the
value with ‘0x’. The sec parameter specifies how long
Example: STSLU off, on  the voltage must remain above or below the threshold
before the device will enter sleep mode. The default is
<13.00, 600 (below 13V for 600 seconds).
SLUIT sec
Set UART inactivity timeout. The parameter is Examples: STSLVLS <12.85, 60 
specified in seconds (decimal). The default is 1200 STSLVLS >0x8ab, 0 
(20 minutes).

SLVLW <|> volts|0xhhh, sec


SLUWP min, max Configure voltage level sleep trigger. The “<” or “>”
Set UART wakeup pulse timing. The parameters character specifies whether the trigger region is above
are specified in microseconds. The defaults are min = or below the threshold voltage: “<” = below, “>” =
0, max = 30000 (30 milliseconds). above. The threshold voltage can be specified in volts
with the maximum precision of two decimal places. It
can also be specified in raw ADC steps by prefixing the
SLVG on|off value with ‘0x’. The sec parameter specifies how long
the voltage must remain above or below the threshold
Voltage change wakeup trigger on/off. The default before the device will wake up from sleep. The default
is off. is >13.20, 1 (above 13.2V for 1 second).

Examples: STSLVLW >13.15, 0 
SLVGW [+|-]volts, ms STSLVLW <0x8cd, 5 
Configure voltage change wakeup trigger. The first
parameter specifies voltage difference between two
samples. The optional ‘+’ or ‘-’ sign, preceding the SLX sleep, wakeup
voltage, specifies whether the trigger detects only Enable or disable sleep/wakeup triggers associated
rising voltage (+), only falling voltage (-), or a voltage with the external sleep control input (SLEEP pin). Each
change in any direction (no sign). The second of the two parameters can be specified as “on” or “off”.
parameter specifies the time between the samples in The defaults are sleep = off, wakeup = on.
milliseconds. The value specified will be rounded to the
nearest multiple of 250 ms, with any value below 250
being rounded up to the minimum setting of 250 ms.
SLXP 0|1
The default setting is 0.2, 1000 (voltage changing by
0.2V in any direction, with one second between the Configure polarity of the SLEEP input.
samples).
0: LOW = sleep, HIGH = wake up
Example: STSLVGW +0.15, 750  1: LOW = wake up, HIGH = sleep

The default setting is 0.


SLVL sleep, wakeup
Note: This command is available only for STN1110
Turn voltage level sleep/wakeup triggers on/off. stand-alone IC and microOBD 200 (STN1120).
Each of the two parameters can be specified as “on” or
“off”. The first parameter specifies the sleep trigger
setting, and the second parameter specifies the SLXS
wakeup trigger setting. The defaults are sleep = off,
wakeup = off. Print the status of the external SLEEP input.
Responds with “WAKE” or “SLEEP”.

12 of 13 www.ScanTool.net STN11XXPSB
STN11xx PowerSave
SLXST ms SLXWT ms
Specifies how long the SLEEP input must be held in Specifies how long the SLEEP input must be held in
the active (“sleep”) state to put the device to sleep. The the inactive (“wake”) state to wake the device from
ms parameter is the minimum time in milliseconds. The sleep. The ms parameter is the minimum time in
default is 3000 (3 seconds). milliseconds. The default is 2000 (2 seconds).

STN11XXPSB www.ScanTool.net 13 of 13

You might also like