Current version of the OpenAuto Pro is 12
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i connect the idrive gen 1 Controller to the pi
#1
Hello i wanted to retrofit the iDrive gen 1 controller in my car. But i am an absoloutely newbie in this theme with rapberrys etc.. Sad

So now i figured out the pin connections on the controller for vcc and and can bus. I connected the controller like this: https://www.raspberrypi.org/forums/viewt...p?t=141052 

And i wrote these lines from the bluewave forum (https://bluewavestudio.io/community/show...p?tid=2208) in this folder:

/home/pi/.openauto/config/openauto_controller_service.ini

[Controller]
Type=2
Interface=can0
DoublePressSpeed=200
[IDriveGen1]
Angle=0
Polling=true
PollTimeout=100
ControllerTimeout=1000

Now when i want to start the service with controller_service /home/pi/.openauto/config/openauto_controller_service.ini the pi says me that he is unable to map the interface for idrive : can0

At this point i am stuck. Maybe because the idrive Controller got no ground fo the can bus? (i connected the ground of the Lab Bench power supply to the pi´s ground for the same potencial) it doesnt matter if j1 is bridged or not, it doesnt work either. I attached some pictures

I am thankful for every Help.
Reply
#2
What CAN module do you use? Did you configure it properly? In your case can0 interface is not detected - it means that CAN module is not properly connected or not properly configured.

Please post output of dmesg terminal command. Also please post content of /boot/config.txt file.
Reply
#3
(02-15-2021, 05:45 PM)BlueWave Wrote: What CAN module do you use? Did you configure it properly? In your case can0 interface is not detected - it means that CAN module is not properly connected or not properly configured.

Please post output of dmesg terminal command. Also please post content of /boot/config.txt file.

dmesg looks like this:

pi@raspberrypi:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.72-v7+ (dom@buildbot) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #1356 SMP Thu Oct 22 13:56:54 BST 2020
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x1ec00000, size 256 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 196608
[    0.000000]  Normal zone: 1728 pages used for memmap
[    0.000000]  Normal zone: 0 pages reserved
[    0.000000]  Normal zone: 196608 pages, LIFO batch:63
[    0.000000] percpu: Embedded 20 pages/cpu s49740 r8192 d23988 u81920
[    0.000000] pcpu-alloc: s49740 r8192 d23988 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 194880
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 video=Composite-1:720x480@60i,margin_left=32,margin_right=32,margin_top=32,margin_bottom=32 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty3 consoleblank=0 loglevel=0 root=PARTUUID=38df017e-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 500776K/786432K available (9216K kernel code, 704K rwdata, 2628K rodata, 1024K init, 829K bss, 23512K reserved, 262144K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 29179 entries in 57 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x328/0x510 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000006] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000017] Switching to timer-based delay loop, resolution 52ns
[    0.000279] Console: colour dummy device 80x30
[    0.000306] printk: console [tty3] enabled
[    0.000363] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000381] pid_max: default: 32768 minimum: 301
[    0.000569] LSM: Security Framework initializing
[    0.000790] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000810] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002195] Disabling memory control group subsystem
[    0.002316] CPU: Testing write buffer coherency: ok
[    0.002891] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003855] Setting up static identity map for 0x100000 - 0x10003c
[    0.004056] rcu: Hierarchical SRCU implementation.
[    0.004756] smp: Bringing up secondary CPUs ...
[    0.005916] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.007224] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.008425] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.008582] smp: Brought up 1 node, 4 CPUs
[    0.008597] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.008607] CPU: All CPU(s) started in HYP mode.
[    0.008616] CPU: Virtualization extensions available.
[    0.009552] devtmpfs: initialized
[    0.026641] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.026918] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.026944] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.038329] pinctrl core: initialized pinctrl subsystem
[    0.039470] NET: Registered protocol family 16
[    0.044066] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.048867] audit: initializing netlink subsys (disabled)
[    0.049155] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.050885] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.050896] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.051116] Serial: AMBA PL011 UART driver
[    0.053301] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.070134] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-10-22 14:06, variant start
[    0.080145] raspberrypi-firmware soc:firmware: Firmware hash is 74e754ff8947c58d2773253f77f6f68a303188f8
[    0.131897] bcm2835-dma 3f007000.dma: DMA legacy API manager, dmachans=0x1
[    0.134081] SCSI subsystem initialized
[    0.134338] usbcore: registered new interface driver usbfs
[    0.134401] usbcore: registered new interface driver hub
[    0.134540] usbcore: registered new device driver usb
[    0.136721] clocksource: Switched to clocksource arch_sys_counter
[    1.298599] VFS: Disk quotas dquot_6.6.0
[    1.298709] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.298905] FS-Cache: Loaded
[    1.299158] CacheFiles: Loaded
[    1.299895] simple-framebuffer 3eaf0000.framebuffer: framebuffer at 0x3eaf0000, 0x10a800 bytes, mapped to 0x(ptrval)
[    1.299913] simple-framebuffer 3eaf0000.framebuffer: format=a8r8g8b8, mode=656x416x32, linelength=2624
[    1.300433] Console: switching to colour frame buffer device 82x26
[    1.304925] simple-framebuffer 3eaf0000.framebuffer: fb0: simplefb registered!
[    1.315733] thermal_sys: Registered thermal governor 'step_wise'
[    1.316141] NET: Registered protocol family 2
[    1.317173] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.317219] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.317334] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.317524] TCP: Hash tables configured (established 8192 bind 8192)
[    1.317702] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.317754] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.318062] NET: Registered protocol family 1
[    1.319002] RPC: Registered named UNIX socket transport module.
[    1.319013] RPC: Registered udp transport module.
[    1.319023] RPC: Registered tcp transport module.
[    1.319033] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.321144] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    1.324503] Initialise system trusted keyrings
[    1.324774] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    1.336424] FS-Cache: Netfs 'nfs' registered for caching
[    1.337315] NFS: Registering the id_resolver key type
[    1.337363] Key type id_resolver registered
[    1.337373] Key type id_legacy registered
[    1.337394] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.338682] Key type asymmetric registered
[    1.338694] Asymmetric key parser 'x509' registered
[    1.338743] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.338755] io scheduler mq-deadline registered
[    1.338767] io scheduler kyber registered
[    1.345695] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    1.348055] bcm2835-rng 3f104000.rng: hwrng registered
[    1.348579] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.349242] vc-sm: Videocore shared memory driver
[    1.349738] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    1.362639] brd: module loaded
[    1.375161] loop: module loaded
[    1.376550] Loading iSCSI transport class v2.0-870.
[    1.377481] libphy: Fixed MDIO Bus: probed
[    1.377591] usbcore: registered new interface driver lan78xx
[    1.377669] usbcore: registered new interface driver smsc95xx
[    1.377691] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.105965] Core Release: 2.80a
[    2.105978] Setting default values for core params
[    2.106007] Finished setting default values for core params
[    2.306401] Using Buffer DMA mode
[    2.306412] Periodic Transfer Interrupt Enhancement - disabled
[    2.306422] Multiprocessor Interrupt Enhancement - disabled
[    2.306433] OTG VER PARAM: 0, OTG VER FLAG: 0
[    2.306458] Dedicated Tx FIFOs mode
[    2.307602] WARN::dwc_otg_hcd_init:1072: FIQ DMA bounce buffers: virt = 9ed04000 dma = 0xded04000 len=9024
[    2.307633] FIQ FSM acceleration enabled for :
              Non-periodic Split Transactions
              Periodic Split Transactions
              High-Speed Isochronous Endpoints
              Interrupt/Control Split Transaction hack enabled
