-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
LELink Bluetooth Low Energy - stuck on "OBD2AdapterStateInitializing" state #40
Comments
Can you show the console output? I also have an LELINK and this works out-of-the-box with the iOS demo. Here is the relevant console output from the point of receiving the first BLE advertisement: -[LTBTLESerialTransporter centralManager:didDiscoverPeripheral:advertisementData:RSSI:] (LTBTLESerialTransporter.m:179) DISCOVER <CBPeripheral: 0x280bdc420, identifier = 9F4E3B80-5CA4-75A8-5E8F-DD9E24BD7ECB, name = OBDBLE, mtu = 0, state = connecting> (RSSI=-79) w/ advertisement {
kCBAdvDataIsConnectable = 1;
kCBAdvDataLocalName = OBDBLE;
kCBAdvDataRxPrimaryPHY = 129;
kCBAdvDataRxSecondaryPHY = 0;
kCBAdvDataTimestamp = "658856223.379717";
kCBAdvDataTxPowerLevel = 0;
}
-[LTBTLESerialTransporter centralManager:didConnectPeripheral:] (LTBTLESerialTransporter.m:187) CONNECT <CBPeripheral: 0x280bdc420, identifier = 9F4E3B80-5CA4-75A8-5E8F-DD9E24BD7ECB, name = OBDBLE, mtu = 23, state = connected>
-[LTBTLESerialTransporter peripheral:didDiscoverCharacteristicsForService:error:] (LTBTLESerialTransporter.m:261) Did see notify characteristic
-[LTBTLESerialTransporter peripheral:didDiscoverCharacteristicsForService:error:] (LTBTLESerialTransporter.m:270) Did see write characteristic
2021-11-17 16:37:04.165129+0100 iOS_Demo[13034:6206782] Unhandeld adapter state OBD2AdapterStateInitializing
2021-11-17 16:37:04.167930+0100 iOS_Demo[13034:6206782] Unhandeld adapter state OBD2AdapterStateInitializing
2021-11-17 16:37:04.168012+0100 iOS_Demo[13034:6206782] Unhandeld adapter state OBD2AdapterStateInitializing
-[LTOBD2AdapterELM327 receivedData:receiveBuffer:] (LTOBD2AdapterELM327.m:154) Received data: ATD\r
-[LTOBD2AdapterELM327 receivedData:receiveBuffer:] (LTOBD2AdapterELM327.m:154) Received data: \rOK\r\r>
-[LTOBD2AdapterInternalCommand didCompleteResponse:protocol:protocolType:] (LTOBD2Adapter.m:58) <LTOBD2Command:0x281ff00f0 = 'ATD'> complete [1008 ms] => 'ATD - OK'
-[LTOBD2AdapterELM327 receivedData:receiveBuffer:] (LTOBD2AdapterELM327.m:154) Received data: ATZ\r
-[LTOBD2AdapterELM327 receivedData:receiveBuffer:] (LTOBD2AdapterELM327.m:154) Received data: \r\rELM327 v1.5\r\r> |
Thank you so much for responding to me!! The two events with the LELINK's UUID are here:-[LTBTLESerialTransporter centralManager:didDiscoverPeripheral:advertisementData:RSSI:] (LTBTLESerialTransporter.m:179) DISCOVER <CBPeripheral: 0x2807b8b00, identifier = 08772BDF-2272-6C47-9CA9-FA1C5E2E91AF, name = OBDBLE, mtu = 0, state = disconnected> (RSSI=-61) w/ advertisement { -[LTBTLESerialTransporter centralManager:didConnectPeripheral:] (LTBTLESerialTransporter.m:187) CONNECT <CBPeripheral: 0x2807b8b00, identifier = 08772BDF-2272-6C47-9CA9-FA1C5E2E91AF, name = OBDBLE, mtu = 23, state = connected>I did also try altering this line with the UUID It showed for the LE link as well: NSMutableArray<CBUUID*>* ma = [NSMutableArray array]; But as requested here's the whole output (I do have alot of BLE devices around me :)) -[LTBTLESerialTransporter centralManager:didDiscoverPeripheral:advertisementData:RSSI:] (LTBTLESerialTransporter.m:179) DISCOVER <CBPeripheral: 0x2807b8b00, identifier = 08772BDF-2272-6C47-9CA9-FA1C5E2E91AF, name = OBDBLE, mtu = 0, state = disconnected> (RSSI=-61) w/ advertisement { |
@mickeyl Do you think they may have changed something with the latest model (I ordered it from Amazon), some sort of propietory way to make it start talking? The lelink app itself works fine with it.. maybe ill try another one on your list Also I am on Xcode 13.1 and on ios15 testing from an iphone 12 pro max |
I ended up getting a Vgate device and that worked after altering the Service IDs a bit... What do you have set for the LELINK? I have tried: [@[ @"FFE0", @"FFE1", @"FFEE" , @"D1D634B9-DB8E-5D39-F7BE-07E5D6F69579"] enumerateObjectsUsingBlock:^(NSString* _Nonnull uuid, NSUInteger idx, BOOL * _Nonnull stop) { using a ble tool: i determined these, but the LELINK not connecting, stuck in initializing:; |
Hello, I have tried adjusting the UUID defined in the code to match the LELink device to no avail..
It sees the device for sure but is stuck in the "OBD2AdapterStateInitializing" state
I also adjusted the switch statement to handle the Initializing state to fall through, or also to act like it's connected... but I never get any data to the demo app
Any ideas for help? :) THANK YOU IN ADVANCE
The text was updated successfully, but these errors were encountered: