Category : serial-communication

I am finding way to send hex data via serial communication i searched it several times and followed some ways but it didn’t work. i checked that protocol is working with using other software that sending hex data to device below is my code const char data[]={0xAA,0xAA,0x01,0x00,0x00,0x0E,0x00,0x01,0x00,0x00,0x00,0x2D,0x37,0x1D,0xAA,0xAA,0x01,0x00,0x00,0x0E,0x00,0x0C,0x10,0x00,0x00,0x01,0x76,0x13}; serial->setPortName(("COM8")); initSerialPort(); // baud rate and etc if(serial->open(QIODevice::ReadWrite)) ..

Read more