Open madasravankumar opened 6 years ago
Hi,
I just cloned the repo and tried to get the DTCs and worked without any problem, of course you have to create some fake errors on the Diamex (in case you are using the same setup as we do, hold the right button pressed for one second and then choose the amount of fake errors that you want to generate) otherwise we also get no DTCs:
2017-10-20 11:13:19.593135+0200 SwiftyOBD[6593:2790019] [Error] [OBDStreamManager.swift:330] evaluateResponse() > NO DTCS
Could this be the issue?
Hi Supdann,
I am using Diamex simulator. I am using OBD2 ELM327 simulator. I want to get DTC's. Kindly resolve my issue.
@sravankumar143 Maybe the reason of your problem could be the selected protocol on the Diamex Simulator. If you read the README, under point b) you may find that we specified which protocol we used for this sample app, which is the number 7: 7: ISO 15765-4 CAN (29 bit ID,500 Kbaud) This is the number that is being shown on the LED Display on the Diamex simulator.
The purpose of this project was to create some sort of boilderplate that people can use to start building a more complex application and to know how to interact with the Hella Ventures Car Diagnostics API. In case your problem is related to the parsing of responses from other protocols we cannot help you, since we didn't implement them all. Please verify if the problem is still there after verifying that the protocol number 7 is selected.
Hi,
PFA. In the screen shot, I change the ELM ID to ISO 15765-4 CAN protocol even I am not getting DTC's. As per observation first time it is showing selected protocol after device and simulator connected successfully then it is showing USER2 CAN protocol. Please check now and let me know. PFA log file as well as.
Regards,
Sravan Kumar M
iOS Developer
Gemini Consulting & Services - India
Web: www.gemini-us.com / Email: smada@gemini-us.com pramasagaram@gemini-us.com
Mobile: +91 9966572563 Skype: sravan.kumar654
On Fri, Oct 20, 2017 at 8:15 PM, Daniel notifications@github.com wrote:
@sravankumar143 https://github.com/sravankumar143 Maybe the reason of your problem could be the selected protocol on the Diamex Simulator. If you read the README, under point b) you may find that we specified which protocol we used for this sample app, which is the number 7: 7: ISO 15765-4 CAN (29 bit ID,500 Kbaud) This is the number that is being shown on the LED Display on the Diamex simulator.
The purpose of this project was to create some sort of boilderplate that people can use to start building a more complex application and to know how to interact with the Hella Ventures Car Diagnostics API. In case your problem is related to the parsing of responses from other protocols we cannot help you, since we didn't implement them all. Please verify if the problem is still there after verifying that the protocol number 7 is selected.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HellaVentures/iOS-OBD-Example-App/issues/1#issuecomment-338227433, or mute the thread https://github.com/notifications/unsubscribe-auth/ACvD9xMvTB1Lv5aMuU8PUjwM2EgCKflSks5suLH0gaJpZM4QAJiz .
07:39:01.818 Server started on 192.168.43.10:35000 Use this address for communications. If you developing on the same workstation you can also connect to the 127.0.0.1:35000 07:39:50.511 Accepted client 192.168.43.10:53979 07:39:51.509 ATD HEX: [4154440D] 07:39:51.509 (ATD) SET defaults 07:39:51.510 OK
HEX: [4F4B0D0A0D0A3E] 07:39:51.709 ATZ HEX: [41545A0D] 07:39:51.709 (ATZ) Reset device 07:39:51.710 ISO 15765-4 CAN v1.2
HEX: [49534F2031353736352D342043414E2076312E320D0A0D0A3E] 07:39:51.909 ATE0 HEX: [415445300D] 07:39:51.910 (ATEx) Echo ON/OFF 0 07:39:51.910 OK
HEX: [4F4B0D0A0D0A3E] 07:39:52.109 ATH0 HEX: [415448300D] 07:39:52.110 (ATHx) Headers ON/OFF= 0 07:39:52.111 OK
HEX: [4F4B0D0A0D0A3E] 07:39:52.309 ATH1 HEX: [415448310D] 07:39:52.310 (ATHx) Headers ON/OFF= 1 07:39:52.310 OK
HEX: [4F4B0D0A0D0A3E] 07:39:52.508 ATDPN HEX: [415444504E0D] 07:39:52.510 8
HEX: [380D0A0D0A3E] 07:39:52.709 ATSPC HEX: [41545350430D] 07:39:52.710 (ATSPx)||(ATTPx) SET protocol: USER2 CAN 07:39:52.710 OK
HEX: [4F4B0D0A0D0A3E] 07:39:52.909 0100 HEX: [303130300D] 07:39:52.912 7E8 06 41 00 FF FF FF FF EE
HEX: [3745382030362034312030302046462046462046462046462045450D0A0D0A3E] 07:39:53.309 ATH1 HEX: [415448310D] 07:39:53.311 (ATHx) Headers ON/OFF= 1 07:39:53.312 OK
HEX: [4F4B0D0A0D0A3E] 07:39:53.509 ATH0 HEX: [415448300D] 07:39:53.511 (ATHx) Headers ON/OFF= 0 07:39:53.511 OK
HEX: [4F4B0D0A0D0A3E]
Same problem here. I'm using vgate obd2 device connected to Audi. I see one error using other app.
`018-11-24 09:45:21.581043+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:97] stream(:handle:) > Stream opened 2018-11-24 09:45:22.536894+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATD. Message (ASCII): 4 bytes 2018-11-24 09:45:22.581342+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
OK
2018-11-24 09:45:22.733914+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATZ. Message (ASCII): 4 bytes 2018-11-24 09:45:22.770141+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: ATZ
2018-11-24 09:45:23.747988+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
ELM327 v2.1
2018-11-24 09:45:23.933726+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATE0. Message (ASCII): 5 bytes 2018-11-24 09:45:23.967457+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: ATE0 OK
2018-11-24 09:45:24.133688+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(_:logMessage:) > ATH01. Message (ASCII): 5 bytes 2018-11-24 09:45:24.167025+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:24.333612+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(_:logMessage:) > ATH11. Message (ASCII): 5 bytes 2018-11-24 09:45:24.367497+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:24.533611+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATDPN. Message (ASCII): 6 bytes 2018-11-24 09:45:24.569496+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: 6
2018-11-24 09:45:24.733608+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATSPC. Message (ASCII): 6 bytes 2018-11-24 09:45:24.795016+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:24.826093+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:24.935131+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:24.980590+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:25.133681+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:25.178370+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:25.333613+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATSPB. Message (ASCII): 6 bytes 2018-11-24 09:45:25.376219+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:25.402909+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:25.533158+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:25.567679+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:25.734050+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:25.768759+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:25.933635+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATSPA. Message (ASCII): 6 bytes 2018-11-24 09:45:25.972748+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:25.995733+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:26.133619+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:26.166682+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:26.333642+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:26.366633+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:26.533583+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATSP9. Message (ASCII): 6 bytes 2018-11-24 09:45:26.572353+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:26.594201+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:26.733671+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:26.771018+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:26.933658+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:26.970600+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:27.133638+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATSP8. Message (ASCII): 6 bytes 2018-11-24 09:45:27.172506+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:27.193848+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:27.333568+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:27.373476+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:27.533539+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:27.569468+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: CAN ERROR
2018-11-24 09:45:27.732752+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATSP7. Message (ASCII): 6 bytes 2018-11-24 09:45:27.771625+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:27.792931+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:27.933633+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:28.064056+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: NO DATA
2018-11-24 09:45:28.133625+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:28.265714+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: NO DATA
2018-11-24 09:45:28.333734+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > ATSP6. Message (ASCII): 6 bytes 2018-11-24 09:45:28.376803+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:28.394083+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:28.532821+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0100. Message (ASCII): 5 bytes 2018-11-24 09:45:28.576437+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: 7E8 06 41 00 98 3B A0 13
2018-11-24 09:45:28.771668+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:29.133590+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(_:logMessage:) > ATH12. Message (ASCII): 5 bytes 2018-11-24 09:45:29.169043+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:29.333539+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(_:logMessage:) > ATH02. Message (ASCII): 5 bytes 2018-11-24 09:45:29.372993+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: OK
2018-11-24 09:45:29.546921+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:367] setupTimedQueries() > The protocol is 6: ISO 15765-4 CAN (11 bit ID,500 Kbaud) warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available. 2018-11-24 09:45:41.700510+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0101. Message (ASCII): 5 bytes 2018-11-24 09:45:41.744979+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: 41 01 00 06 80 00
2018-11-24 09:45:41.976095+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:42.100826+0100 AhMoto[15978:1212324] [Info] [OBDStreamManager.swift:412] sendMessage(:logMessage:) > 0101. Message (ASCII): 3 bytes 2018-11-24 09:45:42.141921+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(:handle:) > NSStream has Bytes available. Server said: 43 00
2018-11-24 09:45:42.487479+0100 AhMoto[15978:1212324] [Debug] [OBDStreamManager.swift:112] stream(_:handle:) > NSStream has Bytes available. Server said:
2018-11-24 09:45:42.489463+0100 AhMoto[15978:1212324] [Error] [OBDStreamManager.swift:307] evaluateResponse() > NO DTCS`
Hi All, I am trying to get the error codes from simulator, facing issue that "No DTC's Found". I am following below procedure.
I used VIN: WAUBFGFFXF1