diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c8acb47 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,56 @@ +# Continuous Integration (CI) is the practice, in software +# engineering, of merging all developer working copies with a shared mainline +# several times a day < http://docs.platformio.org/page/ci/index.html > +# +# Documentation: +# +# * Travis CI Embedded Builds with PlatformIO +# < https://docs.travis-ci.com/user/integration/platformio/ > +# +# * PlatformIO integration with Travis CI +# < http://docs.platformio.org/page/ci/travis.html > +# +# * User Guide for `platformio ci` command +# < http://docs.platformio.org/page/userguide/cmd_ci.html > +# +# +# Please choice one of the following templates (proposed below) and uncomment +# it (remove "# " before each line) or use own configuration according to the +# Travis CI documentation (see above). +# + + +# +# Template #1: General project. Test it using existing `platformio.ini`. +# + +language: python +python: + - "2.7" + +dist: bionic +sudo: required + + +#addons: +# apt: +# sources: +# - sourceline: 'deb http://ports.ubuntu.com/ubuntu-ports trusty-backports main restricted universe multiverse' +# packages: +# - cppcheck/trusty-backports + +before_install: + - sudo apt-get update -qq +# - sudo apt-get install -t trusty-backports cppcheck +# Requirements for doxygen + - sudo apt-get install texlive-fonts-recommended lmodern texlive-xetex texlive-fonts-extra pandoc + +script: + - wget https://github.com/jgm/pandoc/releases/download/2.9.1.1/pandoc-2.9.1.1-1-amd64.deb + - sudo dpkg -i pandoc-2.9.1.1-1-amd64.deb + - cd /home/travis/build/speeduino/wiki.js + - sudo ln -s /home/travis/build/speeduino/wiki.js/img /img + - sudo ./make_pdf.sh + - curl -v https://speeduino.com:2078 || true + - curl -v --tlsv1.2 --ipv4 --user "speeduino_manual@speeduino.com:$WEB_PWD" --basic -T "./offline/Speeduino_manual.pdf" "https://speeduino.com:2078/Speeduino_manual.pdf" + diff --git a/Canbus_Support2.md b/Canbus_Support2.md index fbf89f0..e5edf3b 100644 --- a/Canbus_Support2.md +++ b/Canbus_Support2.md @@ -2,7 +2,7 @@ title: CanBus Support description: published: true -date: 2021-08-10T13:29:25.945Z +date: 2022-12-30T07:24:55.946Z tags: editor: undefined dateCreated: 2020-12-15T21:58:51.731Z @@ -26,8 +26,15 @@ The can0 Canbus Interface offers , 1. OBD2 formatted data of current realtime data . 2. Broadcast selected current realtime data and function status .(coming soon) - 3. Read in Analog and Digital data values from other devices on the BUS including those from OEM devices/ECU.(coming soon) - + 3. Read in Analog and Digital data values from other devices on the BUS including those from OEM devices/ECU.(coming soon). + 4. Connect to Tunerstudio for programming/data logging.(under development) + +draft note: under development +The can1 Canbus Interface offers , + 1. Broadcast current realtime data and function status + 2. Read in Analog and Digital data values from other devices on the BUS including those from OEM devices/ECU. + 3. Connect to Tunerstudio for programming/data logging. + # Settings -------- diff --git a/Connect_TS_via_can.md b/Connect_TS_via_can.md new file mode 100644 index 0000000..8d97f6a --- /dev/null +++ b/Connect_TS_via_can.md @@ -0,0 +1,58 @@ +--- +title: Connecting Tunerstudio via Canbus +description: Connecting to Tunerstudio via Canbus to tune and monitor Speeduino and other can connected devices +published: true +date: 2022-12-30T10:30:47.417Z +tags: +editor: undefined +dateCreated: 2022-12-30T08:19:57.703Z +--- + +# Connecting to Tunerstudio via Canbus +# NOTE: THIS IS A DRAFT Proposal subject to change! +Last update (30 December 2022) +## Outline + +The usual way in which we connect the PC/tuning device running Tunerstudio to the Speeduino ecu is via USB . +This page explains the format by which the usb/serial data from the tuning device should be converted into a canbus message to enable connection instead using one of the canbus ports on the ECU . +Teensy and STM32 mcu based Speeduino have native canbus ports (the number of ports depends on the specific version of those MCU) +A mega2560 based Speeduino needs a coprocessor module that connects via serial3 to the mega board to add a canbus port .At the time of writing(30/12/2022) no coprocessor interface supports the tuning option. + +The data is transferred at 500k using 11bit addressing via ISO tp. + +## TS configuration +You must first enable cancommands from the project properties menu.This will enable the TS canid selection page within project properties. +You must ensure that the Speeduino ECU is configured as TS can device 0. +Other ECU TS is able to communicate with that support tuning over can should be assigned another of the 15 tscanids (as defined by the device firmware). +The selection of tscanid is very important as it allows the usb to canbus dongle to retrieve the actual canbus address of the ECU (s) to enable further communication with Tunerstudio. + +## The serial to canbus format and protocol. +Below explains how the serial commands normally sent to and from TS are repackaged and sent over the canbus by the usb to canbus dongle (here onwards referred to as "the dongle") and how the receiving ECU reacts to those messages. + +### Step 1 +upon initial connection TS sends out a "Q" request. +The dongle sends out a can message with address 0x7df. +The 8 bytes of the message are filled as follows(example showing for a speeduino ecu). + +byte 0 - 0x03 +byte 1 - 0x22 ( send mode 22) +byte 2 - 0x80 ( PID 0x80 ) +byte 3 - 0x00 (the tscanid of the ecu) +byte 4 +byte 5 +byte 6 +byte 7 + +bytes 4-7 are unused in this message. +byte 3 should reflect the tscanid of the ecu . Tunerstudio sends the tscanid value of the device it is attempting to contact with the "Q" request . The dongle must insert this id into byte3. + +The receiving ECU must reply with a 26 byte message on address 0x7e8 using the ISO tp format. +The message comprises +0x62 ( confirming a mode 22 , 0x22+0x40) +0x80 ( confirming it was a pid 80 ) +0x00 ( the tscanid of the ecu) +The ECU firmware revision in the first 20bytes. +A ascii space (0x ) +The ECU 11bit canbus tuning address in the last two bytes (little endian). + +The dongle must strip the can address from the reply and save it for future data transfers to that tscanid. \ No newline at end of file diff --git a/Overview.md b/Overview.md index ca7dd45..1bb8d8a 100644 --- a/Overview.md +++ b/Overview.md @@ -2,9 +2,9 @@ title: Overview description: published: true -date: 2022-10-15T13:42:25.354Z +date: 2022-10-15T13:42:31.360Z tags: -editor: markdown +editor: undefined dateCreated: 2020-01-06T01:37:18.780Z --- diff --git a/SD_logging.md b/SD_logging.md index fe2ee22..140339a 100644 --- a/SD_logging.md +++ b/SD_logging.md @@ -2,9 +2,9 @@ title: SD Card logging description: published: true -date: 2022-09-05T12:45:20.939Z -tags: sd, logging, dropbear -editor: markdown +date: 2022-09-05T12:45:26.939Z +tags: +editor: undefined dateCreated: 2021-10-12T05:18:25.120Z --- diff --git a/Secondary_Serial_IO_interface.md b/Secondary_Serial_IO_interface.md index 83728cf..41d29e0 100644 --- a/Secondary_Serial_IO_interface.md +++ b/Secondary_Serial_IO_interface.md @@ -2,9 +2,9 @@ title: Secondary Serial IO interface description: published: true -date: 2023-02-22T16:44:02.166Z +date: 2023-02-22T16:44:14.084Z tags: -editor: markdown +editor: undefined dateCreated: 2020-01-06T01:37:19.933Z --- diff --git a/accessories/fan_settings2.png b/accessories/fan_settings2.png new file mode 100644 index 0000000..289a522 Binary files /dev/null and b/accessories/fan_settings2.png differ diff --git a/accessories/pwm_fan.png b/accessories/pwm_fan.png new file mode 100644 index 0000000..f67fc81 Binary files /dev/null and b/accessories/pwm_fan.png differ diff --git a/boards/3rd_party/wtmtronics/NO2C_for_Speeduino.md b/boards/3rd_party/wtmtronics/NO2C_for_Speeduino.md index 686a5ff..d8f7e67 100644 --- a/boards/3rd_party/wtmtronics/NO2C_for_Speeduino.md +++ b/boards/3rd_party/wtmtronics/NO2C_for_Speeduino.md @@ -2,9 +2,9 @@ title: NO2C_for_Speeduino description: published: true -date: 2023-03-14T15:52:00.581Z +date: 2023-03-14T15:52:12.828Z tags: -editor: markdown +editor: undefined dateCreated: 2020-01-06T01:53:35.241Z --- diff --git a/boards/V04.md b/boards/V04.md index e0e9283..b70ccd2 100644 --- a/boards/V04.md +++ b/boards/V04.md @@ -2,9 +2,9 @@ title: V04 Board description: published: true -date: 2023-04-12T07:21:04.468Z -tags: boards, hardware, v0.4 -editor: markdown +date: 2023-04-12T07:21:14.306Z +tags: +editor: undefined dateCreated: 2020-01-06T01:53:44.099Z --- diff --git a/configuration/Idle.md b/configuration/Idle.md index f2864e7..868fa80 100644 --- a/configuration/Idle.md +++ b/configuration/Idle.md @@ -2,9 +2,9 @@ title: Idle description: published: true -date: 2022-09-05T11:36:08.801Z +date: 2022-09-05T11:36:20.206Z tags: -editor: markdown +editor: undefined dateCreated: 2020-01-06T01:53:59.753Z --- diff --git a/configuration/Programmable_Outputs.md b/configuration/Programmable_Outputs.md index 9bdf2f5..f20d65e 100644 --- a/configuration/Programmable_Outputs.md +++ b/configuration/Programmable_Outputs.md @@ -2,9 +2,9 @@ title: Programmable Outputs description: published: true -date: 2022-10-15T13:48:53.054Z +date: 2022-10-15T13:48:59.072Z tags: -editor: markdown +editor: undefined dateCreated: 2022-04-04T08:51:25.574Z --- diff --git a/configuration/Staged_Injection.md b/configuration/Staged_Injection.md index c9eb888..3b6890f 100644 --- a/configuration/Staged_Injection.md +++ b/configuration/Staged_Injection.md @@ -2,9 +2,9 @@ title: Staged Injection description: Configuring multi-stage fuel injection published: true -date: 2023-03-06T05:46:17.596Z +date: 2023-03-06T05:46:28.934Z tags: -editor: markdown +editor: undefined dateCreated: 2020-01-06T01:54:09.173Z --- diff --git a/configuration/Thermo_fan.md b/configuration/Thermo_fan.md index 5e5338c..235ebc7 100644 --- a/configuration/Thermo_fan.md +++ b/configuration/Thermo_fan.md @@ -2,9 +2,9 @@ title: Thermo fan description: Control of a cooling fan relay published: true -date: 2022-09-05T11:47:38.755Z -tags: aux outputs, tuning -editor: markdown +date: 2022-09-05T11:47:44.803Z +tags: +editor: undefined dateCreated: 2020-01-14T02:17:03.743Z --- diff --git a/configuration/VE_table.md b/configuration/VE_table.md index 30350e4..b7b41ee 100644 --- a/configuration/VE_table.md +++ b/configuration/VE_table.md @@ -2,7 +2,7 @@ title: Fuel (VE) table / map description: Configuration of the main fuel / VE table published: true -date: 2021-11-11T07:32:32.241Z +date: 2022-12-13T23:59:09.280Z tags: editor: undefined dateCreated: 2020-06-18T00:47:09.502Z @@ -26,7 +26,7 @@ The values in this table represent a percentage of the `Required Fuel` amount th > **Warning:** Changing this value will require retuning of the fuel map!{.is-warning} -- **Multiply by ration of AFR to Target AFR:** This option is normally set to `No` for most setups. It allows basic close loop feedback by adjust the base fuel amount according to how far away from the target AFR the engine is currently running. +- **Multiply by ratio of AFR to Target AFR:** This option is normally set to `No` for most setups. It allows basic closed loop feedback by adjusting the base fuel amount according to how far away from the target AFR the engine is currently running (in %). If the AFR/O2 Sensor type is set to `Disabled` then this setting will have no impact on the fuel calculation. - **Multiply by ratio of stoich AFR to target AFR ('Incorporate AFR')**: By enabling this setting AFR target is incorporated to pulsewidth calculation. This makes VE table a better representation of actual VE, without AFR targets greatly affecting numbers. After VE table has been tuned, one can adjust an area richer or leaner just from AFR target table, basically without need to touch VE table. > **Warning:** Changing this value will require retuning of the fuel map!{.is-warning} diff --git a/configuration/VSS.md b/configuration/VSS.md index b99b442..9ad1925 100644 --- a/configuration/VSS.md +++ b/configuration/VSS.md @@ -2,9 +2,9 @@ title: VSS and Gear Detection description: published: true -date: 2022-09-05T12:42:41.309Z -tags: gear detection, speed, tuning, vss -editor: markdown +date: 2022-09-05T12:42:47.297Z +tags: +editor: undefined dateCreated: 2020-05-12T02:08:21.817Z --- diff --git a/dev/Style_code.md b/dev/Style_code.md index 26b27a4..94336b5 100644 --- a/dev/Style_code.md +++ b/dev/Style_code.md @@ -2,9 +2,9 @@ title: Style Guide description: Style guidelines used within the Speeduino firmware published: true -date: 2022-09-08T05:39:31.642Z +date: 2022-09-08T05:39:42.057Z tags: -editor: markdown +editor: undefined dateCreated: 2020-01-06T01:54:27.875Z --- diff --git a/idle/iac_pwm_duty.png b/idle/iac_pwm_duty.png new file mode 100644 index 0000000..126be1d Binary files /dev/null and b/idle/iac_pwm_duty.png differ diff --git a/img/tuning/programmable_outputs_cascade0.jpg b/img/tuning/programmable_outputs_cascade0.jpg index a6f9b6e..9da53b6 100644 Binary files a/img/tuning/programmable_outputs_cascade0.jpg and b/img/tuning/programmable_outputs_cascade0.jpg differ diff --git a/img/tuning/programmable_outputs_cascade_1.jpg b/img/tuning/programmable_outputs_cascade_1.jpg new file mode 100644 index 0000000..9fe0456 Binary files /dev/null and b/img/tuning/programmable_outputs_cascade_1.jpg differ diff --git a/offline/std_manual.md b/offline/std_manual.md index 26228ed..363eefe 100644 --- a/offline/std_manual.md +++ b/offline/std_manual.md @@ -2,9 +2,9 @@ title: std_manual description: published: true -date: 2022-09-05T12:46:35.998Z +date: 2022-09-05T12:46:41.775Z tags: -editor: markdown +editor: undefined dateCreated: 2020-01-16T03:50:01.907Z ---