Commit Graph

1323 Commits

Author SHA1 Message Date
robbederks
656f99b080 Interrupt refactor (NVIC_SM_1: #334) and Fault handling (#377) (PR #373) 2019-11-27 18:11:21 -08:00
Clay Dugo
000282e544 Fix can_logger.py to run correctly on python3 (#392) 2019-11-27 11:11:55 -08:00
Jason Young
7f9b4a59b6 Fix USB device enumeration on Windows 8.1 and Windows 10 (#393)
* Remove USB 2.0 Extension from BOS descriptor.

* Declutter usb.h of unused code.

Now that I'm more confident the USB 2.0 Extensions are only required
for USB 3.0 devices, and there's less mystery around why the change
worked for us, garbage-collect the commented-out descriptor.
2019-11-27 11:03:37 -08:00
Riccardo
dec565c728 Update Misra test coverage, which now includes rule 2.7 2019-11-27 00:23:32 -08:00
Riccardo
fb6bc3ba7e Fix Misra 2019-11-27 00:19:41 -08:00
Riccardo
878dd00ac8 solve race condition is relay_malfunction right after changing the relay status by adding a counter 2019-11-26 21:37:01 -08:00
Riccardo
2d4cb05cf1 add a safety mode counter 2019-11-26 21:20:04 -08:00
Robbe
a6797a213e Implement USB power mode on uno 2019-11-26 19:37:38 -08:00
Robbe
670f90cc83 Merge branch 'master' of github.com:commaai/panda 2019-11-26 17:08:05 -08:00
Robbe
ca39a5d8f6 Added faults integer to health packet 2019-11-26 17:07:51 -08:00
robbederks
e1c34a1a29 Panda Jungle testing (#394)
Rebase all open branches on this commit to make sure they are tested correctly!
2019-11-26 16:18:34 -08:00
Robbe
2a093a39f2 Added heartbeat to echo test 2019-11-25 13:09:58 -08:00
Robbe
22464356c3 Fixed health struct size. We should really get an automated test for this 2019-11-22 16:02:08 -08:00
robbederks
f458d67a7c Add uptime counter to the health packet (#391)
* Added uptime counter to the health packet

* fix tests by setting power save on on EON build
2019-11-21 16:47:49 -08:00
Riccardo
16624811c4 enable CAN transcievers outside the set_safety_mode function, which is not related 2019-11-21 13:42:36 -08:00
Riccardo
a7c98744fc bump panda ver 2019-11-21 13:24:51 -08:00
rbiasini
1192d934a0 Power saving refactor (#389)
* Exit power saving also for CAN based ingition detection and replace interrup with simple state machine. a bit of delay it's fine

* bug fixes and also CDP set on start

* sorry misra

* move comment

* typo

* remove ignition interrupts

* Power saving state machine should be done by boardd, which also sets safety modes and usb power modes

* typo

* Added usb command for power save state setting

* Added power save enabled packet

* Added power_save_enabled to python lib too
2019-11-21 12:53:00 -08:00
Riccardo
d58d08fbbf Fix Misra 17.8: can't mod function params 2019-11-20 15:13:26 -08:00
Riccardo
bc685ac91b Minor indent 2019-11-20 14:04:07 -08:00
Riccardo
a54b86c4ba Failure of set_safety_mode falls back to SILENT. Failure to set silent results in hanging 2019-11-20 13:36:29 -08:00
rbiasini
597436d32a NOOUTPUT safety mode is now SILENT. NOOUTPUT still exists but keeps C… (#388)
* NOOUTPUT safety mode is now SILENT. NOOUTPUT still exists but keeps CAN live

* README mention of 'no output'

* mispelled
2019-11-20 11:56:26 -08:00
rbiasini
d229f8dcd3 ESP forced off in EON build. this prevents ESP to be turned on when e… (#387)
* ESP forced off in EON build. this prevents ESP to be turned on when exiting power mode: 0.5W power save! Also, boardd does not need to set ESP to off anymore

* don't touch ESP uart

* Refactored ESP/GPS initting

* Fixed white detection
2019-11-19 18:41:59 -08:00
Riccardo
8a044b3444 forgot Hyundai: now also using make_msg 2019-11-19 11:33:23 -08:00
Riccardo
4f9c879696 remove abunch of lines from safety regression tests by using common make_msg function 2019-11-19 11:29:04 -08:00
Riccardo
fb81414305 mispelled word 2019-11-19 10:22:22 -08:00
Riccardo
57f5ef8cd8 Fix misra: addr can't be more than 29 bits anyway 2019-11-18 15:53:08 -08:00
Riccardo
68ff501277 typo 2019-11-18 13:13:31 -08:00
Riccardo
d5c772b0b1 Fixe Toyota message white-list 2019-11-18 12:52:31 -08:00
Riccardo
48197a9216 Better masking for ELM mode 2019-11-18 12:05:05 -08:00
Riccardo
b8fe78c3e7 VW is also tested for safety replay 2019-11-17 23:35:16 -08:00
Riccardo
212d336b3d Safety Chrysler: Added cancel spam button check 2019-11-17 22:32:13 -08:00
Greg Hogan
d44b5621cd fix print in example 2019-11-17 11:19:59 -08:00
Greg Hogan
02d579a537 functional addr handling 2019-11-17 09:30:06 -08:00
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