[    2.307645] dwc_otg: Microframe scheduler enabled
[    2.307719] WARN::hcd_init_fiq:457: FIQ on core 1
[    2.307729] WARN::hcd_init_fiq:458: FIQ ASM at 80716d40 length 36
[    2.307740] WARN::hcd_init_fiq:496: MPHI regs_base at b0810000
[    2.307760] dwc_otg 3f980000.usb: DWC OTG Controller
[    2.307799] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    2.307845] dwc_otg 3f980000.usb: irq 56, io mem 0x00000000
[    2.307896] Init: Port Power? op_state=1
[    2.307906] Init: Power Port (0)
[    2.308265] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    2.308281] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.308295] usb usb1: Product: DWC OTG Controller
[    2.308309] usb usb1: Manufacturer: Linux 5.4.72-v7+ dwc_otg_hcd
[    2.308322] usb usb1: SerialNumber: 3f980000.usb
[    2.309041] hub 1-0:1.0: USB hub found
[    2.309121] hub 1-0:1.0: 1 port detected
[    2.309926] dwc_otg: FIQ enabled
[    2.309936] dwc_otg: NAK holdoff enabled
[    2.309946] dwc_otg: FIQ split-transaction FSM enabled
[    2.309973] Module dwc_common_port init
[    2.310291] usbcore: registered new interface driver usb-storage
[    2.310512] mousedev: PS/2 mouse device common for all mice
[    2.311723] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    2.314694] sdhci: Secure Digital Host Controller Interface driver
[    2.314704] sdhci: Copyright© Pierre Ossman
[    2.315300] mmc-bcm2835 3f300000.mmcnr: could not get clk, deferring probe
[    2.315966] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    2.316196] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.318076] ledtrig-cpu: registered to indicate activity on CPUs
[    2.318451] hidraw: raw HID events driver © Jiri Kosina
[    2.318620] usbcore: registered new interface driver usbhid
[    2.318630] usbhid: USB HID core driver
[    2.319605] vchiq: vchiq_init_state: slot_zero = (ptrval)
[    2.321344] [vc_sm_connected_init]: start
[    2.328380] [vc_sm_connected_init]: end - returning 0
[    2.330120] Initializing XFRM netlink socket
[    2.330156] NET: Registered protocol family 17
[    2.330282] Key type dns_resolver registered
[    2.331211] Registering SWP/SWPB emulation handler
[    2.331559] registered taskstats version 1
[    2.331579] Loading compiled-in X.509 certificates
[    2.332072] Key type ._fscrypt registered
[    2.332082] Key type .fscrypt registered
[    2.342773] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    2.342882] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    2.342949] printk: console [ttyAMA0] enabled
[    2.344936] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    2.346453] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    2.346468] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[    2.374185] sdhost: log_buf @ (ptrval) (ded03000)
[    2.411837] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.413473] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.415107] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.418233] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.424609] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    2.427250] of_cfs_init
[    2.427541] of_cfs_init: OK
[    2.445906] Waiting for root device PARTUUID=38df017e-02...
[    2.484766] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.488124] mmc0: new high speed SDHC card at address 0007
[    2.489237] mmcblk0: mmc0:0007 SL32G 29.0 GiB
[    2.489920] random: fast init done
[    2.492127]  mmcblk0: p1 p2
[    2.503952] mmc1: new high speed SDIO card at address 0001
[    2.517082] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.517172] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.518166] devtmpfs: mounted
[    2.525158] Freeing unused kernel memory: 1024K
[    2.536900] Indeed it is in host mode hprt0 = 00021501
[    2.597356] Run /sbin/init as init process
[    2.746793] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.746971] Indeed it is in host mode hprt0 = 00001101
[    2.987230] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    2.987248] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.988019] hub 1-1:1.0: USB hub found
[    2.988120] hub 1-1:1.0: 4 ports detected
[    3.306780] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.401265] systemd[1]: System time before build time, advancing clock.
[    3.437082] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    3.437101] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.437963] hub 1-1.1:1.0: USB hub found
[    3.438089] hub 1-1.1:1.0: 3 ports detected
[    3.560448] NET: Registered protocol family 10
[    3.561830] Segment Routing with IPv6
[    3.612005] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    3.613020] systemd[1]: Detected architecture arm.
[    3.636992] dwc_otg_handle_wakeup_detected_intr lxstate = 2
[    3.682889] systemd[1]: Set hostname to .
[    3.899414] uart-pl011 3f201000.serial: no DMA platform data
[    4.196844] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[    4.337945] usb 1-1.2: New USB device found, idVendor=1997, idProduct=2433, bcdDevice= 1.02
[    4.337964] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.337978] usb 1-1.2: Product: mini keyboard
[    4.337992] usb 1-1.2: Manufacturer:
[    4.348011] input:  mini keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1997:2433.0001/input/input0
[    4.417823] hid-generic 0003:1997:2433.0001: input,hidraw0: USB HID v1.01 Keyboard [  mini keyboard] on usb-3f980000.usb-1.2/input0
[    4.426864] usb 1-1.1.1: new high-speed USB device number 5 using dwc_otg
[    4.428181] input:  mini keyboard Mouse as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:1997:2433.0002/input/input1
[    4.428788] input:  mini keyboard System Control as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:1997:2433.0002/input/input2
[    4.497466] input:  mini keyboard Consumer Control as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:1997:2433.0002/input/input3
[    4.497873] hid-generic 0003:1997:2433.0002: input,hidraw1: USB HID v1.01 Mouse [  mini keyboard] on usb-3f980000.usb-1.2/input1
[    4.534648] systemd[1]: /lib/systemd/system/xrdp.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/xrdp/xrdp.pid → /run/xrdp/xrdp.pid; please update the unit file accordingly.
[    4.537287] systemd[1]: /lib/systemd/system/xrdp-sesman.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/xrdp/xrdp-sesman.pid → /run/xrdp/xrdp-sesman.pid; please update the unit file accordingly.
[    4.567295] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800, bcdDevice= 3.00
[    4.567315] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.838839] random: systemd: uninitialized urandom read (16 bytes read)
[    4.839806] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): No External EEPROM. Setting MAC Speed
[    4.840966] libphy: lan78xx-mdiobus: probed
[    4.858331] random: systemd: uninitialized urandom read (16 bytes read)
[    4.859174] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    4.859597] random: systemd: uninitialized urandom read (16 bytes read)
[    4.860713] systemd[1]: Listening on Journal Socket.
[    4.868068] systemd[1]: Mounting RPC Pipe File System...
[    4.875297] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    4.875637] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    4.876427] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): int urb period 64
[    5.072678] i2c /dev entries driver
[    5.740866] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    5.839529] systemd-journald[112]: Received request to flush runtime journal from PID 1
[    6.903783] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    6.906356] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    6.906380] [vc_sm_connected_init]: start
[    6.912439] [vc_sm_connected_init]: installed successfully
[    6.916261] mc: Linux media interface: v0.10
[    6.994432] videodev: Linux video capture interface: v2.00
[    7.044287] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    7.048539] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    7.049385] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    7.087723] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    7.089571] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    7.116375] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    7.140655] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    7.141547] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    7.143742] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    7.145797] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    7.145889] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    7.145978] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    7.146203] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    7.146297] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    7.147897] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    7.171842] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    7.171917] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    7.178996] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    7.179050] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    7.188111] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    7.188168] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    7.330279] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    7.539720] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    7.724981] brcmfmac: F1 signature read @0x18000000=0x15264345
[    7.735836] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.736472] usbcore: registered new interface driver brcmfmac
[    7.829737] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt failed with error -2
[    7.982746] random: crng init done
[    7.982761] random: 7 urandom warning(s) missed due to ratelimiting
[    8.089297] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    8.115834] vc4-drm soc:gpu: bound 3f600000.firmwarekms (ops vc4_fkms_ops [vc4])
[    8.116104] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    8.116123] checking generic (3eaf0000 10a800) vs hw (0 ffffffff)
[    8.116134] fb0: switching to vc4drmfb from simple
[    8.120497] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea
[    8.127591] Console: switching to colour dummy device 80x30
[    8.128337] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    8.128350] [drm] No driver support for vblank timestamp query.
[    8.128360] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
[    8.129373] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    8.180000] Console: switching to colour frame buffer device 90x30
[    8.200185] vc4-drm soc:gpu: fb0: vc4drmfb frame buffer device
[  10.323958] 8021q: 802.1Q VLAN Support v1.8
[  10.846778] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[  12.096068] Bluetooth: Core ver 2.22
[  12.096173] NET: Registered protocol family 31
[  12.096184] Bluetooth: HCI device and connection manager initialized
[  12.096213] Bluetooth: HCI socket layer initialized
[  12.096232] Bluetooth: L2CAP socket layer initialized
[  12.096264] Bluetooth: SCO socket layer initialized
[  12.128009] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[  15.551119] 8021q: adding VLAN 0 to HW filter on device eth0
[  15.551926] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  19.170506] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neigh.eth0.retrans_time_ms instead
[  32.417919] broken atomic modeset userspace detected, disabling atomic
[  40.670896] fuse: init (API version 7.31)
[  41.492752] can: controller area network core (rev 20170425 abi 9)
[  41.492868] NET: Registered protocol family 29
[  41.551156] can: raw protocol (rev 20170425)
[  43.733029] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  43.733041] Bluetooth: BNEP filters: protocol multicast
[  43.733069] Bluetooth: BNEP socket layer initialized

nano /boot/config.txt looks like this:

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=off
dtoverlay=disable-bt
disable_splash=1
dtoverlay=vc4-fkms-v3d

[pi3]
gpu_mem=256
max_framebuffers=1

[pi3+]
gpu_mem=256
max_framebuffers=1

[pi4]
max_framebuffers=2

what do i have to understand about configering the can module? i am using this one: https://www.amazon.de/gp/product/B01MXYYAEN/ref=ppx_yo_dt_b_asin_image_o01_s00?ie=UTF8&psc=1


EDIT:
Okay so now i configured the module like shown in the post.
When i start the service the pi shows me this:

pi@raspberrypi:~ $ controller_service /home/pi/.openauto/config/openauto_controller_service.ini
Error: Can't open display: (null)
[2021-02-16 19:08:18.710730] [0x76fa7040] [info] [OpenAuto] [Controller Service] running...
[2021-02-16 19:08:18.711129] [0x76fa7040] [error] [OpenAuto] [BMWIDriveController] IDrive controller communication error: Network is down

Network is down?
No communication betwenn the module and the pi?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)