C# J2534 Tool

Programs / Tools / Scripts
User avatar
Posts: 4474
Joined: Mon Jan 04, 2010 10:23 am

C# J2534 Tool

Postby The1 » Sat Aug 22, 2020 11:07 am

Hi All,

Trying to make a simple utility to Read a specific Message or Write a Specific Message for CAN bus.

I have it loading the VCX Library atm for the VCXNano cable but later once it's working id put auto detection or manual selection in.

With it hooked up to a VZ ECU it should send a VIN request and ECU return the first line without a 30 poll, the filter is set to all so i should get something back not 0 returned.

My C# skills are non existent im more machine code lol. Ive attached the visual studio 2019 project.

Code: Select all
Loading Library

Connection Open
Connect

Setup Filters: 0
Message to Send: 00-00-07-E0-02-1A-90
Message Sent: 0
Read: 0

Clear Filters
Close Device Connection
Close Library

Attachments
E55Tool.zip
(121.32 KiB) Downloaded 107 times

Posts: 251
Joined: Thu Feb 13, 2020 11:32 pm

Re: C# J2534 Tool

Postby ironduke » Sun Aug 23, 2020 9:15 am

I tried your tool, but it didn't work with the GM MDI, I changed the code to point at the mdi dll but it still fails.. I didn't have time today to try and sort out why, I'm just learning c# as well, lol..

Is the VCXNano J2534 complaint?, I thought it was.

Does the bruteforce program work with the VCX nano? It's using a different DLL from a github repository that I had found, not sure if it is but it seemed the easiest to get started with..

E38_brute_force-master (1).zip
(33.43 KiB) Downloaded 109 times

User avatar
Posts: 1087
Joined: Sat Dec 15, 2018 7:38 am

Re: C# J2534 Tool

Postby Gampy » Sun Aug 23, 2020 4:32 pm

I need a J-tool, is this the correct one, GM VCX Nano??

Sure do have a distaste for their greedy nature ... Vehicle MFG specific tools!
Improve Knowledge -=- Share Yours!

User avatar
Posts: 4474
Joined: Mon Jan 04, 2010 10:23 am

Re: C# J2534 Tool

Postby The1 » Sun Aug 23, 2020 9:19 pm

thanks guys for the input, yep i have the VCXNano, i got mine for about $90, i looked at other cables and this was the cheapest that did J2534 and also GM tech2win. Its been working great.

I have figured out my errors mainly the string formats i think and have it fully working now including library selection. It's really a template for my other ideas now. It's also handy then to for other people to use.

Ironduke i tried that library but didn't have much luck for some reason.

Code: Select all
E55Tool v1.00 by The1 pcmhacking.net

J2534 Library by PCMHammer https://github.com/LegacyNsfw/PcmHacks/wiki/PCM-Hammer

0:MDI
1:MDI 2
2:VXDIAG
Input Device Number:
2
Cable dll File: C:\ProgramData\VCX\Apps\PASSTHRU\VCXPT32.dll
Loading Library

Connection Open
Connect
Setup Filters

Message Sent: 00 00 07 E0 1A 90

Read Message: 00 00 07 E8 10 13 5A 90 36 47 31 5A
Read Message:

Clear Filters
Close Device Connection
Close Library
Attachments
E55Tool.zip
(57.7 KiB) Downloaded 104 times

Posts: 251
Joined: Thu Feb 13, 2020 11:32 pm

Re: C# J2534 Tool

Postby ironduke » Sun Aug 23, 2020 11:19 pm

Nice work!! I'm not anywhere I can give this version a try right now but I'll give it a go when I can..

I know you have to send it a 0x01,0x30 message in order for it to send the rest of the vin.. Someone may correct me but the 0x10 after the 0xE8 indicates a multiline message, given this you need to send a 0x01,0x30 anytime you see the 0x10, it usually indicates the size of the message if it's 7 or under..

User avatar
Posts: 4474
Joined: Mon Jan 04, 2010 10:23 am

Re: C# J2534 Tool

Postby The1 » Mon Aug 24, 2020 4:33 pm

yep that's correct :thumbup:

Posts: 44
Joined: Wed Sep 04, 2019 8:41 pm

Re: C# J2534 Tool

Postby mattyjf01 » Sat Feb 13, 2021 3:49 pm

Watched some C# tutorials last weekend
Got your program working with MDI

Anybody had any luck with VB.net and J2534?
I think i should give up on VB.net and J2534 :comp:
Attachments
E55ToolMDI.rar
(219.67 KiB) Downloaded 33 times

Site Admin
User avatar
Posts: 6562
Joined: Sat Feb 28, 2009 8:34 pm

Re: C# J2534 Tool

Postby antus » Sat Feb 13, 2021 7:48 pm

I agree that you should give up on vb.net, and try c#. Its more popular, and a more mature language, with lots of help around. Once you've come on board with it you wont look back.
Have you read the FAQ? For lots of information and links to significant threads see here: viewtopic.php?f=7&t=1396

User avatar
Posts: 4474
Joined: Mon Jan 04, 2010 10:23 am

Re: C# J2534 Tool

Postby The1 » Sun Feb 14, 2021 8:16 am

i was in the same boat, was VB especially back in Version 6 days, as soon as .net came VB went to crap so now i use C and C#. Especially easier cause there's more predone code and talking to windows and other library's is easier.

Return to Tools

Who is online

Users browsing this forum: No registered users and 3 guests