OBD-II UART Adapter V2.1 not workimng on Porsche Boxster

Inquiry and support for Freematics products
Post Reply
AnkerBS
Posts: 2
Joined: Wed Aug 08, 2018 4:12 am

OBD-II UART Adapter V2.1 not workimng on Porsche Boxster

Post by AnkerBS »

The adapter will not connect with the Boxster. I have two, a 2002 and a 2004, and it has the same problem with both of them. I have attached a screen shot of running the test application. The strange thing is that I tested it on my Mercedes and then on the Boxsters, and the very first time I tried it it did connect, but after that nothing. What are my options?

Thanks/Anker
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: OBD-II UART Adapter V2.1 not workimng on Porsche Boxster

Post by stanley »

Your cars must use protocol like ISO9141-2 as they are made more than 15 years ago. Technically your can try adjusting timing values.

ATPTH <AA>

Function: set initializing pulse time for (in hex, range of 0~255ms)
Example: ATPTH 19 (set to 25ms)

ATPTA <BB>

Function: set negative pulse duration before first data (in hex, range of 0~255ms)
Example: ATPTA 32 (set to 50ms)
Enclavet
Posts: 1
Joined: Sun Sep 30, 2018 5:41 pm

Re: OBD-II UART Adapter V2.1 not workimng on Porsche Boxster

Post by Enclavet »

Having same issue on my Porsche 996 turbo 2002.

I tried using the sendCommand to set those timing parameters but never got an Ok from the UART adapter.

Can you show some code to set those parameters?

The below kept on returning ERROR.
sprintf(buffer, "ATPTH 19\r");
delay(10);
if (!sendCommand(buffer, buffer, sizeof(buffer), OBD_TIMEOUT_SHORT) || !strstr(buffer, "OK")) {
continue;
}
AnkerBS
Posts: 2
Joined: Wed Aug 08, 2018 4:12 am

Re: OBD-II UART Adapter V2.1 not workimng on Porsche Boxster

Post by AnkerBS »

So I assume the timing AT commands have to be added to COBD::init(OBD_PROTOCOLS protocol) in OBD2UART.cpp

Exactly where should they be inserted? In stage 1?

By changing

const char *initcmd[] = {"ATZ\r", "ATE0\r", "ATH0\r"};
to
const char *initcmd[] = {"ATZ\r", "ATE0\r", "ATH0\r", "ATPTH19\r", "ATPTA32\r"};

I am not sure where in the init sequence they need to be inserted.

I also assume I need to add a new protocol to ensure that I can select whether or not to include them.

Thanks/Anker
Post Reply