OBDX Development - Developer Tools and Suggestions

Programs / Tools / Scripts
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: OBDX Development - Developer Tools and Suggestions

Post by Gampy »

J2534 client initializing...
Initializing J2534 Device
J2534 client: Device initialization fail.
Battery Voltage is: 11.997
Failed to set filter, J2534 error: Error ERR_INVALID_FILTER_ID
Failed to set parameters

Is what I get when trying on the MasterTech II
. . ISO15765
. . ISO15765_500000
. . NONE

Am I missing something ??

I did place the ecm_ISO16765.xml in the xml folder as well.

UP 22.02

-Enjoy
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
acln99
Posts: 27
Joined: Fri Feb 22, 2019 3:32 am
cars: Dodge Ram
Location: Ontario, Canada

Re: OBDX Development - Developer Tools and Suggestions

Post by acln99 »

kur4o - I don't know IDA and probably toooo old to learn.

Can you send me the disassembled NGC3 - I'm curious what it looks like - never saw a complete one - just snippets.

This is NGC3 log request VIN , read 9e-b0 ?? , seed/key , write 9e-b0 ?? , read 9e-b0 again
ngc3.txt
(675 Bytes) Downloaded 51 times
kur4o
Posts: 950
Joined: Sun Apr 10, 2016 9:20 pm

Re: OBDX Development - Developer Tools and Suggestions

Post by kur4o »

Gampy, put the config file in Logger/j2534Profiles folder.
Before connecting click Load button, [above connect/disconnect button], And select the xml file, Than connect.

This error happens when you try to connect without setting flow control filters.

acln99,
I will dig out the ngc3 diss, but will need some time to find it.
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: OBDX Development - Developer Tools and Suggestions

Post by Gampy »

Loading J2534 settings from file: UniversalPatcher\UniversalPatcher\Logger\J2534Profiles\ecm_ISO16765.xml
[OK]
J2534 client initializing...
Initializing J2534 Device
J2534 client: Device initialization complete.
Battery Voltage is: 11.929
Adding filters:
Type:FLOW_CONTROL_FILTER,Name:23-02-04-10-13-46
Mask:FFFFFFFF,RxStatus:NONE,TxFlags:NONE
Pattern:000007E8,RxStatus:NONE,TxFlags:NONE
FlowControl:000007E0,RxStatus:NONE,TxFlags:NONE

Type:FLOW_CONTROL_FILTER,Name:23-02-04-10-13-46
Mask:FFFFFFFF,RxStatus:NONE,TxFlags:NONE
Pattern:000007E0,RxStatus:NONE,TxFlags:NONE
FlowControl:000007E8,RxStatus:NONE,TxFlags:NONE


Device initialization complete.
Ok, it connects, I get nothing in the log ...

Shouldn't it be logging idle chatter at this point ??

-Enjoy
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
User avatar
Tazzi
Posts: 3431
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: OBDX Development - Developer Tools and Suggestions

Post by Tazzi »

Gampy wrote:
Loading J2534 settings from file: UniversalPatcher\UniversalPatcher\Logger\J2534Profiles\ecm_ISO16765.xml
[OK]
J2534 client initializing...
Initializing J2534 Device
J2534 client: Device initialization complete.
Battery Voltage is: 11.929
Adding filters:
Type:FLOW_CONTROL_FILTER,Name:23-02-04-10-13-46
Mask:FFFFFFFF,RxStatus:NONE,TxFlags:NONE
Pattern:000007E8,RxStatus:NONE,TxFlags:NONE
FlowControl:000007E0,RxStatus:NONE,TxFlags:NONE

Type:FLOW_CONTROL_FILTER,Name:23-02-04-10-13-46
Mask:FFFFFFFF,RxStatus:NONE,TxFlags:NONE
Pattern:000007E0,RxStatus:NONE,TxFlags:NONE
FlowControl:000007E8,RxStatus:NONE,TxFlags:NONE


Device initialization complete.
Ok, it connects, I get nothing in the log ...

Shouldn't it be logging idle chatter at this point ??

-Enjoy
Set the "Mask" to 00000000, this should allow all frames through. :thumbup:
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: OBDX Development - Developer Tools and Suggestions

Post by Gampy »

