Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3  All

Author Topic: Preping for CAN Bus MODS  (Read 6447 times)

0 Members and 1 Guest are viewing this topic.

TRS300

  • Vendor
  • Junior CVO Member
  • *
  • Offline Offline
  • Posts: 97
  • www.CVOHARLEY.com
    • CA


    • CVO1: 2015 CVO SG (Hard Candy Mercury)
    • CVO2: 2002 Road Glide (Silver)
    • CVO3: 2005 Chrysler 300C (Custom)
Preping for CAN Bus MODS
« on: August 13, 2016, 05:01:12 PM »

So I'm buy no means a embedded engineer or a CAN Bus expert but I've done a little CAN related work in the past...  *(google TRS300 + VTCM).  Anyway, there is very little documentation on the HD CAN system or the messages.  In order to even read messages you need to know the speed of the bus (Bits Per Second, bps).  I've searched and searched and could find no reference to the bps speed of the system. Not even listed in the service manual.  Yesterday I wrote a program that would "step-up" the bps connection speed by 1K every 1/10th of a second.  The program would stop when it actually started to "See" messages.  So for those that are into this sort of thing, the bps speed of the HD CAN system is 482K.  It was at this point that my "Sniffer" program picked up 28 different message ID's being broadcasted.  Some initial testing has reviled which messages contain the button actions from both left and right handlebar control modules (ID: 570 for right & 550 for Left)  I'm pretty sure I've isolated the RPM and MPH message IDs and bits also.  There is still a lot of work to do but I'm happy with progress so far...  ;D

I'd like to try and do a few CAN related MODs just for the fun of it. Below are some initial thoughts.  Of course some of these would require some physical changes too...  Others do not.

1.) Use my PTT push (or some other trigger like pressing both turn signals at once) to send signal to my garage door Opener (i.e. close a contact switch tied to my radio controlled door opener)
2.) Automatic volume increase & decrease control based on vehicle speed. (the setting for this in my boom audio system does not work well at all.  The OEM solution really is pretty weak)
3.) Run my cooling fans (twin cooling) using PWM Variable speed based on engine temperature (which I need to find and decode). Right now the fans turn on full and shut off;  why not run the fans at variable speed in an attempt to keep temps down ~ 210 instead of waiting for things to get up to 220 or 240 degs.
4.) Dim all of my dash lights along with the brightness of my boom audio disaply.
5.) RGB color change of dash lights along with color selected in Boom audio.
6.) Change color of RPM gauge based on RPM
7.) ????

Below you can see a snip of one of the logs I had recorded!  :)

More to come... But happy to be making progress...

>>>> The VTCM CAN-Bus Sniffer Is Started... <<<<

C1=521 7 00 00 FF 00 00 00 00;

<MSG_FLTRS=F0[C1:500]F1[C1:501]F2[C1:502]F3[C1:503]F4[C1:505]F5[C1:509]F6[C1:50A]F7[C1:520]F8[C1:521];

C1=521 7 00 00 FF 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;
C1=520 5 00 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;
C1=520 5 00 00 00 00 00;
C1=503 1 01;
C1=521 7 00 00 FF 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;
C1=520 5 00 00 00 00 00;
C1=521 7 00 00 FF 00 00 00 00;

« Last Edit: August 13, 2016, 05:14:03 PM by TRS300 »
Logged

skratch

  • 1K CVO Member
  • *
  • Offline Offline
  • Posts: 2003
    • LA

    • CVO1: 2013 FLTRXSE2 Roman Gold/Burnt Emerald
Re: Preping for CAN Bus MODS
« Reply #1 on: August 13, 2016, 06:03:39 PM »

wow.  just wow.

every now and again, someone posts something that makes me feel like i'm a grade school kid in a high school class.  this is one of those posts.  interesting stuff, but way out of my league.

good luck.
Logged
I understand the concept of reality, but find it too confining as a way of life

cvosjoe

  • Elite CVO Member
  • *****
  • Offline Offline
  • Posts: 630
    • Joe's Place
Re: Preping for CAN Bus MODS
« Reply #2 on: August 13, 2016, 06:04:10 PM »

If you can figure out how to switch the cruise and PTT function I'd definitely be interested.
Logged
2019 FLHXSE Charred Steel/Lightning Silver
2018 FLHXSE - Totaled
2017 FLTRXS Wicked Red Denim
2017 FLHXSE - Traded
2015 FLTRUSE - Traded
2014 FLHTKSE - Traded
2013 FLHTCUSE8 - Traded
2012 FLTRXSE - Sold
2011 FLTRUSE - Traded
2009 FLTRSE3 - Traded
2005 FLHTCSE2 - Traded
2004 FXSTDSE2 - Traded

fastfreddy

  • 1K CVO Member
  • *
  • Offline Offline
  • Posts: 1651
  • MY CVO
    • IA

    • CVO1: 2013 FLTRXSE traded
    • CVO2: 2016 FLTRUSE
Re: Preping for CAN Bus MODS
« Reply #3 on: August 13, 2016, 06:15:56 PM »

 thats all way above my pay grade, but im staying posted and will maybe learn somn  :nixweiss:
Logged
SERGU aka the RENTAL ... never home & always broke...Thnx FF

TRS300

  • Vendor
  • Junior CVO Member
  • *
  • Offline Offline
  • Posts: 97
  • www.CVOHARLEY.com
    • CA


    • CVO1: 2015 CVO SG (Hard Candy Mercury)
    • CVO2: 2002 Road Glide (Silver)
    • CVO3: 2005 Chrysler 300C (Custom)
Re: Preping for CAN Bus MODS
« Reply #4 on: August 13, 2016, 06:38:22 PM »

If you can figure out how to switch the cruise and PTT function I'd definitely be interested.

I've read this numerous times...  I have a 2002 RG and a 2015 CVO SG.  Yes the CC and PPT buttons changes sides.  for me, I hated the CC being on the right on my 2002.  Every time I wanted to speed up or slow the CC I had to reach my right hand up to adjust.  It made no sense.  The CC on the left side makes more sense to me.  But that is my opinion.  I've not taken apart the housing on my new bike yet.  If the wires from these switches goes to a plug before it connects to the CAN module you have a chance...  You could pull the wires from the PPT and CC switches from the plugs, then jump them over to the other switch.  Again, I would need to start tearing things down to see if this is an option...

Nothing in CAN will let me change the function (or messages) sent by the associated modules. It's actually a pretty secure design.

You "Might" be able to do the following...  "If the CC is not engaged, then have the CC button pushes mimic the PPT button pushes"...  That might be possible.  But I would need to find a bit that tells me when the CC is engaged.  I do have that info on my Chrysler 300. And it makes sense to have that status broadcasted on the bus.  Other modules would want to know if the CC was engaged or not.

I'll keep this in mind as I tinker.  But if you are really motivated, you may want to look into the wiring...  Again, if the wires from the switch go to a plug "before" they connect to the CAN module, you can simply pul the wires and swap them from one plug to another.

Hope that makes sense.

Tim

--
Logged

TRS300

  • Vendor
  • Junior CVO Member
  • *
  • Offline Offline
  • Posts: 97
  • www.CVOHARLEY.com
    • CA


    • CVO1: 2015 CVO SG (Hard Candy Mercury)
    • CVO2: 2002 Road Glide (Silver)
    • CVO3: 2005 Chrysler 300C (Custom)
Re: Preping for CAN Bus MODS
« Reply #5 on: August 13, 2016, 06:59:30 PM »

wow.  just wow.

every now and again, someone posts something that makes me feel like i'm a grade school kid in a high school class.  this is one of those posts.  interesting stuff, but way out of my league.

good luck.

Thanks...But to be honest I'm someone who knows a little about this too...  CAN in general is pretty simple.  It's like an old telephone party line where a bunch of folks are all talking and listening together.  Each person is a module.  Each module is programed to "do something" based on the information it hears on the network. The modules also send out information onto the network so that other modules can take action if they are programmed to do so.

For example:  The left handle bar joy stick is associated to message ID 550 (which happens to be a message with 6 bits of data).  Each message can have from1 to 8 bits of information. Each bit is just a numeric value from 0-255 (displayed as a Hex number).

