I have a similar question in the forum. C开发者_Go百科hange baud rate in C# without closing connection . In that question i asked how to change the baud rate without closing the port. Someone suggested me to close and reopen the port but i already tried that before asking that question, it also didn't work. Closing and reopening the port is not important to me ( the third party software which is also talking with the same meter, was not closing the port when i monitor it so i asked that question thinking that it maybe a clue) important thing is changing baud rate of the device. I am waiting for help. Thank you for your time.. Ferda Ozdemir
My serialport object was defined in my main form. I was sending to my reading function as a parameter. And do everything there like opening port, setting baud rate, writing data, closing port etc. But I was running this function in another thread. When i try to change baud rate i think there exists a delay or something so i can not change baudrate properly. Then i changed my code and now i can change the baud rate and go on with other things. Thank you for all your help.
精彩评论