Quick update in regards to the electronics. I decided to make an adapter to tap into the LIN bus, instead of hacking a splice into the stock wire harness. This way it's very easy to remove and install, without impacting the stock harness at all.
The spare headlight switch I ordered off eBay came with a wire pigtail attached. I used that, then designed and 3D printed a mating plug housing. I just used standard header pins on a small piece of cut out PCB. The only long-pin headers I had were cheap ones from China, which I kind of regret using because they have a flatter, more rectangular "stamped" metal profile, whereas the OEM pins have a more square profile (like the higher quality TE/AMP pins you can buy). I did have some nicer TE/AMP pins, but they were of the shorter 6mm length. They would have still made contact with the plug, but they would be shorter than the OEM pins. So, I went with the cheaper import pins instead -- they still make contact just fine, but the flatter profile bothers me a bit. Used epoxy to locate/hold the PCB securely in the housing, and hot glue to fill the rest to give some extra strain relief to the wires.
If I were going to do this again, I think I would do it the "proper" way -- i.e. using genuine TE plugs and pins. It is just an MQS plug, which is a current and stocked item at most online warehouses. The stock plug with female terminals (what is currently on the OEM wire harness) is model number: 1670988-1. Audi also has their own PN on it: 8K0 973 754. This TE part seems out of stock at many online retailers (probably supply chain issues), but the Audi part number is in stock at a few places. The receptacle that takes the male pins would be TE part number 936121-1, I believe (didn't order it so I can't 100% verify). You'd need male pins as well, and here is an example that I believe would work: 963730-1. But obviously order the pins for the wire size you're using. Also, if you've gone through the trouble to do it right, don't do a half-hearted job with the crimping. Please don't just squeeze it with pliers. The proper crimp tool, I believe, is TE 58611-1. Stupid expensive when new (all really good crimpers are), but sometimes you can score one on eBay for cheap if you get lucky. A cheap set of open barrel crimpers off Amazon would likely also do the job (and certainly do it better than pliers).
Haven't had time to fully analyze the LIN bus data yet, but I believe the fog light switch reports on pid 0xC, but I could be wrong. I am still a little bit confused by this pid, as I only seem to get 6 bytes of data sent, which doesn't seem to match up with LIN specs. I will try to do some more analysis on it this weekend. If anyone else has info on it, please share. I attached an example capture.
0xC_Cap.jpgIMG_5854.jpgLight_Switch_Plug.jpg
Bookmarks