Forum-Gallery-Shop-Sponsors

« Advertise on Freel2.com

Home > Technical > CAN Bus
Post Reply  Down to end
Page 3 of 3 <123
Print this entire topic · 
alex_pescaru



Member Since: 12 Mar 2009
Location: RO
Posts: 4640

Vanny wrote:
There isn't a standard transceiver chip, and most modules have the transceiver in the MCU.

Are you sure?
For example, on my car, all modules (at least all that I've disassembled - CJB, IPC, HVAC, etc.) use Philips TJA1040 for CAN transceiver and TJA1020 for LIN transceiver.

From my experience the CAN engine is indeed inside the MCU, who exposes only CAN TX and CAN RX pins, but the transceiver is always a separate chip to generate from these the CANL and CANH signals... At least in the "noisy and unpredictable electrical medium" of the automotive world...

I've seen some time ago a discussion on the web, where they say that in general you won't see low power controllers with integrated transceivers. It takes considerable power to drive a differential bus over a long distance at relatively high speeds. The transceiver is subject to much higher current demands relative to a controller. If it were integrated it would requires several pins to distribute the power demands, as well as consuming a large part of the die which is better used for flash or SRAM.

But I am glad to stand corrected and therefore can you give us an example of an FL2 MCU who directly expose to the world the CANH and CANL pins? Maybe on the newer models?...

Post #420472 19th Apr 2022 3:41 pm
View user's profile Send private message View poster's gallery Reply with quote
rhys_m



Member Since: 18 Aug 2019
Location: kent
Posts: 28

United Kingdom 2008 Freelander 2 TD4 SE Manual Zermatt Silver

Super interesting thread, I have done a fair bit of this on my XF, and not so much on my partners fl2.

I have a complete mess of a fork of the repo for the fl2, however only pulling reverse and lights

Lights is ID 384(dec) byte 1, bit 4

https://github.com/rhysmorgan134/JaguarXf_...eed/384.js

reverse is ID 126(dec) byte 1, bit 2

https://github.com/rhysmorgan134/JaguarXf_...eed/126.js

feel free to have a poke around the new jaguar repo, may be some similarities there

https://github.com/rhysmorgan134/jaguar-xf-canbus-app

I finally have power supply I can hook up to the cars, so once carplay project is finished I will be looking to get back into the xf/fl2, but thanks for your information so far, will save a few hours of looking at cansniffer!


Also have a slack channel going, mainly around the jag, but also some SDD bits and general can bus stuff if anyone wants to join!

https://join.slack.com/t/canbusjagdeve-hl0...cL2p7I77RA

Post #420479 19th Apr 2022 8:29 pm
View user's profile Send private message View poster's gallery Reply with quote
bionicbone



Member Since: 19 Jan 2021
Location: Rotherham
Posts: 20

United Kingdom 2014 Freelander 2 TD4 SE Manual Firenze Red

Some great posts above, lots of new information and I am learning all the time. Thank you for everyone’s input.

I have finally managed to add a display in a way that does not cause CAN Frames to be dropped to my benchy test circuit. Full transparency, I occasionally detect a buffered frame which is annoying as the CAN Driver / Transceiver I am using has a LIFO (Last In First Out) buffer flow which means when this happens the data is not presented in the correct order which would be a nightmare for frames like Media info which is a Serial Bus over a CAN Frame concept. That stated, the buffered frame is normally read within 4 - 5 frames, media frames are significantly more spaced than that.

The idea here is that it should allow me to display data in real time from the Car.

In the attached picture the CAN Transmitters powered by the Yellow Batteries are simply sending a fixed ID with data that is counting. The receiver is checking to ensure there are no missing numbers. The Leonardo device on the left is sending data on the HS CAN as fast as it can, which is slightly faster than data is generally presented on the FL2 HS CAN. The one on the right is being driven by a NANO which is very slow providing data a fair bit slower than presented on the FL2 MS CAN (I need to upgrade this to be 100% sure there will be no dropped frames on this bus in live applications).


Post #420589 23rd Apr 2022 6:56 am
View user's profile Send private message View poster's gallery Reply with quote
Vanny



Member Since: 06 Dec 2015
Location: Cheshire
Posts: 437

United Kingdom 2013 Freelander 2 SD4 XS Auto Santorini Black

rhys_m wrote:


Lights is ID 384(dec) byte 1, bit 4

reverse is ID 126(dec) byte 1, bit 2



I don't see either of these addresses on my Dual CAN 2013my FL2 on HS or MS BUS, so I'm guessing these are 'T5' architecture-specific? Pre 2010 for the FL2

I make "Reverse Gear Select" on MS as ID 0x490 (BCM) Start Bit 34, Boolean, 0 = Not Reverse, 1= Reverse Selected.

A github might be a good idea actually, I should probably convert my BUSMaster canDB file to an excel and everyone can contribute to it?

Post #420592 23rd Apr 2022 8:28 am
View user's profile Send private message View poster's gallery Reply with quote
bionicbone



Member Since: 19 Jan 2021
Location: Rotherham
Posts: 20

United Kingdom 2014 Freelander 2 TD4 SE Manual Firenze Red

+1 for that GitHub idea.

I have a few MY2013 that I am working on.

It would be great to capture all in one place and my Spreadsheet has become messy with lots of links and too many out of date notes so a proper export would be better as a template

I have a GitHub account so it could be private with contributors if that what people wanted, or just leave it public.

Post #420599 23rd Apr 2022 10:20 am
View user's profile Send private message View poster's gallery Reply with quote
rhys_m



Member Since: 18 Aug 2019
Location: kent
Posts: 28

United Kingdom 2008 Freelander 2 TD4 SE Manual Zermatt Silver

Yeah this is a 57 fl2 so you are most likely correct. It's interesting that in the jag it is 0x28, and the freelander 2 is 0x7e, which are both high priority, but the newer model seems to have it at a much higher ID. Do the newer models come with a Gear selector model?

Also think the github repo is a great idea, I am more than happy to dump the jag stuff in there too, I have got really far with that, and I guess will have some relatables.

Post #420651 25th Apr 2022 3:28 pm
View user's profile Send private message View poster's gallery Reply with quote
bionicbone



Member Since: 19 Jan 2021
Location: Rotherham
Posts: 20

United Kingdom 2014 Freelander 2 TD4 SE Manual Firenze Red

While I wait for my larger screens to arrive for testing I was thinking about the overall design for an LCD instrument cluster and that all the IDs from different cars are different, i.e. even for something simple like MPH.

I was thinking it may be better to have two processing boards, (1) to accept the CAN ID's and convert them to a standard and (2) to accept the standard IDs and drive the displays. Thus (1) would pass MPH to (2) simply as ID 1 = 50. Or potentially even expand to ID 1 = Draw Gauage Type 1, on screen z at x,y with size a,b, using data c as MPH and d as RPM. It would open up lots of possibilities doing it this way and would only add about £10 to the design.

Theoretically then, (1) could just use a different config.h file for a different car. This also solves an issue where to drive larger screens fast enough I needed to swap from an SPI connection to a parallel connection for communication speed and this method uses lots more pins. I am currently looking at one 7" screen in landscape and two 3" screens in portrait at either side with a 3D printed mounting bezel so it could be adjusted for different cars.

However, and I am sure the experts reading this are already thinking it Smile. I have thought about one thing that could stop me in my tracks. I suspect removing the original instrument cluster to connect a new one will make the car complain significantly. For that I may need help from the experts. I am also not sure about the legality of replacing the instrument cluster, maybe it needs some official calibration or something, maybe someone has some input...

Once I have overcome the above and have a working example I'll make the github project public, for now it would create more questions / noise while I figure out the best way to do what I am attempting.
Keep an eye on https://github.com/bionicbone

Even if this is totally not possible to replace the instrument cluster I think I will still continue. Maybe is makes a good "additional" screen project for people to build that would be relatively cheap.

Post #421011 8th May 2022 8:19 am
View user's profile Send private message View poster's gallery Reply with quote
IanMetro



Member Since: 11 Sep 2017
Location: Somerset BS21
Posts: 2773

United Kingdom 2014 Freelander 2 SD4 Metropolis LE Auto Fuji White

A few of the regulations that you can Google.

https://www.legislation.gov.uk/uksi/2001/25/schedule/3/made

At a quick glance, it seems that if you limit your vehicle to below 25mph, you can do anything.

Seriously though - I would expect that you would come under the same tests that are needed to put any modified car back on the road. FL2 XS SD4 Auto 2010 2012-2017 (21k - 91k miles) (MY2011)
FL2 Metropolis SD4 Auto 2014 2017- (16k - 76k+ miles) (MY2015)

Post #421026 8th May 2022 3:23 pm
View user's profile Send private message View poster's gallery Reply with quote
N95JPL



Member Since: 23 Mar 2023
Location: North West
Posts: 1

United Kingdom 2014 Freelander 2 TD4 GS Manual Santorini Black

bionicbone wrote:
MS CAN Bus ID 0x4B5 contains the Visual Multimedia Data
This is running a little like a serial bus in the sense that each time a frame is transmitted it contains the next 8 bytes of data.

Visual data is easy to understand, each character is represented by its ASCII value, to make up the entire string of data it may, and often is, be transmitted over several frames.
The attached shows only 0x4B5 frames for simplicity, however in reality there will be many other Frame ID's transmitted between each 0x4B5 frame. Careful review should allow you to see the flow as I swap from USB1 to FM to DAB and back to USB.

It is worth noting that frames are only transmitted when "changes" occur. Therefore any design using such data must capture the very first frames transmitted, i.e. when the ignition is switched on.

The use of value 0x00 is key, this forms both start and termination of data as well as an indicator that a special status has occurred.
For it to be the start of the next data then the 0x00 value will be followed by an "a", "b", or "c" where these represent Media Input (i.e. USB, FM, DAB), Track Title / Station Name, and Track Number or Station Frequency respectively.
For it to be a status indicator then it will be followed by "," or "+" for "No Reception" or "Searching..." respectively.
0x00 not followed by any of the above appears to be the end of data for the field currently being transmitted.


Click image to enlarge


Click image to enlarge


Sorry to drag up an old thread!
I've been looking through a CanDump of MY2014 GS with the mini display.. my 4B5 seems to always broadcast 0x00 on all bytes regardless of me changing the station or source etc... Is this for a particular screen?
I've scanned through my whole CanDump but can't see any mention of DAB etc .. I'll do a new download from the car and see what comes out trying a variety of things

Post #431123 23rd Mar 2023 10:30 am
View user's profile Send private message View poster's gallery Post Reply
Post Reply  Back to top
Page 3 of 3 <123
All times are GMT + 1 Hour

Jump to  
Previous Topic | Next Topic >
Posting Rules
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Site Copyright © 2006-2024 Futuranet Ltd & Martin Lewis
Freel2.com RSS Feed - All Forums


Switch to Mobile site