Commit Graph

47 Commits

Author SHA1 Message Date
Adeeb Shihadeh ad8e58c250 comma three: correctly set initial EPS bearer settings for AT&T sim cards (#24175)
* 3g sunset

* only for blue prime

* pass

* full att code

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c1388636a28b880e5c9b07bcaa8fbf867e23f02a
2022-04-11 15:33:58 -07:00
Adeeb Shihadeh 9ce9e38cf7 tici IRQ tuning (#24170)
* first pass

* move that back

* move that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cf6c0ef19a20026c7cf3ac057e652b517ed82578
2022-04-11 10:49:27 -07:00
Willem Melching 9cd2f5a7a3 Log modem version and some NV values (#24137)
* add back modem version number logging

* tici only

* log nv

* make event

* str cast
old-commit-hash: be35caca614c45f54d2e76f394b2fdecd841cb3f
2022-04-05 14:29:07 -07:00
Adeeb Shihadeh c00256ca1d bunch of gpu config (#23932)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: aeb98b39373135e224255f5869748cf0bb6dc336
2022-03-25 13:46:36 -07:00
Adeeb Shihadeh bd71c594a2 pylint: enforce indentation (W0311) (#24039)
* pylint: enforce indentation (W0311)

* few more
old-commit-hash: 8af20af66ddaa6bc06d7f72f9134aa9afeed3ed8
2022-03-24 23:23:29 -07:00
Comma Device 460dd3cc9d cleanup tici_init in launch script
old-commit-hash: 03ac5bb4e3fd23176d5a1f9cb32a3e8f5fc95a59
2022-03-21 16:45:24 -07:00
George Hotz 2621c00ec1 thermald: use named thermal zones (#23936)
* thermald: use named thermal zones

* remove print

* and for c2

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 814741dafe6a591b87d23d3b0aa9662a01f61634
2022-03-14 14:45:50 -07:00
Willem Melching 2eded18267 C3: detect metered Android hotspot (#23734)
* C3: detect metered networks

* show in ui

* fix text layout

* bump cereal

* revert ui changes

* set networkMetered

* add athena method

* add metered logging to uploader

* use in athena uploader

* remove param

* use networkmanager properties to set cell to unmetered

* fix indentation

* no need to check

* bump cereal

* review

* bump cereal
old-commit-hash: da5a0c41a00e4de076c2846ed54049c3dff3bc5a
2022-03-09 11:36:52 +01:00
Willem Melching db3eef978f athena: add suport for download bandwith setting (#23727)
* athena: add suport for download bandwith setting

* clean ingress rules
old-commit-hash: 0d099e07aa1b16e2df5034835c1a6be3a721caa0
2022-02-08 12:07:11 +01:00
Willem Melching fb18d7b789 Add setUploadLimit method to athena (#23693)
* Add setUploadLimit method to athena

* add comments

* move to hw abstraction layer

* move to hw

* better errors
old-commit-hash: 4c406cdbe5c702d50a93410adf9d2d5b7f1b987a
2022-02-07 16:55:16 +01:00
Willem Melching efc06c6290 thermald: track engaged state in param and kmsg (#23478)
* thermald: track engaged state in param

* write in kmsg

* format string

* move to python
old-commit-hash: 3ce4976db79fde95264f114b61d6be025aec9a71
2022-01-10 19:54:07 +01:00
Adeeb Shihadeh 37985cb592 tici: higher cpu freq while offroad (#23151)
old-commit-hash: c8e64b2c62b908fbbd78d8520d9277421e51d7b7
2021-12-07 21:44:35 -08:00
Adeeb Shihadeh c01f1a8f31 tici: use powersave CPU governor while offroad (#23146)
* tici: use powersave CPU governor while offroad

* fix path
old-commit-hash: 5e20a46db6882c4f48160f7a9f98d695bcbea873
2021-12-06 13:53:55 -08:00
George Hotz 5d990ad509 thermald: track power usage / pmic temps (#23013)
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6462ced209fe545c2354c0d04bee98767a03eea7
2021-11-23 16:08:20 -08:00
Willem Melching 8075022d8e modem.Command timeout is in seconds (#22851)
* modem.Command timeout is in seconds

* getting tempts needs longer timeout
old-commit-hash: 14f0df0f228bae8a6a106fe67bcdf95af153929c
2021-11-10 16:05:27 +01:00
Adeeb Shihadeh 18b2d1fee0 thermald: log screen brightness (#22570)
* thermald: log screen brightness

* bump cereal
old-commit-hash: d708b5b5464811dc6b58b7e88dfe614f90170723
2021-10-15 17:19:45 -07:00
Adeeb Shihadeh afe88f7552 only run get_nvme_temps on C3 (#22464)
* only run get_nvme_temps on C3

* temperatures

* fix imports

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 493e32431c721aa92c2f53800109155284928969
2021-10-06 20:32:22 -07:00
Robbe Derks 4827dea04c Log modem temps on Tici (#22281)
* log max modem temp

* not sure what happened here

* fix this

* make modem temps a list

* this is not needed

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6117c7ce816f8896702ac4810ff8d421d2f6f224
2021-09-21 14:40:05 +02:00
Adeeb Shihadeh 48f53addbf tici: set amplifier config after exiting power save (#21920)
old-commit-hash: 31933969693b0e1b62fcf94953f2c46b0c2213d0
2021-08-13 00:46:54 -07:00
Willem Melching cf2f6b964d Athena getNetworks method (#21597)
* add iwlist scan

* return using athena

* add lte

* add last one too

* unused

* add release files

* more compact

* typo

* remove debug code

* different file

* array

* rebase mistake
old-commit-hash: a7aa22253bf607c6cc3087b3e0471d6d1b52126b
2021-07-14 16:16:45 +02:00
robbederks 6e867a05cf Tici: amplifier config (#21596)
* amplifier config on boot

* add to release

* another spot

* add debug when running separately

* rename for clarity
old-commit-hash: cbae2899df9975c7e6762fa12a48f8730bde7df2
2021-07-14 15:53:39 +02:00
Willem Melching d136144d45 hardware: only create dbus objects when needed (#21576)
* only create dbus objects when needed

* fix typo

* use cached_property
old-commit-hash: 45d4f8301be7f686c359fad00dc837066c325ca0
2021-07-13 16:22:22 +02:00
Willem Melching f973c0bc04 cloudlog modem version (#21562)
* log modem version

* whitespace
old-commit-hash: fb8f0ac09213014095358f937e7be2b2d22bb4c6
2021-07-12 15:52:09 +02:00
Willem Melching 30fff7fead Log gpu usage (#21404)
* Log gpu usage

* 100 total

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ad7f0207ac9c587c2e1740c61bddad5fbba11296
2021-06-29 13:55:18 -07:00
Adeeb Shihadeh 28c60666ff tici: differentiate ethernet and tethering (#21391)
* differentiate ethernet

* fix tethering

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 050a89e5981a1cf48abec38c9c7a362092e7dad2
2021-06-23 15:55:51 -07:00
Willem Melching 47b1b6042b add modem state to NetworkInfo
old-commit-hash: 7a8c7505d0135408a2d756c3b029ac13f583083a
2021-05-20 14:49:59 +02:00
Willem Melching caabd56607 Add engineering output to deviceState.networkInfo (#20948)
* Add engineering output to deviceState.networkInfo

* update cereal
old-commit-hash: e8641f643056bc6719559ea264121a52bcf79ed9
2021-05-18 14:08:08 +02:00
Willem Melching 46315123bd get_network_info: check response length
old-commit-hash: def141571c38423fbf921da9ec858ca53da6d94e
2021-05-17 23:08:20 +02:00
Willem Melching b3873f00a4 thermald: fetch more detailed network info (#20928)
old-commit-hash: f6cf350d3ad34fccef4e982af07cf95b5f96fe59
2021-05-17 13:10:08 +02:00
Adeeb Shihadeh 31d818b39a tici: offline big cluster while offroad (#20668)
* tici: offline big cluster while offroad

* shuffling

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9edda6fbc1e4030e2e86ec7041d81c39cd27c8a0
2021-04-12 23:06:24 -07:00
Adeeb Shihadeh 4fef6d01a6 tici power saving (#20644)
* start power saving

* set power save in thermald

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b0bd1234455ab3c2ae15290fa42a6513df0c79b4
2021-04-12 01:40:58 -07:00
Adeeb Shihadeh b3f8b886cb fix tici sound card check
old-commit-hash: 59ea5eade9f3266fc4cd9519a71fc0a84cae4ac2
2021-03-04 11:57:43 -08:00
Willem Melching 46ecd68beb needs to be int
old-commit-hash: ff1cd3de1e380ba3990ff70c231bf99d1272a331
2021-03-04 13:25:50 +01:00
Willem Melching f0da92ba5c set brightness, catch exceptions
old-commit-hash: 0d02e858735aa39137074704b6c9356632935852
2021-03-04 13:19:30 +01:00
Willem Melching 3844c5a2e7 tici fix ambient temperature zone
old-commit-hash: 0d635bd59db468d0544b55eaad2154c285fff4a4
2021-03-01 14:04:25 +01:00
robbederks 2db03fdbe2 Turn up brightness a little when UI crashes (#20142)
* implement ui check and brightness set in thermald

* fix bugs

* only set once

* duh

* forgot factor for tici
old-commit-hash: 4c243da0194b8fcefb3c7cba3472fa983ccd7052
2021-02-24 15:25:06 +01:00
robbederks 0f73681f8d Fix tici powerdown and add support for forcing (#20132)
* also shutdown on tici

* force powerdown

* bump panda

* abstract out shutdown and thermal config

* add comment on tici shutdown

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ad1c793d1c4fbb37d763b40750561ad3aca137e
2021-02-23 17:04:10 +01:00
Adeeb Shihadeh 05eb44115e cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.

* panda state

* camera stuff

* start deg

* most is building

* builds

* planner + controls run

* fix up paramsd

* cleanup

* process replay passes

* fix webcam build

* camerad

* no more frame

* thermald

* ui

* paramsd

* camera replay

* fix long tests

* fix camerad tests

* maxSteeringAngle

* bump cereal

* more frame

* cereal master
old-commit-hash: 312b681a46b8153314a8420611b6479dd6f70dfc
2021-02-16 21:39:32 -08:00
Willem Melching 946b669ec5 Qt ui: set timeout on all dbus interfaces in wifiManager (#20090)
* set timeout on all dbus interfaces in network

* fix hardcoded timeout

* lower timeout in thermald
old-commit-hash: cf3cd54b687fc63f8cbbfddde14f4977a2efd452
2021-02-16 15:57:01 +01:00
Adeeb Shihadeh 43d680c9c5 add device type to clouglog ctx (#19890)
* add device type to clouglog ctx

* remove is_eon

* str
old-commit-hash: c9679222aebfcbf0dcce7ac00d2e03d19101a81f
2021-01-22 20:02:48 -08:00
Adeeb Shihadeh c20cd542eb uninstall from qt offroad (#19538)
* more offroad

* implement uninstall

* just uninstall for now
old-commit-hash: 8d9be50bccfecbd0a9f346b3788b667aa00b6e61
2020-12-18 23:06:40 -08:00
Adeeb Shihadeh 80d2ba19c0 tici: implement sound check
old-commit-hash: 97b2eae01f68c4fb90632592e1cf0d71304bb94d
2020-12-18 15:00:12 -08:00
Willem Melching 4fb90a9722 Add timeout to dbus calls
old-commit-hash: cd6f26664cb8d32a13847d6648567c47c580e248
2020-12-18 14:06:49 +01:00
Willem Melching 5a1f57c490 Add exception handlers to dbus network stats
old-commit-hash: dbd7b10bae91693f4dc6104c8d0c1aacd35486b4
2020-12-18 13:42:35 +01:00
Adeeb Shihadeh 349429836c agnos updater (#2600)
* agnos updater

* add manifest

* fix path

* get manifest from overlay

* update manifest

* remove merge markers

* add streaming decompressor

* dont need read all

* Unsparsify

* Fix output filename

* Optimization

* cleanup

* Small cleanup

* Read manifest from merged overlay

* Write hash at end of partition

* Sync before writing hash

* Write bytes in file

* add manifest with image sizes

* Fix manifest path

* File was closed already

* Format string

* Put raw hash

* Read hashes in launch script

* update launch script

* should be agnos version

* fix slot

* Make sure we clear the hash

* Verify partition size

* move updated

* Standalone flasher

* Don't rely on ordering

* Get path

* Debug log

* Download agnos

* Info is enough

* update manifest

* Remove f

* Check downloader return code

* Exit on wrong manifest

* Fix typos

* Set pythonpath before hardware init

* move agnos into hardware folder

* remove comments

* Fix abstractmethod

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b276881fcdb95b6160bae23600ed204f521bdbb4
2020-12-18 13:17:12 +01:00
Adeeb Shihadeh c4bff3f93b manager cleanup (#2634)
* start cleanup

* add uninstall to hw abstraction layer

* cleanup

* litte more

* don't build at import time

* fix tests

* don't build by default

* sync
old-commit-hash: 220853730d1d3163f5534ed5fd31ec5c30ad129f
2020-12-17 11:45:41 -08:00
Adeeb Shihadeh b950cab874 HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
old-commit-hash: 8674b023bab2b44405139ceec5785a389f837682
2020-12-16 21:30:23 -08:00