Giter Club home page Giter Club logo

Comments (7)

PiN0YChris avatar PiN0YChris commented on June 7, 2024 1

This Scanner has 2 Bluetooth Connections/Modules "Android-Vlink" and "IOS-Vlink". Only the last one uses BLE. Just bought one because of this to try it an maybe tinkering with BLE later.

from elmduino.

themagicm avatar themagicm commented on June 7, 2024

Anyone used one of these before, successfully ?

from elmduino.

PowerBroker2 avatar PowerBroker2 commented on June 7, 2024

The library does not support BLE scanners - not even sure how you got this far with your device. Perhaps try increasing the timeout value to an insane value like 10 seconds or so

from elmduino.

jimwhitelaw avatar jimwhitelaw commented on June 7, 2024

@themagicm this looks like an issue I've encountered and am working through today. The quick and dirty fix is that given by @PowerBroker2 - bump up the timeout - I'm using 20 sec. and that works although you may not get data on your first query.

The more robust fix is to modify the initializeELM() method to complete the protocol search when using AUTO protocol value. My fix looks like this:

if ((String)protocol == "0")
{ //Auto search for protocol
	sprintf(command, TRY_PROT_H_AUTO_SEARCH, protocol); 
	if (sendCommand_Blocking(command) == ELM_SUCCESS)
	{ // Now we need to send OBD command to initiate protocol search
		if (sendCommand_Blocking("0100") == ELM_SUCCESS) 
		{// Not using the return value currently, but it gives a list of supported PIDs
		        connected = true;
			return connected;
		}
	}
}
else 
{
// set protocol
}

from elmduino.

PowerBroker2 avatar PowerBroker2 commented on June 7, 2024

@jimwhitelaw

Would you be cool with submitting a PR?

from elmduino.

jimwhitelaw avatar jimwhitelaw commented on June 7, 2024

from elmduino.

PowerBroker2 avatar PowerBroker2 commented on June 7, 2024

Merged

from elmduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.