first of all you need to close your port then change baud rate !
Char[] data = GetCharArrayfromString(hexData);
SendData(data);
ClearSerialPort();
ClearSerialPort1();
sp1.close();
sp1.BaudRate = 1200;
sp.BaudRate = 1200;
sp.BreakState = false;
sp1.BreakState = false;
then
sp1.open()
must use again in the beginning of your transmission so please check port status using
sp1.IsOpen
property for getting port status.
the other issue is due to your thread because and the serial port is attached to the thread. so you will be face problem when changing serial port property.