× You're looking at the old version of the wiki! As of January 2020, all pages have been migrated to the new site at: http://wiki.speeduino.com

Changes

Jump to: navigation, search

Secondary Serial IO interface

1,568 bytes added, 3 years ago
no edit summary
* '''Enable Secondary IO interface''' - To enable use of the Secondary io interface it must be enabled in TunerStudio.
Dependant on if CAN_COMMANDS have been enabled will vary the type of dropdown menu you will see [[File:Ts_serial3secondary_serial_dropdown.jpg|center|200px|frame|With CAN_COMMANDS disabled]][[File:second_serial_dropdown_canon.jpg|center|200px|thumb|With CAN_COMMANDS enabled]] * '''Secondary IO options''' - Again dependant on if CAN_COMMANDS have been enabled will vary what options you have to enable Secondary serial. [[File:second_serial_option_nocan.jpg|center|400px|thumb|With CAN_COMMANDS disabled]][[File:second_serial_option_can.jpg|400px|center|thumb|With CAN_COMMANDS disabled]]  * '''Enable options'''* 1. Disabled* 2. Enabled Secondary IO via Serial port* 3. Enabled Secondary IO via canbus (this option will only be available when CAN_COMMANDS are enabled
This will open a new window where you can switch Serial3 on and off.
[[File:Serial3_interface_enable.png|400px|center|]]
== How to use it ==
There Depending on if the secondary port is two a simple serial port or is a canbus port there are several things that the Secondary io interface is capable of . * 1. Broadcast Retreive the current realtime data just as is sent to TunerStudio.
* 2. Read in the Analog data values from 8 remote sensors.
* 3. Acivate External Outputs(coming soon!)
== Broadcast Retrieve realtime data ==
To get Speeduino to send out the realtime data to your device connected on Serial3 a Secondary Serial IO port you must send a either an "A" or an "r" to it.It * '''Send an "A"''' If you send an "A" to the port it will reply with ,
"A" confirming the received instruction (sent as 0x41 in hex),
It The port will now transmit a single byte in hex ,this is the number of bytes it is about to send .This is currently 0x39 (57 in decimal). The port will then transmit ALL the realtime data. * '''Send an "r"''' if you send an "r" to the port you must also send 4 further bytes immediately after the "r". These are a 2 byte offset and a 2 byte length. the offset is the position in he realtime list you want the data returned to start from and the 2 byte length is the number of bytes you want returned. the bytes are sent LSB first . The port will reply with , "r" confirming the received instruction (send as 0x72 in hex) , The port will now transmit a single byte in hex ,this is the number of bytes it is about to send confirming what was requested. The port will then transmit the realtime data requested starting at the byte position sent for the number of bytes length.
It will then transmit the realtime data.
* ''' The Realtime Data List'''
As of 02/05/2017 the data list is as follows
125
edits

Navigation menu