DIAG receive function