BlueWave Studio forum
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:
  • Home
  • Help
  • View Today's Post
  • More
    • BlueWave Studio
    • Shop
User Links
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Quick Links Home Help View Today's Post
    More
    • BlueWave Studio
    • Shop
    BlueWave Studio forum OpenAuto Pro User interface How to troubleshoot Idrive controller?

    How to troubleshoot Idrive controller?
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #1
    04-27-2022, 01:36 AM (This post was last modified: 04-27-2022, 01:51 AM by BoostedGS300.)
    Okay so as seen in previous posts, I had some confusion about the controller service. I got that done and saved but things are not working. I also did an IFconfig and I do see the CAN0 appears "up" and according to another post that means the can devices are present, correct? I am using an E60 idrive controller that has more than four wires. Much searching gives me Pin 1 - +12, Pin 2&3 - Ground, Pin 4 - can hi, Pin 5 Can Low. I have all these wires connected to the carpihat accordingly. I also tried pin 2 or pin 3 for the ground.

    Now, since things are not working how do I go about troubleshooting? Can I look for can traffic? IFconfig by can0 shows 0 for everything so I assume there isn't any.

    I'm not sure where to go from here so any help is appreciated.
    oliverisss
    Offline

    Member

    Posts: 64
    Threads: 1
    Joined: Aug 2019
    Reputation: 4
    #2
    04-27-2022, 04:34 AM
    (04-27-2022, 01:36 AM)BoostedGS300 Wrote: Okay so as seen in previous posts, I had some confusion about the controller service. I got that done and saved but things are not working. I also did an IFconfig and I do see the CAN0 appears "up" and according to another post that means the can devices are present, correct? I am using an E60 idrive controller that has more than four wires. Much searching gives me Pin 1 - +12, Pin 2&3 - Ground, Pin 4 - can hi, Pin 5 Can Low. I have all these wires connected to the carpihat accordingly. I also tried pin 2 or pin 3 for the ground.

    Now, since things are not working how do I go about troubleshooting? Can I look for can traffic? IFconfig by can0 shows 0 for everything so I assume there isn't any.

    I'm not sure where to go from here so any help is appreciated.

    You can try these commands:

    sudo /sbin/ip link set can0 up type can bitrate 100000

    and

    ifconfig

    that should show if can0 works correctly.
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #3
    04-27-2022, 03:13 PM (This post was last modified: 04-27-2022, 11:21 PM by BoostedGS300.)
    Quote:You can try these commands:

    sudo /sbin/ip link set can0 up type can bitrate 100000

    and

    ifconfig

    that should show if can0 works correctly.


    Thanks, please see the attached images for the results.


    Attached Files Thumbnail(s)
           
    oliverisss
    Offline

    Member

    Posts: 64
    Threads: 1
    Joined: Aug 2019
    Reputation: 4
    #4
    04-28-2022, 04:30 AM
    (04-27-2022, 03:13 PM)BoostedGS300 Wrote:
    Quote:You can try these commands:

    sudo /sbin/ip link set can0 up type can bitrate 100000

    and

    ifconfig

    that should show if can0 works correctly.


    Thanks, please see the attached images for the results.

    I'm not an expert on this. I'm just going through Gecko messages how to troubleshoot this as I had the same problem in very beginning when I bought CarPiHat. 

    That's on of gecko messages:

       
    Add the following to the bottom of your “/boot/config.txt”
    Quote:dtparam=spi=on
    Quote:dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=23
    Quote:dtoverlay=spi-bcm2835-overlay
    And then add the following to “/etc/rc.local”
    Quote:/sbin/ip link set can0 up type can bitrate 100000
    After ensuring those are correct, could you please reboot your Pi (with the controller disconnected), and send the the output of the following command:
    (Exit Openauto, and then open the “terminal”. Type these commands, hit enter, and send a screenshot / pastebin / photo of the output)
    Quote:ifconfig
    and
    Quote:dmesg | grep -iC 3 “MCP2515”
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #5
    04-28-2022, 07:49 PM (This post was last modified: 04-28-2022, 08:03 PM by BoostedGS300.)
    (04-28-2022, 04:30 AM)oliverisss Wrote:
    (04-27-2022, 03:13 PM)BoostedGS300 Wrote:
    Quote:You can try these commands:

    sudo /sbin/ip link set can0 up type can bitrate 100000

    and

    ifconfig

    that should show if can0 works correctly.


    Thanks, please see the attached images for the results.

    I'm not an expert on this. I'm just going through Gecko messages how to troubleshoot this as I had the same problem in very beginning when I bought CarPiHat. 

    That's on of gecko messages:

       
    Add the following to the bottom of your “/boot/config.txt”
    Quote:dtparam=spi=on
    Quote:dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=23
    Quote:dtoverlay=spi-bcm2835-overlay
    And then add the following to “/etc/rc.local”
    Quote:/sbin/ip link set can0 up type can bitrate 100000
    After ensuring those are correct, could you please reboot your Pi (with the controller disconnected), and send the the output of the following command:
    (Exit Openauto, and then open the “terminal”. Type these commands, hit enter, and send a screenshot / pastebin / photo of the output)
    Quote:ifconfig
    and
    Quote:dmesg | grep -iC 3 “MCP2515”

    Thanks for you help. I know Gecko is not available. I do have those commands installed and the below information is with the idrive control unplugged. Please see my files at the end to see if I made a mistake. I am not getting any results for the MCP2515 command so I assume thats related to my problems. 

    Ifconfig;

    pi@raspberrypi:~ $ ifconfig
    can0: flags=193  mtu 16
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    eth0: flags=4099  mtu 1500
            ether e4:5f:01:1a:48:4b  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    lo: flags=73  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    wlan0: flags=4163  mtu 1500
            inet 192.168.1.17  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::6561:d677:8487:8c3b  prefixlen 64  scopeid 0x20         ether e4:5f:01:1a:48:4c  txqueuelen 1000  (Ethernet)
            RX packets 845  bytes 346771 (338.6 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 1028  bytes 156019 (152.3 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 

    dmesg | grep -iC 3 “MCP2515”

    I have no results for this command. I assume this is a problem. 


    Here is the end of my bootconfig.txt file

    [pi3]
    gpu_mem=256
    max_framebuffers=1

    [pi3+]
    gpu_mem=256
    max_framebuffers=1

    [pi4]
    max_framebuffers=2

    #Canbusinterface
    dtparam=spi=on

    dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=23

    dtoverlay=spi-bcm2835-overlay



    Here is my rc.local 

    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.

    # Print the IP address
    _IP=$(hostname -I) || true
    if [ "$_IP" ]; then
      printf "My IP address is %s\n" "$_IP"
    fi

    /usr/local/bin/rpi4pci.sh

    /sbin/ip link set can0 up type can bitrate 100000

    echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device

    sudo hwclock -s

    date




    exit 0
    oliverisss
    Offline

    Member

    Posts: 64
    Threads: 1
    Joined: Aug 2019
    Reputation: 4
    #6
    04-29-2022, 04:30 AM
    (04-28-2022, 07:49 PM)BoostedGS300 Wrote:
    (04-28-2022, 04:30 AM)oliverisss Wrote:
    (04-27-2022, 03:13 PM)BoostedGS300 Wrote:
    Quote:You can try these commands:

    sudo /sbin/ip link set can0 up type can bitrate 100000

    and

    ifconfig

    that should show if can0 works correctly.


    Thanks, please see the attached images for the results.

    I'm not an expert on this. I'm just going through Gecko messages how to troubleshoot this as I had the same problem in very beginning when I bought CarPiHat. 

    That's on of gecko messages:

       
    Add the following to the bottom of your “/boot/config.txt”
    Quote:dtparam=spi=on
    Quote:dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=23
    Quote:dtoverlay=spi-bcm2835-overlay
    And then add the following to “/etc/rc.local”
    Quote:/sbin/ip link set can0 up type can bitrate 100000
    After ensuring those are correct, could you please reboot your Pi (with the controller disconnected), and send the the output of the following command:
    (Exit Openauto, and then open the “terminal”. Type these commands, hit enter, and send a screenshot / pastebin / photo of the output)
    Quote:ifconfig
    and
    Quote:dmesg | grep -iC 3 “MCP2515”

    Thanks for you help. I know Gecko is not available. I do have those commands installed and the below information is with the idrive control unplugged. Please see my files at the end to see if I made a mistake. I am not getting any results for the MCP2515 command so I assume thats related to my problems. 

    Ifconfig;

    pi@raspberrypi:~ $ ifconfig
    can0: flags=193  mtu 16
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    eth0: flags=4099  mtu 1500
            ether e4:5f:01:1a:48:4b  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    lo: flags=73  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    wlan0: flags=4163  mtu 1500
            inet 192.168.1.17  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::6561:d677:8487:8c3b  prefixlen 64  scopeid 0x20         ether e4:5f:01:1a:48:4c  txqueuelen 1000  (Ethernet)
            RX packets 845  bytes 346771 (338.6 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 1028  bytes 156019 (152.3 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 

    dmesg | grep -iC 3 “MCP2515”

    I have no results for this command. I assume this is a problem. 


    Here is the end of my bootconfig.txt file

    [pi3]
    gpu_mem=256
    max_framebuffers=1

    [pi3+]
    gpu_mem=256
    max_framebuffers=1

    [pi4]
    max_framebuffers=2

    #Canbusinterface
    dtparam=spi=on

    dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=23

    dtoverlay=spi-bcm2835-overlay



    Here is my rc.local 

    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.

    # Print the IP address
    _IP=$(hostname -I) || true
    if [ "$_IP" ]; then
      printf "My IP address is %s\n" "$_IP"
    fi

    /usr/local/bin/rpi4pci.sh

    /sbin/ip link set can0 up type can bitrate 100000

    echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device

    sudo hwclock -s

    date




    exit 0


    try this: dmesg | grep -i MCP2515
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #7
    04-29-2022, 11:36 AM
    That command worked, thank you!

    pi@raspberrypi:~ $ dmesg | grep -i MCP2515
    [ 6.174965] mcp251x spi0.0 can0: MCP2515 successfully initialized.
    oliverisss
    Offline

    Member

    Posts: 64
    Threads: 1
    Joined: Aug 2019
    Reputation: 4
    #8
    04-29-2022, 04:12 PM
    (04-29-2022, 11:36 AM)BoostedGS300 Wrote: That command worked, thank you!

    pi@raspberrypi:~ $ dmesg | grep -i MCP2515
    [    6.174965] mcp251x spi0.0 can0: MCP2515 successfully initialized.

    You mean idrive working now?
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #9
    04-29-2022, 06:03 PM (This post was last modified: 04-30-2022, 02:38 AM by BoostedGS300.)
    (04-29-2022, 04:12 PM)oliverisss Wrote:
    (04-29-2022, 11:36 AM)BoostedGS300 Wrote: That command worked, thank you!

    pi@raspberrypi:~ $ dmesg | grep -i MCP2515
    [    6.174965] mcp251x spi0.0 can0: MCP2515 successfully initialized.

    You mean idrive working now?


    Sorry I wasn't clear. No it's not working yet.

    Thank you
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #10
    05-01-2022, 03:34 PM
    (04-29-2022, 04:12 PM)oliverisss Wrote:
    (04-29-2022, 11:36 AM)BoostedGS300 Wrote: That command worked, thank you!

    pi@raspberrypi:~ $ dmesg | grep -i MCP2515
    [    6.174965] mcp251x spi0.0 can0: MCP2515 successfully initialized.

    You mean idrive working now?


    What are your results when you run the commands you requested on your system? If you can provide that maybe I can figure out what is different about mine. 

    Thanks
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)

    Pages ({1}): 1 2 3 Next »



    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Help · BlueWave Studio · Shop

    Copyright © bluewavestudio.io. All rights reserved.

    Linear Mode
    Threaded Mode