PCM Hammer P01 and P59 flash tool v015

They go by many names, P01, P59, VPW, '0411 etc. Also covering E38 and newer here.
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: PCM Hammer P01 and P59 flash tool v015

Post by Tazzi »

antus wrote:Let me guess, your laptop is a toshiba? If not, probably other vendors do their own thing also to replace Microsofts BT stack as well. My memory and experience with BT on windows is that its not very good. From back in the early days when it wasnt supported at all (yet it was on apple macs), and laptop companies shipped their own 3rd party stack, then later they did add their own but it never worked well. Even now on current windows 10 I still have problems with my bluetooth headphones pairing properly. I often have to turn them on, let them pair, tell windows to disconnect and remove the device, then pair again before I can get any audio coming out despite the fact windows is saying the headphones are the speakers. Then the next time it'll work first try. Its quite frustrating :( The same headphones pair fine automatically to my work mac every time.
Good guess!!! Its my trusty Toshiba! Last of their released line in Aus :lol:
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
draz53
Posts: 37
Joined: Mon Feb 03, 2020 1:11 pm
cars: 2000 Camaro SS

Re: PCM Hammer P01 and P59 flash tool v015

Post by draz53 »

My laptop is a Toshiba, but my wife's laptop is a Dell, and get basically the same behavior on both, except for the numbering of the COM ports.
User avatar
antus
Site Admin
Posts: 8237
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: PCM Hammer P01 and P59 flash tool v015

Post by antus »

@tazzi - that link specifically says Toshibas only provide one port with their own stack, so thats why your not seeing the same. If you can you might need to fire up a W10 VM, and use vmwares BT passthrough. That might maybe kinda give you the same behaviour, but with a virtual shared BT port, so whether its useful or not, hard to say. Maybe Toshiba didnt do the same across all models.
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
User avatar
antus
Site Admin
Posts: 8237
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: PCM Hammer P01 and P59 flash tool v015

Post by antus »

Well I went around to my workshop after my day job with my tuning laptop and put the xpro vt through its paces. Lets see what Tazzi says, but it looks like it might be a hardware problem after all that. But I think we still need to test with lsdroid to confirm. Mine works with lsdroid and pcmhammer on win 10 with 2 com ports (using the first one). I guess the 2 ports is a windows oddity on the stock non-oem BT stack thats no more than a red herring.
Attachments
xpro bt 1.png
xpro bt 2.png
xpro bt 3.png
xpro bt 4.png
xpro bt 4.png (59.09 KiB) Viewed 4614 times
xpro bt 5.png
xpro bt 5.png (166.37 KiB) Viewed 4614 times
xpro bt 6.png
xpro bt 6.png (101.06 KiB) Viewed 4614 times
xpro bt 7.png
xpro bt 7.png (209.54 KiB) Viewed 4614 times
xpro bt 8.png
xpro bt 8.png (7.76 KiB) Viewed 4614 times
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
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: PCM Hammer P01 and P59 flash tool v015

Post by Tazzi »

Well least its good to see its working happily on Windows for you :)

I have only just got home too so about to test here
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: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: PCM Hammer P01 and P59 flash tool v015

Post by Tazzi »

Ok so I have managed to get the same issues that draz is getting.
The bluetooth works perfectly on my android device, but my windows installation is having problems.

So, windows pairs, but then instantly disconnects from the device. I can tell as the blue LED goes back to flashing quickly. When then using pcmhammer with either comport, it does into appear windows tries to reconnect to the device.
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: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: PCM Hammer P01 and P59 flash tool v015

Post by Tazzi »

Wow what a nightmare that is with windows.
Ok so after about 20 attempts, finally got windows to actually connect then read with pcmhammer.

So, I paired up then entered the pin when prompted. I then disconnected the OBDX from the OBD port, then reconnected and in PCMHammer I selected the Bluetooth comport thats associated as the OUTGOING bluetooth connection.. and it seems to have connected.

I also set my computers bluetooth to "discoverable" and "allow bluetooth devices to find this PC".

I cant get it to work any other way, app either hangs or crashes.

*Edit
I have to repeat that exact process every single time since windows doesnt seem to just reconnect.
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
antus
Site Admin
Posts: 8237
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: PCM Hammer P01 and P59 flash tool v015

Post by antus »

Wow so its a Windows race condition over which port is which when starting up with two! ugh... Microsoft... And if we are to fix it properly and support windows we'll need to find a way to identify which port is which and find the device. Or maybe scan all scannable com ports and see which one answers as the device. Auto hardware detection would be nice but it wont be the smallest change.
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
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: PCM Hammer P01 and P59 flash tool v015

Post by Tazzi »

antus wrote:Wow so its a Windows race condition over which port is which when starting up with two! ugh... Microsoft... And if we are to fix it properly and support windows we'll need to find a way to identify which port is which and find the device. Or maybe scan all scannable com ports and see which one answers as the device. Auto hardware detection would be nice but it wont be the smallest change.
I recall reading something about a dedicated bluetooth library to use.... ahh here we go:
https://docs.microsoft.com/en-us/uwp/ap ... inrt-19041

Maybe would have better luck using the dedicated bluetooth library instead of relying on windows to auto connect.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
draz53
Posts: 37
Joined: Mon Feb 03, 2020 1:11 pm
cars: 2000 Camaro SS

Re: PCM Hammer P01 and P59 flash tool v015

Post by draz53 »

Tazzi wrote: So, I paired up then entered the pin when prompted. I then disconnected the OBDX from the OBD port, then reconnected and in PCMHammer I selected the Bluetooth comport thats associated as the OUTGOING bluetooth connection.. and it seems to have connected.
There's supposed to be a pin? I've just been leaving that blank, and it does pair. I will try the disconnect/reconnect.

Re the LEDs, can't tell what they're really doing (except they're on) because it's in the car and they're right up against the underside of the dash.

Update: I note that I now have COM3 as incoming, COM4 as outgoing, the opposite of what it was the last time I checked, so confirming the COM initialization race condition idea.

Update 2: Can't get it to work just by disconnecting / reconnecting the OBDX. One thing I noticed is that when the device is powered on and paired for the first time, windows will quickly say it's "connected". If I then power off / power on the device, windows will say it's "paired" but won't change it to "connected". Anyway pcmhammer still says "can't initialize" whether it's connected or just paired.''

Update 3: Works great on windows in USB mode! And faster than I expected.
Post Reply