Anyway,  Bit 4 of message 550 tells all the other modules on the network what is being done with the left joy stick.  Bit 4 will equal... 01=UP, 02=Left, 10=Down, 08=right, 04=Pressed.  Other modules (like the Radio) are interested in message 550.  If the radio sees that 550 bit 4 = 01, it will react by turning the volume up. All these modules are programmed to work together as a team.  But no one module can force anything to be dome that is not part of the overall design.

All this information is being exchanged going over a pair of twisted wires (the bus).

Anyway, as most things there is a whole lot more to this subject.  But what I described above is the basics of how CAN systems work and modules talk, listen, and take action as they are programmed to do.  Hope this helps.

--
« Last Edit: August 13, 2016, 07:10:26 PM by TRS300 »
Logged

WTF Chuck

  • IBA 74296
  • 1K CVO Member
  • *
  • Offline Offline
  • Posts: 1360
    • VA


    • CVO1: 2012 Screamin Eagle Ultra Classic Sold
    • CVO2: 2014 Screamin Eagle Ultra Classic
    • CVO3: 2022 Screamin Eagle Road Glide Limited
    • Muck Cross Weather
Re: Preping for CAN Bus MODS
« Reply #6 on: August 13, 2016, 08:29:54 PM »

Really glad here some one working on this.
 
I will be following with great interest.

With Can is there a way to keep one module from getting or acting on a specific message from another module.
Logged

Fullsac DX Pipe  2" cores and screens
Dynojet  Power  Vision  Tuner
KST's
HARLEY 28 SPOKE CHROME WHEELS
Custom Dynamics Dynamic Ringz Magic Strobe-LTP
WHAT' S Next
Darkside
Ecsta PA31
195/60/16

TRS300

  • Vendor
  • Junior CVO Member
  • *
  • Offline Offline
  • Posts: 97
  • www.CVOHARLEY.com
    • CA


    • CVO1: 2015 CVO SG (Hard Candy Mercury)
    • CVO2: 2002 Road Glide (Silver)
    • CVO3: 2005 Chrysler 300C (Custom)
Re: Preping for CAN Bus MODS
« Reply #7 on: August 13, 2016, 09:02:02 PM »

Really glad here some one working on this.
 
I will be following with great interest.

With Can is there a way to keep one module from getting or acting on a specific message from another module.

No.. The only way for a module to act differently then designed is to re-program it. . It might sound frustrating but it also is what makes the system secure.  For example... Nothing you can do from the outside can make the module that controls spark advance fire outside of it's parameters.  It's designed to ensure the engine is protected. That is why you will hear products like V&H say.. "we cannot lower the idle RPM". That is because the module that controls that is not programmed to allow this as an adjustment.

So, back to your question.  The bus is an open communication network.  You cannot block what is being transmitted nor can you alter the code of a module.  At best... you can try and trick the module by feeding it messages of your own.  Meaning, you can create your own module that acts like a mocking bird.  When it sees a specific message (like 550) it will repost a new message with all the bits the same except the one you are trying to fake.  The listening module will either get confused or act on your "mimicked" message.  It's a trial and error to see what you can pull off...

--
Logged

OBB

  • 5k CVO Member
  • ***
  • Offline Offline
  • Posts: 5207
  • aka Ohiobellboy
    • OH


    • CVO1: 2011 Slate/Black SERGU** traded
    • CVO2: 2015 Double Blue SERGU
    • CVO3: 2012 SERG Blue
Re: Preping for CAN Bus MODS
« Reply #8 on: August 13, 2016, 09:03:58 PM »

wow.  just wow.

every now and again, someone posts something that makes me feel like i'm a grade school kid in a high school class.  this is one of those posts.  interesting stuff, but way out of my league.

good luck.
Couldn't have said it any better.
Logged
PHOTOBUCKET IS HOLDING MY PIX HOSTAGE!!!

CVODON

  • 1K CVO Member
  • *
  • Offline Offline
  • Posts: 2420
    • FL

    • CVO1: 15 FLTRUSE
Re: Preping for CAN Bus MODS
« Reply #9 on: August 13, 2016, 09:04:24 PM »

All sounds pretty interesting, I have one question though. What is the advantage of using the PPT or similar for garage door when the headlamp hi-beam flash does it now? And it takes no effort to make it work.
Just curious.
Logged

