HubertD / cangaroo

open source can bus analyzer software
GNU General Public License v2.0
273 stars 165 forks source link

timeout waiting for canifconfig with UCAN FYSETC #23

Open Tkong1 opened 1 year ago

Tkong1 commented 1 year ago

Issue

After starting a measurement with my UCAN FYSETC Adapter in cangaroo the error timeout waiting for canifconfig appears in the log. cangaroo tells me that it is listening to interface can0 but no can messages appear. Could you please give me a hint what i am doing wrong?

Log

20:55:30 info calling canifconfig to reconfigure interface can0 20:55:30 info canifconfig -d -i can0 -b 500000 -p 875 -u 20:55:30 error timeout waring for canifconfig 20:55:30 info Listening on interface: can0

Setup

Hardware

FYSETC UCAN USB to CAN Adapter connected via USB-C

Firmware

candleLight_fw for FYSETC UCAN

Operating System

Ubuntu 22.04.2 LTS.

Cangaroo Version

version 0.2.3

Steps to reproduce

  1. Clone the candleLight_fw repo via git
  2. Followed the steps of Building
  3. Connected the UCAN via USB-C
  4. Installed the dfu-util tool with sudo apt install dfu-util.
  5. Added the 70-candle-usb.rules from the repo into /lib/udev/rules.d/
  6. Followed the recommended simple method for Flashing
  7. Clone the cangaroo repo via git
  8. Followed the steps to build on linux
  9. Open cangaroo (./bin/cangaroo)
  10. Selected option Measurement -> Start Measurement
  11. Selected already existing Network 1 with Interface can0
  12. Default configuration bitrate 500k, sample point 87,5% no options active
  13. Click Ok

Additional Info

dmesg

usb 1-3: USB disconnect, device number 24 usb 1-3: new full-speed USB device number 25 using xhci_hcd usb 1-3: New USB device found, idVendor=1d50, idProduct=606f, bcdDevice=0.00 usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-3: Product: UCAN USB to CAN adapter usb 1-3: Manufacturer: FYSETC usb 1-3: SerialNumber: 004200444146571620313238 gs_usb 1-3:1.0: Configuring for 1 interfaces

int2str commented 8 months ago

Same issue (exactly). Also no CAN messages shown. Did you ever find a solution for this?

jake-g00dwin commented 7 months ago

Also wondering the same thing, have a stm32f103 I'm trying out a can transceiver with but canable with cangaroo is having the same issue.

Lpd738 commented 4 months ago

The issue is that you have to compile that tool (it's in canifconfig folder) and newer versions of Linux are having issues with the includes referenced in the source code. I've tried all day without success but still trying.

OK. Got it. Did up a free Ubuntu 16.04.7 VirtualBox and compiled the full code base on it. Copied file over to my local Linux and voila it worked.