Hi to all, I had Kannel working with my mobile phone till last night when my machine crashed because of power fail. I rebooted the machine and the filesystem was checked and corrected, but now when i start Kannel again, with the same configurations and with the same mobile phone it does not work. Apparently kannel can not comunicate with the mobile phone. How do i test my serial ports? How do i check if they are working ok ? Thanks to all in advance. Joao Reis
Hi again I have tested the ttyS0 with the following commands: Changed to a virtual console <ALT-F2> cp /dev/ttyS0 /dev/tty Changed to another virtual console and executed the following command echo HELLO WORLD > /dev/ttyS0 and changed to the console where i have made a copy. It should appered in that console the word "HELLO WORLD" but nothing has appeared. Does this means that the serial port is not working ? What should i do to make it work ? João Reis wrote:
Hi to all,
I had Kannel working with my mobile phone till last night when my machine crashed because of power fail.
I rebooted the machine and the filesystem was checked and corrected, but now when i start Kannel again, with the same configurations and with the same mobile phone it does not work. Apparently kannel can not comunicate with the mobile phone.
How do i test my serial ports? How do i check if they are working ok ?
Thanks to all in advance.
Joao Reis
-- \|/ "Do or do not. There is no try" - Yoda \|/ |==============================================| | 2000Comp - Consultoria e Informática, Lda | | Tel: +351 22 941 99 32 | \|/ | Fax: +351 22 941 99 34 | \|/ O | www: http://www.2000comp.pt | O -|--| |--|- \| | João Reis | |/ / \ |==============================================| / \ ==========================================================
Tue, 27 Jan 2004, by joao.reis@2000comp.pt:
João Reis wrote:
Hi to all,
I had Kannel working with my mobile phone till last night when my machine crashed because of power fail.
I rebooted the machine and the filesystem was checked and corrected, but now when i start Kannel again, with the same configurations and with the same mobile phone it does not work. Apparently kannel can not comunicate with the mobile phone.
How do i test my serial ports? How do i check if they are working ok ?
I have tested the ttyS0 with the following commands:
Changed to a virtual console <ALT-F2>
cp /dev/ttyS0 /dev/tty
Which does nothing, but make a copy of the serial device.
Changed to another virtual console and executed the following command
echo HELLO WORLD > /dev/ttyS0
Which sends out some words to comm port 0
and changed to the console where i have made a copy. It should appered in that console the word "HELLO WORLD"
There's no relationship between a /dev/tty[n] and a serial port however, so you won't see anything back in a console.
but nothing has appeared.
Does this means that the serial port is not working ?
No, it means you test is flawed.
What should i do to make it work ?
It involves some hardware. Either get a external modem, serial terminal, printer with serial I/F or something else that speaks serialeeze, and test the port with that device, or take a DB9S to DB9S serial cable, and connect sockets 2 and 3 together on the tail end (stick the other end in the port in question of course). Now fire up minicom, seyon or another comm program, select the right port, no hardware handshake and see if what you type echo's back. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 27N , 4 29 45E. SUSE 8.2 Kernel k_athlon-2.4.20 See headers for PGP/GPG info.
participants (2)
-
João Reis
-
Theo v. Werkhoven