Commit Graph

2990 Commits

Author SHA1 Message Date
rbiasini
6249a183d6 tx_hook shall have a white-list of messages (#381)
* Started whitelisting messages

* Also toyota and cadilalc fix

* bug fixes and better checks. Need to figure out a solution for honda

* Whitelist also for subaru

* Added Chrysler as well to whitelist

* And Hyundai too

* now all supported cars should have a whitelist of messages

* Fix linter

* This should fix process replay

* Honda too is now whitelisted

* struct typedef

* Had forgot GM

* had a wrong addr for GM whitelist

* This should fix all the tests

* bump panda
2019-11-17 00:24:19 -08:00
Greg Hogan
8138fc14c8 uds: handle function addrs and fw version query example 2019-11-16 18:54:28 -08:00
Robbe
6626a54241 Fixed python health api 2019-11-15 21:01:46 -08:00
Greg Hogan
b9b79e8b77 uds zero second timeout 2019-11-15 13:52:25 -08:00
Riccardo
e0de1a4fc8 define ALLOW_DEBUG in safety tests 2019-11-15 13:19:02 -08:00
Riccardo
86dec4b8ba Safety modes that violate ISO26262 requirements are not compiled in RELEASE build 2019-11-15 12:20:15 -08:00
Riccardo
e74ed93640 safety tests a bit more simplified 2019-11-15 01:12:54 -08:00
Riccardo
2027765bd0 relay malfunction test centralized 2019-11-15 01:03:34 -08:00
Riccardo
8af1a01ac6 clean up safety tests 2019-11-15 00:52:34 -08:00
Riccardo
e8f7a3b2a5 upd panda 2019-11-15 00:33:36 -08:00
rbiasini
cfcce8f06b WIP: Relay malfunction (#384)
* relay malfunction handling. WIP

* more cars to relay_malfunctions

* fixed safety tests

* minor change

* Fix linter

* all cars now have a relay_malfunction safety check

* added relay_malfunction safety test for fwd hooks

* added proper regression tests for relay malfunction to all cars

* temp patch to not fail regression in honda bosch

* also addr 0x194 is some nidec honda is steer control

* proper relay check for honda bosch too
2019-11-15 00:32:45 -08:00
Riccardo
69d9d610a5 No tabs in mazda safety 2019-11-14 18:58:05 -08:00
Riccardo
a86418c140 insignificant changes 2019-11-14 16:33:26 -08:00
Greg Hogan
f239b996db single addr was better 2019-11-14 13:34:25 -08:00
Riccardo
d063a18885 Hyundai safety: re-enable button spam safety check 2019-11-13 23:57:29 -08:00
rbiasini
4d1edc068b skip tx_hook if a message is forwarded (#379) 2019-11-13 23:50:42 -08:00
Riccardo
df2ff04583 bump version 2019-11-13 16:11:50 -08:00
Riccardo
168461d5e4 added fault state to health packet 2019-11-13 16:01:20 -08:00
Greg Hogan
b3e1a133ae uds: better debug prints 2019-11-12 22:22:49 -08:00
Greg Hogan
68c39fb3e2 uds: no need for threads if you always drain rx 2019-11-12 18:52:41 -08:00
Riccardo
91b7c5bb77 bump Panda Ver 2019-11-11 14:30:26 -08:00
Robbe
26cb4dc48a Fixed pylint error 2019-11-09 14:24:56 -08:00
Robbe
32725cc385 Fixed misra compliance 2019-11-09 14:22:16 -08:00
Robbe
e33b4beaa3 Added echo script 2019-11-07 17:45:16 -08:00
Riccardo
312ba62d43 minor comment cleanupo 2019-11-07 12:42:29 -08:00
Robbe
e90897a834 Fix board detection on white 2019-11-06 15:00:07 -08:00
Riccardo
0e72c18378 always stop executing if safety mode fails to be set (suggested by jyoung8607) 2019-11-06 14:45:32 -08:00
Riccardo
e8d7ed1d90 Rename function name to not confuse safety_set_mode and set_safety_mode 2019-11-06 14:30:22 -08:00
Greg Hogan
ff86db6553 improve uds message processing 2019-11-06 13:50:32 -08:00
Comma Device
512ab3f2f0 except Exception 2019-11-06 21:47:18 +00:00
Comma Device
37ce507ae9 py3 all 2019-11-06 21:45:48 +00:00
Comma Device
bac4d85434 dos and python3 2019-11-06 21:42:07 +00:00
Greg Hogan
501db8d199 uds drain before send and use has_obd() 2019-11-05 18:40:21 -08:00
Robbe
f2cbec161e Added has_obd() to python library 2019-11-05 18:25:42 -08:00
robbederks
48e5b18208 Add SDK downloading to the build step (#314) 2019-11-04 18:35:57 -08:00
robbederks
e0762c2e77 Add Python & USB API for controlling phone power (#313)
* Added interface for phone power

* Add power function in python

* Fixed struct
2019-11-04 17:26:37 -08:00
Robbe
ba9fb69f65 New health packet struct also in the python libs 2019-10-31 17:08:02 -07:00
Riccardo
256d274e76 Fix Mac installation instruction per: https://github.com/commaai/panda/pull/308/files 2019-10-31 16:23:55 -07:00
Riccardo
bfd8ff1b18 Update cppcheck commit with more coverage 2019-10-31 13:08:10 -07:00
Robbe
b143a1cf9e Fixed Misra complaint 2019-10-31 11:58:36 -07:00
Robbe
606f1d9131 Fixed RTC on non-uno boards, second try. Cannot work when there is no xtal. 2019-10-30 18:30:00 -07:00
robbederks
933c757705 Fix RTC on non-uno boards (#311)
* Fan and IR at 0 when in power savings mode

* Initialise RTC for all boards, not only uno. Fixes hang while getting time from non-initialized RTCs
2019-10-30 18:11:30 -07:00
rbiasini
48d0d0c782 VW button spam: fix safety and add tests (#306)
* VW button spam: fix safety and add tests

* button spam is actually sent on bus 2

* Fix safety test. Still need to add gas safety test

* added gas safety test to VW and using consistent nomenclature

* style fixes
2019-10-29 15:11:42 -07:00
robbederks
6cccf969ab Fan and IR at 0 when in power savings mode (#309) 2019-10-29 12:36:47 -07:00
Riccardo
05373282a2 board get_sdk scripts were left on python2 2019-10-29 11:51:37 -07:00
Riccardo
de18a7ef1a bump version after uno merge 2019-10-25 16:29:47 -07:00
Robbe
1965817d30 Changed default values for testing 2019-10-25 16:24:53 -07:00
rbiasini
a12a148d5f Uno (#274)
* Added uno

* Added usb switch support

* Added PWM and IR power functions

* Implemented bootkick

* Added uno as a new hw type

* Bumped version

* Added fan control and tach readout

* WIP: RTC support

* Working RTC

* Fixed python

* Misra compliance

* Added USB control messages for fan/IR power

* Added USB commands + tests for fan & IR control. Fixed bootstub and pedal compilation

* Added IR and fan to power saving mode

* Changed defaults

* Fix safety considering uno

* passing safety now

* Minor UNO tweaks

* Fixed version

* More minor temporary tweaks

* Removed usb load switch from uno

* Added power control for shutting down the fan completely

* Disable IR LEDs by default

* Fixed linter issue

* Linter fix #2
2019-10-25 16:22:42 -07:00
Riccardo
7d29dc5a24 bump panda version. We really need a better way 2019-10-25 12:57:18 -07:00
Riccardo
40075321dc VW: stricter limits to comply with comma safety policy 2019-10-24 19:52:16 -07:00