If i communicate with COM3 from Gui to the arduino everyting works! It is difficult for me to explain the problem and i hope you understand me. What i get are numbers which dont make sense. I sended numbers(from COM4) to Arduino(COM3) and with Serial.println(Serial2.read()) i can see the data on COM3 (Debugger). I sended data from my Gui(COM4) to my Arduino(COM3 VS Debugger). In my loop routine i wait for function available() -> Some data for me. In the setup routine i use the begin function with the value 9600 for both. In my code i use one instance of Serialport -> Serial to communicate with Vs Debugger and one instance -> Serial2 to communicate with the Gui. I want to use the Serialport 2 to communicate with the Gui while using Serialport from Usb to communicate with my Visual Studio Debugger.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |