DIY E46 Media Centre: MP3, videos, Digital Radio, Digital TV? - Page 100 - E46Fanatics E46 BMW Social Directory E46 FAQ 3-Series Discussion Forums BMW Photo Gallery BMW 3-Series Technical Information E46 Fanatics - The Ultimate BMW Resource BMW Vendors General E46 Forum The Tire Rack's Tire Wheel Forum Forced Induction Forum The Off-Topic The E46 BMW Showroom For Sale, For Trade or Wanting to Buy

Go Back   E46Fanatics > Tuning & Tech > Mobile Electronics Forum

Mobile Electronics Forum
Have all your A/V and electronics questions answered here. Ipods, A/V, Radar Detectors Oh My!

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 69 votes, 4.99 average. Display Modes
Old 12-17-2019, 10:20 AM   #1981
harryberlin
Registered User
 
Join Date: Apr 2017
Location: Germany
Posts: 138
My Ride: E39 Touring
Quote:
Originally Posted by vitalic View Post
Thx harry, do you also have the output of cmdline.txt?
Code:
boot=UUID=2311-4421 disk=UUID=4a7717ae-4e4f-431a-86cf-643c8bb8834a quiet
harryberlin is offline   Reply With Quote
Old 12-18-2019, 11:46 AM   #1982
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 103
My Ride: E38
@PeteAU and harry

I solved the problem with Pi4:

