Commit Graph

320 Commits

Author SHA1 Message Date
Matthew Kennedy 3f78b5de3d include order/guards for happy builds 2025-03-17 01:49:39 -07:00
Matthew Kennedy f54bfd3c25 Revert "we never actually checked isEndOfPacket"
This reverts commit 1343641092.
2025-03-13 13:16:22 -07:00
Matthew Kennedy 1343641092 we never actually checked isEndOfPacket 2025-03-12 23:50:02 -07:00
Matthew Kennedy 9dcf76d99c
Remove stack checks (#558)
* remove stack checks

* put one back
2025-02-18 17:33:24 -08:00
Matthew Kennedy a99251de32 ts logging cleanup 2025-01-18 01:55:30 -08:00
Matthew Kennedy d52b00c7c8 MIL cleanup 2025-01-07 15:31:01 -08:00
Matthew Kennedy de4b1573d0
remove page TS command (#509) 2024-11-08 00:15:10 -08:00
Matthew Kennedy 8831512b6b more dead console command cleanup 2024-07-03 00:48:06 -07:00
Matthew Kennedy 94a5c52186 consoleByteArrived uses std::atomic 2024-06-27 11:51:40 -07:00
Matthew Kennedy cf87e64119 compile-time enforcement of printf strings 2024-06-10 00:51:14 -07:00
Matthew Kennedy 6bb5bd998c
process plain command only if no second byte (#440)
* process plain command only if no second byte

* print in case of not understood single-byte cmd
2024-06-09 23:07:05 -07:00
Matthew Kennedy 2eb6c25313
ts refactoring (#439)
* replace large buffer instances

* handlePageReadCommand uses locked

* cleanup

* explicitly call big vs. small packet implementation

* correctness

* unused UNUSED

* cleaner TS logging & cleanup

* about time we bumped this
2024-06-09 20:26:27 -07:00
Matthew Kennedy dfc2da083b support reading output channels with no size/offset 2024-06-09 15:45:31 -07:00
Matthew Kennedy 4465d20622 remove responseCode from writeCrcPacket 2024-06-03 17:34:21 -07:00
Matthew Kennedy ed52ff474e eliminate TsChannelBase::sendResponse 2024-06-03 17:28:14 -07:00
Matthew Kennedy d4c0df833a remove TS_RESPONSE_COMMAND_OK when TS_RESPONSE_OK exists 2024-06-03 17:21:26 -07:00
Matthew Kennedy 65e1091179 operate on uint8_t instead of char 2024-06-03 17:02:43 -07:00
Matthew Kennedy 35b46d0e92 TS helper for no-payload responses 2024-06-03 17:02:43 -07:00
Matthew Kennedy 084f848bdb fix 2024-06-02 13:00:41 -07:00
Matthew Kennedy 3a96c38f2e NULL -> nullptr 2024-06-02 12:58:07 -07:00
Matthew Kennedy a22302579e TS cleanup: ts_response_format_e 2024-06-02 12:49:24 -07:00
Matthew Kennedy cda890a5eb ECU firmware knows what sort of bootloader it has 2023-11-02 15:36:52 -07:00
Matthew Kennedy 9dc183a173
we use small time units here in the future (#287) 2023-11-01 22:31:27 -07:00
Matthew Kennedy a8247afe89 deadish code makes it not build on macos 2023-11-01 21:39:39 -07:00
Matthew Kennedy 73ca7c7974 ts channel shadow avoidance 2023-11-01 14:12:15 -07:00
Matthew Kennedy 2231fa4cd8 bench test didn't work on simulator 2023-10-24 01:00:02 -07:00
Matthew Kennedy 3df1ee9c5f debug channel cleanups 2023-09-13 12:23:27 -07:00
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