A downhole tool comprises a pulse generator that can generate longitudinal pulses in a drill string. A poppet is longitudinally moved in and out of an orifice in the pulse generator reducing the flow of drilling mud temporarily, generating a longitudinal pulse. The longitudinal pulse generator may be combined with a conventional transverse pulse generator to create a pulse generator capable of generating pulses in both transverse and longitudinal directions.