update commbox  an and save the value or alarm to file