TRS300

  • Vendor
  • Junior CVO Member
  • *
  • Offline Offline
  • Posts: 97
  • www.CVOHARLEY.com
    • CA


    • CVO1: 2015 CVO SG (Hard Candy Mercury)
    • CVO2: 2002 Road Glide (Silver)
    • CVO3: 2005 Chrysler 300C (Custom)
Re: Preping for CAN Bus MODS
« Reply #10 on: August 13, 2016, 10:11:41 PM »

All sounds pretty interesting, I have one question though. What is the advantage of using the PPT or similar for garage door when the headlamp hi-beam flash does it now? And it takes no effort to make it work.
Just curious.

LOL...  OK.  Either you are saying that 1.) My bike has a feature that I can program to open my garage door (by transmitted signal) or 2.) You have your garage door hooked up to a photo electric cell that will open the door. 

If my bike have a integrated universal garage door opener that opens the door by signal then I stand ignorant to that fact... And I'd love it.  If not, I'd rather that my door not open by flashlight. 

If it's by photo cell, You could argue that "Who would know that the door would open by light?"  But frankly, it's only one mod on my list... How will that modulate my radio volume by speed for example? 

If you do not care about the other things I'm hoping the achieve.  That's fine...  I'll not be discouraged.

BTW:  Are you saying my bike has a programmable garage door opener?  I was just thinking today... My car has this.  Why would this bike not have this feature?  Time to hit Google it seems...

--
« Last Edit: August 13, 2016, 10:21:16 PM by TRS300 »
Logged

Twolanerider

  • 25K CVO Member
  • *****
  • Offline Offline
  • Posts: 50545
  • EBCM #1.5 Emeritus DSP # ? Critter Gawker #?
    • MO


    • CVO1: 2000 Triple Red Screamin' Eagle Road Glide
    • CVO2: 2002 Candy Brandywine Screamin' Eagle Road King
    • CVO3: 1999 Arresting Red FXR2
Re: Preping for CAN Bus MODS
« Reply #11 on: August 14, 2016, 12:01:59 AM »

LOL...  OK.  Either you are saying that 1.) My bike has a feature that I can program to open my garage door (by transmitted signal)


Many of the CVO touring bikes do come stock with a garage door transmitter.  They also come with a receiver that you'd attach to your garage door opener.  It doesn't work with all openers though. 

However; if memory serves the 2015 Street Glides didn't come with the GDO.  I could be mistaken there but don't think your bike came with the GDO xmitter and receiver.
Logged

fastfreddy

  • 1K CVO Member
  • *
  • Offline Offline
  • Posts: 1651
  • MY CVO
    • IA

    • CVO1: 2013 FLTRXSE traded
    • CVO2: 2016 FLTRUSE
Re: Preping for CAN Bus MODS
« Reply #12 on: August 14, 2016, 03:08:00 AM »

my 16 came with a GDO receiver (witch is hard wired to the opener) that receives a signal from high beam light switch, and it works pretty good
Logged
SERGU aka the RENTAL ... never home & always broke...Thnx FF

rigidthumper

  • Full CVO Member
  • ***
  • Offline Offline
  • Posts: 104
Re: Preping for CAN Bus MODS
« Reply #13 on: August 14, 2016, 09:26:13 AM »

This is all very interesting, but how would you re program the BCM to do what you want?
Logged

OBB

  • 5k CVO Member
  • ***
  • Offline Offline
  • Posts: 5207
  • aka Ohiobellboy
    • OH


    • CVO1: 2011 Slate/Black SERGU** traded
    • CVO2: 2015 Double Blue SERGU
    • CVO3: 2012 SERG Blue
Re: Preping for CAN Bus MODS
« Reply #14 on: August 14, 2016, 10:29:32 AM »

my 16 came with a GDO receiver (witch is hard wired to the opener) that receives a signal from high beam light switch, and it works pretty good
You have an Ultra which includes it. The non Ultra bikes do not have it included. The OP has a SESG.
Logged
PHOTOBUCKET IS HOLDING MY PIX HOSTAGE!!!
Pages: [1] 2 3  All
 

Page created in 0.233 seconds with 24 queries.