The pinging is preignition. When your piston comes up for the compression storke and the spark plug ignites the gas, you want a nice even burn across the top of the piston. pinging, detonation, pre-ignition are all the same and what happens is that you create to much compression and the increase in compression raises the temperature of the gas enough to ignite it w/out the spark plug and you get an explosion in the cylinder (this is how a diesel works). By raising the octane, decreasing the A/F raitio, or by pulling timing away, you can prevent this. Do one or a combination. And someone mentioned before about wanting a sensor to detect this, well, there is one on our cars (at least on the newer ones), it is called a knock sensor. If this sensor senses knock, which it will long before you will be able to hear it, it pulls timing. The probleme is that it can only pull so much timing.