Open function, setBaudRate and setControl command functions coded