Skip to content

Enable ASCII input, add "input type" parameter#73

Closed
Feezex wants to merge 2 commits into
jglim:mainfrom
Feezex:main
Closed

Enable ASCII input, add "input type" parameter#73
Feezex wants to merge 2 commits into
jglim:mainfrom
Feezex:main

Conversation

@Feezex

@Feezex Feezex commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Add support for direct ASCII input for Renault Radio code calculation

This update allows generating Renault Radio codes using direct precode input (e.g. Q799 → 9226), without requiring HEX format.

Changes:

  • Added automatic HEX / ASCII input detection
  • Removed strict HEX-only validation in input field
  • Enabled seamless ASCII input (e.g. Y020, Q799)

Notes:

  • HEX input is still fully supported
  • ASCII is auto-converted to byte array before processing

Improvement:

  • Add input type flag (HEX/ASCII) in db.json to control behavior per algorithm and avoid unintended ASCII parsing in other providers
  • HEX is a default type and not needed to be set for all definitions

Feezex added 2 commits April 17, 2026 22:40
Add support for direct ASCII input for Renault Radio code calculation

This update allows generating Renault Radio codes using direct precode input (e.g. Q799 → 9226), without requiring HEX format.

Changes:
- Added automatic HEX / ASCII input detection
- Removed strict HEX-only validation in input field
- Enabled seamless ASCII input (e.g. Y020, Q799)

Notes:
- HEX input is still fully supported
- ASCII is auto-converted to byte array before processing

Improvement:
- Add input type flag (HEX/ASCII) in db.json to control behavior per algorithm and avoid unintended ASCII parsing in other providers
- HEX is a default type and not needed to be set for all definitions
Fixes lost in previous commit comma delimiter
@jglim

jglim commented Apr 22, 2026

Copy link
Copy Markdown
Owner

Hi Sergey, appreciate your efforts but ASCII input isn't something that fits UnlockECU at this time.

UnlockECU is primarily designed for bus-level unlocking requests e.g. 27 xx, so it is fundamentally hex-based. These constraints keep the code and implementation easier to maintain. Sorry that your efforts / tokens could not be of use in this PR.

@jglim jglim closed this Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants