Commit Graph

1600 Commits (spacecruft)

Author SHA1 Message Date
Riccardo 7d9bae084a better function name for msg_allowed 2019-12-18 00:17:25 -08:00
Robbe c108df4a44 Bumped version 2019-12-17 13:01:22 -08:00
robbederks 1c6093559d
Allow DFU if OTP block is not locked yet (#405)
* Allow DFU if OTP block is not locked yet

* Fixed misra

* Fixed logic
2019-12-17 22:00:17 +01:00
Willem Melching ce13938ab3 fix typo in elm327 addr comparison 2019-12-16 18:00:40 -08:00
Riccardo e3f1dd78d2 ELM327: allow all addresses between 0.700 and 0x800 2019-12-16 17:51:20 -08:00
Willem Melching ded4b3f743 UDS: handle remote addressing 2019-12-16 15:54:30 -08:00
George Hotz 39818691dd setting long_controls_allowed is only possible on debug builds 2019-12-14 08:32:24 -08:00
Robbe Derks 50b9066db8 Fixed linting errors 2019-12-13 22:28:06 +01:00
Robbe Derks a648ccae4b Add os import 2019-12-13 21:44:39 +01:00
Robbe Derks 042562ddae Extracted wifi connect from test helpers 2019-12-13 21:38:51 +01:00
Greg Hogan ac0fd5dd5d query fw versions example - use extended diagnostic session 2019-12-13 11:45:10 -08:00
Riccardo 4e9d788af7 Remove not-needed cadillac-init 2019-12-12 18:23:03 -08:00
Riccardo f0a5d154cf typo 2019-12-12 11:11:27 -08:00
robbederks c093286b1d
Add bootkick after re-enabling phone power (#401) 2019-12-11 13:42:25 +01:00
George Hotz eadb0dbb1d
security upgrades (#397)
* security upgrades

* Gated DFU entry from debug console as well
2019-12-10 08:14:30 -08:00
Willem Melching 7c13bec09f
Command to get signature (#399)
* Commands to get signature from panda

* does this make misra happy?

* Can I do this in misra?

* this works and makes misra happy

* Add jenkins test for get signature

* Remove comments

* Add comment about code size

* Fix firmware file path
2019-12-09 10:54:48 -08:00
Willem Melching dad439a46e
static assert on size of health packet (#398) 2019-12-09 10:39:04 -08:00
Riccardo da9da4662a Fix VERSION 2019-12-05 14:19:49 -08:00
Riccardo df4159c846 Revert "Revert "Register readback on most modules. Still need to convert the other ones (#396)""
This reverts commit 56ec215024.
2019-12-05 14:19:29 -08:00
Riccardo 56ec215024 Revert "Register readback on most modules. Still need to convert the other ones (#396)"
This reverts commit 893e486194.
2019-12-05 13:55:20 -08:00
robbederks 893e486194
Register readback on most modules. Still need to convert the other ones (#396)
* Added an initial working implementation of the register readback and applied it to the LLCAN registers. Also fixed an init bug in CAN.

* Locally disable pylint import error

* Reverted change to CAN-obj->FA1R setting

* Fixed misra compliance

* Changed hash function name

* Fixed CAN filter setting

* Added voltage health test

* Converted ADC to register functions

* Converted clock to use register setters

* Added check to see if fault status is zero after running test

* Converted DAC to use register setters

* Converted fan to use register setters

* Converted gmlan bitbanging to use register setters

* Changed over interrupt driver to use register setters. Also moved some includes and definition places for critical sections

* Fixed build

* Converted LLGPIO to use register setters

* Converted pwm to use register setters

* Fixed cold boot

* Fixed health fault check in automated tests

* Added comment for the future (issue #367)

* Converted RTC driver to use register setters

* Converted SPI to use register setters

* Converted timer driver to use register setters

* Fixed register fault on white pandas and disabled showing of fault for release

* Bump version
2019-12-04 20:42:57 -08:00
Riccardo 6bbae7be2f VW safety: allow cancel spam on both buses to be compatible with camera and gateway integration 2019-12-03 19:48:33 -08:00
Riccardo d5f7a28760 bump panda 2019-12-03 16:48:59 -08:00
Riccardo 1bcc351f29 ignition_can: set it to False after 2s of not seeing CAN msgs 2019-12-03 16:44:55 -08:00
Riccardo 96137f1a8a VW can based ignition not needed. it has ignition line at camera as well. 2019-12-03 16:27:34 -08:00
Riccardo 1b004a18e9 Same flake8 version as the one in openpilot 2019-12-03 11:40:31 -08:00
Riccardo e82ba5f2e0 Same pylint version as the one in openpilot 2019-12-03 11:39:45 -08:00
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