Add probe function

Add probe function ,and decide which port can connect and use it
Rename old.txt to lastest.cfg that I can delete all *.txt

But here still a problem ,PORT_NUM  stille cannot support 5.