Loading J2534 settings from file: UniversalPatcher\UniversalPatcher\Logger\J2534Profiles\ecm_ISO16765.xml
[OK]
J2534 client initializing...
Initializing J2534 Device
J2534 client: Device initialization complete.
Battery Voltage is: 11.967
Adding filters:
Type:FLOW_CONTROL_FILTER,Name:23-02-04-10-13-46
Mask:00000000,RxStatus:NONE,TxFlags:NONE
Pattern:000007E8,RxStatus:NONE,TxFlags:NONE
FlowControl:000007E0,RxStatus:NONE,TxFlags:NONE

Type:FLOW_CONTROL_FILTER,Name:23-02-04-10-13-46
Mask:00000000,RxStatus:NONE,TxFlags:NONE
Pattern:000007E0,RxStatus:NONE,TxFlags:NONE
FlowControl:000007E8,RxStatus:NONE,TxFlags:NONE


Device initialization complete.
Thank you, done, still nothing ...

-Enjoy
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
User avatar
Tazzi
Posts: 3431
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: OBDX Development - Developer Tools and Suggestions

Post by Tazzi »

FDCAN is going to be a shitstorm.. at least.. possibly in the future.

I was reading in the official SAE document for J2534 with FD CAN that larger blocks then 4095 is now possible. In my head, I figured it would be maybe.. 8192 bytes... nope... absolutely not... its 32000+ bytes more!!! :lol:

As seen in the blurb below, technically its a 4byte value used for the length, so.. theoretically.. the max amount of bytes that could be sent is 0xFFFFFFFF. Thats an integer value of 4,294,967,295bytes. If an ECU had a large enough RAM buffer, technically an entire flash could be uploaded in one chunk :o

The SAE standard has limited it to a value they deem acceptable, but 32000+ is still MUCH larger then what the OBDX GT/FT can store. Id be surprised if even 1 quarter of scantools have implemented that requirement to be honest. To be 'technically' SAE compliant, we will have to be using a processor with larger ram to fit an entire 32k+ frame. At this time, Im pretty certain none of the current FD CAN GM ECUs are using larger then the standard 4k blocks.

With that all said, it doesnt stop manufactures from using bigger blocks in the future so we will have to be prepared for that.
J2534fdcan.PNG
J2534fdcan.PNG (112.97 KiB) Viewed 612 times
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Tazzi
Posts: 3431
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: OBDX Development - Developer Tools and Suggestions

Post by Tazzi »

Gampy wrote:
Loading J2534 settings from file: UniversalPatcher\UniversalPatcher\Logger\J2534Profiles\ecm_ISO16765.xml
[OK]
J2534 client initializing...
Initializing J2534 Device
J2534 client: Device initialization complete.
Battery Voltage is: 11.967
Adding filters:
Type:FLOW_CONTROL_FILTER,Name:23-02-04-10-13-46
Mask:00000000,RxStatus:NONE,TxFlags:NONE
Pattern:000007E8,RxStatus:NONE,TxFlags:NONE
FlowControl:000007E0,RxStatus:NONE,TxFlags:NONE

Type:FLOW_CONTROL_FILTER,Name:23-02-04-10-13-46
Mask:00000000,RxStatus:NONE,TxFlags:NONE
Pattern:000007E0,RxStatus:NONE,TxFlags:NONE
FlowControl:000007E8,RxStatus:NONE,TxFlags:NONE


Device initialization complete.
Thank you, done, still nothing ...

-Enjoy
What J2534 tool are you using?
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: OBDX Development - Developer Tools and Suggestions

Post by Gampy »

Genuine Bosch Mastertech II

4,294,967,295 - Now that's a packet (frame). :thumbup:

-Enjoy
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
User avatar
antus
Site Admin
Posts: 8251
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: OBDX Development - Developer Tools and Suggestions

Post by antus »

@tazzi I dont read that the same as you describe. I think the length is the size of the total payload across multiple frames, and it is sent in smaller packets, segmented. So rather than the application layer knowing what each segement is and reassembling it in the application part of the code, it can be done by the can layer, but you still don't need to handle packets 32kb in size (and that piece of doc doesn't specify the maximum segment size, which may still be different between different interfaces similar to what we see on some current gen interfaces and J2534). So it'd be something like first frame says 128Kb payload. Second frame has a 4k payload, third frame has a 4k payload, and so on and so on, until the whole 128Kb is transmitted. Then the can layer in the pcm could reassemble it and provide the payload to the app as a single piece of data.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
Post Reply