Commit Graph

25 Commits

Author SHA1 Message Date
rusefillc 9e2cea57ab
TS: send Ok response on Reset/Reboot commands to make TS happy (#285)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-11-15 00:36:22 -08:00
Matthew Kennedy ffbc6140c3 f1 configuration typo 2023-11-13 02:21:58 -08:00
rusefillc 8646d10067
OpenBLT reset functionality (#259)
* ts: support reset and reset to OpenBLT commands

(cherry picked from commit 2f2fca401d7dc9a29e806013efec4d41570dd613)

* f1_xxx: ini: reset commands

(cherry picked from commit 628994ba0a70901edb9b59360646aa195b3307cf)

* typo

* f1_xxx: ini: update signature

(cherry picked from commit 7aa57fe09c6c684855838e36c9b65d8ae3618a7a)

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-06-11 12:51:41 -07:00
rusefillc a454635612
TunerStudio: cleanup (#263) 2023-06-01 21:44:01 -07:00
rusefillc bd4646d87c
f1_port: handle MFS errors (#258)
(cherry picked from commit b23b04edf24fabfd99461e7ca38ea165836645e6)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-05-29 15:49:11 -07:00
rusefillc 9519ad51dd
indication: advanced indication with per-channel status led (#235)
* indication: advanced indication with per-channel status led

(cherry picked from commit b486dfe682622c9835cf00457834cebf6e34da2f)

* f1_dual_rev1: enable advanced indication

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-05-03 13:18:05 -07:00
rusefillc 21202975b9
TS: serial: do not disable serial after failed BT init attemp (#231)
Instead enable it on default baudrate and wait for direct connection

(cherry picked from commit 4f2aa57bee6a50195768ffb0e7d7d2ff374048e4)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-20 11:22:59 -07:00
rusefillc 6364c7cb2c
TS: use BOARD_NAME in Test and Version commands reply (#211)
* TS: use BOARD_NAME in Test and Version commands reply

* making source code two bytes smaller

* making source code two bytes smaller

* making source code two bytes smaller

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-03-06 21:18:54 -08:00
rusefillc df5d7ed4cd
ts: fix compilation warning (#206)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-02-17 11:42:35 -08:00
rusefillc 62520aee78
TS: dead code (#197)
(cherry picked from commit 3a4bd2c3f8796297dca20441ba93a810d52ea3e6)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-02-15 10:19:01 -08:00
rusefillc 2bb430d32b
TS serial: do BT setup only after 30sec timeout (#199)
This will avoid BT module restart after MCU restart. This will keep
BT connection between MCU reboots.

(cherry picked from commit 12443d73a0fa2a1fd0de0dcae3231473016b9efb)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-02-15 10:17:54 -08:00
Matthew Kennedy f365492565 c++ instead of deifnes 2023-01-29 02:06:11 -08:00
Andrey G 8bfe7faecb
TS minor fixes (#178)
* ts: fix copy-paste

* TS: fallback to default baudrate if BT setup failed

* io_serial: BT setup: no goto

* ini: dual: fix typo

* ts: BT: fix baudrate switch when using JDY33
2023-01-29 02:02:59 -08:00
Andrey G e5a7952db0
Ts dev (#175)
* Remove pageValueWrite command support

Move advanced pageChunkWrite is used

* Straight logic in validateOffsetCount(), simplify, move to tunerstudio.cpp

* Remove some more unused commands

* More unused defines

* Command defines cleanup

* Test command

* TS: fix signature

* pageIdentifier is optional

* pageActivate command is not used

* TS: extract offset and size from incoming packet only for packets with such data

* TS: cast to packet header

* TS: use page in commands

* TS: support scatteredOchGetCommand

* TS: incapsulation

* TS: scatter: optimization for CPU load

* More CPU load optimization

* Update libfirmware
2023-01-11 00:29:22 -08:00
Matthew Kennedy 36c0c3e4ab spelling 2022-12-06 15:53:36 -08:00
Matthew Kennedy 6d0c971ec9 typo 2022-12-02 22:34:26 -08:00
Andrey G 94c348b88b
Jdy33 (#171)
* tunerstudio: support JDY33 BT module init on UART

* tunerstudio: BT: try most popular baudrates first

* tunerstudio: BT: protect from overflow

* tunerstudio: BT: limit retries

* tunerstudio: BT: directly do chprintf() to SD device

* TS: serial: make BT setup optional
2022-12-02 14:08:11 -08:00
Andrey G a5fed4d23a
tunerstudio: cleanup unused/commented code (#155) 2022-09-15 11:56:49 -07:00
rusefillc 3349361f6b
tunerstudio: restore settings write command (#148)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-09-07 15:16:42 -07:00
rusefillc 268f8ddae7
TS: actually cal SaveConfig (#142)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-09-05 22:53:41 -07:00
Matthew Kennedy a08a7dc3de fragments from lib 2022-07-18 15:26:00 -07:00
Andrey G 63ef4b7a10
TS more and more (#123)
* TunerStudio: simplify enable magic

* TS integration: livedata, FragmentEntry

* f1_dual: reorder TS hooks

* f1_rev2: dummy settings for TS

* f1_rev2: TS signature

* f1_rev2: TS ini file

* Integrate with TS interface

* livedata: access adapters, no extern, make livedata static

* FragmentEntry: no FragmentEntry()

* livedata: struct not needed
2022-07-18 12:31:09 -07:00
Matthew Kennedy 6135464dc8
use libfirmware for crc, table lookup (#121)
* use libfirmware for crc

* kick

* bootloader

* bootloader

* use shared interpolate2d

* cleanup
2022-07-16 19:08:45 -07:00
rusefillc 55f65ad02d
Ts top down (#104)
* TS top down

* TS top down

* TS top down

* TS top down

* Ts top down #104

removing the controversial part

* Ts top down #104

removing the controversial part

* docs

* fix build (switch to serial)

* f1_dual: UART->Serial

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-07-15 11:10:15 -07:00
rusefillc ccb790f532
Steal tunerstudio files from RusEFI (#71)
* Steal tunerstudio files from RusEFI

(cherry picked from commit dcba04fbd3)

* Steal crc32 files from RusEFI

(cherry picked from commit bfe88b5297)

* fix TS steal

(cherry picked from commit a77b9761da)

* fix crc32

(cherry picked from commit cdb4df09f6)

* TS stealed from RE

(cherry picked from commit ff470e1340)

* Steal TS

(cherry picked from commit d11406edc2)

* Steal Thread Controller

(cherry picked from commit 2aa5bbd571)

* Update TunerStudio protocol files

(cherry picked from commit 58f14216ec)

* byteswap.h

(cherry picked from commit 581d647fd4)

* bugfix

* one more file to compile, another file not ready - removing from this PR

* removing more from this PR

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-06-29 01:29:40 -07:00