Add network scanner and automatic connection
Fix null message bug, change RX thread