I suspect it will be CANbus. I've got a generic EV repo that I'm playing with, although it's C++ so not my language but interesting never the less, and it's all CANbusI'm wondering if anyone has information on what protocol the MG4 is using for the communication between the camera and the rest of the car(CAN/CAN-FD something "worse")
Oh sorry I meant for the front drive assistance camera. I want to add openpilot support.It's not too tricky to access the wiring for the rear camera if you want to probe the signal wire, you need to remove the large piece of trim that's on the tailgate on the camera is on the 3 pin connector in the middle.
If you do find the protocol, I'd be interested to know. It could even be analogue composite video!
I'm guessing the camera would be handled in the device list then dealt with in the can handler. But this is way out of my comfort zone and I'm just playing and trying to learn as I go as it's not something I've delved into too deep yetOh sorry I meant for the front drive assistance camera. I want to add openpilot support.
Ah, the front camera is a little more tricky to access, there are 2 trim panels to remove, they are essentially 2 halves of a single panel.Oh sorry I meant for the front drive assistance camera. I want to add openpilot support.
It's standard that the camera module also does processing and sends commands to the car. Openpilot community seems to have some nice connector images and we know the connector part numbers, just need to figure out the wiring and how the networking works.Ah, the front camera is a little more tricky to access, there are 2 trim panels to remove, they are essentially 2 halves of a single panel.
The front camera has far more pins, it looks like a 20-30 sized pin connector, and I remember the camera being marked 'Bosch' but I couldn't see a model name anywhere, so I have no idea on the pinout..
It also does get quite warm which leads me to believe is could be doing some video processing, or something pretty clever under the hood.
You might be able to find the answer in the project wiki on github HomeIt's standard that the camera module also does processing and sends commands to the car. Openpilot community seems to have some nice connector images and we know the connector part numbers, just need to figure out the wiring and how the networking works.
Ah fair enough, might me worth putting out a message on the discord channel to see if any dev has started looking/investigating.Yeah, I've worked at comma.ai but we don't have any info on saic/mg stuff yet
Just had a quick check through the PR's and there are dev review requests from Australia, Belgium, Germany and a couple of Koreans so you might get lucky on DiscordYup, that's where the photos are from. However comma devs are unlikely to see an MG4 given that they are based in San diego
Nope, what we do is get our own image data then compute the desired path. We just need CAN connectivity so we know what packets we need to spoof to get the power steering to listen to us.For integration with Openpilot I assume it needs image data right?
You wont get that on CAN, it'll be pre-processed object & lane data being output on that.
Unless you plan on modifying Openpilot interface?
Generally the processing system is integrated with the camera on 95% of cars(I've seen an old Audi as an exception). So yeah we expect the ADAS ECU to be at the top camera. For the DBC we generally reverse engineer it though we've had it randomly appear on our desks for some brands.Ah right so you're connecting a separate camera for it and looking for the control messages on CAN? These also wont come direct from the Bosch camera, there will be an ADAS ECU that produces these. Will Openpilot work with just these signals or will it need a full dbc for it?
I hope this is helpful, not stating the obvious. Openpilot is the software used by the Commai 3X (hardware). The hardware is $1250 +$200 for a harness. You stick the kit on the windscreen, centrally. You then bypass the front camera using the new hardware and that feeds the CAN connection under the driver side.For integration with Openpilot I assume it needs image data right?
You wont get that on CAN, it'll be pre-processed object & lane data being output on that.
Unless you plan on modifying Openpilot interface?
With a Bosch camera I would expect CAN FD and a minimal set of object & lane data.