Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-4468

Unable to configure virtual CAN device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Inactive
    • Icon: Major Major
    • None
    • Lamprey 12.1.2
    • Automotive
    • None
    • QEMU x86_64

      I am trying to configure a virtual CAN device (vcan0) on qemu and I have followed the below steps:

      1. modprobe vcan
        ip link add vcan0 type vcan
        ip link set vcan0 up
      2.  Updated in /etc/dev-mapping.conf  file from hs="can0" to "vcan0"
        hs="vcan0"
        ls="vcan1"
      3.  Running candump vcan0

      On other qemu terminal -

      1. low-can write { "signal_name": "engine.speed", "signal_value": 1256}

      But still the data is transferred through can0 and not vcan0.

      candump vcan0 doesnt shows any data. I want to understand how can I tranfer can-data on new device.

      Que : Can I add multiple Virtual CAN devices for hs and ls ?

      ex : hs = "vcan0","vcan1"

             ls = "can0", "can1" <--------something like this

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jsmoeller Jan-Simon Moeller
            dnjadhav14 Dipali Jadhav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: