The working serial link is:Īnd the other serial link consists of: -(cable_B). In the setup and the results (so far) that you have described, you have one working serial link and another serial link of unknown condition. This check is to also confirm that you're connected on the correct pin. You would need an oscilloscope, and could confirm that the logic levels or RS-232 voltages seemed okay. Normally the first item to check is the output of imx-uart.2 at its connector on the board. And we know that you have a good serial link between the host PC and /dev/ttymxc2, the serial console. I tap this cat /proc/tty/driver/IMX-uart adn this is the output: 0: uart:IMX mmio:0x02020000 irq:58 tx:0 rx:0 DSR|CDġ: uart:IMX mmio:0x021E8000 irq:59 tx:12075 rx:358 RTS|DTR|DSR|CDĢ: uart:IMX mmio:0x021EC000 irq:60 tx:0 rx:0 DSR|CDīased on the positive results of the /proc/tty/driver/IMX-uart tests and the garbage data received, it seems safe to assume that Linux on your ARM board is sending output when you issue the shell command echo hello > /dev/ttymxc2. dev/console /dev/console 5 1 system:console Output of /proc/tty/driver /dev/tty /dev/tty 5 0 system:/dev/tty Imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX Imx-uart.1: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMXĬonsole enabled, bootconsole disabled Imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX (UserDef),6m(Kernel)ro,-(TargetFS) gpmi_debug_init enable_wait_mode=off ubi.mtd=TargetFS root=ubi0:rootfs rootfstype=ubifs rootwait rw Output of dmesg | grep tty: Kernel command line: noinitrd loglevel=7 no_console_suspend console=ttymxc1,115200įec_mac=00:05:51:07:B3:B5 mtdparts=gpmi- nand:512k(NBoot)ro,2m(UBoot)ro,256k(UBootEnv),256k So I was investigated and I red that I have to set somenthing like this: setserial /dev/ttymxc2 uart 16550AĪnd this is the output: setserial: can't set serial info: Invalid argumentīut I am not sure that this is the problem, because the ttymxc1 port is also undefined and I can see the ARM output very nice, so I am very loss and I hope somen can help me. dev/ttymxc0, UART: undefined, Port: 0x0000, IRQ: 58 dev/ttymxc2, UART: undefined, Port: 0x0000, IRQ: 60 Isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprtĪnd I do not have idea that which param can be changed, I am using in the terminal program the 115200 8n1 no Handshaking configuration in both windows.Īlso when I execute this setserial /dev/ttymxc2 -v autoconfig ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff Intr = ^C quit = ^\ erase = ^? kill = ^U eof = ^D eol = Isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt Opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts Werase = ^W lnext = ^V flush = ^O min = 1 time = 0 Intr = ^C quit = ^\ erase = ^? kill = ^U eof = ^D eol = ^J Įol2 = swtch = start = ^Q stop = ^S susp = ^Z rprnt = ^R I get all the params of both serial ports and it is the output: stty -a -F /dev/ttymxc1 Once I did that and I tried to send again the same echo, appear this: ©::*ë so, somenthig was changing. I was reading and I found out that it usually is a baud rate problem, so I change the baud rate of the "ttymxc2" to 115200 like the "ttymxc1" both with the same speed. When I executed it somenthing appear, somenthing like this : "". Now in one of the windows I have the ARM console (this is the ttymxc1 serial port) in which I write for example "echo hello > /dev/ttymxc2" (the ttymxc2 is the other port in the other windows). What I do is open two windows of terminal program, and I connect with the respectives serial port, until here everything ok. I have two cable connected from my ARM to the USB of my computer. The thing is that I am using program called terminal in windows which I use for see the output. I am trying to make a serial ports comunication in an ARM (I am working with Linux).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |