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

[Desktop][Ubuntu] Panda connection issue #47

Closed
0312birdzhang opened this issue Aug 20, 2023 · 9 comments
Closed

[Desktop][Ubuntu] Panda connection issue #47

0312birdzhang opened this issue Aug 20, 2023 · 9 comments

Comments

@0312birdzhang
Copy link
Contributor

Device: OrangePi5 board
Branch: premium

  1. When launch flowpilot, panda reconnect failed.
    Screenshot from 2023-08-20 10-31-31

  2. I found panda disconnected, lsusb has no comma.panda

  3. After unplug and replug usb cable, panda shown on lsusb

  4. I reflashed panda via ~/flowpilot/panda/board/flash.sh

#!/usr/bin/env sh
set -e
scons -u -j$(nproc)
PYTHONPATH=.. python3 -c "from python import Panda; Panda().flash('obj/panda.bin.signed')"

Screenshot from 2023-08-20 10-35-09

And same behavior as 2-3, i changed reconnect waiting time from 15 to 25, then do unplug and replug, panda flashed ok.

  1. Then i restart flowpilot, everything works well, except "CAN OFFLINE".

some logs from .flowdrive/logs/

orangepi@orangepi-desktop:~/.flowdrive/log$ cat swaglog.0000000030
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 1607, "thread": 281473875712128, "threadName": "MainThread", "created": 1692498647.0690212, "msg$s": "Starting logmessaged", "id": "83a05335626f4bf28e0f82bae8365906"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 1607, "thread": 281473875712128, "threadName": "MainThread", "created": 1692498647.0833285, "msg$s": "Starting thermald_", "id": "3da571a148f14f1386d6330cbc2d1ab0"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 1607, "thread": 281473875712128, "threadName": "MainThread", "created": 1692498647.0930362, "msg$s": "Starting statsd", "id": "09636bcc74e9409d8e2e0847421fde99"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 1607, "thread": 281473875712128, "threadName": "MainThread", "created": 1692498647.104249, "msg$s": "Starting keyvald", "id": "bd94070fe01c4569ba2ff976791b0cae"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 1607, "thread": 281473875712128, "threadName": "MainThread", "created": 1692498647.1198726, "msg$s": "Starting flowpilot", "id": "c106698563f1467ebc0d6389c1c9954c"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 1607, "thread": 281473875712128, "threadName": "MainThread", "created": 1692498647.1340754, "msg$s": "Starting pandad", "id": "4c97197ec2394a5a965d28ca6f5b270c"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 1607, "thread": 281473875712128, "threadName": "MainThread", "created": 1692498647.1539357, "msg$s": "Starting deleter", "id": "cbda33a8b96f4146ae891eb76591ed69"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 124, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498647.5176528, "msg": {"event$s": "pandad.flash_and_connect", "count$i": 1}, "id": "88fdc624747144b1b071473bed7d1ea6"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 177, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "run", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498647.532628, "msg$s": "No pandas found, resetting internal panda", "id": "bfa75d4775b8400fbb83e36408ef695b"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "thermald.py", "lineno": 274, "pathname": "/home/orangepi/flowpilot/selfdrive/thermald/thermald.py", "module": "thermald", "funcName": "thermald_thread", "host": "orangepi-desktop", "process": 1625, "thread": 281473421472000, "threadName": "Thread-1", "created": 1692498648.3288007, "msg": {"event$s": "STATUS_PACKET", "count$i": 0, "pandaStates$a": [], "peripheralState": {"pandaType$s": "unknown", "voltage$i": 0, "current$i": 0, "fanSpeedRpm$i": 0}, "location": null, "deviceState": {"deviceState": {"usbOnline$b": false, "networkType$s": "none", "networkStrength$s": "unknown", "networkMetered$b": false, "lastAthenaPingTime$i": 0, "started$b": false, "startedMonoTime$i": 0, "freeSpacePercent$f": 57.02892303466797, "memoryUsagePercent$i": 15, "gpuUsagePercent$i": 0, "cpuUsagePercent$a": [48, 38, 32, 28, 68, 63, 64, 67], "batteryPercent$i": 0, "batteryCurrent$i": 0, "chargingError$b": false, "chargingDisabled$b": false, "offroadPowerUsageUwh$i": 0, "carBatteryCapacityUwh$i": 0, "powerDrawW$f": 0.0, "cpuTempC$a": [43.46099853515625, 43.46099853515625, 43.46099853515625, 43.46099853515625, 43.46099853515625, 43.46099853515625, 43.46099853515625, 43.46099853515625], "memoryTempC$f": 0.0, "ambientTempC$f": 0.0, "thermalStatus$s": "green", "fanSpeedPercentDesired$i": 0, "screenBrightnessPercent$i": 0}, "logMonoTime$i": 65946877306, "valid$b": true}}, "id": "2eaacb7dd7ab4720b432da1e082a9873"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 124, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498649.5351937, "msg": {"event$s": "pandad.flash_and_connect", "count$i": 2}, "id": "2bacb85c3fe24a8cb13e8536ab017af2"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 177, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "run", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498649.555111, "msg$s": "No pandas found, resetting internal panda", "id": "07c74c65983a4c369d22ace73cfc46ff"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 124, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498651.5575106, "msg": {"event$s": "pandad.flash_and_connect", "count$i": 3}, "id": "e61558033c3c40e785192988d08235e3"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 177, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "run", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498651.5689893, "msg$s": "No pandas found, resetting internal panda", "id": "4bca4b7b50d84d1191c5d54015d6888a"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 124, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498653.5715878, "msg": {"event$s": "pandad.flash_and_connect", "count$i": 4}, "id": "8582c450758246349bcba7f08ae2e8af"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 177, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "run", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498653.6100376, "msg$s": "No pandas found, resetting internal panda", "id": "69fe557cd7524a35acf1bdeea7557b88"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 124, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498655.6128428, "msg": {"event$s": "pandad.flash_and_connect", "count$i": 5}, "id": "3a811db10b084e88a6815fbe8a000f9f"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 177, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "run", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498655.6492631, "msg$s": "No pandas found, resetting internal panda", "id": "4c4c32067a754862b2a36a0be5e9ff92"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 124, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498657.6517625, "msg": {"event$s": "pandad.flash_and_connect", "count$i": 6}, "id": "cf779aa47b914b7cb9ac02b9abfe7b47"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 177, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "run", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498657.6877737, "msg$s": "No pandas found, resetting internal panda", "id": "295b4b06773c4f2faeaa0f9ef44f0b23"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 124, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498659.6890976, "msg": {"event$s": "pandad.flash_and_connect", "count$i": 7}, "id": "a1009ea27c93465dbf4f8853f20894f7"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 177, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "run", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498659.7287936, "msg$s": "1 panda(s) found, connecting - ['490033001551393239363136']", "id": "03ba9a95020845558c985e9be3ec092a"}
{"ctx": {}, "level": "WARNING", "levelnum": 30, "name": "swaglog", "filename": "pandad.py", "lineno": 149, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498659.752396, "msg$s": "Panda 490033001551393239363136 connected, version: DEV-05295dc4-DEBUG, signature 8d555f6246c67b16, expected 37d5bc8182d9d154", "id": "7851b5fc8c164b578a11aa51f47d6dea"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 149, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 1631, "thread": 281473793755264, "threadName": "MainThread", "created": 1692498659.7529402, "msg$s": "Panda firmware out of date, update required", "id": "07c036dc515c4131933e233835edf1dc"}
orangepi@orangepi-desktop:~/.flowdrive/log$ cat swaglog.0000000031
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2421, "thread": 281472948316288, "threadName": "MainThread", "created": 1692498926.386831, "msg$s": "Starting logmessaged", "id": "8fc8661f66e3449b92352ee9f0fb75ea"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2421, "thread": 281472948316288, "threadName": "MainThread", "created": 1692498926.3994732, "msg$s": "Starting thermald_", "id": "f9e9a9221021471c86dcf998d7b5b2d2"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2421, "thread": 281472948316288, "threadName": "MainThread", "created": 1692498926.4094567, "msg$s": "Starting statsd", "id": "b9c8516523654e3d9744a65e22b13171"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2421, "thread": 281472948316288, "threadName": "MainThread", "created": 1692498926.4157522, "msg$s": "Starting keyvald", "id": "6981065200df41e09f6b571753668927"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2421, "thread": 281472948316288, "threadName": "MainThread", "created": 1692498926.4226012, "msg$s": "Starting flowpilot", "id": "87abcb73cca64ca98cbd34004b5f08df"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2421, "thread": 281472948316288, "threadName": "MainThread", "created": 1692498926.4325879, "msg$s": "Starting pandad", "id": "9f6426768b314372b89fdc75e2b5e92b"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2421, "thread": 281472948316288, "threadName": "MainThread", "created": 1692498926.4447567, "msg$s": "Starting deleter", "id": "29031e2e18f94b4299e1f1c4c2c774eb"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 124, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 2445, "thread": 281473380563072, "threadName": "MainThread", "created": 1692498926.7545907, "msg": {"event$s": "pandad.flash_and_connect", "count$i": 1}, "id": "62dc3401e0184036b6f1ce4ce261b56e"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 177, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "run", "host": "orangepi-desktop", "process": 2445, "thread": 281473380563072, "threadName": "MainThread", "created": 1692498926.7701826, "msg$s": "1 panda(s) found, connecting - ['490033001551393239363136']", "id": "cddce752e4bb4540900dc853d7b52300"}
{"ctx": {}, "level": "WARNING", "levelnum": 30, "name": "swaglog", "filename": "pandad.py", "lineno": 149, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 2445, "thread": 281473380563072, "threadName": "MainThread", "created": 1692498926.7780344, "msg$s": "Panda 490033001551393239363136 connected, version: DEV-5685f204-DEBUG, signature 37d5bc8182d9d154, expected 37d5bc8182d9d154", "id": "e7689af3e5b947eaa3cb0ef95751faae"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "thermald.py", "lineno": 274, "pathname": "/home/orangepi/flowpilot/selfdrive/thermald/thermald.py", "module": "thermald", "funcName": "thermald_thread", "host": "orangepi-desktop", "process": 2439, "thread": 281473259401472, "threadName": "Thread-1", "created": 1692498927.326045, "msg": {"event$s": "STATUS_PACKET", "count$i": 0, "pandaStates$a": [{"ignitionLine": false, "controlsAllowed": false, "gasInterceptorDetected": false, "rxBufferOverflow": 0, "txBufferOverflow": 0, "gmlanSendErrs": 0, "pandaType": "unknown", "ignitionCan": false, "safetyModel": "silent", "faultStatus": "none", "powerSaveEnabled": false, "uptime": 0, "safetyRxInvalid": 0, "harnessStatus": "notConnected", "heartbeatLost": false, "alternativeExperience": 0, "safetyTxBlocked": 0, "interruptLoad": 0.0, "safetyParam": 0, "fanPower": 0, "safetyRxChecksInvalid": false}], "peripheralState": {"pandaType$s": "unknown", "voltage$i": 0, "current$i": 0, "fanSpeedRpm$i": 0}, "location": null, "deviceState": {"deviceState": {"usbOnline$b": false, "networkType$s": "none", "networkStrength$s": "unknown", "networkMetered$b": false, "lastAthenaPingTime$i": 0, "started$b": false, "startedMonoTime$i": 0, "freeSpacePercent$f": 57.02566909790039, "memoryUsagePercent$i": 23, "gpuUsagePercent$i": 0, "cpuUsagePercent$a": [58, 46, 49, 59, 83, 62, 63, 94], "batteryPercent$i": 0, "batteryCurrent$i": 0, "chargingError$b": false, "chargingDisabled$b": false, "offroadPowerUsageUwh$i": 0, "carBatteryCapacityUwh$i": 0, "powerDrawW$f": 0.0, "cpuTempC$a": [46.22999954223633, 46.22999954223633, 46.22999954223633, 46.22999954223633, 46.22999954223633, 46.22999954223633, 46.22999954223633, 46.22999954223633], "memoryTempC$f": 0.0, "ambientTempC$f": 0.0, "thermalStatus$s": "green", "fanSpeedPercentDesired$i": 0, "screenBrightnessPercent$i": 0}, "logMonoTime$i": 344938532005, "valid$b": true}}, "id": "c48de64f0d3246babc2d549bb5adc11f"}
orangepi@orangepi-desktop:~/.flowdrive/log$ cat swaglog.0000000032
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 124, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 2976, "thread": 281473852029056, "threadName": "MainThread", "created": 1692499235.1208868, "msg": {"event$s": "pandad.flash_and_connect", "count$i": 1}, "id": "f25d08b22e2e4b3aaf984dc3aa19885d"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "pandad.py", "lineno": 177, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "run", "host": "orangepi-desktop", "process": 2976, "thread": 281473852029056, "threadName": "MainThread", "created": 1692499235.1474442, "msg$s": "1 panda(s) found, connecting - ['490033001551393239363136']", "id": "48f090660c17458dbf881028923fcff1"}
{"ctx": {}, "level": "WARNING", "levelnum": 30, "name": "swaglog", "filename": "pandad.py", "lineno": 149, "pathname": "/home/orangepi/flowpilot/selfdrive/boardd/pandad.py", "module": "pandad", "funcName": "main", "host": "orangepi-desktop", "process": 2976, "thread": 281473852029056, "threadName": "MainThread", "created": 1692499235.1697516, "msg$s": "Panda 490033001551393239363136 connected, version: DEV-5685f204-DEBUG, signature 37d5bc8182d9d154, expected 37d5bc8182d9d154", "id": "c42b065908e549ce912bb376c6d4550d"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2954, "thread": 281473510340736, "threadName": "MainThread", "created": 1692499234.8925698, "msg$s": "Starting logmessaged", "id": "c9346a1b21e3498eb2b698af4d79b602"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2954, "thread": 281473510340736, "threadName": "MainThread", "created": 1692499234.9012694, "msg$s": "Starting thermald_", "id": "ef959d28baa84e808c81e9d9c6371d98"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2954, "thread": 281473510340736, "threadName": "MainThread", "created": 1692499234.9082572, "msg$s": "Starting statsd", "id": "8972c3d882894674842a4fc5ce59e193"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2954, "thread": 281473510340736, "threadName": "MainThread", "created": 1692499234.9119365, "msg$s": "Starting keyvald", "id": "931be412206945acaa1e7787b2563f8f"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2954, "thread": 281473510340736, "threadName": "MainThread", "created": 1692499234.9160817, "msg$s": "Starting flowpilot", "id": "28f6e2f5e39d492aa012a46d25b6c4fa"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2954, "thread": 281473510340736, "threadName": "MainThread", "created": 1692499234.923, "msg$s": "Starting pandad", "id": "8dd86f04b6fb45baa5e70c442fb40ce8"}
{"ctx": {"dongle_id": "", "version": "0.2.4", "dirty": true, "device": "todo"}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "process.py", "lineno": 145, "pathname": "/home/orangepi/flowpilot/selfdrive/manager/process.py", "module": "process", "funcName": "ensure_running", "host": "orangepi-desktop", "process": 2954, "thread": 281473510340736, "threadName": "MainThread", "created": 1692499234.9279406, "msg$s": "Starting deleter", "id": "7a895df353ea475c9f24991a296c945d"}
{"ctx": {}, "level": "INFO", "levelnum": 20, "name": "swaglog", "filename": "thermald.py", "lineno": 274, "pathname": "/home/orangepi/flowpilot/selfdrive/thermald/thermald.py", "module": "thermald", "funcName": "thermald_thread", "host": "orangepi-desktop", "process": 2972, "thread": 281472773058816, "threadName": "Thread-1", "created": 1692499235.7239454, "msg": {"event$s": "STATUS_PACKET", "count$i": 0, "pandaStates$a": [{"ignitionLine": false, "controlsAllowed": false, "gasInterceptorDetected": false, "rxBufferOverflow": 0, "txBufferOverflow": 0, "gmlanSendErrs": 0, "pandaType": "unknown", "ignitionCan": false, "safetyModel": "silent", "faultStatus": "none", "powerSaveEnabled": false, "uptime": 0, "safetyRxInvalid": 0, "harnessStatus": "notConnected", "heartbeatLost": false, "alternativeExperience": 0, "safetyTxBlocked": 0, "interruptLoad": 0.0, "safetyParam": 0, "fanPower": 0, "safetyRxChecksInvalid": false}], "peripheralState": {"pandaType$s": "unknown", "voltage$i": 0, "current$i": 0, "fanSpeedRpm$i": 0}, "location": null, "deviceState": {"deviceState": {"usbOnline$b": false, "networkType$s": "none", "networkStrength$s": "unknown", "networkMetered$b": false, "lastAthenaPingTime$i": 0, "started$b": false, "startedMonoTime$i": 0, "freeSpacePercent$f": 57.02555847167969, "memoryUsagePercent$i": 24, "gpuUsagePercent$i": 0, "cpuUsagePercent$a": [35, 58, 36, 43, 91, 70, 57, 62], "batteryPercent$i": 0, "batteryCurrent$i": 0, "chargingError$b": false, "chargingDisabled$b": false, "offroadPowerUsageUwh$i": 0, "carBatteryCapacityUwh$i": 0, "powerDrawW$f": 0.0, "cpuTempC$a": [48.07600021362305, 48.07600021362305, 48.07600021362305, 48.07600021362305, 48.07600021362305, 48.07600021362305, 48.07600021362305, 48.07600021362305], "memoryTempC$f": 0.0, "ambientTempC$f": 0.0, "thermalStatus$s": "green", "fanSpeedPercentDesired$i": 0, "screenBrightnessPercent$i": 0}, "logMonoTime$i": 653332477783, "valid$b": true}}, "id": "3740e92c092b4e74943f380e7e0146c5"}
@0312birdzhang
Copy link
Contributor Author

