i am using usb connection for the controller(meri dian P).
Code:
SerialPort serialPort = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.None);
byte[] outBuffer = System.Text.Encoding.UTF8.GetBytes("Hello World!\r\n");
serialPort.Write(outBuffer, 0, outBuffer.Length);
serialPort.Dispose();
Thread.Sleep(Timeout.Infinite);
problem regarding my project is that i am writing my code for sending hello message in the controller for xbee
This code doesn't look anything like your earlier code, which was very close to what the developer of the controller used in his example. Why the big change? Did you try any of the suggestions I made earlier?
1. Do the project exactly the way the developer designed it to be done and see if the board works.
2. Once that code works, make a backup of it.
3. Slowly make changes from a known-good condition.
4. Make backup copies of your code at each stage so you can roll back if you need to.
Comment