hey guys,
I have a project where I use the console port to communicate with other devices through RS232. Is there a way of unhooking the console after bootup within my program so I can use that port for my communication?
Regards,
Javier
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hey guys,
I have a project where I use the console port to communicate with other devices through RS232. Is there a way of unhooking the console after bootup within my program so I can use that port for my communication?
Regards,
Javier
Do you need to use com port while booting up? If not, you can change the bootrags so that com port can be kept free. So, after booting up you don't have any qualms in using RS232 for using for communication.
Good Idea, but it didn't work. It seems like everything got re-routed somewhere else, I changed the bootargs as follow:
setenv bootargs 'mem=60M console=ttyUSB0,115200n8 rw noinitrd root=/dev/nfs nfsroot=10.10.4.48:/home/jhernandez/EUCDK/eucdk_ov_15/target/filesys,nolock'.
I've check the loaded drivers and this is what I got:
# cat /proc/tty/drivers
/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
serial /dev/ttyS 4 64-65 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master
unknown /dev/tty 4 1-63 console
so I open the /dev/ttyS and I get an error, the only one I can open is /dev/tty which is the console. Any other ideas?