Adeeb Shihadeh
cb11a40852
test.sh: the master test script ( #2210 )
...
* init test.sh
* good riddance
* docs
* curl
* source
* or
* skip that one
* passes
* clean up
* no pythonpath
* rm that
2025-05-19 21:19:41 -07:00
Willem Melching
a744fa7780
Move isotp.py, ccp.py and xcp.py to opendbc ( #2166 )
...
* Move ccp.py and xcp.py to opendbc
* move isotp
* more cleanup
2025-02-26 10:41:16 -08:00
Shane Smiskol
d3508ff042
Move safety constants to opendbc ( #2145 )
...
* move to opendbc
* all passing
* do the rest
* fix
* and another
* order
* and update ref to master
2025-02-11 20:14:44 -08:00
Shane Smiskol
045fc443ab
remove uds from panda ( #2121 )
...
* remove uds from panda
* rm
* rm
2025-01-13 00:44:22 -08:00
Shane Smiskol
e7a04b54b0
make uds and isotp general imports ( #1998 )
2024-08-16 23:01:54 -07:00
Shane Smiskol
1cbcc13c35
use and configure custom logger ( #1994 )
...
* prepare to log logs
* utils
* discoverability
* forgot
2024-08-05 14:51:56 -07:00
Adeeb Shihadeh
b6e37f25b6
Remove flash logging ( #1674 )
...
* Revert "Disable flash logging (#1667 )"
This reverts commit 62db60595b .
* Revert "Faster log retrieval (#1484 )"
This reverts commit 694aae9c26 .
* Revert "Flash bounds checking outside of bootstub (#1459 )"
This reverts commit 054344de6b .
* Revert "Logging (#1445 )"
This reverts commit 0cc91a7f7b .
* cleanup
* cleanup
2023-09-30 12:49:46 -07:00
Adeeb Shihadeh
047d36398d
SPI flash dump + restore tools ( #1654 )
...
* dump
* restore
* fix
* update
* update
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-09-12 20:04:54 -07:00
Adeeb Shihadeh
d7120be904
panda jungle ( #1547 )
...
* mv jungle
* match pedal style
* fix linter
* fix fw path
* fix paths
* safety!
2023-08-03 23:55:13 -07:00
Adeeb Shihadeh
e7894e6770
Move CanHandle to python/ ( #1550 )
2023-08-03 23:10:16 -07:00
Adeeb Shihadeh
268f6bc2fb
python: lock hw device inside loop ( #1522 )
2023-07-18 00:03:17 -07:00
Adeeb Shihadeh
5d873444b2
SPI: connect by VERSION command ( #1495 )
...
* SPI: connect by VERSION command
* shorter timeout
* add exception
* simple test
* fallback
* bootstub check
* update comments
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-07-16 19:33:18 -07:00
Robbe Derks
0cc91a7f7b
Logging ( #1445 )
...
* try 1
* some fixes
* fix some misra
* first poc working
* more things
* more misra fixes
* fix misra
* add rate limiting
* fix misra
* add some unit tests through libpanda
* add more tests and fix some stuff
* fix misra again
* add startup log hitl test
* list
* don't fail on wrong timestamps
* improvements
* fix tests
* expected logs test?
* not sure why this passed
* oh, it doesn't reset
* only show last few
* guess at expected logs
* needs this
* ugh
* reduce compiler warnings
* adjust expected logs
* this is correct
* is it really 1?
* min max
* reduce spam in SPI test
* some cleanup
2023-06-13 17:00:56 +02:00
Adeeb Shihadeh
2a5058d858
export FW_PATH
2023-05-22 00:01:54 -07:00
Adeeb Shihadeh
76d0459182
cleanup MCU definitions ( #1226 )
...
* cleanup MCU definitions
* rename
* enum
* enum
* fix that
2023-01-26 20:54:11 -08:00
Robbe Derks
11d90f9e78
No more magic for the can chunks ( #1191 )
...
* no more magic
* bump version
* no need for this
* comment cleanup
* add comms_can_reset tests
* we can't ensure this for compatibility reasons
* add CANPacket_t checksum
2023-01-13 10:59:58 -08:00
Adeeb Shihadeh
88b30e1a84
CAN comms test ( #1181 )
...
* CAN comms test
* remove those
* cleanup
* little more
2022-11-30 22:12:28 -08:00
Adeeb Shihadeh
2e90b6f308
cleanup python lib imports
2022-11-21 16:59:21 -08:00
Adeeb Shihadeh
3df9099660
Misc cleanup ( #1161 )
...
* unused python stuff
* green led
* docs cleanup
* little more
2022-11-17 11:46:43 -08:00
Shane Smiskol
81246fdac1
move alternative experience class to python module ( #909 )
...
* move alternative experience class to common python module
* same formatting
2022-04-04 18:49:56 -07:00
Igor Biletskyy
493866d15b
Cleanup Wi-Fi leftovers ( #804 )
...
* cleanup python lib
* remove wifi leftovers from firmware
* few spots in firmware
* forgot
* remove usb to wifi test
* linter
* more cleanup in flasher.h
* more found
* check in tests too
* linter
2021-12-06 14:39:28 -08:00
Igor Biletskyy
ae26b75d7b
CAN_FIFOMailBox to CANPacket struct + USB dynamic packet size ( #739 )
...
* Squashed commits, no cleanup
* Few fixes
* No init = garbage
* Only receive with new canpacket
* Add send with canpacket
* Revert "Add send with canpacket"
This reverts commit 7d06686ddd6d447c714b5289d31af24403d36931.
* Packet must be aligned to word, or bad performance
* Cleaner
* Fix tests
* Tests...
* MISRA 10.4
* More MISRA
* libpandasafety_py
* cffi
* even more tests...
* typo
* ...
* ...
* ...
* Slight cleanup
* MISRA 6.1
* MISRA 17.7
* Bug in bxcan + even style
* MISRA 10.1
* Revert "MISRA 10.1"
This reverts commit 404ae7fcc39556f80f528de9015702e69f4ea0a5.
* ...
* MISRA 10.1 and 10.4 suppress until next PR
* MISRA 20.1
* ...
* test_honda
* ...
* ...
* test_toyota
* test_volkswagen_mqb
* test_volkswagen_pq
* Sketchy thing...
* Revert "Sketchy thing..."
This reverts commit 3b2e5715bdc1954f7b7b3b7469ba3d0eaa06bdf9.
* remove comment
* bxcan extended address bug
* Concept, experimental dynamic usb packet size
* increase each buffer to 10240 bytes
* raise python bulk read/write limits
* ...
* Move packet size to start
* Experimental send, stream-like
* New receive test, stream-like
* cleanup
* cleanup + rebase fixes
* MISRA
* Extra receive method, stream-like, commented out
* type change
* Revert back to buffer for send, stream commented
* forgot ZLP
* lower buffer, add rx failsafe
* ... remove ZLP
* return ZLP back
* Add tx checks to panda fw
* TX stream with counter
* fix counter overflow
* 13 free slots should be enough
* limit tx usb packet
* ...
* Revert max_bulk_msg doubling
* python lib improve speed
* Stream with counter for RX, dirty, needs cleanup
* Increase chunk length to 4096 bytes
* cleanup fdcan.h
* cleanup __init__.py
* MISRA 12.1
* MISRA 10.8
* remove non-streaming usb functions
* more main.c cleanup
* MISRA 15.6
* MISRA 15.5
* MISRA 18.4 and suppress objectIndex
* handling usb pakcets > 63bytes, naming and cleanup
* Cleanup old from tests and update CANPacket_t struct
* Switch to 4 bit DLC instead of 6 bit length
* ops)
* ...
* pylint
* receive python buffer increase
* USB increase receive packet len
* tweak buffers
* No need for so high limits
* MISRA 20.1 workaround
* performance tweaks
* cleanup, dlc to data_len_code naming
* main.c naming
* comments and cleanup for main.c usb
* clean py lib
* pylint
* do not discard good rx messages on stream fail
* cleanups
* naming
* remove bitstruct lib and lower tx limit
* bitstruct lefovers
* fix bug in VW test
* remove adjusting data size and assert on wrong len
* ...
* test new memcpy before merging
* Revert "test new memcpy before merging"
This reverts commit 399465a264835061adabdd785718c4b6fc18c267.
* macros for to/fromuint8_t array
* MISRA hates me!
* tests.c include macros instead
* move CANPacket to can_definitions.h
* vw_pq python test fix
* new memcpy test, REMOVE
* check without alignment
* revert macros for uint8 arrays
* Revert "revert macros for uint8 arrays"
This reverts commit 581a9db735a42d0d68200bd270d87a8fd34e43fe.
* check assert
* Revert "check assert"
This reverts commit 9e970d029a50597a1718b2bb0260196c050fd77f.
* one more variation
* Revert "one more variation"
This reverts commit f6c0528b7ac7e125750dc0d9445c7ce97f6954b5.
* what about read performance
* Revert "what about read performance"
This reverts commit d2610f90958a816fe7f1822157a84f85e97d9249.
* check struct alignment to word
* check for aligned memcpy again
* cleanup
* add CANPacket structure diagram
* update CANPacket and add USB packet struct
* bugfix + refactoring of EP1
* move dlc_to_len to header
* missed include
* typo...
* MISRA
* fk
* lower MAX_CAN_MSGS_PER_BULK_TRANSFER
* bump CAN_PACKET_VERSION to 2
* bump python lib CAN_PACKET_VERSION to 2
* rename parse_can_buffer to unpack_can_buffer
* CANPacket_t const fields
* Revert "CANPacket_t const fields"
This reverts commit cf91c035b7706a14e317550c5f0501ae3fce7c70.
* test.c relative path
* cleanup
* move macros to safety_declarations
* Refactor pack/unpack funcs and add unittest
* usb_protocol.h
* oops
* Update .github/workflows/test.yaml
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* remove print from unittest
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2021-11-12 16:36:34 -08:00
Igor Biletskyy
1b301600ee
add few mcu config consts, add exports ( #704 )
2021-08-03 18:26:33 -07:00
Igor Biletskyy
ba4b754678
add F4 mcu type to python lib "export" ( #703 )
2021-08-03 16:26:43 -07:00
Igor Biletskyy
ad90646001
Support for STM32H7 and Red Panda ( #694 )
...
* H7 drivers
* Include H7 into the code
* fix flash write for H7
* get serial from flasher.h from F4 and H7
* flash.sh and recover.sh for gen3
* add set_data_speed for BRS CAN FD
* build all fws
* gen3 to panda lib
* gen3 name in scons project
* disable fd can and brs
* gen3 to CI tests
* jenkins fix for new tests and build_all
* fix pedal test
* pedal in panda tests again...
* cleanup llfdcan.h
* cleanup clock.h
* Add LDORDY bit check instead of delay
* missing define in stm32h735xx.h lib
* board_id helper
* enable debug detection again
* clean gpio inits
* fix board_id helper, make cleaner
* comment MCUs in stm lib for faster misra
* target MCU
* misra-5.5
* improve headers and misra speed
* cleanup CI tests
* change naming from gen3 to h7
* readable if statement
* cleanup llusb.h
* only cycle one transceifer in bus-off
* move unused funcs to common header
* bus_off_err reset
* misra 10.4 fdcan
* extern to can_data_speed variable
* limit can_data_speed array size to 3
* reinit fd can on data speed change
* Improve test with ELM327 and extaddr check
* bugfix for fdcan
* panda python config naming
* abstracted init request in llfdcan
* misra fdcan
* Improve llusb.h for H7
2021-08-02 20:26:15 -07:00
Willem Melching
ad9ecefe65
Switch panda to scons builder ( #635 )
...
* add scons builder
* cleanup 1
* remove building from python code
* add pedal build
* fixup flags
* add EON flag
* change github actions to scons
* fixup automated tests
* move flashing scripts
* fix indent
* remove version.mk
* fix not in git
* fix linker script filename
* untested pedal flashing scripts
* add release option
* better asserts
* swap condition
* enable usb and fix flash script
* usb flash is not supported
* use button to enable dfu mode
* no usb because misra
* remove sleep
2021-03-24 14:44:32 +01:00
Adeeb Shihadeh
8b41ed3b81
Deprecate ESP ( #592 )
...
* remove unused wifi tests
* remove that one too
* no bootmode from ESP
* clean that up
* remove two more wifi tests
* remove boardesp and esptool
* esp_gps -> gps
* missed those
* remove esptool refs
* remove esp certs
* no more wifi
* that was old
* cleanup jenkins dockerfile
* fix linter
* remove more wifi refs
* clone panda jungle from github
* no copy
* always default esp to off
2020-08-26 15:37:50 -07:00
Willem Melching
b8267341a1
Add pre commit checks + CI ( #545 )
...
* Add pre commit checks
* untested but should work
* fix typo in dockerfile
* add sqlite
* add pylintrc to ignore usb1 members
* Typo in stage name
* Move to requirements
2020-05-29 11:52:03 -07:00
rbiasini
fce38a91d7
Linter python ( #299 )
...
* Added pyflakes and Pylint for python
* Actually run linter in CI
* some simple pyflakes changes
* Add flake8 to panda reqs for linter test
* flake8 errors are fixed
* run flake8 in regression tests
* meant to run flake8
* hack to ignore unused import
* bug
* fix bugs in tucan_loopback
* Another fix by using set_safety_mode
* added pylintrc file
* more fixes and enabled pylint as well
* Fix pylint in circleci
* added linter to readme
2019-10-15 14:03:31 -07:00
George Hotz
65997ffcf5
add PandaSerial and location panda (aka pigeon) test
2018-01-07 11:31:54 -08:00
George Hotz
b74b6f2727
rename panda to python because of git ambiguity
2017-12-06 16:17:57 -08:00
George Hotz
22a00b1043
add st updater
2017-08-28 10:42:23 -07:00
George Hotz
d9e8c07725
more noob friendly release flashing
2017-08-23 20:46:34 -07:00
George Hotz
5821e28d7d
move esptool
2017-08-23 18:47:58 -07:00
Firmware Batman
ae895da21e
support DFU mode in python library
2017-08-22 14:02:34 -07:00
Firmware Batman
c536a8333c
begin to address UDP reliability issues
2017-08-13 02:01:56 +01:00
Firmware Batman
85c0940cf9
support can speed, and test it
2017-07-17 19:43:30 -07:00
Jessy Diamond Exum
dfb69b9e62
Changed python project name and allowed a hack for openpilot to import without installing.
2017-06-20 11:27:45 -07:00
George Hotz
e07f9b111e
initial commit
2017-04-06 18:11:36 -07:00