opening of serial port
General and Desktop
17
Posts
4
Posters
4.0k
Views
3
Watching
-
@Nimika
That's wrong:serial.open(QIODevice::ReadWrite); qDebug() << "port connected"; qDebug() << serial.open(QIODevice::ReadWrite);
do it like this (do not call open twice!):
qDebug() << "port connected"; qDebug() << serial.open(QIODevice::ReadWrite);
-
@Nimika
Hi are you 100% sure about portname ?
serial.setPortName("ttyM");
I would expect a number ttyM0 -
@Nimika
Ok. Just checking.Did you try with minicom or any other serial programs if it will open it ?
-
@Nimika If it still not able to open the connection then check all the connection parameters you're specifying.
-
-
@Nimika "made on Monday" :-)
Usually people are not fully operable on Monday after weekend and do more mistakes and produce more broken products :-) -
Hi,
Looks like you're on linux, wouldn't that be
/dev/ttyM0
?One other thing: do you have the rights to access the serial port ?