I'm using Netduino Plus 2 (Firmware 4.3.1)
I'm using the JY-MCU Bluetooth board (v1.06)
I've tried using COM1 with Pins 0-1 as well as COM2 with Pins 2-3, same results
When using COM2
bluetoothSerialPort = new SerialPort(SerialPorts.COM2); bluetoothSerialPort.DataReceived += rec_DataReceived; bluetoothSerialPort.Open();
I have the TXD pin of JY-MCU connected to Pin 2 and the RXD pin of JY-MCU connected to Pin 3
I can pair with the device using an app on my phone and/or desktop
I can send data to the device using both as well
The number of bytes received is the same as the number of bytes sent
I have two of these boards and I get the same results with both.
The problem is that I don't receive the same bytes I send. I do however always receive the same (wrong bytes) for the same sent bytes.
For example, if I send "Hello|"
I'll receive (consistently)