Commit Graph

300 Commits

Author SHA1 Message Date
rusefillc 4cb45a354b
Better efi engine control guard (#5695)
* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL

* better EFI_ENGINE_CONTROL
2023-11-05 13:54:06 -05:00
Andrey 6436612f38 cleanup tunerstudio integration 2023-11-04 23:07:50 -04:00
Andrey G ed8af771ac
at_start_f435: enable MFS for internal flash (#5687)
* Rename EFI_INTERNAL_FLASH to EFI_STORAGE_INT_FLASH

This define enables use of RE custom flash driver for storing
settings to internal flash.

* at_start_f435: enable MFS for settings storing in internal flash

* MRE: fix special build

* kinetis: fix flash_int.cpp vs flash_int.c mess

* at32: allow allowFlashWhileRunning()

* flash_main: supress warning
2023-11-03 13:08:35 -04:00
Matthew Kennedy 27fb1f092c deadish code makes it not build on macos 2023-11-02 01:33:28 -04:00
andreika-git 6bc83826f9 handleWrapCan() now receives packets https://github.com/rusefi/rusefi/issues/5606 2023-10-11 18:44:06 -04:00
rusefillc d558a46a11
Xxx (#5567)
* testability: bench test commands should have automated coverage using simulator #5562

* testability: bench test commands should have automated coverage using simulator #5562
2023-09-16 10:29:53 -04:00
Andrey 6d12cdb7c9 only: debug channel cleanups 2023-09-14 10:10:10 -04:00
Andrey 247a0a91b5 spelling is important 2023-09-09 19:54:57 -04:00
rusefillc 256e25a452 only:stronger stack shortage response 2023-06-25 02:16:31 -04:00
rusefi f3ee2fb9d0 reducing magic constant 2023-06-12 20:07:48 -04:00
Matthew Kennedy 12a29232cc tooth_logger.h -> pch
(cherry picked from commit ad3ea57276361b6da69eb920dd056a662f6f5c70)
2023-05-31 15:59:02 -04:00
rusefillc bebfc6f975 better code guard? 2023-05-24 00:00:03 -04:00
Matthew Kennedy 61e5b4b1ad change ObdCode to enum class builds firmware 2023-04-29 00:44:00 -04:00
rusefillc 8ef2af44f3 counting per-channel traffic 2023-03-16 13:14:25 -04:00
rusefillc 00ea3e56e9 dead code 2023-03-16 13:02:31 -04:00
Matthew Kennedy 87b903a2e3
nonblocking for TS, blocking for SD card (#4903) 2022-12-17 20:01:15 -05:00
rusefillc 654759d47a RusEFI console keeps resetting on latest #4899 2022-12-17 16:13:44 -05:00
Matthew Kennedy 52884c64cb
SD card tooth log (#4897)
* adjust tooth logger api

* mmc card writes tooth log

* changelog
2022-12-15 08:34:10 -04:00
Matthew Kennedy 9d8bfb834e
Basic trigger scope implementation (#4885)
* big buffer

* mostly hooked up big buffer

* bad merge

* s

* sneak preview of trigger scope

* s

* constness

* channel limits

* s

* unnecessary

* efilib

* TcpServerSandbox

* includes fix

* binary format

* tooth logger uses big buffer

* dead config

* config

* implement basic trigger scope

* good behavior

* enable on other alphax

* flag to enable second channel

* use 8 bit mode on the ADC for less memory use

* changelog
2022-12-10 23:00:12 -05:00
Matthew Kennedy 9f76dc4c6b
Use a shared buffer for "high memory" operations (#4878)
* big buffer

* mostly hooked up big buffer

* bad merge

* s

* sneak preview of trigger scope

* s

* constness

* channel limits

* s

* unnecessary

* efilib

* TcpServerSandbox

* includes fix

* binary format
2022-12-10 07:35:39 -05:00
Andrey G fee886b310
Bluetooth jdy33: minor fixes (#4852)
* bluetooth: add '-BLE' suffix for BLE broadcast name

* bluetooth: show current connection status before setup procedure

* tunerstudio: actually show EFI_CONSOLE_* pins
2022-11-29 10:26:56 -05:00
Andrey G 57c5ff6420
Bluetooth jdy33: save some memory (#4848)
* bluetooth: remove bluetooth_cancel command

No need. In case of error setup process will be canceled.

* bluetooth: no need to have separate thread for setup

Use same TinerStudio thread.

* bluetooth: pass tsChannel as argument

* bluetooth: use struct for baudrate - parameter table

* bluetooth: query MAC address if debug is enabled
2022-11-27 14:43:54 -05:00
rusefillc 2464d04d31 Full Optimized – High Speed #4818 2022-11-25 19:00:28 -05:00
rusefillc de77216bb7 Full Optimized – High Speed #4818 2022-11-25 10:50:48 -05:00
rusefillc 1cfcccbda3 Full Optimized – High Speed #4818 2022-11-25 08:36:24 -05:00
rusefillc c59cd8a5b0 Full Optimized – High Speed #4818 2022-11-24 21:54:11 -05:00
rusefillc c057834575 Full Optimized – High Speed #4818 2022-11-24 10:01:45 -05:00
Andrey G e8f33ce7ec
Bluetooth hang (#4632)
* tunerstudio: send BT disconnect notifications only for BT channel

* bluetooth: btProcessIsRunning duplicates btProcessIsStarted

* bluetooth: some comments

* bluetooth: no need to call chThdExit(), just exit thread function

* bluetooth: avoid possible race conditions: set flag first

* bluetooth: make "bluetooth_cancel" do something
2022-10-03 08:51:19 -04:00
rusefillc cab0177df0
insist on setBoardConfigOverrides fix #4614 (#4615)
* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614
2022-09-24 07:35:19 -04:00
Andrey G 91d4844e38
time routines refactor (#4563)
* Extract time helpers from engine_controller_misc to efitime.cpp

* Rename currentTimeMillis() to getTimeNowMs()

We have getTimeNowNt(), getTimeNowUs(), currentTimeMillis() and getTimeNowSeconds()
Align a bit.

find . -type f -name '*.c*' -exec sed -i 's/currentTimeMillis/getTimeNowMs/g' {} \;

* Rename getTimeNowSeconds() to getTimeNowS()

To align with Nt, Us, Ms versions.

* Some comments about getTimeNowLowerNt()
2022-09-11 13:06:03 -04:00
Andrey ab4b451195 os_access.h dead? 2022-09-07 15:56:45 -04:00
rusefillc 26ae6f7490 [SECURITY] Cheap password protection against tune modification fix #4243 2022-07-30 12:23:53 -04:00
rusefillc 9e4187d8cf typos 2022-07-20 18:45:35 -04:00
Andrey G 7caef0ba92
TunerStudio reconnect speedup (#4358)
* TunerStudio: do not emit tons of errors if we are not in sync

Track state of sync with ither side. Emit only ONE error when sync
is lost.
Also no need to wait 1sec for second byte in binary mode. 10mS is
enought.

* TunerStudio: remove duplicated debug print

* TunerStudio: comment about in_sync

* TunerStudio: clear comments
2022-07-20 17:54:10 -04:00
rusefillc 70d0351f9c picking atomic piece of #4358 2022-07-20 17:06:34 -04:00
rusefillc adc11fcc1f refactoring: reducing warnings 2022-07-20 17:03:15 -04:00
Matthew Kennedy a0d8ae3f4f
use libfirmware for a few things (#4351)
* use libfirmware

* unit tests

* crc

* missed one

* bootloader
2022-07-16 02:22:51 -04:00
Matthew Kennedy aecacc6aa1
Rewrite tooth logger buffer management (#4317)
* s

* make it work

* put back enough maybe

* fix console composite log

* unit tests can just use a vector, why not

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-07-04 16:57:17 -04:00
rusefillc 5a2b430183 visiting "live data" tab causes fatal error on ECU fix #4271 2022-06-25 19:48:48 -04:00
rusefillc d98f35576d docs 2022-04-25 00:36:12 -04:00
Andrey 4db874a607 shameless reminder about time-sensitive Proteus fabrication issue which worries me 2022-04-17 16:00:31 -04:00
rusefillc 56f214d679 logging of live data structs was: data points #3614
exciting
2022-04-17 13:28:43 -04:00
rusefillc 07f210a82b random progress & method rename 2022-04-16 17:35:59 -04:00
Matthew Kennedy 6aef4f10d0
fragment refactoring (#4072)
* fragment refactoring

* jar

* jar?
2022-04-16 09:24:45 -04:00
rusefillc 5086d93a23 logging of live data structs was: data points #3614
getting closer...
2022-04-14 22:40:35 -04:00
rusefillc 084685c747 logging of live data structs was: data points #3614
ETB
2022-04-14 15:25:01 -04:00
rusefi 141804f490 steps towards better commands encapsulation 2022-04-14 01:44:35 -04:00
rusefi d7da81b5c2 steps towards better commands encapsulation 2022-04-14 01:06:44 -04:00
rusefi fcf9a42bea encapsulation 2022-04-14 00:35:33 -04:00
rusefillc 57df620087 logging of live data structs was: data points #3614 2022-04-13 22:27:44 -04:00