This panda is working well with C2 clone, and working on orangepi5 with phr00t's fork, even though still has some issue.

@MankaranSingh
Copy link
Contributor

MankaranSingh commented Aug 20, 2023

If by any chance LIBUSB_OPTION_WEAK_AUTHORITY variable is defined here for you, try removing it.

@MankaranSingh
Copy link
Contributor

but since its giving problems in flashing itself something else could be the cause. we'd need to open this issue to comma

@0312birdzhang 0312birdzhang changed the title Panda connection issue [Desktop][Ubuntu] Panda connection issue Aug 21, 2023
@0312birdzhang
Copy link
Contributor Author

0312birdzhang commented Aug 21, 2023

Looks like it's a kernel or ubuntu issue.

Find some discussion on discord like https://discord.com/channels/469524606043160576/524328405433450531/1093759049977311273

@0312birdzhang
Copy link
Contributor Author

Update, even though newer gcc broken panda firmware, my issue maybe hardware problem, the usb-a port is not stable, as panda flashed very well with usb-c port.

I will update this again when i received new panda.

@0312birdzhang
Copy link
Contributor Author

Yes, it's working great well now, so i will close this issue as it has been fixed.

[  163.937800] usb 7-1: new full-speed USB device number 2 using xhci-hcd
[  164.084839] usb 7-1: not running at top speed; connect to a high speed hub
[  164.085572] usb 7-1: New USB device found, idVendor=bbaa, idProduct=ddcc, bcdDevice= 3.00
[  164.085578] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  164.085582] usb 7-1: Product: panda
[  164.085586] usb 7-1: Manufacturer: comma.ai
[  164.085591] usb 7-1: SerialNumber: 300039000f51383532323730
[  166.158041] usb 7-1: USB disconnect, device number 2
[  166.460627] usb 7-1: new full-speed USB device number 3 using xhci-hcd
[  166.600989] usb 7-1: not running at top speed; connect to a high speed hub
[  166.601786] usb 7-1: New USB device found, idVendor=bbaa, idProduct=ddee, bcdDevice=23.00
[  166.601795] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  166.601799] usb 7-1: Product: panda
[  166.601803] usb 7-1: Manufacturer: comma.ai
[  166.601807] usb 7-1: SerialNumber: 300039000f51383532323730
[  169.152616] usb 7-1: USB disconnect, device number 3
[  170.773167] usb 7-1: new full-speed USB device number 4 using xhci-hcd
[  170.913663] usb 7-1: not running at top speed; connect to a high speed hub
[  170.914635] usb 7-1: New USB device found, idVendor=bbaa, idProduct=ddcc, bcdDevice= 3.00
[  170.914646] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  170.914652] usb 7-1: Product: panda
[  170.914657] usb 7-1: Manufacturer: comma.ai
[  170.914661] usb 7-1: SerialNumber: 300039000f51383532323730

@MankaranSingh
Copy link
Contributor

So what was the fix actually? Updated panda repo or gcc ?

@0312birdzhang
Copy link
Contributor Author

So what was the fix actually? Updated panda repo or gcc ?

Update panda repo after commaai/panda@c66b98b, so panda on premium branch is good, but on bleeding-edge will cause this bug on ubuntu 20.04+ or newer gcc.

@MankaranSingh
Copy link
Contributor

Cool, bleeding edge is already obsolete. Premium is the way to go. Just need to get more testers before merging it into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants