General Tech Help Good at troubleshooting? Have a non specific issue? Discuss general tech topics here.

CAN bus hacking Jaguar XF

Thread Tools
 
Search this Thread
 
  #81  
Old 03-17-2022, 03:23 PM
Rhys Morgan's Avatar
Member
Thread Starter
Join Date: Nov 2017
Location: kent
Posts: 60
Received 61 Likes on 27 Posts
Default

Apologies only just seen this, I guess you also have jaguar that can't keep the time! Yes it could, no it doesn't, it is on the list (list thats looking less and less likely to be given the time it needs!)
 
  #82  
Old 07-20-2022, 12:36 AM
Join Date: May 2014
Location: Los Angeles
Posts: 67
Received 14 Likes on 8 Posts
Default

I tried Pm you Please contact me when you get time. its about the can bus. I love the the work you posted on YouTube.
 
  #83  
Old 03-20-2023, 05:37 PM
Rhys Morgan's Avatar
Member
Thread Starter
Join Date: Nov 2017
Location: kent
Posts: 60
Received 61 Likes on 27 Posts
Default

Long long long over due update. Got a bunch to update on the app itself, but I will save that for another time. Last few weeks have been spent playing around with the MOST bus and the os8104A chip. It began like the below



To test I used the set up from a freelander 2, this is far more simple than the xf, but works on the same principal. At this point I was happy with the cabling but was experiencing the MOST stopping every few seconds when fed into the test bench set up. I suspected this was due to the high sensitivity legs on the os8104A/Most chip being too long on the bread board. So I set about designing my first PCB in a raspberry Pi HAT form. This resulted in the below



So I sent this off to JCLPCB and ordered 15 for $9 ($31 including shipping to the uk) also ordered all the components (besides the chip and transceiver) from RsComponents. The chip and transceiver were recycled out of old module bought from ebay. PCB took about 5 days to make, and shipped from china on friday, it turned up today (monday) so I set about soldering it up.






Then inserted it into the MOST ring, and bingo it works! I am now in the middle of writing the driver to actually use it, and will update as I go!


 
The following users liked this post:
hafren (03-23-2023)
  #84  
Old 03-20-2023, 05:45 PM
Rhys Morgan's Avatar
Member
Thread Starter
Join Date: Nov 2017
Location: kent
Posts: 60
Received 61 Likes on 27 Posts
Default

A little sneak peak at the current state of the jag app too for those interested!


 
The following 2 users liked this post by Rhys Morgan:
Bill400 (03-22-2023), Sean W (03-26-2023)
  #85  
Old 03-21-2023, 05:36 AM
JagV8's Avatar
Veteran Member
Join Date: May 2009
Location: Yorkshire, England
Posts: 26,816
Received 4,560 Likes on 3,965 Posts
Default

Watching with interest...
 
  #86  
Old 03-23-2023, 02:11 PM
hafren's Avatar
Senior Member
Join Date: Sep 2014
Location: Dayton, Ohio USA
Posts: 645
Received 229 Likes on 148 Posts
Default

Originally Posted by Rhys Morgan
To test I used the set up from a freelander 2, this is far more simple than the xf, but works on the same principal. At this point I was happy with the cabling but was experiencing the MOST stopping every few seconds when fed into the test bench set up. I suspected this was due to the high sensitivity legs on the os8104A/Most chip being too long on the bread board. So I set about designing my first PCB in a raspberry Pi HAT form. This resulted in the below

So I sent this off to JCLPCB and ordered 15 for $9 ($31 including shipping to the uk) also ordered all the components (besides the chip and transceiver) from RsComponents. The chip and transceiver were recycled out of old module bought from ebay. PCB took about 5 days to make, and shipped from china on friday, it turned up today (monday) so I set about soldering it up.
Then inserted it into the MOST ring, and bingo it works! I am now in the middle of writing the driver to actually use it, and will update as I go!
Brilliant - Great work
 
  #87  
Old 04-16-2023, 05:25 PM
Rhys Morgan's Avatar
Member
Thread Starter
Join Date: Nov 2017
Location: kent
Posts: 60
Received 61 Likes on 27 Posts
Default

New update on the MOST bus side, lots and lots of time has gone into this, low level drivers are written, and I’ve moved onto what the specs call the application layer. This is where each device in the ring has an FBlock, and inside the block are various functions. I’ve managed to do the system blocks, such as network master, and have today finished most of the cd player block. I’ve cobbled together a quick app to give an interface to it. This is all done interfacing to the Freelander 2 hardware, which is most the same as the XF, it’s just simpler to get started on. App shows some of the information from the cd player, such as song name, album name (when text is present) play time. But it also allows control, of changing songs, changing active disk etc etc.

 
  #88  
Old 04-27-2023, 04:15 PM
Rhys Morgan's Avatar
Member
Thread Starter
Join Date: Nov 2017
Location: kent
Posts: 60
Received 61 Likes on 27 Posts
Default

Version 1.1 of the PiMost hat, everything is now much better laid out. The i2s audio pins are now properly routed, audio injection works by emulating a sound card in linux, for an extra benefit it uses the clock signal source from the MOST network rather than the horribly divided internal Pi one. Overall the most stuff is proving very accessible, it just a huge amount of data to have to work through.




 
  #89  
Old 09-13-2023, 04:23 AM
Cataclysm's Avatar
Junior Member
Join Date: Oct 2022
Posts: 6
Likes: 0
Received 2 Likes on 2 Posts
Default

given that ive only had my 2013 XF for a short time, im afraid i cannot claim to have been following this for years, however this is simply incredible work being done.

i came across this project when i started looking into whether i could read some info off of the can/obd system in order to display a boost gauge and oil pressure ect when sport mode is selected, i was also interested in fitting and opening a muffler valve/cutout but only if i could trigger it when sport mode was selected.

All of that is fairly unrelated to your project other than your work with the interfacing, I never found the headunit of the XF to be much of a problem other than i REALLY would like android auto. there isnt any good solutions ive found other than the potential found in your project!

i have only one small request, the one single aspect of the original head unit that i dont like is the heat seats. It take multiple button presses to turn them on. i see you have gpio configurable with the new software so what im really hopeful is that you may be able to configure without further programing, the original physical heated seat button, or an aftermarket button fitted, to automatically put the drivers seat on high when pressing it and off again on if pressed again. i rarely use the lower settings but would assume you could still go through the settings to adjust if desired.

Following on from that and back to my own original project, how likely are you to include some tasteful analog gauges? there are a few plug in devices available but they usually look like vapourwave digital readouts much unlike the oem gauges and having them match the original even if on screen would be much nicer.

Thanks either way and following keenly!
 
The following users liked this post:
Rhys Morgan (09-13-2023)
  #90  
Old 09-13-2023, 05:06 PM
Rhys Morgan's Avatar
Member
Thread Starter
Join Date: Nov 2017
Location: kent
Posts: 60
Received 61 Likes on 27 Posts
Default

Thanks for the feedback, it may seem a bit quiet on this project, but trust me in the background it’s not! A lot of effort is currently going into making the HAT and drivers OEM agnostic, there’s also a huge amount of work going into the media side such as pulling the microphone stream off of the MOST etc.

For the seats I do agree it’s a strange ui decision, when I get to a full fledged version of the app, I’ll likely look to see what can be done, the beauty of having this full control over the MOST means you can really morph this stuff, the bass and treble adjustments are currently sliders on the app rather than a plus and minus button, so I’m sure something more modern can be done to the seats!

gauges are a also a possibility, it’s not something I’m particularly keen on, but the data is all there so very easy to add!
 
  #91  
Old 09-13-2023, 07:07 PM
Cataclysm's Avatar
Junior Member
Join Date: Oct 2022
Posts: 6
Likes: 0
Received 2 Likes on 2 Posts
Default

Yes i made my way to your forum and saw the work completed on the PiMOST hat, it looks great!

Understandable why you may not be too interested in gauges, they are hard to make look good on a screen, though just having access to the data and the possibility to add it later on is such a great direction.

i am sorly tempted to pick up a hat while i can, however I'm miles away and it may be better to assemble my own. is the pcb and related component/ donor module info open source?
 
  #92  
Old 09-13-2023, 07:39 PM
dangoesfast's Avatar
Senior Member
Join Date: Jul 2023
Location: Australia
Posts: 758
Received 283 Likes on 213 Posts
Default

What a fascinating thread, thank you for documenting all of this! I love this sort of project, and threads like this often inspire me to have a crack myself. I've wondered about this for a while now but I never knew where to start, so thank you again for giving all this info and maybe showing me how I can get started

Cheers
 
  #93  
Old 01-27-2024, 01:02 PM
mtl's Avatar
mtl
mtl is offline
Junior Member
Join Date: Oct 2014
Location: Portsmouth
Posts: 13
Received 4 Likes on 4 Posts
Default

Ive been watching this for ages and love the progress you have made on this and I hope to try out your work in my XF soon. Is there any more updates on this at all?

 
  #94  
Old 02-20-2024, 02:57 PM
Rhys Morgan's Avatar
Member
Thread Starter
Join Date: Nov 2017
Location: kent
Posts: 60
Received 61 Likes on 27 Posts
Default

Apologies all a huge amount to update really! I struggle to keep up with keeping everywhere up to date as it includes github, slack channels, my forum, other forums and all that double for both MOST and react-carplay projects!

But I'll do my best to update from where it last was on here!

I finally managed to get a benchtop set up going, for those interested, this is much hard than you may think. If you get every module from the same car, then hook up the ICM and ICP on canbus. Then minimum of touchscreen, amplifier, cd player and ICM on MOST and it will go. My problem was that with my almost scrapyard level amount modules kicking around they were all slightly different. And when I did find a combo that worked, as soon as I replayed the can messages from my car, the screen and MOST network refused to stay solid.

Long story short, I had to adjust my CCF messages on the candump to match the modules on the test bench (perhaps VIN too, kind of forgotten!) As we also have a freelander2 in the house hold, and that shares almost the same set up (just simpler so easier to work on) I created a monstrosity to hold them all



Having this set up has truly unlocked the doors to really figure it out. MOST has gone from my worst enemy to my best friend in this project. Everything is so much easier to work with that CAN once you get into it. Some of my MOST findings are below for people that are interested
  • MOST is address based like CAN, however messages are sent to an address (or broadcasted, but that's rare)
  • The master (ICM) holds a registry of all devices on functions on the network, this can be queried easily and you can build your own registry
  • You can register for notifications from a module, this is by far my favourite piece. So rather than CAN being super chatty and having to filter the noise of the same messages being sent every 50ms, you can say to the CD Player - Let me know when you have and update. This then means you get the current play time sent every second, when the track changes, when the disk changes, cd text etc etc. And you can register for as many notifications as you like.
  • There's a predefined standard for all messaging, MOSTly JLR follow it (see what I did there) which makes it super easy to work with, things like changing song are as simple as looking at the documentation and sending the right message to the right device. However every module has manufacturer specific functions which are not documented. Worst case some modules, such as the radio are entirely custom (when they don't need to be!)
  • Audio streaming works a treat, fairly straight forward to stream digital audio from the pi to the bus, and also to retrieve microphone input from the cars mic.
  • It's easier than CAN to reverse engineer the JLR specific messages. You can hijack the same address as the cd player, then using my software most-explorer, record the messages that get sent to the cd player, press skip on the control panel, and you will see the message come in.
Pretty much all of this has accumulated into a huge amount more work, and between supporting the now growing MOST community and writing/updating software to work with the PiMost and other car manufacturers, my time to develop something for the Jag has seriously diminished. However there is a new version in the works, fully utilising MOST, a small video of it in super early development below, I've spliced a couple of videos together the final section is the latest look to it (square launch pads will be gone and bottom bar will be used for navigating the app.


So a few final updates, I've managed to play around with some stuff, that I won't go into too much detail on, and found a new hidden menu I haven't seen documented anywhere before on the OEM screen



This records debug messages that happen on the touchscreen/most network and outputs them over MOST in text format, unfortunately the main detail of the data part of the message doesn't seem to be there (more investigation needed!)

And as a final snippet if you have a managed to make it this far, I did a small bit of trolling of the XF facebook page, which most people saw it for the joke that it was, and others seemed rather annoyed....





 

Last edited by Rhys Morgan; 02-20-2024 at 03:05 PM.
The following 2 users liked this post by Rhys Morgan:
hafren (02-22-2024), V7Sport (02-21-2024)
  #95  
Old 02-22-2024, 04:38 PM
hafren's Avatar
Senior Member
Join Date: Sep 2014
Location: Dayton, Ohio USA
Posts: 645
Received 229 Likes on 148 Posts
Default

Rhys,

Its brilliant that you are doing this and the entire Jaguar community is indebted to your sharing of discoveries, skills and perseverance.
 
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
clubairth1
XJ ( X351 )
258
01-30-2024 05:31 PM
TraxtarXKR
XK / XKR ( X150 )
12
11-13-2019 06:18 PM
Kozy35T
XF (X260)
6
11-06-2019 03:43 AM
Cranston
XF and XFR ( X250 )
5
08-09-2018 04:38 AM
jellisjag14
XF and XFR ( X250 )
11
07-28-2014 09:51 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 


Quick Reply: CAN bus hacking Jaguar XF



All times are GMT -5. The time now is 01:07 AM.