Commit Graph

293 Commits

Author SHA1 Message Date
Matthew Kennedy ec24e45c04
scattered read is not a primary scenario (#198) 2023-07-18 00:09:34 -07:00
Matthew Kennedy ad3ea57276 tooth_logger.h -> pch 2023-05-30 22:41:20 -07:00
Matthew Kennedy d5f9479f28
ObdCode is enum class (#77)
* change ObdCode to enum class builds firmware

* test builds

* don't need this line at all

* can we go down to uint16_t?
2023-04-12 23:44:33 -07:00
Matthew Kennedy 2f5bc850c6 ts crust 2023-03-03 02:03:22 -08:00
Matthew Kennedy 264a6862f4
remove TS_GET_COMPOSITE_BUFFER_DONE_DIFFERENTLY (#45)
* remove TS_GET_COMPOSITE_BUFFER_DONE_DIFFERENTLY

* deadish code
2023-02-25 00:14:40 -08:00
Matthew Kennedy 29e35f7ed0 report firmware version as FOME 2023-02-22 22:11:27 -08:00
Matthew Kennedy bc0444acdb switch to use gitversion.h 2023-02-22 15:39:27 -08:00
Matthew Kennedy 5d7a30ce2b no qc 2023-02-22 14:53:31 -08:00
Matthew Kennedy aadb09233b nonblocking for TS, blocking for SD card (#4903) 2022-12-17 20:01:15 -05:00
rusefillc 8705150be4 RusEFI console keeps resetting on latest #4899 2022-12-17 16:13:44 -05:00
Matthew Kennedy 2e35013d1d 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 b74ba44cff 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 c617b00180 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 35e9cdd3e4 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 6001214163 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 c77ad8a73d Full Optimized – High Speed #4818 2022-11-25 19:00:28 -05:00
rusefillc 0ed3478a8a Full Optimized – High Speed #4818 2022-11-25 10:50:48 -05:00
rusefillc d6d859bf87 Full Optimized – High Speed #4818 2022-11-25 08:36:24 -05:00
rusefillc 28bcfd31f4 Full Optimized – High Speed #4818 2022-11-24 21:54:11 -05:00
rusefillc bc4289aa7f Full Optimized – High Speed #4818 2022-11-24 10:01:45 -05:00
Andrey G 06638a5993 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 35bf947f06 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 1ca5988877 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 25b6d39802 os_access.h dead? 2022-09-07 15:56:45 -04:00
rusefillc e19b61aa5b [SECURITY] Cheap password protection against tune modification fix #4243 2022-07-30 12:23:53 -04:00
rusefillc a8e86b9b81 typos 2022-07-20 18:45:35 -04:00
Andrey G 2eeb1ad84e 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 ca25530445 picking atomic piece of #4358 2022-07-20 17:06:34 -04:00
rusefillc 5fafaa571d refactoring: reducing warnings 2022-07-20 17:03:15 -04:00
Matthew Kennedy cd98ad35c2 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 ab24c5eb35 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 e8777995be visiting "live data" tab causes fatal error on ECU fix #4271 2022-06-25 19:48:48 -04:00
rusefillc 19abcab3d1 docs 2022-04-25 00:36:12 -04:00
Andrey 220dea05a8 shameless reminder about time-sensitive Proteus fabrication issue which worries me 2022-04-17 16:00:31 -04:00
rusefillc 2b0b9313d1 logging of live data structs was: data points #3614
exciting
2022-04-17 13:28:43 -04:00
rusefillc f9d222bce1 random progress & method rename 2022-04-16 17:35:59 -04:00
Matthew Kennedy 75c7fb3b18 fragment refactoring (#4072)
* fragment refactoring

* jar

* jar?
2022-04-16 09:24:45 -04:00
rusefillc b718d059ac logging of live data structs was: data points #3614
getting closer...
2022-04-14 22:40:35 -04:00
rusefillc 28b0b8d460 logging of live data structs was: data points #3614
ETB
2022-04-14 15:25:01 -04:00
rusefi b6483c2d8b steps towards better commands encapsulation 2022-04-14 01:44:35 -04:00
rusefi f5b1834b92 steps towards better commands encapsulation 2022-04-14 01:06:44 -04:00
rusefi 296985767b encapsulation 2022-04-14 00:35:33 -04:00
rusefillc 725e5467bd logging of live data structs was: data points #3614 2022-04-13 22:27:44 -04:00
Andrey 7cbe075bab logging of live data structs was: data points #3614
progress
2022-04-13 21:52:05 -04:00
rusefillc bc9d6089ec logging of live data structs was: data points #3614
hmm
2022-04-13 21:37:49 -04:00
rusefillc 0b3101d690 logging of live data structs was: data points #3614
progress & more consistent convention
2022-04-13 21:20:37 -04:00
rusefillc 57be5a2147 logging of live data structs was: data points #3614
progress & more consistent convention
2022-04-13 20:46:55 -04:00
rusefillc 5c5d258b5f typo/grammar 2022-04-13 17:55:31 -04:00
rusefillc 23bffc3973 JNI for test coverage #3965 2022-03-15 10:47:02 -04:00
rusefillc 0b1c1f73a0 JNI for test coverage #3965 and code style 2022-03-15 10:32:32 -04:00