The second computer that was tried, had been on the shelf for several months so I don't think a learn would stick that long without power.
I agree. I am thinking of a learned value determined at each startup based on whether or not knock is detected. This could be tested in another vehicle by establishing a baseline at startup with no knock then simulating knock during a subsequent restart.