Documentation
¶
Overview ¶
Package scantool drives ScanTool.net STN11xx/STN21xx based adapters (OBDLink SX/EX, generic STN1170/STN2120 boards) over their virtual COM port. Importing the package registers the "OBDLink SX", "OBDLink EX", "STN1170" and "STN2120" adapters.
The device is a command/response ELM-compatible interpreter: frames are transmitted with STPX (hex header/data, optional t: timeout and r: reply count) and any reply frames come back as response lines terminated by the '>' prompt — there is no free-running monitor. Send therefore performs the whole exchange synchronously and delivers reply frames to the bus before returning; the reply-count hint is taken from gocan.ExpectedResponses and the timeout from the context deadline.
Open hunts for the adapter across the known baud rates and switches it to 2 Mbit with STBR before running the init sequence (echo/spaces off, STP protocol + bit-rate, headers on, flow control off, ATCF/ATCM filter).
Index ¶
Constants ¶
const ( OBDLinkSX = "OBDLink SX" OBDLinkEX = "OBDLink EX" STN1170 = "STN1170" STN2120 = "STN2120" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scantool ¶
type Scantool struct {
// contains filtered or unexported fields
}