Multi serial port application
-
yes i have refer that example only.....
-
i have tried both the things not able to open the port .....
-
mrjj Lifetime Qt Championreplied to veera on 11 Dec 2017, 09:47 last edited by mrjj 12 Nov 2017, 09:48
so are you sure PC has that port ?
if using a serial usb adapter, it has other name.
If you cannot open port using the Terminal sample then
something is wrong outside Qt. -
yes having two ports only ttyS4 and ttyS5 i am not using any usb to serial converter i am directly connecting with serial port only .....i have tried terminal example its giving the permission error means sudo permission .....
-
permission is denied error while opening the port in Terminal Sample...
-
-
Are you in dialout group?
-
i tried using this command on the qt project path also not able to open the serial ports.....
-
yes i am in dialout group....
-
crw-rw---- 1 root dialout 4, 68 Dec 11 13:22 /dev/ttyS4
-
@jsulm said in multi serial port application:
ls -lh /dev/ttyS4
crw-rw---- 1 root dialout 4, 68 Dec 11 13:22 /dev/ttyS4
-
Are you sure you really have 4 serial ports? Which kind of machine have you got?
In some case, with a beaglebone board for example, you have to enable the third and fourth serial port with a special kernel parameter. -
Hi
Often you have to add your user to the dialout group to be allowed to use itusermod -a -G dialout MY_USER_NAME
as @mrdebug asks/says
-
sudo usermod -a -G dialout veera
-
in my desktop using two serial ports using right now may be in built its four i guess.....
-
@veera Make sure your user is member of dialout group
-
Also if you are having ONLY 2 serial ports why are you then
trying the /dev/ttyS4 port ???
i would giess on
/dev/ttyS0
or
/dev/ttyS1 -
i have verified with minicom slot machine cable is connected with ttyS4 so i am trying with this port
-
i have tried ttyS0 and ttyS1 also it is not able to open the serial port....
30/49