wastegate Posted January 25, 2022 Report Share Posted January 25, 2022 Hi Guys, Technically querie to see if there is a better way.. At the moment, I have a HGM Compushift Sport Transmission Controller that is sending J1939 CAN messages for Shifter Position, not much choice here. The J1939 Shifter Position is being sent on a Single Byte 4 on ID 0x98FE4A03 Currently using an Arduino Leo to CAN Translate the J1939 CAN messages to Something usable with Link. Eg Read Buffer on that ID 0x98FE4A03, look for byte 4. if (GEARPOS == 0xfa){ //P GEARDISPLAY = 0x09; } etc.. For all the gears, then send the buffer to the Link on ID 1500 byte LinkID1500[1] = {GEARDISPLAY}; // First Byte CAN0.sendMsgBuf(0x05DC, 0, 8, LinkID1500); This seems to work well enough, The G4X is showing shifter position correctly and even retransmitting it to the IC7 Dash. However, is there anyway the advance G4X CAN and math channels to be able to do this simple conversion within PCLink? That way I can do away with the Arduino. Quote Link to comment Share on other sites More sharing options...
Adamw Posted January 25, 2022 Report Share Posted January 25, 2022 So how are the gear positions enumerated and transmitted by the compushift? i.e. N = ? R = ? D = ? Quote Link to comment Share on other sites More sharing options...
wastegate Posted January 25, 2022 Author Report Share Posted January 25, 2022 Compushift Shifter Position0x98FE4A03 rxBuf[4] P= 0xFA R= 0x7C N= 0x7D D= 0x81 3= 0x7F 2= 0x7E Quote Link to comment Share on other sites More sharing options...
Adamw Posted January 25, 2022 Report Share Posted January 25, 2022 I think the easiest option will be if we allow the analog gear position source to be assigned to CAN and Math inputs. I suspect that has only been left out as the gear pos input is generally a critical input that needs to be assessed at high speed for proper motorsport gearshift. Ill ask Vaughan if there are any consequences in doing so. Quote Link to comment Share on other sites More sharing options...
Adamw Posted January 26, 2022 Report Share Posted January 26, 2022 I dont see any easy way to handle this currently. Vaughan says he should be able to change the analog gear detection source to allow CAN and math channels as inputs which would then make it easy. So possibly in 6.22 release. Quote Link to comment Share on other sites More sharing options...
wastegate Posted January 27, 2022 Author Report Share Posted January 27, 2022 Thanks Adam! Will let the Arduino live for a little longer then. Quote Link to comment Share on other sites More sharing options...
Adamw Posted May 25, 2022 Report Share Posted May 25, 2022 @wastegatein 6.22 the ability to use CAN analogs and math for gear position was added so I think we could make your request work now if you still wanted to do that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.