add AI Test function

add AI RS232 and Lock test function