Serial port problems (Was: Win2k (cygwin) Kannel CVS - COM Port Access)

"Oded Arbel" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
 
Hi list !
 
I found out how to get the AT2 module to successfuly open the serial ports after a boot. it appears that some of the setting of the serial lines must be changed, and that what minicom (the terminal software I'm using) is doing. on linux I used stty to check the setting of the serial line before and after minicom has opened it. 
by using stty again to write those parameters to the serial port, I have been able to duplicate what minicom is doing to get the serial lines working. this is usable in start up scripts, but I would really like to get that functionality into the AT2 code. unfortunatly, due to circumstences beyond my control, I will not have time to do this before the end of next month. 
 
Anyway, here's the settings stty displays when the serial line is properly configured (for our wavecom modems - other modems will require a different speed setting, and hopfully nothing else) :
 
speed 9600 baud; line = 0;
min = 1; time = 5;
ignbrk -brkint -icrnl -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
 
to easily setup the serial line in a script, you can use the non-human readable for of this display and give it to stty, like this :
 
stty -F /dev/tts/0 1:0:800008bd:0:3:1c:7f:15:4:5:1:0:11:13:1a:0:12:f:17:16:0:0:2f:0:0:0:0:0:0:0:0:0:0:0:0:0

to set serial port 0 (COM1) on a linux machine with devfs. I don't know how this relates to windows/cygwin, but I'm pretty sure that it will work on any unix system (that has stty).
 
Good luck !
 
--
Oded Arbel
m-Wise Mobile Solutions
 
[email protected]
Mobile: +972-67-340014
Tel: +972-9-9581711 (ext: 116)
 
::..
Judy: "Not too hot. Extra chocolate. Shaken, not stirred."
 -- from 'The Santa Clause'


----- Original Message ----- 
From: Troy Kelly <mailto:[email protected]>  
To: [email protected] 
Sent: Thursday, June 20, 2002 5:00 AM
Subject: Win2k (cygwin) Kannel CVS - COM Port Access

Hi,
 
Is anybody aware if kannel uses some non-standard way of talking to com ports?
 
Kannel is locking up when opening the modem - which I can speak to fine with a terminal program.
 
I am not sure why this is so - the com ports are 'usb to serial' cables - and as I said work fine in native 2000, but kannel can't seem to talk to them.
 
While kannel is locked in this state (See below) I can not open the port with the terminal program - so kannel is obviously at least grabbing the port - just not sure what is going on after that.
 

Regards,
Troy Kelly
WebCentral Pty Ltd
+61-7-3249-2500
1800-800-099
 
---LOG---
2002-06-20 02:53:38 [0] INFO: Added logfile `e:/progra~1/kannel/log/core.log' with level `0'.
2002-06-20 02:53:38 [0] INFO: ----------------------------------------
2002-06-20 02:53:38 [0] INFO: Kannel bearerbox II version cvs- starting
2002-06-20 02:53:38 [0] INFO: Started access logfile `e:/progra~1/kannel/log/access.log'.
2002-06-20 02:53:38 [0] DEBUG: Started thread 1 (gw/bb_store.c:store_cleanup)
2002-06-20 02:53:38 [0] DEBUG: HTTP: Opening server at port 13000.
2002-06-20 02:53:38 [0] DEBUG: Started thread 2 (gwlib/fdset.c:poller)
2002-06-20 02:53:38 [0] DEBUG: Started thread 3 (gwlib/http.c:server_thread)
2002-06-20 02:53:38 [0] DEBUG: Started thread 4 (gw/bb_http.c:httpadmin_run)
2002-06-20 02:53:38 [0] DEBUG: starting smsbox connection module
2002-06-20 02:53:38 [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
2002-06-20 02:53:38 [0] INFO: AT2[com10]: configuration doesn't show modemtype. will autodetect
2002-06-20 02:53:38 [0] DEBUG: Started thread 6 (gw/smsc_at2.c:at2_device_thread)
2002-06-20 02:53:38 [6] DEBUG: AT2[com10]: detecting modem type
2002-06-20 02:53:38 [6] INFO: AT2[com10]: opening device
2002-06-20 02:53:38 [6] DEBUG: AT2[com10]: device opened
2002-06-20 02:53:38 [7] DEBUG: sms_router: time to sleep
2002-06-20 02:53:38 [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)
2002-06-20 02:53:38 [0] INFO: Loading store file e:/progra~1/kannel/store/store.log
2002-06-20 02:53:38 [0] INFO: Store-file size 3016, starting to unpack
2002-06-20 02:53:38 [0] INFO: Retrieved 7 messages, non-acknowledged messages: 7
2002-06-20 02:53:38 [0] INFO: MAIN: Start-up done, entering mainloop
2002-06-20 02:53:38 [0] DEBUG: AT2[com10]: start called
2002-06-20 02:53:38 [7] DEBUG: sms_router: list_len = 7
2002-06-20 02:53:38 [7] DEBUG: sms_router: time to sleep
2002-06-20 02:53:38 [6] INFO: AT2[com10]: speed set to 9600
2002-06-20 02:53:38 [6] DEBUG: AT2[com10]: --> ^M
--END LOG--
 
---START CONF---
group = smsc
smsc = at2
modemtype = auto
device = com10
speed = 9600
pin = 0000
retry = 1
keepalive = 90
--END CONF--

-----Original Message-----
From: Patrick Mignott [mailto:[email protected]]
Sent: Thursday, June 20, 2002 5:09 AM
To: [email protected]
Subject: kill app?



hi all, i am currently running kannel but i am looking for the "killer app(s)" can any on help?  revenue sharing available
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.