merge the sync from the same idDevice in a period