I am trying to establish a serial connection between a PC (Linux 32bit) and a hardware device via Bluetooth.
I have already tested the system using cutecom. It works. Baud 115200, /dev/rfcomm0etc.
Now I am trying to create client software with Mono in order to be able to implement a communication protocol. I tested the Object SerialPortobject:
SerialPort mySerial;
mySerial = new SerialPort("/dev/rfcomm0", 115200);
mySerial.Open();
mySerial.ReadTimeout = 1000;
This does not work. I tested the system through a wired serial connection, on /dev/ttyACM0, and it worked. Therefore, I do not think so.
I tried to use FileStreamand StreamReader, but chose Exception.IO: WIN32 IO returned 997.
How to use serial connection with a Bluetooth device with Mono C #?
source
share