Adeeb Shihadeh
c31c77668f
safer modem manager commands ( #25999 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1f5187892f
3 years ago
Adeeb Shihadeh
a8a9f16845
agnos 6 ( #25864 )
...
* agnos 6
* new agnos
* no casync for now
old-commit-hash: dc65f8a60a
3 years ago
Willem Melching
7451db46cf
sensord: use interrupts to improve LSM6DS3 timing accuracy ( #24525 )
...
* change LSM6DS3TR(-c) gyroscope and accelerometer to interrupt
* add pthread for linking
* add interrupt collector thread to fetch in parallel to non interrupt based sensors
* change get_event interface to return true on successful read
* fetch sensor interrupts via gpiochip
* avoid sending empty messages (interrupt only, non interupt magn can leave a gap in the orphan block)
* add verifier script to sensor interrupts (sensor_data_to_hist.py)
* add/update sensord testsweet (test_sensord.py)
* add poll timed out check
* unexport interrupt gpio pins
* gpiochip on both edges, but skip falling edge if rising edge is detected, this is handled in the sensor as the status flag is checked if new data is availble
* add test to sensord to verify 100Hz interrupt frequency
* add sensor shutdown/low power mode functionality on sensord exit
* relax test, will be readded in the splitup PR
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 84a3c355e5
3 years ago
Adeeb Shihadeh
caac56b92e
USB power mode cleanup ( #25619 )
...
* first pass at usb power mode cleanup
* fix build
* a sneaky one
* little more
* fix build
* bump pnada
* remove that
* power monitoring cleanup
* fix tests
* bump submodules
old-commit-hash: 28cb1897cb
3 years ago
Adeeb Shihadeh
35ff65121e
pre-commit: add codespell ( #25571 )
...
old-commit-hash: 6590fb2b93
3 years ago
Willem Melching
8b39650d99
thermald: log modem data usage ( #25298 )
...
* thermald: log modem data usage
* add to deviceState
* add cast
* set refresh rate
* bump cereal
* cereal master
old-commit-hash: b2c1098cd8
3 years ago
Robbe Derks
a6efa2c7d3
Log SOM power draw ( #24975 )
...
* log SOM power draw
* bump cereal
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 684d4b75a1
3 years ago
Adeeb Shihadeh
9a45a3b99b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
old-commit-hash: 1139fe507b
3 years ago
Adeeb Shihadeh
b9453b2280
tici: always configure modem as data-centric ( #24663 )
...
According to the Quectel docs, this is how it should be configured
for both AT&T and T-Mobile (and likely any other carriers).
old-commit-hash: 5f00c6eca7
3 years ago
Adeeb Shihadeh
18a2f8dfed
affine aux panda IRQ to boardd core ( #24600 )
...
old-commit-hash: 4ef94a436f
3 years ago
Adeeb Shihadeh
5659b6e6ce
more comma two cleanup ( #24300 )
...
* more comma two cleanup
* fix up power monitoring
old-commit-hash: 6a48a7acef
3 years ago
George Hotz
7ebca5b349
no encoder throttle ( #24457 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ed3be29bfa
3 years ago
Adeeb Shihadeh
1056784a95
pandad: better handling of internal panda failures ( #23755 )
...
* reset internal panda
* recover
* internal dfu
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 59134c05d6
3 years ago
Adeeb Shihadeh
4fa266c035
tici downclock ( #24088 )
...
* tici downclock
* fix that
* gp ref
* lower that a bit
* that was a scam
* perf
* update power
* increase that
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b88fb037ab
3 years ago
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: c1388636a2
3 years ago
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: cf6c0ef19a
3 years ago
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: be35caca61
3 years ago
Adeeb Shihadeh
c00256ca1d
bunch of gpu config ( #23932 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: aeb98b3937
3 years ago
Adeeb Shihadeh
bd71c594a2
pylint: enforce indentation (W0311) ( #24039 )
...
* pylint: enforce indentation (W0311)
* few more
old-commit-hash: 8af20af66d
3 years ago
Comma Device
460dd3cc9d
cleanup tici_init in launch script
...
old-commit-hash: 03ac5bb4e3
3 years ago
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: 814741dafe
3 years ago
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: da5a0c41a0
3 years ago
Willem Melching
db3eef978f
athena: add suport for download bandwith setting ( #23727 )
...
* athena: add suport for download bandwith setting
* clean ingress rules
old-commit-hash: 0d099e07aa
3 years ago
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: 4c406cdbe5
3 years ago
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: 3ce4976db7
3 years ago
Adeeb Shihadeh
37985cb592
tici: higher cpu freq while offroad ( #23151 )
...
old-commit-hash: c8e64b2c62
3 years ago
Adeeb Shihadeh
c01f1a8f31
tici: use powersave CPU governor while offroad ( #23146 )
...
* tici: use powersave CPU governor while offroad
* fix path
old-commit-hash: 5e20a46db6
3 years ago
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: 6462ced209
3 years ago
Willem Melching
8075022d8e
modem.Command timeout is in seconds ( #22851 )
...
* modem.Command timeout is in seconds
* getting tempts needs longer timeout
old-commit-hash: 14f0df0f22
4 years ago
Adeeb Shihadeh
18b2d1fee0
thermald: log screen brightness ( #22570 )
...
* thermald: log screen brightness
* bump cereal
old-commit-hash: d708b5b546
4 years ago
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: 493e32431c
4 years ago
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: 6117c7ce81
4 years ago
Adeeb Shihadeh
48f53addbf
tici: set amplifier config after exiting power save ( #21920 )
...
old-commit-hash: 3193396969
4 years ago
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: a7aa22253b
4 years ago
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: cbae2899df
4 years ago
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: 45d4f8301b
4 years ago
Willem Melching
f973c0bc04
cloudlog modem version ( #21562 )
...
* log modem version
* whitespace
old-commit-hash: fb8f0ac092
4 years ago
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: ad7f0207ac
4 years ago
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: 050a89e598
4 years ago
Willem Melching
47b1b6042b
add modem state to NetworkInfo
...
old-commit-hash: 7a8c7505d0
4 years ago
Willem Melching
caabd56607
Add engineering output to deviceState.networkInfo ( #20948 )
...
* Add engineering output to deviceState.networkInfo
* update cereal
old-commit-hash: e8641f6430
4 years ago
Willem Melching
46315123bd
get_network_info: check response length
...
old-commit-hash: def141571c
4 years ago
Willem Melching
b3873f00a4
thermald: fetch more detailed network info ( #20928 )
...
old-commit-hash: f6cf350d3a
4 years ago
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: 9edda6fbc1
4 years ago
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: b0bd123445
4 years ago
Adeeb Shihadeh
b3f8b886cb
fix tici sound card check
...
old-commit-hash: 59ea5eade9
4 years ago
Willem Melching
46ecd68beb
needs to be int
...
old-commit-hash: ff1cd3de1e
4 years ago
Willem Melching
f0da92ba5c
set brightness, catch exceptions
...
old-commit-hash: 0d02e85873
4 years ago
Willem Melching
3844c5a2e7
tici fix ambient temperature zone
...
old-commit-hash: 0d635bd59d
4 years ago
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: 4c243da019
4 years ago