Commit Graph

13676 Commits

Author SHA1 Message Date
DevTekVE 0c909e98bb Spacing 2024-05-28 14:54:35 +02:00
DevTekVE 2d2a35c7e4 Apply 2 suggestion(s) to 1 file(s) 2024-05-28 12:54:11 +00:00
DevTekVE 52ea16a93a Update log file size calculation method
The code for calculating the size of the log file has been revised. Instead of using os.path.getsize, which simply captures the size of the file on disk, we're now calculating the size of the payload after it has been serialized and encoded, plus an overhead of 100 bytes. This change provides a more accurate measure of the data that will be sent.
2024-05-28 14:14:22 +02:00
DevTekVE 753bcce9a7 Implement compression and encoding for large log files
The `add_log_to_queue` function has been updated to compress and base64 encode log files that exceed a certain size, specifically for the "sunnylink" scenario. This function also provides logging for various stages of the process, including initial file size, size post-compression/encoding, and whether the final payload is small enough to be sent in one request. The change will improve handle of larger log files and prevent payload size related issues.
2024-05-28 12:20:19 +02:00
DevTekVE 091e5d1343 Adjust maximum chunk size in athenad.py
This commit decreases the maximum chunk size from 32KB to 28KB in the add_log_to_queue function in athenad.py. This size reduction will affect how the log files are loaded and processed.
2024-05-27 22:51:27 +02:00
DevTekVE 797e273ba7 Reduce maximum chunk size in athenad.py
Updating the maximum chunk size constant in athenad.py to decrease its value from 128KB to 32KB. This change has been made to optimize the handling of log files and data transmission.
2024-05-27 22:19:39 +02:00
DevTekVE 9d79f243ff Refactor log handling and add exception handling
The changes refactor the log handling in athenad.py for more efficient processing. The log is now split into maximum chunk sizes of 128KB to prevent oversized requests. Additionally, an invalid request or response exception has been introduced for better error handling.
2024-05-27 21:51:00 +02:00
DevTekVE e7b40f61a8 Add support for network metering and PrimeType checking in sunnylinkd
This commit introduces network metering and PrimeType checking in sunnylinkd. The implementation includes an additional threading event and a new log handler function, 'sunny_log_handler'. It defines PrimeType and metering conditions to set and clear the new threading event as part of the main processing loop in handle_long_poll function.
2024-05-27 19:44:41 +02:00
DevTekVE 86ce2bc791 Remove unused import in sunnylinkd.py
The unused import, LOG_ATTR_NAME, in the file selfdrive/athena/sunnylinkd.py has been removed to provide cleaner, simpler, and more readable code. This also helps follow good coding practices such as removing unnecessary or unused imports or resources.
2024-05-26 23:55:41 +02:00
DevTekVE b56692bd2e Add platform-specific xattr handling in loggerd
This commit adapts the xattr handling in the loggerd module to individual platforms, specifically macOS and others. It imports specific xattr functions based on the running system, enhancing compatibility and reducing the risk of errors. In specific, 'ENOATTR' error is now also taken into account which is relevant in some non-Linux platforms.
2024-05-26 23:53:04 +02:00
DevTekVE f1a3149551 Update attribute name for Sunnylink log upload
The attribute name used for Sunnylink's log upload function was modified. The new attribute name "user.sunny.upload" replaces the previous "sunnylink.user.upload" to reflect recent changes in naming convention.
2024-05-26 23:53:04 +02:00
DevTekVE a366d5b873 Add custom attribute name for Sunnylink logs
The commit introduces a custom attribute name for Sunnylink log entries. The custom attribute name 'sunnylink.user.upload' is used for all operations in the athenad.py and sunnylinkd.py files that previously referred to the default LOG_ATTR_NAME. This will allow more flexibility in handling logs specific to Sunnylink.
2024-05-26 23:53:04 +02:00
DevTekVE 060b8f084d Enable log_handler in sunnylinkd.py
The 'log_handler' thread in sunnylinkd.py was previously commented out and has now been enabled for execution. This update will allow the 'log_handler' to perform its task in the thread execution sequence.
2024-05-26 23:53:04 +02:00
Jason Wen 04925ab879 ui: ButtonParamControl: Only reset to 0 if the value is less than 0 2024-05-24 02:40:56 -04:00
DevTekVE 30b1180a3b SP-72: sunnylink: Add sunnylink status to Sidebar UI 2024-05-24 06:26:28 +00:00
Jason Wen 0953fb6bf2 Hyundai CAN Longitudinal: Lenient parsing for auto-enabled radar configs 2024-05-24 06:22:20 +00:00
Jason Wen 3f7bf0c167 Params: Fix for SP-35 2024-05-24 01:02:27 -04:00
DevTekVE 55e271be71 mapd: Bump to v1.9.0 2024-05-24 04:38:14 +00:00
Jason Wen 86bec171b0 Params: Add BACKUP to Cython 2024-05-24 00:30:49 -04:00
Jason Wen 1d2ff881b0 SP-35: Driving Model Selector: Reset all related params if branches/remote have changed 2024-05-24 00:16:57 -04:00
Jason Wen 407dfd0d6b Revert "SP-35: Driving Model Selector: Reset all related params if branches/remote have changed" 2024-05-24 04:13:30 +00:00
DevTekVE e78ae2c140 Driving Model Selector: Introduce ModelCapabilities class for model feature handling 2024-05-23 21:39:28 +00:00
DevTekVE 1b10cc8575 Driving Model Selector: Improve progress display for model downloads 2024-05-23 17:59:37 +00:00
Jason Wen 9d82d128ec SP-35: Driving Model Selector: Reset all related params if branches/remote have changed 2024-05-23 17:39:58 +00:00
Jason Wen b77d0809bc ui: ButtonParamControl: Handle out of bound param 2024-05-23 17:34:29 +00:00
DevTekVE 16706bda9c Update model generation conditions in modeld.py and map.cc 2024-05-19 19:23:32 +00:00
DevTekVE 21feff5457 Refactor model generation condition in modeld.py 2024-05-18 18:53:16 +00:00
DevTekVE dcabd306c7 Add default values for DrivingModel parameters 2024-05-18 18:52:51 +00:00
Jason Wen 136fecf86b SP-123: Hyundai CAN Longitudinal: Auto-enable radar tracks on platforms with Mando radar 2024-05-18 04:02:16 +00:00
Jason Wen 42818ba95b Sentry: Add sunnylink_dongle_id tag 2024-05-18 03:59:26 +00:00
Jason Wen 6299b2070d Update CHANGELOGS.md 2024-05-17 20:03:45 -04:00
Jason Wen 7c42ec8b1e SP-120: ui: Fix "Customize Speed Limit Control" submenu button visibility 2024-05-17 23:51:10 +00:00
Jason Wen b5c66e193c Models: Update default name 2024-05-17 19:38:08 -04:00
Jason Wen 3a705a0e1c Volkswagen MQB: Non-ACC fixes with upstream merges 2024-05-17 13:03:37 -04:00
Jason Wen 264788fb4a Manager: Initialize SidebarTemperatureOptions 2024-05-17 16:52:13 +00:00
DevTekVE b471da8975 Config Backup: Remove sponsor check for restore 2024-05-17 16:41:38 +00:00
Jason Wen 27f495e5e7 NoO: Only start processes if NoO-enabled models are selected 2024-05-17 14:34:03 +00:00
Jason Wen 4242c21c52 Honda Platform: Remove redundant code 2024-05-17 14:32:25 +00:00
Jason Wen 9842d68f4c ui: Force offroad from settings when the car is on 2024-05-17 06:00:29 +00:00
Jason Wen 7a286d2f52 Controlsd: Remove unused code and leadDistanceBar parsing with SP values 2024-05-17 04:57:44 +00:00
Jason Wen 0b8262175f Hyundai CAN-FD Longitudinal: Parse lead info for camera-based SCC platforms 2024-05-17 04:48:46 +00:00
Jason Wen 0d6c95dadc SP-121: Platforms: Update old platform names referenced in different features 2024-05-16 23:41:04 -04:00
Jason Wen 8261a71d67 Update CHANGELOGS.md 2024-05-16 23:05:50 -04:00
Jason Wen bb41d2e386 CSLC: Hyundai: Fix upstream conflicts 2024-05-16 22:22:21 -04:00
Jason Wen 0a6bc53fc2 Revert "Longitudinal: Use upstream button timer to toggle between Chill & Experimental Mode"
This reverts commit d959c43284.
2024-05-16 12:45:05 -04:00
Jason Wen 2efdba4daf Update CHANGELOGS.md 2024-05-16 01:31:44 -04:00
Jason Wen d959c43284 Longitudinal: Use upstream button timer to toggle between Chill & Experimental Mode 2024-05-16 00:12:17 -04:00
Jason Wen 755c39b2fd Revert "[$100 bounty] mapsd: switch to static render mode (#32118)"
This reverts commit 3c69fcddc8.
2024-05-15 22:25:53 -04:00
DevTekVE 1c0bf18084 Refactor manage_athenad to make it more generic 2024-05-15 22:25:45 -04:00
Jason Wen e1e26c6b4f NNLC: Rename to new platform names and remove EPS-specific fits for now 2024-05-15 22:25:42 -04:00