Getting started with SocketCAN (can-utils) | ESP32 | Kali Linux Vmware Installation

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 21

  • @aurothschild
    @aurothschild ปีที่แล้ว +3

    Inspiring content. One day I will be an EV engineer!

  • @kme8134
    @kme8134 10 หลายเดือนก่อน +2

    You are pure gangsta. Thank you, very helpful.

  • @yvanpearson7024
    @yvanpearson7024 ปีที่แล้ว +1

    This video was huge for me

  • @Roottech25
    @Roottech25 10 หลายเดือนก่อน +1

    can you write code that tells the device on a can network to do something? that what is called bidirectionall communication in can bus. . a practical use is to send a message to a ECU in a car to actuate a selenoidse or turn on a fan.... it can' be that difficult

  • @robfei-u6b
    @robfei-u6b ปีที่แล้ว

    the best can video in the earth. could you help create deeper tech video about how to parse can _info in different can node. thanks!!!

    • @EV_engineer
      @EV_engineer  ปีที่แล้ว

      Thanks! I’ll consider the video idea

  • @ingenuus2
    @ingenuus2 ปีที่แล้ว

    I think you know a lot about the Canbus. When will there be a working library for the Canbus for the ESP32S2, or does it already exist for Arduino?

    • @EV_engineer
      @EV_engineer  ปีที่แล้ว

      Hi, there is a library! Checkout my video here: th-cam.com/video/ZH_CCs12ptg/w-d-xo.html

  • @bArda26
    @bArda26 ปีที่แล้ว

    Great video thank you!

  • @madusankaduwage8917
    @madusankaduwage8917 ปีที่แล้ว

    Hi . Is any usb to can device support socketCan ?? Thanks

  • @bennguyen1313
    @bennguyen1313 ปีที่แล้ว

    Any thoughts on CanOpen?
    I bought a couple USB-Peak-Can controller, which I understand is supported by SocketCAN.. but now I'm looking to see how to display data from a CanOpen device.
    I've seen some devices that use the CanOpen protocol
    (Guangcheng Technology thermocouple 8-way input KJST, GCAN-4128 , SM1810C CAN, CANOpen Stepper Controller PMC007, CANOPEN core board USBCANIO),
    but I'd like to first see if I can test using have one PCan device acting as the client (running for example CanOpen Magic), and another PCAN device running a CanOpen simulator (ex. canslave_sim or CANopen for Python). Assuming of course, I download/make a Device configuration files (DSF) or EDS file.

    • @EV_engineer
      @EV_engineer  ปีที่แล้ว

      I haven’t used CanOpen before, but seems like an interesting video ;). I‘ve worked with ISO-TP, which provides network layer support over CAN.

    • @bennguyen1313
      @bennguyen1313 ปีที่แล้ว

      @@EV_engineer
      I'd like to try SocketCan but don't have a OpenMoko USB2CAN V3.3... I have a PEAK PCAN usb adapter. Do you think the VM/socketcan will work the Peak hardware?
      BTW, I tried booting a Kali Linux *LIVE* dvd I couldn't get can can-utils installed:
      apt-get install can-utils (unable to locate package error despite having internet connection)
      git clone htt...//gh.../can-utils (.git)
      cd can-utils
      make
      sudo make install
      Not sure why Kali doesn't automatically come with it.. perhaps there's a distro that comes with SocketCan already installed?

  • @robfei-u6b
    @robfei-u6b ปีที่แล้ว

    Hi, in your Arduino code, I found you mention RTR packet (can.beginpacket(0x12,3,True), is it the bool True to active RTR, also could you explain why use RTR, and why in linux, i will get remote request?? thanks!!

    • @EV_engineer
      @EV_engineer  ปีที่แล้ว

      Hi, I got this example sketch from this article: www.circuitstate.com/tutorials/what-is-can-bus-how-to-use-can-interface-with-esp32-and-arduino/#Remote_Transmission_Request_RTR
      This part addresses your question: "Just after sending a normal data frame, we will send an RTR packet requesting 3 bytes of data. beginPacket() function has a few overloads and we can send additional parameters as we need. For an RTR message, the third parameter should be true."
      As for why use an RTR, well, to request data from other nodes. Every node on the CAN bus that is not explicitly filtering messages from the source node will see this RTR request and can respond accordingly.

  • @jamgood96
    @jamgood96 ปีที่แล้ว

    Any ideas on why, when I plug the device in and verify it shows up using `lsusb`, that it does not show up under `ip link ls`?

    • @EV_engineer
      @EV_engineer  ปีที่แล้ว

      Are CAN HI/LO connected properly to the converter?

  • @gobrbrr3558
    @gobrbrr3558 ปีที่แล้ว

    Can I use this type of connection to communicate with a Linux virtual machine running QML interface?

    • @EV_engineer
      @EV_engineer  ปีที่แล้ว

      I'm not familiar with QML, but the interface here is just CAN over USB.

  • @eriklethdanielsen3968
    @eriklethdanielsen3968 6 หลายเดือนก่อน

    why do you still run windows, windows is dead i have run Debian KDE sinse 2019, it works fine for ewrything also pcb design and writing software

  • @mathewsjacob
    @mathewsjacob 9 หลายเดือนก่อน

    Great video, Thank you.