use - instead of ~ for subtraction, add value range checks
add ttyACM* lookup and another level of connectivity check