Command ‘w’ – get wi-fi settings, Command ‘e’ – enter an expert mode – Innovate Motorsports OT-2 SDK User Manual

Page 30

Advertising
background image

30

Command ‘w’ – Get Wi-Fi Settings

Sent:

1 byte
{

U8 Cmd;

// ‘w’

}


Responds:

16 bytes
{

U8 HWAddr[6];

// MAC Address

U32 IPAddr;

// IP Address (in NETWORK ORDER!)

U32 IPMask;

// IP Mask (in NETWORK ORDER!)

}


Notes:

On an OT-1B, this will return all zeros.

Command ‘e’ – Enter an Expert Mode

Sent:

2 bytes
{

U8 Cmd;

// ‘e’

U8 Mode;

// 1 = can

// 2 = j1850

// 3 = iso

// 4 = iso raw

}


Responds:

1 byte
{

U8 Result;

// Should match ‘Mode’ requested

}


Notes:

Expert Modes are ‘sub modes’ to Setup Mode. Because they
allow you to perform very low level OBD-II operations, you
have to pick the mode that matches your desired electrical
protocol. You would use 1 for all can modes (std, ext.), 2
for j1850 (pwm or vpw), and 3 for K line based standards
(iso 9141 or kwp2000). Mode 4 is for vendor specific K line
based protocols (ex. MUT, SSM, etc.) One important note is
that this command can, potentially, take a LONG time to
respond. See the section on Expert Mode for more details.

Advertising