character waveform detection