Comments (6)
It is a question category, sorry for not to know how to change it to question category
from elmduino.
The new built-in functions should cover this one. Otherwise, do you have a specific question?
from elmduino.
actually I'm wondering that how could you calculate A and B byte values only using 'findResponse' although it is up to 4byte pid
so that for beginners like me, it's a little bit hard to find out what's value A and B... sorry for ignorance..
my final question is, even if the final calculation is using A,B values , how to calculate with only 'findResponse' ... It's too hard for me to get it.
e.g. for get the rpm value the formula is {256A + B} / {4}.. otherwise I can find out in the cpp file that you just divide 'findResponse' by 4.0 .. does the 256A+B automatically calculated by the findResponse function?? for being
Newbie,, really sorry to keep asking you a lot. thank you
from elmduino.
In the RPM function, A is the most significant byte (of meaningful bits) and B is the least significant byte of the value returned by findResponse()
. This means (256*A + B) is already taken care of by findResponse()
. Note that A * 256 is the same as left shifting A by 8 bits.
byte A = 25;
byte B = 30;
uint16_t ex1 = 256*A + B;
uint16_t ex2 = (A << 8) + B;
In the above snippet, ex1=ex2
.
Your code in your first post in this issue looked good, you just didn't do anything with A and B once you found them. However, like I said, you don't really need to now that I added a built-in function for this PID
from elmduino.
ummm.. a liitle bit confusing in my knowledge.. Would it be easier to just understand 'findResponse' automatically find out the required values?Should it be more helpful to understand "uint64_t ELM327::findResponse() " in cpp file that how it functions?
Anyway, I'm gonna study about MSB and LSB and plz let me ask you again in a few hours.. thanks.
I'm at south korea.. It's about 5 am here. I should take a sleep though sorry
from elmduino.
sorry for another question mr.POWERBORKER2
Can I use this library with stn1110? I heared that stn1110 totally compatible with elm327
Cause, ELM327 only works at 38400 baudrate over UART serial..
would it be okay?
from elmduino.
Related Issues (20)
- ESP32 not connecting to ELM327 HOT 5
- Protocol Data Point HOT 4
- Couldn't connect to OBD scanner (stucked) HOT 18
- First time Bluetooth pairing between ESP32 and ELM327 HOT 1
- custom pid for DPF HOT 17
- BT Pairing problem between ESP-32 and ELM327 HOT 6
- How to change OBD protocol HOT 5
- Response not detected HOT 28
- Error in getting Multiple PID's HOT 9
- ESP32 s3 BLE compatibility? HOT 3
- Attempting to read non-standard PID HOT 1
- When does `queryPid` return `true`? HOT 4
- ESP32_CheckPIDs_1_20.ino HOT 1
- How to read data if I know TXD RXF RXD and MTH HOT 2
- ERROR: ELM_BUFFER_OVERFLOW on Honda Vezel 2023 HOT 4
- Problems in phase 1, can't connect with ELM327 HOT 3
- couldn't connect to OBD scanner HOT 5
- ERROR: ELM_TIMEOUT . Value received for a while and then error happens. HOT 4
- setPIN error when using ESP32 HOT 3
- Help me understand Manifold pressure readings HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elmduino.