Help me for serial data processing.

tried a sample, but it do not work.

Which one?

It did something. You wanted it to so something. Obviously those two somethings weren't the same thing, but what either one of them was is a mystery. We need your help solving that mystery.