Page 1
STN1100 Family Reference and Programming Manual PRELIMINARY: DO NOT DISTRIBUTE Information contained in this manual is incomplete and subject to change. Use at your own risk. FRPM Update Available This is a retired version of the FRPM. To learn about the latest commands and features, see the current FRPM version.
ST Command Summary ..........................20 General ST Commands ..........................23 Device ID Commands ..........................24 Voltage Reading ST Commands ....................... 25 OBD Protocol ST Commands ........................25 ISO Specific ST Commands ........................27 CAN Specific ST Commands ........................27 Monitoring ST Commands ......................... 27 Filtering ST Commands ..........................
Page 3
Reference and Programming Manual Appendix A: Revision History ..........................53 Appendix B: Contact Information ........................... 55 STN1100FRPMB www.obdsol.com 3 of 55...
OBDLink MX Bluetooth, version 2.0 STN1153 OBDLink MX WiFi OBD to Bluetooth Adapter STN1155 OBDLink LX Bluetooth OBD to Bluetooth adapter STN1170 STN1170 OBD to UART interpreter IC with support for MS CAN and SW CAN 4 of 55 www.obdsol.com STN1100FRPMB...
UART baud rates from 38 bps to 10 Mbps • Safe, secure bootloader for easy firmware updates • Support for all legislated OBD-II protocols: ISO 15765 (CAN) ISO 14230 (Keyword Protocol 2000, KWP2K) ISO 9141 (Asian, European, Chrysler vehicles) SAE J1850 VPW (GM vehicles)
The baud rate can be changed in software (see OBD requests are messages that are transmitted STSBR). on the OBD bus. Only ASCII hexadecimal digits (0-9 Once powered and connected, the STN11xx will and A-F) are allowed in OBD requests.
Reference and Programming Manual 7.0 AT Commands AT commands cause the STN11xx to carry out and with few exceptions, the AT commands work some action (e.g., print device description or reboot) or exactly as they would on the ELM327. change the default settings (turn echo off, change Section 7.1 is a summary of all available AT message header bytes, etc).
Page 8
Set protocol and save it deprecated ATSR hh Set receive address to hh deprecated ATSS Use standard OBD protocol search order (J1978) deprecated ATST hh Set timeout to hh x 4 ms deprecated ATTA hh Set tester address to hh...
Page 9
Reference and Programming Manual Command Description Status ATIB 10|48|96 Set ISO baud rate to 10400*/4800/9600 deprecated ATIIA hh Set the ISO (slow) init address supported ATKW Display ISO key word supported ATKW 1|0 Key word checking on*/off supported ATSI Perform a 5-baud bus initialization supported ATSW hh Set wakeup interval to hh x 20 ms...
ATAL Allow long messages. SAE J1979 limits the ATBD number of data bytes in an OBD message to seven, Buffer dump. This command is used by the and by default, STN11xx enforces this limit. ELM327 for debugging purposes, and is supported The ATAL command removes the limit, allowing for backwards compatibility only.
Page 11
Some CAN systems use the first data byte as a target address. STN11xx uses the parameter passed to ATCEA as the first data byte for all OBD requests. >ATCRA 18 DA F1 10 It also adds a filter to only pass responses whose extended address (e.g., the first data byte) matches...
Page 12
On STN11xx, this command is a no-op: it returns ‘OK’ for backwards compatibility, ATDP but has no effect on the device behavior. Display current OBD protocol. This command is supported for backwards compatibility only. Use ATFI STPRS instead.
Page 13
(ATH0) and STN11xx will print only (‘right-to-left’) format for PGN requests. the data bytes of an OBD message. Turn headers on The SAE J1939 standard specifies that PGN (ATH1) to display the headers, check byte, and CAN requests must be transmitted using the little-endian PCI byte.
Page 14
– without acknowledging or printing any ATNL responses. Enforce normal message length. SAE J1979 limits the number of data bytes in an OBD message to ATRA hh seven, and by default, STN11xx enforces this limit. Set the Receive Address to hh. This command is Use the ATAL command to allow STN11xx to send supported for backwards compatibility only.
Page 15
ATS 1|0 will be automatically set to the message length. So Turn printing of spaces in OBD responses on or for example, if you send 10 data bytes, the first data off. By default, spaces are on (ATS1) and STN11xx byte will be set to 0x0A.
Page 16
STN1100 Family ATTA hh Differences from ELM327: maximum size of the message can exceed 6 bytes, and is limited Set tester address to hh. This command changes only by available RAM. the source address used for transmitted messages (including periodic wake-up messages). If Auto Receive (see ATAR) mode is on, this command ATWS updates the receive filter to accept messages...
(102 ms) setting = value × 4.096 ms Adaptive timing mode (ATAT default setting) 00 to 02 OBD source (tester) address. Not used for J1939 protocols. 00 to FF Last protocol to try during automatic searches 01 to 0C Character echo (ATE default setting)
Page 18
STN1100 Family Description Values Default Type Default UART baud rate 02, 04, (115.2 setting = 4,000,000 ÷ value 06 to FF kbps) Carriage return character 00 to FF ELM327 Low Power mode control. See Section 14.1.2 for more 00 to FF (01011010) details.
Page 19
Reference and Programming Manual Description Values Default Type CAN auto formatting (ATCAF default setting) 00 = ON (ON) FF = OFF CAN auto flow control (ATCFC default setting) 00 = ON (ON) FF = OFF CAN filler byte (used to pad out messages) 00 to FF Printing of CAN data length (DLC) when printing header bytes 00 = ON...
STVCAL [volts [, offset]] Calibrate voltage measurement STVR [precision] Read voltage in volts STVRX Read voltage in ADC steps Table 14 – OBD Protocol ST Commands Command Description Set current protocol STPBR baud Set current OBD protocol baud rate STPBRR...
Page 21
Set CAN monitoring mode STCSWM mode Set Single Wire CAN transceiver mode Table 17 – Monitoring ST Commands Command Description Monitor OBD bus using current filters STMA Monitor all messages on OBD bus Table 18 – Filtering ST Commands Command Description...
Page 22
Clear all CAN flow control filters STFFCC STFCPG Clear all SAE J1939 PGN filters STFPGC STIBR Set ISO baud rate STPBR STIMCS Turn ISO manual checksum off/on STPCB STPRBR Report actual OBD protocol baud rate STPBRR 22 of 55 www.obdsol.com STN1100FRPMB...
Reference and Programming Manual 8.2 General ST Commands STBR baud Host sends STBR Switch UART baud rate in software-friendly way. <baud_rate> The STBR command operates identically to ATBRD command, with the following exceptions: • Baud rate is specified as a decimal number in baud •...
Returns ‘?’ if any of the calibration values have not (NVM) to the factory defaults. This includes all been set, or if the STSAVCAL has already been used programmable parameters, saved OBD protocol, to successfully save the calibration values. UART baud rate, voltage calibration, ATI device ID...
CAN channels (accessible one at a time): High Speed CAN. CAN, Medium Speed CAN, and Single Wire CAN. High Speed CAN (HS-CAN) is a dual-wire CAN transceiver connected to OBD port pins 6 and 14. Most SAE J1850 newer (2008+)
Page 26
CRC is always on. Additionally, when checksum is off Single Wire CAN for ISO 14230 (KWP2000) protocols, minimum allowed OBD request length is increased to 2 bytes (one data Protocol byte and checksum). ISO 11898, 11-bit Tx, 33.3kbps, var DLC ISO 11898, 29-bit Tx, 33.3kbps, var DLC...
– no CAN ACKs. 8.8 Monitoring ST Commands STMA Monitor OBD bus using current filters. Monitor all messages on OBD bus. For CAN protocols, all messages will be treated as ISO 15765. To monitor raw CAN messages, use the STM command.
STN1100 Family 8.9 Filtering ST Commands STN11xx devices feature a sophisticated filtering OUT OF MEMORY error. If this occurs, OBD requests system that can be precisely fine-tuned to isolate only may also start generating OUT OF MEMORY errors the messages of interest, reducing the load on the host...
Page 29
Reference and Programming Manual a. TP.CM frames (PGN: 60416, $00EC00) a. TP.CM frames (PGN: 60416, i. TP.CM_BAM messages $00EC00) b. TP.DT frames (PGN: 60160, $00EB00) i. TP.CM_BAM messages If the specified PGN is of the PDU1 type, and the b. TP.DT frames (PGN: 60160,...
STN1100 Family 8.10 PowerSave Commands VCHG WAKE: <ON/OFF>, [+/-][!]<change> IN <time> ms detailed description STN11xx PowerSave functionality, see Section 14.0. Table detailed line-by-line description of the configuration summary. The “Sec.” STSLCS column of Table 21 contains a reference to the relevant Print active PowerSave configuration summary.
Page 31
Reference and Programming Manual Configuration Summary Line Sec. Description EXT SLEEP: <ON/OFF>, <LOW/HIGH> FOR <time> ms 14.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.
Page 32
STN1100 Family STSLEEP [delay] wakeup trigger (low pulse on UART Rx input) setting. The defaults are sleep = off, wakeup = on. Enter sleep mode. Takes optional delay parameter in seconds. When the delay is specified, the command Example: STSLU off, on prints “OK”, and returns to the command prompt.
Page 33
Reference and Programming Manual STSLVLS <12.85, 60 Examples: STSLVLS >0x8ab, 0 0: LOW = sleep, HIGH = wake up 1: LOW = wake up, HIGH = sleep STSLVLW <|> volts|0xhhh, sec The default setting is 0. Configure voltage level sleep trigger. The “<” or “>” character specifies whether the trigger region is above Note: This command is available only for STN1110 or below the threshold voltage: “<”...
Page 34
STN1100 Family Example: STGPOW 2:0, 4:1, 31:0 34 of 55 www.obdsol.com STN1100FRPMB...
BUFFER FULL transmitting in parallel, or when the ATST The IC ran out of memory to store incoming OBD timeout is too short, causing STN11xx to messages. This error is not very common with the “step”...
Page 36
STN1100 Family STOPPED UNABLE TO CONNECT A character received on UART interrupted the STN11xx was unable to detect the OBD protocol. execution of an OBD command. Possible explanations include: • The current version of firmware ignores linefeed Vehicle is not OBD-II compliant •...
5) do not use flow control filters (refer to Figure 2). message goes through both the pass and block filters, When a message comes from the OBD bus, it is it is transmitted on the UART. compared to the pass filters. If the message does not In automatic filtering mode, pass filters are match one of the filters, it is discarded.
STN1100 Family ATMR and ATMT commands behave the same receive address provided as the parameter to ATSR. way, except that instead of setting a “pass all” filter, In order to directly manipulate the filters, use the they set up a filter to accept messages based on the filtering ST commands described in Section 8.8 address of the receive (or transmit) node passed as “Filtering ST Commands”.
Page 39
Reference and Programming Manual with CAN protocols (see ATSP, protocols 6 through C). or by switching from 11-bit to 29-bit CAN IDs, the flow When a CAN frame comes in from the network, it control filter gets updated. must first go through the CAN hardware filter. If there is Automatic filtering mode is switched off when the no match, the frame is discarded.
STN1100 Family 12.0 ISO 15765 Message Reception For most users, CAN message reception works “out when the incoming CAN frame is identified as an of the box”, as configured by default. However, for ISO 15765 CAN frame. those users who wish to take full advantage of the If the RTR bit is set, the frame is determined to be a STN11xx’s CAN architecture, it is important to remote frame.
Page 41
Reference and Programming Manual of frame it is (single, first, consecutive, or flow control). If the frame is not a valid ISO 15765-2 first frame, or Tx ID Rx ID if flow control is off, it is passed to the block filters. If the frame is a valid ISO 15765-2 first frame, and flow control is on, what happens next is determined by the ID type.
STN1100 Family 13.0 SAE J1939 The SAE J1939 protocol is a subset of CAN (i.e., no custom filters are defined), the STN11xx will designed for heavy-duty vehicles such as trucks, add a temporary filter, which will be deleted after the buses, and earth-moving equipment.
Page 43
Reference and Programming Manual CAN Frame from Network PGN Filter CAN HW Filter no match Count > 0 set via ATCF/ATCM match SAE J1939 Frame ID Type = 29 bit Flow Control Filters match added using STFFCA autoupdated by STFPGA no match Process ACK PGN = ACK...
Page 44
STN1100 Family Begin PGN Filters no match added using STFPGA match discard Figure 6 - Process ACK Frame Begin PGN Filters no match added using STFPGA match discard Create/update Flow Control On? Frame is TP.CM_RTS RTS/CTS set via ATCFC TP session Create/update Send TP.CM_CTS Frame is TP.CM_BAM...
Page 45
Reference and Programming Manual Begin TP Session for this TP.DT frame Exists? discard PacketsReceived = Flow Control On? TotalPackets set via ATCFC Send TP Session is BAM TP.CM_EndOfMsgACK transfer? Frame Remove TP session PacketsReceived Flow Control On? is multiple of set via ATCFC PacketsPerCTS Send TP.CM_CTS Frame...
STN1100 Family 14.0 PowerSave Functionality STN11xx features a sophisticated power manage- When “master enable” 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.
STVCAL commands. The calibration is not necessary When STN11xx senses a logic low on the SLEEP for the OBDLink scan tools, since it is done at the pin, it immediately aborts any OBD reception in factory. progress, or monitoring command that is active at the time, and prints the command prompt.
STN1100 Family 14.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.
OBDLink devices with hardware revision 1.x do not command. For example, if the actual measured voltage have a means to power down the OBD drivers and is 12V, and the STVRX command returns 0x7FF, the other peripherals. As a result, they have the following...
STN1100 Family Likewise, the SLEEP input can be configured to reliably, due to the wakeup requirements of the RS232 wake up the device when the chip detects an active transceiver IC. host. Note 2: In sleep mode, the RS232 transceiver The STN1100 turns off the “STATUS”...
Reference and Programming Manual commands. Alternatively, use ADC counts to set up the voltage-based sleep/wakeup triggers. 14.7 Sleep/Wakeup 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 External SLEEP input Voltage level...
Page 52
STN1100 Family 52 of 55 www.obdsol.com STN1100FRPMB...
Updated and expanded Section 9.0, “Error Messages” • Updated and expanded Section 11.0, “OBD Message Filtering” Updated the flowchart in Section 11.1, “Non-CAN Protocols” with new command names Updated Section 11.2, “CAN Protocols” with references to the SAE J1939 protocol •...
Page 54
STN1100 Family Added Section 14.6.8, “OBDLink MX Bluetooth” Added Section 14.6.9, “microOBD 200” Added Section 14.6.10, “STN1110 and STN1170” Added Section 14.7, “Sleep/Wakeup Trigger Summary” Revision A (October 28, 2009) Initial release of this document. 54 of 55 www.obdsol.com STN1100FRPMB...
Reference and Programming Manual Appendix B: Contact Information OBD Solutions 1819 W Rose Garden Ln Ste 3 Phoenix, AZ 85027 United States Phone: +1 623.434.5506 Fax: +1 623.321.1628 Email: sales@obdsol.com Web: www.obdsol.com STN1100FRPMB www.obdsol.com 55 of 55...
Need help?
Do you have a question about the STN1110 and is the answer not in the manual?
Questions and answers