cmdline.txt : remove console=serial0,115200 (or console=ttyAMA0) if it exists
config.txt : add dtoverlay=pi3-miniuart-bt (don't download the modified, use original from stretch) and also add enable_uart=1

disable internal bluetooth with command:

sudo systemctl disable hciuart.service

most important:

@PeteAU you need to modify gpio.c . I forked your repo on github and made some changes to fit for the Pi4:

https://github.com/Vitalic66/pibus/b...ter/rpi/gpio.c

Code:
//Pi3
#define V1_BCM2708_PERI_BASE        0x3F000000
#define V1_GPIO_BASE                (V1_BCM2708_PERI_BASE + 0x200000) /* GPIO controller */

//Pi4
#define V2_BCM2711_PERI_BASE        0xFE000000
#define V2_GPIO_BASE                (V2_BCM2711_PERI_BASE + 0x200000) /* GPIO controller */
After compiling the new pibus and copying to my pi, pibus works. LED is blinking and ibus communication is logged in ibus.txt

Last edited by vitalic; 12-18-2019 at 11:48 AM.
vitalic is offline   Reply With Quote
Old 12-18-2019, 02:23 PM   #1983
harryberlin
Registered User
 
Join Date: Apr 2017
Location: Germany
Posts: 138
My Ride: E39 Touring
great news.

that means, the program only runs on rasp 4 or is it compatible to 1-3?
harryberlin is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old 12-18-2019, 05:32 PM   #1984
PeteAU
Registered User
 
Join Date: Oct 2011
Location: Melbourne
Posts: 541
My Ride: 330i
Quote:
Originally Posted by vitalic View Post
Code:
//Pi3
#define V1_BCM2708_PERI_BASE        0x3F000000
#define V1_GPIO_BASE                (V1_BCM2708_PERI_BASE + 0x200000) /* GPIO controller */

//Pi4
#define V2_BCM2711_PERI_BASE        0xFE000000
#define V2_GPIO_BASE                (V2_BCM2711_PERI_BASE + 0x200000) /* GPIO controller */
After compiling the new pibus and copying to my pi, pibus works. LED is blinking and ibus communication is logged in ibus.txt
Test this out:

http://pibus.info/sw/pibus-20191219.zip
https://github.com/PeteAU/pibus/comm...84bb77f93101d2
PeteAU is offline   Reply With Quote
Old 12-19-2019, 10:54 AM   #1985
harryberlin
Registered User
 
Join Date: Apr 2017
Location: Germany
Posts: 138
My Ride: E39 Touring
do you need new pibus version compiled on rasp 1 b+?

Last edited by harryberlin; 12-19-2019 at 10:55 AM.
harryberlin is offline   Reply With Quote
Old 12-22-2019, 03:14 AM   #1986
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 103
My Ride: E38
Thx Pete for the new version. I can confirm that it also works on Pi4.

Just got one little question about the shutdown event. How does it work? When does Pi shutdown? If the 300sec bus idle time is over or also if there is a specific ibus message?

I watched the ibus messages with navcoder. There was one "ignition off" but that didn't make the pi go down. Maybe it's because i took out all necesarry modules (speedometer, navmodule, tvmodule, bordmonitor, radiomodule) out of my car to test my new board.

The ibus and the board work, but I can remember that there was a message "immobilizer on", which also made the pi go down?

Last edited by vitalic; 12-22-2019 at 03:16 AM.
vitalic is offline   Reply With Quote
Old 12-22-2019, 04:52 AM   #1987
harryberlin
Registered User
 
Join Date: Apr 2017
Location: Germany
Posts: 138
My Ride: E39 Touring
normaly the pi shuts down after timeout (300s). timeout counter starts after last ibus message. if there is a new message, the counter gets reset.
harryberlin is offline   Reply With Quote
Old 12-22-2019, 01:44 PM   #1988
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 103
My Ride: E38
Btw the new PCB prototypes (Pibus AiO 1.4.1) arrived and already started soldering.

Unfortunately I just found 2 mistakes but with this version I can start the new HDMI switch tests and see if I applied the HDMI design guidelines careful enough (had HDMI artefacts in former version).

At the moment picture from Pi and reversecam come clear and stable.

See the video how it works:



I use navcoder to emulate reversegear signal.

The PCB is designed to also work without the Pi.

It will fit into the TV module housing.

Next steps are soldering RGsB to HDMI converter on the PCB and further testing.

But first of all clean up dining table from soldering tools for xmas...
Attached Thumbnails
Click image for larger version

Name:	20191222_200629_1577043578100.jpg
Views:	51
Size:	100.7 KB
ID:	790569   Click image for larger version

Name:	20191222_200636_1577043623906.jpg
Views:	52
Size:	78.9 KB
ID:	790571   Click image for larger version

Name:	20191222_201141_1577043662031.jpg
Views:	49
Size:	74.2 KB
ID:	790573  
vitalic is offline   Reply With Quote
Old 12-23-2019, 04:46 PM   #1989
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 103
My Ride: E38
Just because I wanted to check if picture from OEM also works I soldered the RGsB to HDMI converter too.

The video shows switching from OEM to Pi and back and also switching to reversecam in OEM mode and Pi mode.

So at least all video sources work. Next step is soldering and testing USB hub and audio.

vitalic is offline   Reply With Quote
Old 01-08-2020, 02:40 PM   #1990
PeteC
Registered User
 
Join Date: Mar 2004
Location: Midwest
Posts: 54
My Ride: 330XI Silver
@PeteAU


Have a couple of BMW's / IBus with CarPC's. I am switching over to MicroPCs and I would like to run your PiBus software on an Intel based PC.



Is the PiBus software available for Intel.


I tried to compile the software but had issues and I am not proficient at this sort of stuff.

CC = x86_64-linux-gnu-gcc
STRIP = x86_64-linux-gnu-strip
all:
$(CC) -Wall -O2 -ggdb mainloop.c slist.c pibus.c ibus.c ibus-send.c keyboard.c gpio.c server.c log.c annotate.c -o pibus -lrt
cp pibus pibus.debug
$(STRIP) -R .comment pibus


Just got errors when compiling.


home/pete/Desktop/pibus-master/rpi# ./pibus
mmap error 0xffffffffffffffff



Can you please help?
__________________
E46 - Mods - 18.5 wheels (summer), Homelink, NAV software upgrade, 16:9 display, TV Module, Radio to V53, AUX, USB IBUS interface,OEM alarm, Mini ITX computer, halos, front clears,BT, LED Tails and DEI remote starter. Pending - painting brake calipers.

E83 - NAV - Panoramic Sun roof, Sirius, BT, etc. Completed Mods - Homelink mirror, rear door release, AUX, CD changer. NAV video input module. USB IBUS Interface. MinITX CarPC - 20" wheels



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
PeteC is offline   Reply With Quote
Old 01-09-2020, 02:02 PM   #1991
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 103
My Ride: E38
@PeteC

I guess it won't work without recoding. Pibus is designed to work with Pi.

Take a deeper look into the files at github. Thx PeteAU it's open source.

The problem starts at the gpio.h file. There are several settings for Pi's RAM and from which adress it should start using the gpio...

About my project:

Finally found a way to shutdown everything save with an adjustable offtimer circuit. Giving the board 6 minutes default time before cutting power off completly after IBUS is idle.

Also fixed picture problems coming from input noise.

USB hub works as expected. Will test audio from Hifiberry DAC circuit soon.

Going to redesign some traces and connectors too. Next version should be final prototype to test in my car.
vitalic is offline   Reply With Quote
Old 01-10-2020, 06:03 PM   #1992
bmwdud121
Registered User
 
Join Date: Nov 2015
Location: Melbourne
Posts: 142
My Ride: 2002 330i
This is fantastic work, Vitalic! Looking forward to seeing the prototype in action
bmwdud121 is offline   Reply With Quote
Old 01-11-2020, 03:37 AM   #1993
harryberlin
Registered User
 
Join Date: Apr 2017
Location: Germany
Posts: 138
My Ride: E39 Touring
got mine pcbs for atmega 2560 too.
today is solder day
Attached Thumbnails
Click image for larger version

Name:	IMG_20200111_103042~2_1578735439829.jpg
Views:	62
Size:	68.7 KB
ID:	791475  

Last edited by harryberlin; 01-11-2020 at 03:41 AM.
harryberlin is offline   Reply With Quote
Old 01-11-2020, 04:28 AM   #1994
bmwdud121
Registered User
 
Join Date: Nov 2015
Location: Melbourne
Posts: 142
My Ride: 2002 330i
Quote:
Originally Posted by harryberlin View Post
got mine pcbs for atmega 2560 too.
today is solder day
Ha! Used to program on those back when I started with Arduino (Megas!). Wunderbar
bmwdud121 is offline   Reply With Quote
Old 01-12-2020, 10:44 AM   #1995
PeteC
Registered User
 
Join Date: Mar 2004
Location: Midwest
Posts: 54
My Ride: 330XI Silver
OK so I tried running the Kodi Raspicontroller plugin on the S912 TVBox (Octocore Arm / 3Gb of RAM) and it works well!


The S912 TV box with 3Gb of RAM includes a Gb NIC and Wireless and Bluetooth with a smaller footprint than any RPi.



I like these better than the RPi's lately.



Note this is sold as an Android based TV Box and I have been testing these for 4K KODI with Armbian Linux.


Using an HDMI to VGA cable which goes to the combo Ibus / VGA box to the E46 / E83 automobiles.
__________________
E46 - Mods - 18.5 wheels (summer), Homelink, NAV software upgrade, 16:9 display, TV Module, Radio to V53, AUX, USB IBUS interface,OEM alarm, Mini ITX computer, halos, front clears,BT, LED Tails and DEI remote starter. Pending - painting brake calipers.

E83 - NAV - Panoramic Sun roof, Sirius, BT, etc. Completed Mods - Homelink mirror, rear door release, AUX, CD changer. NAV video input module. USB IBUS Interface. MinITX CarPC - 20" wheels



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by PeteC; 01-12-2020 at 10:47 AM.
PeteC is offline   Reply With Quote
Old 02-01-2020, 03:50 AM   #1996
Baddabing
Registered User
 
Join Date: Aug 2017
Location: Scotand
Posts: 60
My Ride: E46 330 CI
@Vitalic - how do you get the Bordmonitor to switch between inputs?
Baddabing is offline   Reply With Quote
Old 02-02-2020, 12:28 PM   #1997
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 103
My Ride: E38
I use another display (with touchscreen for pi).

The pibus AiO board outputs via HDMI to the custom touch display.

I use a RGsB to HDMI converter to convert video from NAV module to HDMI as source 1 (default).

Source 2 is PI output, source 3 is converted signal from rearcam (S-Vodeo to HDMI converter).

All 3 sources are connected to 3:1 HDMI switch.

It is controlled via 2 switches which are pulled down by pi or rear gear (source 1: s1 and s2 high, source 2: s1 high s2 low, source 3: s1 and s2 low).

The board is designed to also work without the pi as source.

Last edited by vitalic; 02-02-2020 at 12:29 PM.
vitalic is offline   Reply With Quote
Old 02-03-2020, 12:37 AM   #1998
zbi701
Registered User
 
Join Date: Aug 2009
Location: Malaysia
Posts: 334
My Ride: E46 330i
Quote:
Originally Posted by vitalic View Post
I use another display (with touchscreen for pi).

The pibus AiO board outputs via HDMI to the custom touch display.

I use a RGsB to HDMI converter to convert video from NAV module to HDMI as source 1 (default).
Hi vitalic, are you using aftermarket RGsB to HDMI converter? I've been looking for this converter but to no avail. What they have is RGB Component and VGA in.
__________________
My Rides:

E46 330i
E90 325i
F30 330e

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
zbi701 is offline   Reply With Quote
Old 02-03-2020, 01:00 AM   #1999
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 103
My Ride: E38
Depends on what you are trying to do. The TV module outputs RGsB to the bordmonitor, the NAV module outputs RGB S to the TV module.

If you want to use the aftermarket RGB to HDMI converter and use the TV module RGsB signal, you'd have to split the sync from the Green line with an extra stripper.

I use the signal from NAV module, so there is no need for extra syncstripper as the NAV outputs the sync signal.

The new board also includes the RGB to HDMI converter, where I use the signal from NAV.
vitalic is offline   Reply With Quote
Old 04-06-2020, 12:52 PM   #2000
Jamesbebby
Registered User
 
Join Date: Apr 2020
Location: UK
Posts: 19
My Ride: E46 Touring 330d
Year: 2004
Model: E46 Touring 330d
Transmission: Auto
Hi, Is anyone selling these now?
As both units are sold out on his page.
Cheers, James
Jamesbebby is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Censor is ON



All times are GMT -5. The time now is 10:00 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
(c) 1999 - VerticalScope Inc. All rights reserved.