Hello Christian,
Mapping an analog signal (!) to a specific CAN message is already supported by my existing hardware and is currently used for measuring the supply voltage.
Of course, it could be expanded; creating a software interface to define a corresponding CAN message would not be a problem.
Example API:
SI,<Input>,<ID>,<Start>,<Start>,<Value>,<Formula> (Defines the CAN message calculation)
SR, <input> (delete definition for the respective pin)
This would be stored permanently in the EEPROM and then automatically taken into account every time the device is restarted.
For the price of...
https://shop.dieselschrauber.de/obd2-diagnosesoftware-kobd2check-mit-rks-can-p-321.php
I could provide you with a suitable device (electronics without an OBD2 connector or housing) along with the corresponding firmware.
For multiple analog pins, it would naturally be beneficial to have dedicated (new) hardware that can process more than one signal.
Best regards, Rainer.