Yep, I've got stty. I�ve read the whole man page and assumed I have to use is like this:

# stty -f /dev/phone
speed 9600 baud;
lflags: -icanon -isig -iexten -echo
iflags: -icrnl -ixon -ixany -imaxbel -brkint
oflags: -opost -onlcr -oxtabs
cflags: cs8 -parenb crtscts

I also tried with "stty -f /dev/tty.Palladio\ USB\ DataCable002" (The real device, not the symlink) and got exactly the same results, as expected.

To be honest, I'm somewhat fluent on regular terminal settings (line speed, parity, data bits, stop bits, flow control) but I don�t even hava a clue about the 10ths of options stty allows me to set. I don't know how kannel sets the connection, if it expects for the line being setupbefore or if sets all the parameters internally.

What I did with ZTerm was to connect to the device and send some AT commands. The phone responded and reacted as expected (returned "OK" on AT, AT&F, ATE0, and dialed out whith AT123456), so it seems the cable is working.

Mac OS X is heavily based on BSD, so you would expect a somewhat similar behaviour.

Thank you for your insights.

At 07:41 27/03/2004, you wrote:
Hi,

I don't know Mac OSX but errorcode #35 often means the write failed because all the written characters
don't fit in the alloated buffer. This can in turn indicate that all signals expeced on the cable not is there.
I don't know ZTerm (or kannel SMS-handling) but my guess is the ZTerm does set up the device
to ignore some missing signals.You can check this out with the command stty if it is avaiable on OSX


/ Hakan


Alejandro Guerrieri wrote:


Hi All,

I am trying to connect my Siemens C60 as a SMSC on Kannel 1.2.1

I am using a Palladio USB Datacable to connect the phone to the Mac.

I am using Kannel 1.2.1 compiled on Mac OSX.

I�ve tried the phone with a couple of Mac OSX softwares and it seems to work ok (I�ve sent SMS and downloaded my address book). I connected to the phone using ZTerm (A serial terminal emulator for Mac) and it responded to my "AT" commands flawlessly, it even dialed out, so it seems the hardware is working.

But, when I try to connect using kannel, I get connection errores. The "AT" commands seems to return empty.

I've tried using the "at" and the "at2" smsc, changing the modem models on "at" (siemens, nokiaphone, etc).
I've tried changing the serial line speed.
I've tried changing the device. My cable originally placed a device named "/dev/tty.Palladio USB DataCable002", so I�ve tried:
device = "/dev/tty.Palladio USB DataCable002"
device = /dev/tty.Palladio USB DataCable002
device = /dev/tty.Palladio\ USB\ DataCable002


and even made a symlink from /dev/tty.Palladio USB DataCable002 to /dev/phone to check if it was a problem related to the file's containing spaces.

I received somewhat similar errors each time.

Here is some logfile data:

Using AT2:

2004-03-27 03:59:02 [0] DEBUG: AT2[/dev/phone]: start called
2004-03-27 03:59:02 [6] DEBUG: sms_router: list_len = 0
2004-03-27 03:59:03 [5] DEBUG: AT2[/dev/phone]: device opened
2004-03-27 03:59:03 [5] INFO: AT2[/dev/phone]: speed set to 9600
2004-03-27 03:59:03 [5] DEBUG: AT2[/dev/phone]: --> ^M
2004-03-27 03:59:05 [5] DEBUG: AT2[/dev/phone]: write failed with errno 35
2004-03-27 03:59:06 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function)
2004-03-27 03:59:06 [7] INFO: Client connected from <127.0.0.1>
2004-03-27 03:59:06 [7] DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender)
2004-03-27 03:59:07 [5] DEBUG: AT2[/dev/phone]: --> AT^M
2004-03-27 03:59:10 [5] DEBUG: AT2[/dev/phone]: write failed with errno 35
2004-03-27 03:59:14 [5] DEBUG: AT2[/dev/phone]: --> AT&F^M
2004-03-27 03:59:17 [5] DEBUG: AT2[/dev/phone]: write failed with errno 35
2004-03-27 03:59:21 [5] DEBUG: Thread 5 (gw/smsc/smsc_at2.c:at2_device_thread) terminates.


Using AT with nokiaphone:

2004-03-27 03:59:29 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2004-03-27 03:59:30 [0] DEBUG: AT: Command: AT
2004-03-27 03:59:32 [4] DEBUG: Started thread 5 (gw/bb_boxc.c:function)
2004-03-27 03:59:32 [5] INFO: Client connected from <127.0.0.1>
2004-03-27 03:59:32 [5] DEBUG: Started thread 6 (gw/bb_boxc.c:boxc_sender)
2004-03-27 03:59:41 [0] DEBUG: Read from modem: ''
2004-03-27 03:59:41 [0] DEBUG: AT: Command: AT&F
2004-03-27 03:59:51 [0] DEBUG: Read from modem: ''
2004-03-27 03:59:51 [0] DEBUG: AT: Command: AT
2004-03-27 04:00:01 [0] DEBUG: Read from modem: ''
2004-03-27 04:00:01 [0] DEBUG: AT: Command: ATE0
2004-03-27 04:00:11 [0] DEBUG: Read from modem: ''
2004-03-27 04:00:11 [0] ERROR: Failed to create Smsc wrapper
2004-03-27 04:00:11 [0] PANIC: Cannot start with SMSC connection failing

Any hints?

Thank you in advance,
--
Alejandro Guerrieri
Magicom
[EMAIL PROTECTED]







-- Alejandro Guerrieri Magicom [EMAIL PROTECTED]






Reply via email to