On Sun, May 06, 2018 at 10:02:58AM +0200, Michael Balzer wrote:
just a note: I've used this neat ISO-TP implementation for my Arduino projects: https://github.com/altelch/iso-tp
…specifically for https://github.com/dexterbg/Twizy-Cfg to provide the OBD2 commands.
The OVMS OBD polling framework is currently really just meant to provide periodical polling of basic registers. I will need a more flexible and complete ISO-TP implementation for issue #95 as well, was thinking about a general service for this like I did with CANopen.
Yes, I suspect that much of the confusion about data bytes and lengths in PollerReceive would have be avoided if there was a lower level class handling the fiddly bits of ISO-TP. And it would be great to have that available separately for other purposes---I wouldn't then have to use the periodic polling functionality to get something like the VIN, which only needs a one-off query.
... So if you'd like to implement a better ISO-TP framework, go ahead :)
Not sure I am sufficiently up to speed on some of the features needed to do this yet, but I'd be interested in looking at it.