fixed error in getting probe data.
rewriting of diagnose algorithm

Signed-off-by: marcomilanesio <milanesio.marco@gmail.com>