Page 1 of 1

Fail to find protocol, any guess?

Posted: Mon Dec 26, 2016 7:17 pm
by wookhyun
I drive Kia Ray.

It's expected to SP6 (CAN 11bit/500Kbps) Freematics v4 fail to find protocol.
When I force set SP6, then it gives "CAN ERROR" for message

When I use other EML327-bluetooth dongle, it's working fine.

Freematics one page says only 11bit/250K is supported.
Can you check 11bit/500K is supported?

{code}
[4125]ATI

[4129]OBDUART v1.1
>
[4179]ATZ

[4184]OBDUART v1.1
>
[4234]ATE0

[4238]OK

>
[4288]ATL1

[4292]OK

>
[4342]ATAL

[4346]?

>
[4397]ATS0

[4401]OK

>
[4451]ATRV

[4454]14.1V
>
[4505]ATAT1

[4508]?

>
[4558]ATSP0

[4562]OK

>
[4613]ATDP

[4617]AUTO, ERROR

>
[4668]ATSH7E4

[4672]OK

>
[4722]2101

[7465]SEARCHING...
UNABLE TO CONNECT

>

{code}

Re: Fail to find protocol, any guess?

Posted: Tue Dec 27, 2016 4:42 am
by protomor
I can't see your code but how are you initializing the OBD class? Default is "PROTO_AUTO" but I've had to manually force it a few times. I think you're looking for PROTO_CAN_11B_500K .
You can look in the OBD.H for more informatoin but here's the enum definition.


typedef enum {
PROTO_AUTO = 0,
PROTO_ISO_9141_2 = 3,
PROTO_KWP2000_5KBPS = 4,
PROTO_KWP2000_FAST = 5,
PROTO_CAN_11B_500K = 6,
PROTO_CAN_29B_500K = 7,
PROTO_CAN_29B_250K = 8,
PROTO_CAN_11B_250K = 9,
} OBD_PROTOCOLS;

Re: Fail to find protocol, any guess?

Posted: Tue Dec 27, 2016 1:35 pm
by wookhyun
Thank you for reply.

I also tried "PROTO_CAN_11B_500K = 6".

In this case, ATSP6 gives OK.

But actual data "2101" gives "CAN ERROR".


The code is modified version of "FreematicsONE.cpp".

I added commands to "bool COBDSPI::init(OBD_PROTOCOLS protocol)" for test purpose, so that I can see the response from OBD.

Re: Fail to find protocol, any guess?

Posted: Tue Dec 27, 2016 11:26 pm
by protomor
I don't have the list in front of me. What's the 2101 command?

I don't have the one so I don't know much about how it works. I'm at the limit of how I can help you.