Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Accessing cameras via coding

  1. #1
    Join Date
    Sep 2016
    Location
    Brisbane
    Posts
    293
    Users Country Flag

    Accessing cameras via coding

    Not sure if this is the right place to post this, but here goes.

    Is it possible to access the vehicles camera (lane-assist or front-assist, where fitted) via coding, VCDS, OBD or any other means?

    Any talented programmers able to achieve this?

    Reason being - I firmly believe the design rules will change within the next 10 years, to make dash-cams compulsory on new vehicles.
    Instead of buying aftermarket cameras, why isn't the feed from OEM cameras accessible via OBD ports?
    Or are they?

    It would make sense to use the already-available camera for this purpose, and I'm interested to know if anyone has fiddled around with trying to access the signal to export to an external device/card-reader/recording device?

    Thoughts?
    2016 Skoda Octavia 162TSI RS Wagon
    (Race Blue, DSG, Tech pack, Comfort pack, 18" Black pack, panoramic sunroof, auto tailgate)

    Previous: 2012 Mazda 6 Diesel // 2001 Subaru Liberty STi // 1991 Subaru Liberty RS Turbo // VK Holden Commodore // Subaru Leone // Mazda RX-808 // Mitsubishi Magna // 1971 Mazda R100 Coupe

  2. #2
    Join Date
    Dec 2011
    Location
    Pacific Paradise QLD
    Posts
    7,360
    Users Country Flag
    Problem might be trying to make it do two things at once Front assist on my car is a radar unit not a camera
    2021 Kamiq LE 110 , Moon White, BV cameras F & B
    Mamba Ebike to replace Tiguan

  3. #3
    Join Date
    Sep 2016
    Location
    Brisbane
    Posts
    293
    Users Country Flag Thread Starter
    Quote Originally Posted by Hillbilly View Post
    Front assist on my car is a radar unit not a camera
    Yeh, I wasn't 100% sure if there's just 1 camera installed, or 2....

    I know my high beam assist uses the lane-assist camera, and it also works the traffic-sign recognition - so the signal/data from a camera can obviously be shared between multiple different functions.....

    I realise the quality of the image captured in these cameras may not be brilliant in terms of dash-cam quality, but that will only improve into the future.

    I just assume that if most other sensor inputs can be interrogated and displayed externally (while also being used by the ECU to actually operate the car), then the camera input can also be sniffed out and displayed externally as well?
    2016 Skoda Octavia 162TSI RS Wagon
    (Race Blue, DSG, Tech pack, Comfort pack, 18" Black pack, panoramic sunroof, auto tailgate)

    Previous: 2012 Mazda 6 Diesel // 2001 Subaru Liberty STi // 1991 Subaru Liberty RS Turbo // VK Holden Commodore // Subaru Leone // Mazda RX-808 // Mitsubishi Magna // 1971 Mazda R100 Coupe

  4. #4
    Join Date
    Sep 2013
    Location
    Victoria
    Posts
    1,806
    Users Country Flag
    Spinifex: Very good question - clearly from a lateral thinking brain!

    The front camera that's mounted on the windshield in MQB vehicles (like my Golf mk7) doesn't use any analogue signals like the reversing camera, so I suspect that if it's possible to use the video signal for other purposes, you would need to look at the form of digitized signal that's produced by the camera (it's called R242 on the Golf).

    As wired in my present car, the front camera output is directly connected to what VW call "J533" which is the diagnostic module and the main controller for the CAN network. This strongly suggests (to me at least) that the front camera output signal doesn't use any of the recognized video formats (like MP4, wmv, mkv). But rather, it suggests that either all the processing is done inside the camera unit itself (remembering that the camera only supports limited functions) and the output is purely a handshaking yes/no message, or the camera output signal only speaks CAN language (i.e. OBDII speak). This might make it difficult to interface the camera to an external device that expects to see a recognized video signal protocol- I think

    But this doesn't mean that in the future (when (if?) dashcams are mandatory), the front (and even rear cameras) might be multi-tasking

    Don
    Last edited by DV52; 24-01-2017 at 04:34 PM.
    Please don't PM to ask questions about coding, or vehicle repairs. The better place to deal with these matters is on-line, in the forum proper. That way you get the benefit of the expertise of the wider forum! Thank you.

  5. #5
    Join Date
    Sep 2016
    Location
    Brisbane
    Posts
    293
    Users Country Flag Thread Starter
    Thanks Don - always a very detailed response and perfectly understandable for the not-so-technical of us.

    It's a pity it's not a "normal" video feed as such, that can be interpreted in a visual manner, but I can understand why it wouldn't be done that way.

    I suspect though, that the camera would still be capable of producing a video feed, if it was programmed to do so...... as it's not JUST detecting a line marked on the road (which presumably would be pretty easy to program into a recognition module - a simple straight or dotted line within the field-of-view), but to capably recognise different speed signs in different formats, makes me think that it perhaps can also interpret actual live streams as well?

    Or are the speed signs in slightly different formats depending on country, all pre-programmed into an internal database in the infotainment system? That would mean every single possible speed number (presumably in 5km/hr increments) would have to be programmed?
    Last edited by Spinifex; 24-01-2017 at 05:42 PM. Reason: typo
    2016 Skoda Octavia 162TSI RS Wagon
    (Race Blue, DSG, Tech pack, Comfort pack, 18" Black pack, panoramic sunroof, auto tailgate)

    Previous: 2012 Mazda 6 Diesel // 2001 Subaru Liberty STi // 1991 Subaru Liberty RS Turbo // VK Holden Commodore // Subaru Leone // Mazda RX-808 // Mitsubishi Magna // 1971 Mazda R100 Coupe

  6. #6
    Join Date
    Dec 2010
    Location
    Helensburgh
    Posts
    1,336
    I think it would be a very brave person who tried to modify what is a primary safety/driver assistance system.

  7. #7
    Join Date
    Jun 2010
    Location
    Sydney
    Posts
    4,079
    Users Country Flag
    The canbus has a throughput of something like 128Kb/s. It was never designed for high bandwidth applications like video.
    The camera module also does the processing and interpretation, sending out frames of data that contain what it sees, not the raw video.

    There are aftermarket head units available with camera input modules that integrate a dashcam application with other functions but they don't integrate with the OEM camera, you would need to install another camera.

    In theory one could hack the output from the OEM camera but it would entail dismantling the camera module and wiring up additional controllers to the right pins etc etc. So you could split the feed off such that the controller still got a signal but you could pull the raw image data off to somewhere else.

    Therefor just buy a dashcam
    2011 Skoda Octavia vRS TDI DSG wagon|Revo Stage 1|Race Blue|Leather|Dynamic Xenons w 6000K|9w7 BT|THA475 Amp+active sub|Whiteline ALK|RVC|
    2009 R36 wagon|Biscay Blue|RVC|Tailgate|ECU and DSG tune|LED DRL/Indicators|3D colour cluster|Quad LED tail rings|Climatronics upgrade|Dynaudio retrofit|B7 RLine Flat Steering Wheel|3AA CCM|TPMS Direct|B7 Adaptive Cruise with Front Assist|Discover Media retrofit|PLA 2.0|Lane Assist|BCM retrofit|High Beam Assist|DQ500

  8. #8
    Join Date
    Nov 2009
    Location
    Adelaide, SA
    Posts
    3,591
    Quote Originally Posted by DV52 View Post
    As wired in my present car, the front camera output is directly connected to what VW call "J533" which is the diagnostic module and the main controller for the CAN network. This strongly suggests (to me at least) that the front camera output signal doesn't use any of the recognized video formats (like MP4, wmv, mkv). But rather, it suggests that either all the processing is done inside the camera unit itself (remembering that the camera only supports limited functions) and the output is purely a handshaking yes/no message, or the camera output signal only speaks CAN language (i.e. OBDII speak). This might make it difficult to interface the camera to an external device that expects to see a recognized video signal protocol- I think
    I read some info on this a couple of years back (so can't quote a source). The windscreen-mounted camera doesn't process the data itself (and you wouldn't expect it to given the multi-purpose role it plays - lane recognition, oncoming headlight recognition etc), but it is designed to only pick up very high contrast light sources - shiny lane markings, headlights and such. A representation of that data (potentially in a vector format or whatever) is then passed along to whatever controller(s) make use of it. So, in a nutshell, you'll never get a visible video signal from the device, as Don has suggested.

    Also - mkv is a container for video and audio (frequently contains x264 video), it's not a video format itself.
    2008 MkV Volkswagen Golf R32 DSG
    2005 MkV Volkswagen Golf 2.0 FSI Auto
    Sold: 2015 8V Audi S3 Sedan Manual
    Sold: 2010 MkVI Volkswagen Golf GTI DSG

  9. #9
    Join Date
    Sep 2016
    Location
    Brisbane
    Posts
    293
    Users Country Flag Thread Starter
    Thanks all for responses. Understood.

    I reckon in the future, quality streaming cameras will be installed by default, and those utilised for splitting off the safety features for input into the CAN network, rather than using basic cameras as currently used.
    2016 Skoda Octavia 162TSI RS Wagon
    (Race Blue, DSG, Tech pack, Comfort pack, 18" Black pack, panoramic sunroof, auto tailgate)

    Previous: 2012 Mazda 6 Diesel // 2001 Subaru Liberty STi // 1991 Subaru Liberty RS Turbo // VK Holden Commodore // Subaru Leone // Mazda RX-808 // Mitsubishi Magna // 1971 Mazda R100 Coupe

  10. #10
    Join Date
    Dec 2014
    Location
    Monaro, NSW
    Posts
    314
    Users Country Flag

    Quote Originally Posted by Spinifex View Post
    Reason being - I firmly believe the design rules will change within the next 10 years, to make dash-cams compulsory on new vehicles.
    I'm not entirely sure the premise is correct. I think the future (perhaps not in ten years) will see the human taken out of the equation to avoid the incidents that dashcams are designed to capture.
    Daily: 2010 Tiguan TDI | Candy White | Manual | 4MOTION | New York Wheels | Comfort Pack | Tinted Windows | Discover Media | MkVI MFSW | Mk7 Climatronic | RVC | Fog Lights | ECB Nudge Bar | Hella 160 Driving Lights | Rola RBXL135 Cross Bars | To Do: Colour MFD
    Toy: 2008 GTI Pirelli | Sunflower Yellow | 3 Door | DSG | Pirelli Wheels | RNS-510 | 9W7 Bluetooth | RVC | Rear Sensors | Fog Lights | To Do: Mk7 Climatronics, MkVI MFSW, Colour MFD

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
| |