Gearbox electronics for trucks