Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no work with teensy 4.0 #165

Closed
cruz177 opened this issue Apr 10, 2023 · 5 comments
Closed

no work with teensy 4.0 #165

cruz177 opened this issue Apr 10, 2023 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@cruz177
Copy link

cruz177 commented Apr 10, 2023

Good morning

I'm trying to get an elm327 1.5v to work with your code on a teensy 4.0 and I can't get the code to work.

I have made sure that elm327 was real (4hz oscillator, original integrated,...) and I have made it work by bt with the android mobile

I'm sure I have everything connected correctly on RX and TX to TX and RX of my teensy on serial1 (pin 0,1)

The code runs and it seems to return data, but all the time I get the error message error: elm_timeout and it seems that if it connects to teensy, but it does not open the obd2 port (or so I think).

Could it be a problem of having a 16-bit AVR processor?

Thank you

@cruz177 cruz177 added the question Further information is requested label Apr 10, 2023
@PowerBroker2
Copy link
Owner

I use the latest release of ELMduino on my personal car HUD that has a Teensy 4.1 and have had pretty much 0 issues with it.

Can you post the debug printouts?

@cruz177
Copy link
Author

cruz177 commented Apr 21, 2023

Thanks for the answer, I've been trying to do my research but I'm the same.

This continuously appears on the serial monitor, I begin to think that it could be the same elm327?

imeout detected with overflow of 0ms
Clearing input serial buffer
Sending the following command/query: AT Z
Timeout detected with overflow of 0ms
Clearing input serial buffer
Sending the following command/query: AT E0
Received char: A
Received char: T
Received char: _
Timeout detected with overflow of 0ms
Clearing input serial buffer
Sending the following command/query: AT S0
Received char: A
Received char: T
Received char: _
Received char: S
Received char: 0
Received char: \r
Timeout detected with overflow of 0ms
Clearing input serial buffer
Sending the following command/query: AT AL
Received char: A
Received char: T
Received char: _
Received char: A
Received char: L
Received char: \r
Timeout detected with overflow of 0ms
Clearing input serial buffer
Sending the following command/query: AT ST 00
Received char: A
Received char: T
Received char: _
Received char: S
Received char: T
Received char: _
Received char: 0
Received char: 0
Received char: \r
Timeout detected with overflow of 0ms
Clearing input serial buffer
Sending the following command/query: AT TP A0
Received char: A
Received char: T
Received char: _
Received char: T
Received char: P
Received char: _
Received char: A
Received char: 0
Received char: \r
Timeout detected with overflow of 0ms
Setting protocol via AT TP A%c did not work - trying via AT SP %c
Clearing input serial buffer
Sending the following command/query: AT SP 0
Received char: A
Received char: T
Received char: _
Received char: S
Received char: P
Received char: _
Received char: 0
Received char: \r
Timeout detected with overflow of 0ms
Setting protocol via AT SP %c did not work
Couldn't connect to OBD scanner
Connected to ELM327
Service: 1
PID: 12
Normal length query detected
Query string: 010C1
Clearing input serial buffer
Sending the following command/query: 010C1
Received char: 0
Received char: 1
Received char: 0
Received char: C
Received char: 1
Received char: \r
Timeout detected with overflow of 0ms
Received: 010C1
ERROR: ELM_TIMEOUT
Service: 1
PID: 13
Normal length query detected
Query string: 010D1
Clearing input serial buffer
Sending the following command/query: 010D1
Received char: 0
Received char: 1
Received char: 0
Received char: D
Received char: 1
Received char: \r
Timeout detected with overflow of 0ms
Received: 010D1
ERROR: ELM_TIMEOUT
Service: 1
PID: 12
Normal length query detected
Query string: 010C1
Clearing input serial buffer
Sending the following command/query: 010C1
Received char: 0
Received char: 1
Received char: 0
Received char: C
Received char: 1
Received char: \r
Timeout detected with overflow of 0ms
Received: 010C1
ERROR: ELM_TIMEOUT
Service: 1
PID: 13
Normal length query detected
Query string: 010D1
Clearing input serial buffer
Sending the following command/query: 010D1
Received char: 0
Received char: 1
Received char: 0
Received char: D
Received char: 1
Received char: \r
Timeout detected with overflow of 0ms
Received: 010D1
ERROR: ELM_TIMEOUT
Service: 1
PID: 12
Normal length query detected
Query string: 010C1
Clearing input serial buffer
Sending the following command/query: 010C1
Received char: 0
Received char: 1
Received char: 0
Received char: C
Received char: 1
Received char: \r

Could you tell me where to buy one that works 100% to discard?

Thank you

@cruz177
Copy link
Author

cruz177 commented May 4, 2023

any?

@PowerBroker2
Copy link
Owner

Sorry, didn't notice your previous post. It seems your OBD2 scanner isn't replying with the correct responses. You'll probably need to get a better/different one.

@jimwhitelaw
Copy link
Collaborator

I don't think this is related to the teensy board, it looks like another instance of this issue:
#146 (comment)

TL;DR - try the latest version of ELMduino.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants