Unfortunately we do not accept new members for free, Now Registration cost 30€, if you are interesting Send Email to [email protected]
NCS ESYS two or more hex value
15-08-2022, 10:56 AM,
Post: #1
|
|||
|
|||
NCS ESYS two or more hex value
Hello guys, i searched on google but i dont find correct information. Maybe someone can advise, explain.
When a value with a length of 1 is modified, I understand that. Decimal value is converted to hexadecimal. But I don't understand how to convert two or more hexadecimal values to decimal. For example, the PWM of lights 8D, 0B is 13 Volts, or D7, 0A is 12.2 Volts according to nscdummy. Thanks Press Thanks and Reputation, if my post helped you.
|
|||
15-08-2022, 18:44 PM,
Post: #2
|
|||
|
|||
RE: NCS ESYS two or more hex value
Why you need convert? may be better use hex? any picture for understanding your problem?
|
|||
15-08-2022, 18:52 PM,
Post: #3
|
|||
|
|||
RE: NCS ESYS two or more hex value
You just treat those 2 numbers as one big endian hex number: 8D, 0B = 0B8Dh = 2975d; D7, 0A = 0AD7h = 2775d. You can check this works well as this way you get ratio 2975/2775=13/12.2 with quite good precision.
So if you want custom voltage then you can calculate ratio of value to voltage like 2975/13. And then multiply it by the voltage you want to get a value for any voltage you want (of course up to max car voltage). Convert it to hex and write bytes starting from lowest. Elementary. |
|||
Reputation: +2 - luntik [+1] , warhol99 [+1] | |||
« Next Oldest | Next Newest »
|
Users browsing this thread:
1 Guest(s)
1 Guest(s)
Return to TopReturn to Content