DIY E46 Media Centre: MP3, videos, Digital Radio, Digital TV? - Page 98 - 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 > BAVSOUND Mobile Electronics Forum

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

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 69 votes, 4.99 average. Display Modes
Old 05-13-2019, 12:58 AM   #1941
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 84
My Ride: E38
Hi Pete,

yes already thought about that. The question is, how to realize it.

If the car has tv and nav, the tv generates the pic. If the car only has nav, the nav generates te pic. That can be read in bmw wds system.

So you first have to change the vehicle code to make clear there is no tv modul. Thats is not the problem. This can be coded with bmw scanner.

But after this, does the reversecam still work?

The nav sends other like tv, a RGB + sync signal instead of RGsB.

How do you want to switch between the 3 resources than?

Right now i just switch between pi and tv modul. After removing tv modul you'd also have to make reversecam as input possible.

The board is based on pibus. So right now i also use the pin 17 from tv modul to make the HDMI switch select the input.

Pibus acts like, when switching to cdc, make tv modul switch to reversecamview. But if you remove the tv modul, there is no more reversecamview?

Or does the nav also offer an input?
vitalic is offline   Reply With Quote
Old 05-13-2019, 01:13 AM   #1942
bigTom
Registered User
 
Join Date: Aug 2014
Location: Lithuania
Posts: 34
My Ride: E83
Quote:
Originally Posted by vitalic View Post
Hi Pete,

yes already thought about that. The question is, how to realize it.

If the car has tv and nav, the tv generates the pic. If the car only has nav, the nav generates te pic. That can be read in bmw wds system.
I don't know who is really generating the image on a screen, but in E83, if I plug only NAV module or NAV + TV, the menu/screen looks identical, only one more option is added (television). If I plug only TV module and unplug NAV, the screen and menu looks totally different. So it looks like on E83 NAV module is the main one. I had an idea of emulating the TV module on RPi and totally removing TV module, but I am not good at electronics so have no idea how to do hardware side the correct way
bigTom is offline   Reply With Quote
Old 05-13-2019, 01:21 AM   #1943
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 84
My Ride: E38
My bad that was not exact enough. The pic is generated by nav, but is drawn by tv modul.

I also thought some time before to let the system be shown by the pi, but that requests massive programing. Also it takes some time for the pi to boot.

It would be great to have only the pi as module there. This way you would be able to build in a touchscreen only without the need of any physical button. So you could remove the complete bordmonitor.
vitalic is offline   Reply With Quote
Old 05-13-2019, 03:59 AM   #1944
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 84
My Ride: E38
At Pete,

you are right. I have a solutuon in my mind to switch between Pi HDMI, nav to HDMI, and cam to HDMI.

This way i will be able to remove the tv modul completly and make things easier.
vitalic is offline   Reply With Quote
Old 05-13-2019, 07:16 AM   #1945
harryberlin
Registered User
 
Join Date: Apr 2017
Location: Germany
Posts: 124
My Ride: E39 Touring
The landscape of RGsB is:
Nav from MK3 (MK2 i'm not sure)makes the Screen. If there is a tv-modul integrated, the tv modul forwards the nav signal. only when you turn to tv or rearcam, the tv modul generates/shows/overlays the screen.
you can check this, when you stay on nav screen in tv mode. the nav shows an empty screen.
When you replace the tv modul and use an usual tft incl. driverboard, you must handle the sources by yourself. most tft has a seperated av in, which can enabled by one wire for rearcam.
harryberlin is offline   Reply With Quote
Old 05-13-2019, 10:35 AM   #1946
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 84
My Ride: E38
So this is my idea:

Instead of using 1 HDMI switch i use 2.

Number one will switch between reversecam input and switch 2.
Switch 2 will switch between rasp pi input and oem input.

I can use the gpio outputs (controlled by pibus) to control the switches, like i do at the moment.

The rearcam signal will be converted via AVtoHDMI converter, the oem pic from nav module will be converted by module like GONBES8200 to HDMI.

So i'll make a new pcb layout that will fit into the tv module. Maybe i'll find the blue and the white connector to solder them on the new pcb.

Last edited by vitalic; 05-13-2019 at 10:36 AM.
vitalic is offline   Reply With Quote
Old 05-13-2019, 09:28 PM   #1947
PeteAU
Registered User
 
Join Date: Oct 2011
Location: Melbourne
Posts: 535
My Ride: 330i
Quote:
Originally Posted by vitalic View Post
So this is my idea:

Instead of using 1 HDMI switch i use 2.

Number one will switch between reversecam input and switch 2.
Switch 2 will switch between rasp pi input and oem input.

I can use the gpio outputs (controlled by pibus) to control the switches, like i do at the moment.

The rearcam signal will be converted via AVtoHDMI converter, the oem pic from nav module will be converted by module like GONBES8200 to HDMI.

So i'll make a new pcb layout that will fit into the tv module. Maybe i'll find the blue and the white connector to solder them on the new pcb.
You shouldn't disrupt your current board/design! This TV motherboard idea is VERY big.

I think you would need to have a microcontroller, to emulate TV module (IBUS device 0xED). And CVBS->RGsB converter for reverse cam and socket for possible DVB-T2 module. It's very complex and maybe one year of development...
PeteAU is offline   Reply With Quote
Old 06-12-2019, 07:09 AM   #1948
vitalic
Registered User
 
Join Date: Mar 2015
Location: Ilmenau
Posts: 84
My Ride: E38
At Pete, i need some inspiration from you.

At the moment i design a new layout fitting into the tv modul.

My problem right now, what if the pi is down or not in place?

At the moment i use a relay to enable the 12V to 5V converter. It is supplied with 12V permanent power. Ground is enabled for the relay if the mosfet is turned on. The mosfet gate is therefore supplied by the ibus ic Pin 8.

The ibus ic is usualy driven by wakeup event from ibus and sleep event from raspberry pi (pibus).

So if the pi is present and goes to shutdown because of the 5 min rule, the ibus ic sets pin 8 to low which causes the mosfet to shutdown which causes to relay to shutdown which causes the converter to shutdown. Everything ok.

Now if there is no pi present the wakeup works as usual because of the ibus signal, but the ibus ic stays in normal mode as there is no event from pi anymore which tells it to go to sleep mode. So this would drain the battery if there is no pi present.

Do you have an idea how to handle the problem? How can i send the ibus ic to sleep mode when there is no pi present.

Regards

Edit what i figured out:
Pin 3 and Pin 7 are on 12V (always hot)
If Pin 6 goes high (12V ibus) then ic wakes up.
After pi has booted and pibus runs, gpio 22 goes hi (3.3V) which is connected to Pin 2.
When pi shuts down gpio 22 goes low and that makes ic go to sleep mode.

So i need to find a way to emulate the 3.3V. Thought about the 16min 12V wire. If there is no pi and car is openend the 16min wire goes to 12V. If car is closed after 16min this wire goes low.
The question is how to bring the 12V down to 3.3V the easiest way.
What do you think about a converter which outputs 3.3V? Or a mosfet solution?

Last edited by vitalic; 06-12-2019 at 02:11 PM.
vitalic is offline   Reply With Quote
Old 06-17-2019, 12:17 AM   #1949
bigTom
Registered User
 
Join Date: Aug 2014
Location: Lithuania
Posts: 34
My Ride: E83
Hi,

Maybe I haven't understood the question, but... why not to power on your whole system (board + pi) from that 16min wire?
As I understand it will provide 12V as long as car is active, and go to 0V after 16min if engine is off. If it's so, then no matter is PI present or not, your system will be off after 16min of inaction.


Quote:
Originally Posted by vitalic View Post
At Pete, i need some inspiration from you.

So i need to find a way to emulate the 3.3V. Thought about the 16min 12V wire. If there is no pi and car is openend the 16min wire goes to 12V. If car is closed after 16min this wire goes low.
The question is how to bring the 12V down to 3.3V the easiest way.
What do you think about a converter which outputs 3.3V? Or a mosfet solution?
bigTom is offline   Reply With Quote
Old 06-17-2019, 12:52 AM   #1950
PeteAU
Registered User
 
Join Date: Oct 2011
Location: Melbourne
Posts: 535
My Ride: 330i
Quote:
Originally Posted by vitalic View Post
At Pete, i need some inspiration from you.

At the moment i design a new layout fitting into the tv modul.

My problem right now, what if the pi is down or not in place?

At the moment i use a relay to enable the 12V to 5V converter. It is supplied with 12V permanent power. Ground is enabled for the relay if the mosfet is turned on. The mosfet gate is therefore supplied by the ibus ic Pin 8.

The ibus ic is usualy driven by wakeup event from ibus and sleep event from raspberry pi (pibus).

So if the pi is present and goes to shutdown because of the 5 min rule, the ibus ic sets pin 8 to low which causes the mosfet to shutdown which causes to relay to shutdown which causes the converter to shutdown. Everything ok.

Now if there is no pi present the wakeup works as usual because of the ibus signal, but the ibus ic stays in normal mode as there is no event from pi anymore which tells it to go to sleep mode. So this would drain the battery if there is no pi present.

Do you have an idea how to handle the problem? How can i send the ibus ic to sleep mode when there is no pi present.

Regards

Edit what i figured out:
Pin 3 and Pin 7 are on 12V (always hot)
If Pin 6 goes high (12V ibus) then ic wakes up.
After pi has booted and pibus runs, gpio 22 goes hi (3.3V) which is connected to Pin 2.
When pi shuts down gpio 22 goes low and that makes ic go to sleep mode.

So i need to find a way to emulate the 3.3V. Thought about the 16min 12V wire. If there is no pi and car is openend the 16min wire goes to 12V. If car is closed after 16min this wire goes low.
The question is how to bring the 12V down to 3.3V the easiest way.
What do you think about a converter which outputs 3.3V? Or a mosfet solution?
Actually, the chip wakes up when IBUS goes low (activity).

On my board, I connected LIN transceiver pin 2 (NSLP) to GPIO22 and also 100K pull-down, sometimes Pi's pull-down is disabled by software/kernel or too weak . I haven't studied the TJA1020 state diagram lately, it's quite complex. Does it need to go high (3.3V) before going low (gnd)? I always assumed the Pi must be present. Maybe just a resistor divider (assume 14.4V)?
PeteAU is offline   Reply With Quote
Old 06-18-2019, 08:15 AM   #1951
vytasas
Registered User
 
Join Date: May 2017
Location: Lithuania
Posts: 4
My Ride: E39
Year: 2003
Model: 530d
Transmission: automatic
Hi, does anyone still interested in these ibus video interface boards? I am electronics engineering student from Lithuania. This semester I had printed circuit board design class at university, so I decided to redesign Pete's board. The board works the same way as Pibus board, me and my friend installed it to his e46, it didn't have TV module, so we retrofitted it. My friend is very happy with this board and use this device everyday

My redesigned board has different power supply circuit, but LIN bus interface and audio DAC is the same as Pibus board, so buttons works fine and quality of sound is very staggering. I found another solution for rear camera switching and didn't use relay circuit. If anyone still wants to have this board in their car, I could assemble few more boards. My email is [email protected]

Few photos of my redesigned board:
https://drive.google.com/drive/folde...vJ?usp=sharing

Last edited by vytasas; 06-18-2019 at 08:17 AM.
vytasas is offline   Reply With Quote
Old 06-18-2019, 11:32 AM   #1952
harryberlin
Registered User
 
Join Date: Apr 2017
Location: Germany
Posts: 124
My Ride: E39 Touring
whats your solution for rearcam switching?
harryberlin is offline   Reply With Quote
Old 06-18-2019, 11:50 AM   #1953
vytasas
Registered User
 
Join Date: May 2017
Location: Lithuania
Posts: 4
My Ride: E39
Year: 2003
Model: 530d
Transmission: automatic
Quote:
Originally Posted by harryberlin View Post
whats your solution for rearcam switching?
I am using analog SPDT switch ic.
vytasas is offline   Reply With Quote
Old 06-18-2019, 02:24 PM   #1954
harryberlin
Registered User
 
Join Date: Apr 2017
Location: Germany
Posts: 124
My Ride: E39 Touring
Quote:
Originally Posted by vytasas View Post
I am using analog SPDT switch ic.
For powering the rearcam you use a simple transistor?
harryberlin is offline   Reply With Quote
Old 06-19-2019, 04:19 AM   #1955
vytasas
Registered User
 
Join Date: May 2017
Location: Lithuania
Posts: 4
My Ride: E39
Year: 2003
Model: 530d
Transmission: automatic
Quote:
Originally Posted by harryberlin View Post
For powering the rearcam you use a simple transistor?
Yes
vytasas 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 01:23 AM.


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