Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HKG: Car Port for Hyundai Palisade and Kia Telluride 2023-24 (non-HDA2) #1273

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

sunnyhaibin
Copy link
Contributor

@sunnyhaibin sunnyhaibin commented Sep 24, 2024

Checklist

  • added entry to CarInfo in selfdrive/car/*/values.py and ran selfdrive/car/docs.py to generate new docs
  • test route added to routes.py
  • route with stock system:
    • Hyundai Palisade 2023: f2cf0de0119d2a16|2023-03-02--09-39-50
    • Kia Telluride 2023:
  • route with openpilot:
    • Hyundai Palisade 2023 (non-HDA2): f2cf0de0119d2a16|2023-03-03--21-13-05
    • Kia Telluride 2023 (non-HDA2):
  • harness type:
    • Hyundai Palisade 2023:
    • Kia Telluride 2023:
  • architecture: CAN-FD

Link to all physical parts during installation

Supersedes

Requires

openpilot PR

@github-actions github-actions bot added car related to opendbc/car/ hyundai DBC signals labels Sep 24, 2024
@jyoung8607 jyoung8607 self-assigned this Sep 29, 2024
Copy link
Collaborator

@jyoung8607 jyoung8607 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one could use some preparatory refactors (in separate PRs) before going forward.

  • The CanBus class should move from hyundaicanfd to values, and then just switch to always using that for bus selection on all cars, getting rid of a lot of extra conditional branches.
  • The CAN packer functions should gain a bus argument and the bus should be passed down from carcontroller. This will allow a lot of cleanup, especially the duplicate lkas11 packer.

I can help with some of the refactors later.

@@ -113,11 +113,12 @@ def update(self, cp, cp_cam, *_) -> structs.CarState:
ret.cruiseState.standstill = False
ret.cruiseState.nonAdaptive = False
else:
ret.cruiseState.available = cp_cruise.vl["SCC11"]["MainMode_ACC"] == 1
scc_bus = "SCC12" if self.CP.flags & HyundaiFlags.CAN_CANFD_HYBRID else "SCC11"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scc_bus is a misnomer, it's really scc_msg.

@jyoung8607 jyoung8607 marked this pull request as draft September 29, 2024 16:54
Copy link
Contributor

This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.

@Falseclock
Copy link

Falseclock commented Nov 28, 2024

@sunnyhaibin

still does not work, only Dashcam mode, no actual speed, turinng stock SCC ON does nothing.

Installed openpilot palisade-2023-port-1

via SSH downloaded this branch, built and installed.

copied buld into /data/openpilot/opendbc_new directory
and pointed symlink /data/openpilot/opendbc to the new one.

Logs available under this route
1c5bce9ae79fdd50/00000002--2668ae0c6e

installation and build log
dont know why log of scons -j8 dissapeared, but also was successfull.

comma@comma-e6eba35d:~/opendbc$
Using username "comma".
Authenticating with public key "aws.mp.kz"
                      .~ssos+.
                    +8888888888i,
                   {888888888888o.
                   h8888888888888k
                   t888888888s888k
                    `t88888d/ h88k
                       ```    h88l
                             ,88k`
                            .d8h`
                           +d8h
                        _+d8h`
                      ;y8h+`
                      |-`


Welcome to AGNOS (GNU/Linux 4.9.103+ aarch64)

Here are some useful commands:
  Enter the tmux session where the comma service runs
  (note: tmux prefix key has been configured to backtick)
    └── tmux a

  Install Ubuntu packages
    └── sudo apt update && sudo apt install <pkg>

  Install Python packages
    └── pip install <pkg>

When modifying AGNOS, keep in mind that the system partition isn't
particularly large. /data/ is the largest partition, and unlike the
rest of the partitions, it will persist across AGNOS updates.

Want a clean slate? Reflash AGNOS with https://flash.comma.ai.


The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

comma@comma-e6eba35d:/data/openpilot$ cd ~
comma@comma-e6eba35d:~$ pws
-bash: pws: command not found
comma@comma-e6eba35d:~$ pwd
/home/comma
comma@comma-e6eba35d:~$ ls
comma@comma-e6eba35d:~$
comma@comma-e6eba35d:~$
comma@comma-e6eba35d:~$ sudo apt-get update
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [128 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [128 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [128 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages [940 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal/main Translation-en [506 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports focal/restricted arm64 Packages [1,300 B]
Get:8 http://ports.ubuntu.com/ubuntu-ports focal/restricted Translation-en [6,212 B]
Get:9 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 Packages [8,458 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports focal/universe Translation-en [5,124 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports focal/multiverse arm64 Packages [114 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports focal/multiverse Translation-en [104 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [2,857 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports focal-updates/main Translation-en [564 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted arm64 Packages [47.6 kB]
Get:16 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted Translation-en [473 kB]
Get:17 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [1,161 kB]
Get:18 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe Translation-en [297 kB]
Get:19 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse arm64 Packages [10.7 kB]
Get:20 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse Translation-en [7,936 B]
Get:21 http://ports.ubuntu.com/ubuntu-ports focal-backports/main arm64 Packages [45.4 kB]
Get:22 http://ports.ubuntu.com/ubuntu-ports focal-backports/main Translation-en [16.3 kB]
Get:23 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe arm64 Packages [24.3 kB]
Get:24 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe Translation-en [16.3 kB]
Get:25 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [2,534 kB]
Get:26 http://ports.ubuntu.com/ubuntu-ports focal-security/main Translation-en [484 kB]
Get:27 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted arm64 Packages [47.3 kB]
Get:28 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted Translation-en [456 kB]
Get:29 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 Packages [939 kB]
Get:30 http://ports.ubuntu.com/ubuntu-ports focal-security/universe Translation-en [215 kB]
Get:31 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse arm64 Packages [5,392 B]
Get:32 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse Translation-en [5,968 B]
Fetched 26.1 MB in 12s (2,179 kB/s)
Reading package lists... Done
comma@comma-e6eba35d:~$ sudo apt-get install -y git python3-pip
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  python-pip-whl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
Recommended packages:
  python3-dev
The following packages will be upgraded:
  git python-pip-whl python3-pip
3 upgraded, 0 newly installed, 0 to remove and 139 not upgraded.
Need to get 6,466 kB of archives.
After this operation, 11.3 kB disk space will be freed.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 git arm64 1:2.25.1-1ubuntu3.13 [4,427 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 python3-pip all 20.0.2-5ubuntu1.11 [231 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 python-pip-whl all 20.0.2-5ubuntu1.11 [1,808 kB]
Fetched 6,466 kB in 3s (2,423 kB/s)
(Reading database ... 92839 files and directories currently installed.)
Preparing to unpack .../git_1%3a2.25.1-1ubuntu3.13_arm64.deb ...
Unpacking git (1:2.25.1-1ubuntu3.13) over (1:2.25.1-1ubuntu3.11) ...
Preparing to unpack .../python3-pip_20.0.2-5ubuntu1.11_all.deb ...
Unpacking python3-pip (20.0.2-5ubuntu1.11) over (20.0.2-5ubuntu1.10) ...
Preparing to unpack .../python-pip-whl_20.0.2-5ubuntu1.11_all.deb ...
Unpacking python-pip-whl (20.0.2-5ubuntu1.11) over (20.0.2-5ubuntu1.10) ...
Setting up git (1:2.25.1-1ubuntu3.13) ...
Setting up python-pip-whl (20.0.2-5ubuntu1.11) ...
Setting up python3-pip (20.0.2-5ubuntu1.11) ...
Processing triggers for man-db (2.9.1-1) ...
Not building database; man-db/auto-update is not 'true'.
comma@comma-e6eba35d:~$ pip uninstall opendbc
WARNING: Skipping opendbc as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
comma@comma-e6eba35d:~$ git clone https://github.com/sunnypilot/opendbc
Cloning into 'opendbc'...
remote: Enumerating objects: 12400, done.
remote: Counting objects: 100% (3928/3928), done.
remote: Compressing objects: 100% (565/565), done.
remote: Total 12400 (delta 3622), reused 3530 (delta 3361), pack-reused 8472 (from 1)
Receiving objects: 100% (12400/12400), 4.24 MiB | 745.00 KiB/s, done.
Resolving deltas: 100% (9273/9273), done.
comma@comma-e6eba35d:~$ cd opendbc/
comma@comma-e6eba35d:~/opendbc$ git switch palisade-2023-port-2-new
Branch 'palisade-2023-port-2-new' set up to track remote branch 'palisade-2023-port-2-new' from 'origin'.
Switched to a new branch 'palisade-2023-port-2-new'
comma@comma-e6eba35d:~/opendbc$ pip install .
Processing /home/comma/opendbc
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pandacan@ git+https://github.com/sunnypilot/panda.git@palisade-2023-port-1
  Cloning https://github.com/sunnypilot/panda.git (to revision palisade-2023-port-1) to /tmp/pip-tmp/pip-install-m2jdlx7p/pandacan_5db7c5a2292045f68f8705848429bf8d
  Running command git clone --filter=blob:none --quiet https://github.com/sunnypilot/panda.git /tmp/pip-tmp/pip-install-m2jdlx7p/pandacan_5db7c5a2292045f68f8705848429bf8d
  Running command git checkout -b palisade-2023-port-1 --track origin/palisade-2023-port-1
  Switched to a new branch 'palisade-2023-port-1'
  Branch 'palisade-2023-port-1' set up to track remote branch 'palisade-2023-port-1' from 'origin'.
  Resolved https://github.com/sunnypilot/panda.git to commit d73e612482195a91cb8a9739be6713118d68c6b1
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: scons in /usr/local/pyenv/versions/3.11.4/lib/python3.11/site-packages (from opendbc==1.0.0) (4.6.0.post1)
Requirement already satisfied: numpy in /usr/local/pyenv/versions/3.11.4/lib/python3.11/site-packages (from opendbc==1.0.0) (1.26.4)
Requirement already satisfied: Cython in /usr/local/pyenv/versions/3.11.4/lib/python3.11/site-packages (from opendbc==1.0.0) (3.0.8)
Requirement already satisfied: crcmod in /usr/local/pyenv/versions/3.11.4/lib/python3.11/site-packages (from opendbc==1.0.0) (1.7)
Requirement already satisfied: tqdm in /usr/local/pyenv/versions/3.11.4/lib/python3.11/site-packages (from opendbc==1.0.0) (4.66.1)
Requirement already satisfied: setuptools in /usr/local/pyenv/versions/3.11.4/lib/python3.11/site-packages (from opendbc==1.0.0) (69.0.3)
Requirement already satisfied: libusb1 in /usr/local/pyenv/versions/3.11.4/lib/python3.11/site-packages (from pandacan@ git+https://github.com/sunnypilot/panda.git@palisade-2023-port-1->opendbc==1.0.0) (3.1.0)
Building wheels for collected packages: opendbc, pandacan
  Building wheel for opendbc (pyproject.toml) ... done
  Created wheel for opendbc: filename=opendbc-1.0.0-py3-none-any.whl size=296410 sha256=5cf3b63cb4db44235579de7bc897d5c4997227e38f9e37c59b2494ead66acd1b
  Stored in directory: /tmp/pip-tmp/pip-ephem-wheel-cache-2sif4pli/wheels/d3/4e/62/3d891684351bbbb58f2184cef0f08130a47944b573e9aa10c1
  Building wheel for pandacan (pyproject.toml) ... done
  Created wheel for pandacan: filename=pandacan-0.0.10-py2.py3-none-any.whl size=37504 sha256=cfaf6e814518d441f1ed5088548dcff14e4a9adc3c10b1bf65122867f7977368
  Stored in directory: /tmp/pip-tmp/pip-ephem-wheel-cache-2sif4pli/wheels/76/5b/75/1079cca8ce9b65867bacb688d69d2ca862709f7228eca02bea
Successfully built opendbc pandacan
Installing collected packages: pandacan, opendbc
Successfully installed opendbc-1.0.0 pandacan-0.0.10
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

[notice] A new release of pip available: 22.3.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
comma@comma-e6eba35d:~/opendbc$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
comma@comma-e6eba35d:~/opendbc$ uname -a
Linux comma-e6eba35d 4.9.103+ #2 SMP PREEMPT Fri May 3 16:56:59 PDT 2024 aarch64 aarch64 aarch64 GNU/Linux
comma@comma-e6eba35d:~/opendbc$ cd /data/openpilot
comma@comma-e6eba35d:/data/openpilot$ git log -1
commit 03c781dbf6034f204a89d513399b31481ae0146e (HEAD -> palisade-2023-port-1)
Author: Jason Wen <[email protected]>
Date:   Fri Sep 27 21:42:14 2024 -0400

    wrong torque
comma@comma-e6eba35d:/data/openpilot$

@Falseclock
Copy link

@sunnyhaibin

Still have troubles to use Comma 3X with Hyundai Plaisade 2023 for non US market with R-Harness

tried different builds as well as with stock opendbc and manually compiled

here is
1c5bce9ae79fdd50/2024-11-30--14-16-28
1c5bce9ae79fdd50/00000001--345a7908b7
1c5bce9ae79fdd50/00000000--d2c80deae9
1c5bce9ae79fdd50/00000004--1152211887
1c5bce9ae79fdd50/00000003--b3f173e97f

Also tried to run test

comma@comma-e6eba35d:/data/opendbc/examples$ python3 joystick.py

Gas/brake control: `W` and `S` keys
Steering control: `A` and `D` keys
Buttons
- `R`: Resets axes
- `C`: Cancel cruise control
INFO: connecting to panda 330031000551323431333839
Getting VIN & FW versions
iso-tp query bad response: (2004, None) - 0x7f2231
Error processing UDS response: (2022, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
got vin with request=b'"\xf1\x90'
iso-tp query bad response: (1969, None) - 0x7f2231
Error processing UDS response: (2000, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (2000, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (2000, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (2000, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
iso-tp query timeout while receiving response: (1975, None)
iso-tp query timeout while receiving response: (1988, None)
iso-tp query bad response: (1969, None) - 0x7f2231
Error processing UDS response: (1988, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (1975, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (2004, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (2004, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (1988, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (1975, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (1988, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (1975, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (1988, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
Error processing UDS response: (1988, None)
Traceback (most recent call last):
  File "/data/pythonpath/opendbc/car/isotp_parallel_query.py", line 109, in get_data
    dat, rx_in_progress = msg.recv()
                          ^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 456, in recv
    frame_type = self._isotp_rx_next(msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/pythonpath/panda/python/uds.py", line 507, in _isotp_rx_next
    assert self.rx_idx & 0xF == rx_data[0] & 0xF, "isotp - rx: invalid consecutive frame index"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: isotp - rx: invalid consecutive frame index
iso-tp query timeout while receiving response: (2000, None)
iso-tp query bad response: (1990, None) - 0x7f2222
iso-tp query bad response: (2004, None) - 0x7f2231
iso-tp query bad response: (1988, None) - 0x7f2231
iso-tp query bad response: (1975, None) - 0x7f2231
iso-tp query bad response: (2016, None) - 0x7f2231
iso-tp query bad response: (2000, None) - 0x7f2231
iso-tp query bad response: (1856, None) - 0x7f2111
iso-tp query bad response: (1856, None) - 0x7f1012
iso-tp query bad response: (2016, None) - 0x7f1012
iso-tp query bad response: (1799, None) - 0x7f1012
iso-tp query timeout after receiving partial response: (1955, None)
iso-tp query timeout after receiving partial response: (2017, None)
VIN KMHR781CDPU545152
{'event': 'fingerprinted', 'car_fingerprint': 'None', 'source': <FingerprintSource.can: 'can'>, 'fuzzy': False, 'cached': False, 'fw_count': 8, 'ecu_responses': [(1864, None, 1), (1807, None, 1), (1998, None, 1), (1806, None, 1), (2008, None, 1), (2024, None, 1), (2012, None, 1), (1963, None, 1), (1983, None, 1), (2025, None, 1), (1996, None, 1), (1977, None, 1), (2009, None, 1)], 'vin_rx_addr': 2024, 'vin_rx_bus': 1, 'fingerprints': '{0: {438: 32, 439: 32, 389: 8, 440: 32, 441: 32, 507: 32, 699: 32, 700: 32, 701: 32, 702: 32, 703: 32, 384: 32, 385: 32, 386: 32, 387: 32, 388: 32, 674: 32, 675: 32, 676: 24}, 1: {916: 8, 903: 8, 1057: 8, 1089: 5, 1064: 8, 897: 8, 593: 8, 576: 8, 688: 6, 871: 8, 544: 8, 339: 8, 1265: 4, 913: 8, 1292: 8, 304: 8, 320: 8, 832: 8, 1157: 8, 1091: 8, 608: 8, 1092: 8, 809: 8, 1162: 8, 1170: 8, 1419: 8, 356: 4, 902: 8, 757: 8, 854: 8, 865: 8, 908: 8, 912: 7, 1102: 8, 1107: 5, 1136: 8, 1145: 8, 1151: 8, 867: 8, 868: 8, 905: 8, 909: 8, 920: 8, 1056: 8, 1083: 2, 1095: 8, 1186: 8, 1378: 8, 872: 8, 1124: 4, 1268: 8, 1287: 4, 1506: 8, 1168: 8, 870: 7, 1345: 8, 1369: 8, 1280: 8, 1173: 8, 1504: 3, 1363: 8, 1446: 8, 1123: 8, 1078: 4, 1312: 8, 1339: 8, 1227: 8, 1322: 8, 1193: 8, 1384: 8, 1460: 8}, 2: {438: 32, 439: 32, 389: 8, 440: 32, 441: 32, 507: 32, 699: 32, 700: 32, 701: 32, 702: 32, 703: 32, 384: 32, 385: 32, 386: 32, 387: 32, 388: 32, 674: 32, 675: 32, 676: 24}, 3: {}, 4: {}, 5: {}, 6: {}, 7: {}}', 'fw_query_time': 7.292393468}
{'event': "car doesn't match any fingerprints", 'fingerprints': '{0: {438: 32, 439: 32, 389: 8, 440: 32, 441: 32, 507: 32, 699: 32, 700: 32, 701: 32, 702: 32, 703: 32, 384: 32, 385: 32, 386: 32, 387: 32, 388: 32, 674: 32, 675: 32, 676: 24}, 1: {916: 8, 903: 8, 1057: 8, 1089: 5, 1064: 8, 897: 8, 593: 8, 576: 8, 688: 6, 871: 8, 544: 8, 339: 8, 1265: 4, 913: 8, 1292: 8, 304: 8, 320: 8, 832: 8, 1157: 8, 1091: 8, 608: 8, 1092: 8, 809: 8, 1162: 8, 1170: 8, 1419: 8, 356: 4, 902: 8, 757: 8, 854: 8, 865: 8, 908: 8, 912: 7, 1102: 8, 1107: 5, 1136: 8, 1145: 8, 1151: 8, 867: 8, 868: 8, 905: 8, 909: 8, 920: 8, 1056: 8, 1083: 2, 1095: 8, 1186: 8, 1378: 8, 872: 8, 1124: 4, 1268: 8, 1287: 4, 1506: 8, 1168: 8, 870: 7, 1345: 8, 1369: 8, 1280: 8, 1173: 8, 1504: 3, 1363: 8, 1446: 8, 1123: 8, 1078: 4, 1312: 8, 1339: 8, 1227: 8, 1322: 8, 1193: 8, 1384: 8, 1460: 8}, 2: {438: 32, 439: 32, 389: 8, 440: 32, 441: 32, 507: 32, 699: 32, 700: 32, 701: 32, 702: 32, 703: 32, 384: 32, 385: 32, 386: 32, 387: 32, 388: 32, 674: 32, 675: 32, 676: 24}, 3: {}, 4: {}, 5: {}, 6: {}, 7: {}}'}
Traceback (most recent call last):
  File "/data/opendbc/examples/joystick.py", line 113, in <module>
    main(joystick)
  File "/data/opendbc/examples/joystick.py", line 81, in main
    with PandaRunner() as p:
  File "/data/pythonpath/opendbc/car/panda_runner.py", line 17, in __enter__
    assert self.CI.CP.carFingerprint.lower() != "mock", "Unable to identify car. Check connections and ensure car is supported."
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Unable to identify car. Check connections and ensure car is supported.

@Falseclock
Copy link

*** Results for address 0x7D0 ***


0xF187 VEHICLE_MANUFACTURER_SPARE_PART_NUMBER: b'99110S8150'
0xF18B ECU_MANUFACTURING_DATE: b' "\x10\x11'
0xF18C ECU_SERIAL_NUMBER: b'\x02\x02J\x01\x01CM\x02\x03\x06\x07'
0xF191 VEHICLE_MANUFACTURER_ECU_HARDWARE_NUMBER: b'1.00'
0xF193 SYSTEM_SUPPLIER_ECU_HARDWARE_VERSION_NUMBER: b'1.00'


*** Results for address 0x7D1 ***


0xF187 VEHICLE_MANUFACTURER_SPARE_PART_NUMBER: b'58910-S8700'
0xF18B ECU_MANUFACTURING_DATE: b' "\t!'
0xF18C ECU_SERIAL_NUMBER: b'"\t!\x90uD\x15'
0xF191 VEHICLE_MANUFACTURER_ECU_HARDWARE_NUMBER: b'58910-S8700'
0xF193 SYSTEM_SUPPLIER_ECU_HARDWARE_VERSION_NUMBER: b'1.02'
0xF195 SYSTEM_SUPPLIER_ECU_SOFTWARE_VERSION_NUMBER: b'LX2010101010101"\x07\x15'

*** Results for address 0x7D4 ***


0xF187 VEHICLE_MANUFACTURER_SPARE_PART_NUMBER: b'56310-S8620'
0xF18B ECU_MANUFACTURING_DATE: b' "\x10\x13'
0xF18C ECU_SERIAL_NUMBER: b'221013CQA12209290548\x00\x00'


*** Results for address 0x7C4 ***


0xF187 VEHICLE_MANUFACTURER_SPARE_PART_NUMBER: b'99211S8150'
0xF18B ECU_MANUFACTURING_DATE: b' "\x10\x12'
0xF18C ECU_SERIAL_NUMBER: b'221012M021457'
0xF191 VEHICLE_MANUFACTURER_ECU_HARDWARE_NUMBER: b'1.00'
0xF193 SYSTEM_SUPPLIER_ECU_HARDWARE_VERSION_NUMBER: b'1.00'


@Falseclock
Copy link

1c5bce9ae79fdd50/00000001--8051776a29

tried to add fingerprints

b'\xf1\x00LX2 MFC AT RUS LHD 1.00 1.04 99211-S8150 220622',
and

b'\xf1\x00LX2_ SCC F-CUP 1.00 1.01 99110-S8150 ',

but no success

…023-port-2-new

# Conflicts:
#	opendbc/car/hyundai/carstate.py
#	opendbc/car/hyundai/hyundaican.py
#	opendbc/car/hyundai/interface.py
#	opendbc/car/hyundai/values.py
#	pyproject.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants