Commit Graph

23 Commits

Author SHA1 Message Date
Dean Lee 004a097c95 cpplint: add readability/braces filter (#29554)
old-commit-hash: 363740a497620249066522c87ddb03e1362749d4
2023-08-23 10:13:46 -07:00
Adeeb Shihadeh 32a6898820 boardd: reduce jitter around nacks (#29123)
* reduce jitter

* Update selfdrive/boardd/spi.cc

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 4cb8da91d709b5ebc464bdccaad9d815bb9db3ce
2023-07-24 16:37:23 -07:00
Adeeb Shihadeh ac33a1208e boardd: use full buffer size
old-commit-hash: d2fa746b12afb73d1b22f5c867938f49d9c34e08
2023-07-17 12:44:10 -07:00
Adeeb Shihadeh b8de120d86 boardd: read spi resp len with ack (#28966)
old-commit-hash: 3390f1e1df3ea70a30b51fc105d08e769b29892a
2023-07-15 20:13:19 -07:00
Adeeb Shihadeh d9f9d3caae boardd spi: prevent busy wait when TX buffers full (#28599)
old-commit-hash: 4c6f7b5c8454495cd987d073b150007720a95f80
2023-06-20 14:21:34 -07:00
Adeeb Shihadeh 7d3047fb9a Revert "boardd: smaller spi chunk size (#28360)"
This reverts commit 77ff5bd39780dd1a665399cd6df599042ab1469c.

old-commit-hash: 87364b6a812a5781d7e9385078dd2d6f7109c9d4
2023-06-02 16:40:03 -07:00
Adeeb Shihadeh 5ff24ee5bb boardd: smaller spi chunk size (#28360)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 702e4120e6b5a02f1d25089c198f1a0e9a813ac1
2023-06-01 10:36:06 -07:00
Adeeb Shihadeh 53c8f9b782 boardd: less spam msgs on PC (#28353)
old-commit-hash: c67759c7f0d5ae977bfd71744ea50974c292b800
2023-05-31 20:00:20 -07:00
Adeeb Shihadeh 716ffecb14 boardd: set min spi timeout
old-commit-hash: ea1e0a16ddaf0a2f6a253724bd695a04d30af1cc
2023-05-22 19:00:45 -07:00
Comma Device 8459bf03ed boardd: lower timeout for getting serial
old-commit-hash: 18559f41359913cc546837ff3f25ff25428ca20c
2023-05-22 00:45:52 -07:00
Adeeb Shihadeh 29efcea415 spi: handle timeout more like usb (#28249)
old-commit-hash: 038d2264aab863a5c262456782e8c84443c70c56
2023-05-20 23:35:14 -07:00
Adeeb Shihadeh 6dc5e28ef9 boardd: handle nack on tx buffer full (#28241)
* boardd: handle nack on tx buffer full

* print pandaStates

* rx buffer too small

* connect timeout

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e4a37620ee9cb6416e51a3e8346e5008aeeab027
2023-05-19 23:24:52 -07:00
Adeeb Shihadeh 9d2c73eacb boardd: match panda python lib ack bytes (#28225)
old-commit-hash: 885e1edf966f241113ea5f7af2d2030ab24dd808
2023-05-17 23:28:46 -07:00
Adeeb Shihadeh 1b2cb4e7a5 boardd: bump spi to 50MHz
old-commit-hash: 71819b2282919b95616a986e58ddb91996826075
2023-04-06 12:51:30 -07:00
Adeeb Shihadeh 3163033279 boardd: retry on bad SPI RX data len (#27314)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 341eb2e0fd46b79eeb4096b28443f304c3e71528
2023-02-11 21:12:07 -08:00
martinl 0970d900a2 MacOS: build fixes (#27143)
* MacOS: exclude common/gpio.cc

* MacOS: no spi for boardd

* MacOS: loggerd: no v4l_encoder.cc

* MacOS: update libdbc path for cabana
old-commit-hash: fdc4a7f84cb68c63cc5013a052b49663ffb6881c
2023-01-29 13:55:17 -08:00
Adeeb Shihadeh bf804f25bf boardd: connect to SPI panda by UID (#27035)
* move list

* connect by serial

* cleanup hw serial

* little more

* rm excessive print

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 66ff2de0a29438c80e8834ac78a696ca21b30601
2023-01-21 19:42:10 -08:00
Comma Device fdfc06fc59 lower spi log level
old-commit-hash: e710dc1b7ed5fb3c30263bd81e844a03e0889049
2023-01-20 21:07:01 -06:00
Adeeb Shihadeh b798a92225 boardd: lock spi device (#26937)
* lock spi

* bump panda

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 11da83d2b58d26e876fe65e6bb2ec1013b7a5316
2023-01-15 13:52:16 -08:00
Adeeb Shihadeh dda7913a33 boardd: misc spi fixes (#26670)
old-commit-hash: 9cc06e9ea658b74bf1504fa35c6c8729fb1f550f
2022-12-02 11:51:25 -08:00
Adeeb Shihadeh 8e88116dba boardd: SPI bulk read + write (#26462)
* bulk read

* write

* write

* fix write

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 714ab491b0ff90170353df99f43f09bbae1ab00d
2022-11-11 12:51:14 -08:00
Adeeb Shihadeh cec416ac66 boardd: verify SPI checksum (#26454)
* verify checksum

* import from panda

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f5bf3cd21bef0069e0f470ad79ccac3da361a295
2022-11-10 18:37:10 -08:00
Adeeb Shihadeh 461206de1c boardd: SPI support (#26374)
* spi handle

* put usb back

* handle eintr

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ba9a5107b353cc0fc5ab3bbab589b70c2fe9aaa
2022-11-08 13:21:07 -08:00