I use serialport->write(myCharArray,offset,count) to send my data.
I convert::tochar 0x3E and 0x02 to a unsign char array and send them,and i use serialPort->read(myAnotherCharArray,offset,count)to read back the feedback but fail,it always contain 0.
I can use hyper terminal to communicate with my device.In hyper terminal,i send '>' and ' '(i cant show this in ,anyway i hold alt and key in 02 and release the alt key).What is the format of this 2 data i send?
Is it wrong to use convert::tochar to convert my hex to a char??
Anyone please teach me how to send the same data as in hyper terminal(the setting in hyper terminal is default) by using serial port.