-
Notifications
You must be signed in to change notification settings - Fork 12
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
"sendCommand" returns "NO DATA" for "getSupportedPIDs" for ELM327 (BLEManager) #18
Comments
hey I not really sure why 0101 results are inconsistent. the only time I have had issues with it is when using a wi-fi adapted. I will investigate to try to find out what the issue is thanks for bringing it up. |
Same issue here: `Sending command: AT SH 7E0 Getting supported PIDs for 0100 Getting supported PIDs for 0120 Getting supported PIDs for 0140 Getting supported PIDs for 0600 Getting supported PIDs for 0620 Getting supported PIDs for 0640 Getting supported PIDs for 0660 Getting supported PIDs for 0680 Getting supported PIDs for 06A0 Getting supported PIDs for 0900 Getting supported PIDs for 0100 Getting supported PIDs for 0120 Getting supported PIDs for 0140 Getting supported PIDs for 0600 Getting supported PIDs for 0620 Getting supported PIDs for 0640 Getting supported PIDs for 0660 Getting supported PIDs for 0680 Getting supported PIDs for 06A0 Getting supported PIDs for 0900 |
Thanks @calamaro . We are also getting the same logs provided. @kkonteh97 sendMessageCompletion vs. Core Bluetooth Delegate Methods:
Handling Responses:
TimeoutCode: Line 295 in "bleManger" ascii vs utf8Code: Line 290 in "bleManger"
|
I believe I know what the issues is let added some changes to the dev branch and you guys can test it out |
I commented out the setHeader function in setHeader in the elm327 file, should fix it. let me know if It works. it's on the debug branch. |
I set the header for the ecu to filter out messages coming from the engine. but my current method setting the header always to 7E0 does not work on all cars. |
Yes, it's working now |
@kkonteh97 Thanks, it works now. |
I got that from the elm327 manual, it worked in filtering out engine responses for most cars but not all. I need to figure out a way to map the response headers, then send the engine header with AT SH. |
Describe the bug
The "sendCommand" function for ELM327 (BLEManager) returns "NO DATA" most times. In this case it's returning no data for "getSupportedPIDs" function.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When I send code "0101" for Supported PIDs [01-20], we should get the cars supported pids from [01-20].
Smartphone (please complete the following information):
Additional context
Current Test Car: 2016 BMW 328i
Note: The command works fine in a separate project directly calling ".writeValue(data, for: characteristic, type: .withResponse)".
The returned OBD2 Code is sent to our custom cloud-function parser that converts it to readable value. Returned Log below:
The text was updated successfully, but these errors were encountered: