I have come into contact with qt just for a short time.
& I’ m doing a project which needs reading serial ports.
I ‘ve got MSP430, transmitting data to my macbook.
There is nothing wrong with MSP430,driven normally, and my Mac can read data with other softwares.
Here’s the serial port information from the Qserialportinfo of sample program:
Port: uart-1CFF49ABB1C3252A
Location: /dev/cu.uart-1CFF49ABB1C3252A
Description: Texas Instruments MSP-FET430UIF
Manufacturer: Texas Instruments
Vendor
Identifier: 451
Product Identifier: f432
Busy: No
& I want to read data from it.
that is how i initialize the serial port.
QSerialPort *serial=new QSerialPort;
serial->open(QIODevice::ReadOnly);
serial->setBaudRate(serial->Baud4800);
and then i dont know how to set the port
(cuz there are other serial mouth, bluetooth etc. )
What should I do then?
other Info:
OS 10.8.4
Qt creater 2.7.2
based on Qt 5.1.0(64bit)
………………
looking forward to some advice.
thanks alot._
↧