Giter Club home page Giter Club logo

Comments (4)

iwanders avatar iwanders commented on August 13, 2024

Hmm, could be, I thought the 21 was because of the slow 5 baud init here. I thought that was read as 21, but it is a long time since I used the simulator. It's gotten zero attention after I had working hardware and working initialisation code. I wouldn't really use the simulator to help you develop your own slow init to be honest. It's not created for that purpose, it was mostly created such that I could check my own PID reading code, at some point the simulator did behave identical to my car (including the init), but like I said, detecting the 5 baud init may not be 100% reliable.

In the example where I used it here I actually force the initialisation to be true, this allows you to bypass the initialisation and still allows testing hardware (and reading PID values) as if it is connected to a car. The simulator does work well for acting like a car when it comes to reading PID values.

from obd9141.

bonadio avatar bonadio commented on August 13, 2024

I could not try the code yet, still working on the transceiver but looked again and seems it should be 204 = binary 11001100.

No problem, thanks for the advice, I will use the simulator code it with care. I will post my results once it works.

Thanks very much

from obd9141.

bonadio avatar bonadio commented on August 13, 2024

Hello @iwanders your code is correct the value is 21 I just tried. For some reason I had bit banging in my head and I could not understand how sending 11001100 could be 21, but your code is just counting the number of times the port changes so yes I get 010101 and it is 21.

from obd9141.

iwanders avatar iwanders commented on August 13, 2024

Ah, glad you got it figured out @bonadio! Thanks for the update 👍

from obd9141.

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.