no response to AT

Hi

I am connecting my Nokia 6080 to Asterisk 1.4.21.2~dfsg-3ubuntu2.1. The mobile phone support AT command set and I ve connected the hands-free leads to microphone and audio-in of the computers sound card.

The mobile phone work fine with the AT command given by gammu (www.gammu.org). When i use celliax driver i get "no response to AT"

The debug log (generated at debug 100 is )

asterisk1*CLI> load chan_celliax.so
The 'load' command is deprecated and will be removed in a future release. Please use 'module load' instead.
[Jan 17 18:19:43] DEBUG[3693]: channel.c:520 ast_channel_register: Registered handler for 'Celliax' (Celliax, Audio-Serial Driver)
[Jan 17 18:19:43] DEBUG[3693]: config.c:893 config_text_file_load: Parsing /etc/asterisk/celliax.conf
[Jan 17 18:19:43] NOTICE[3693]: chan_celliax.c:1762 celliax_mkif: rev [(nil)|b6178b90][NOTICE 1762 ][line0 ][-1, 0, 0] DEBUG_AT activated.
[Jan 17 18:19:43] NOTICE[3693]: chan_celliax.c:1784 celliax_mkif: rev [(nil)|b6178b90][NOTICE 1784 ][line0 ][-1, 0, 0] DEBUG_SERIAL activated.
[Jan 17 18:19:43] NOTICE[3693]: chan_celliax.c:1795 celliax_mkif: rev [(nil)|b6178b90][NOTICE 1795 ][line0 ][-1, 0, 0] DEBUG_SOUND activated.
[Jan 17 18:19:43] NOTICE[3693]: chan_celliax.c:1806 celliax_mkif: rev [(nil)|b6178b90][NOTICE 1806 ][line0 ][-1, 0, 0] DEBUG_PBX activated.
[Jan 17 18:19:43] NOTICE[3693]: chan_celliax.c:1817 celliax_mkif: rev [(nil)|b6178b90][NOTICE 1817 ][line0 ][-1, 0, 0] DEBUG_CALL activated.
[Jan 17 18:19:43] DEBUG[3693]: chan_celliax.c:1856 celliax_mkif: rev [(nil)|b6178b90][DEBUG_SOUND 1856 ][line0 ][-1, 0, 0] playback_boost is 512.000000
[Jan 17 18:19:43] DEBUG[3693]: chan_celliax.c:1857 celliax_mkif: rev [(nil)|b6178b90][DEBUG_SOUND 1857 ][line0 ][-1, 0, 0] capture_boost is 512.000000
[Jan 17 18:19:43] DEBUG[3693]: chan_celliax.c:2677 celliax_serial_init: rev [(nil)|b6178b90][DEBUG_SERIAL 2677 ][line0 ][-1, 0, 0] Syncing Serial
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2632 celliax_serial_config_AT: rev [(nil)|b6178b90][DEBUG_AT 2632 ][line0 ][-1, 0, 0] sleeping for 500000 usec
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2547 celliax_serial_write_AT_expect1: rev [(nil)|b6178b90][DEBUG_AT 2547 ][line0 ][-1, 0, 0] sending: atciapa, expecting: OK
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2396 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2396 ][line0 ][-1, 0, 0] sent data... (a)
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2396 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2396 ][line0 ][-1, 0, 0] sent data... (t)
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2396 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2396 ][line0 ][-1, 0, 0] sent data... (c)
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2396 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2396 ][line0 ][-1, 0, 0] sent data... (i)
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2396 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2396 ][line0 ][-1, 0, 0] sent data... (a)
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2396 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2396 ][line0 ][-1, 0, 0] sent data... (p)
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2396 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2396 ][line0 ][-1, 0, 0] sent data... (a)
[Jan 17 18:19:43] DEBUG[3693]: celliax_additional.c:2426 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2426 ][line0 ][-1, 0, 0] sent (carriage return)
[Jan 17 18:19:46] DEBUG[3693]: celliax_additional.c:2643 celliax_serial_config_AT: rev [(nil)|b6178b90][DEBUG_AT 2643 ][line0 ][-1, 0, 0] atciapa does not get OK from the phone. Continuing.
[Jan 17 18:19:46] DEBUG[3693]: celliax_additional.c:2694 celliax_serial_config_AT: rev [(nil)|b6178b90][DEBUG_AT 2694 ][line0 ][-1, 0, 0] sleeping for 500000 usec
[Jan 17 18:19:46] DEBUG[3693]: celliax_additional.c:2501 celliax_serial_write_AT_ack: rev [(nil)|b6178b90][DEBUG_AT 2501 ][line0 ][-1, 0, 0] sending: AT
[Jan 17 18:19:46] DEBUG[3693]: celliax_additional.c:2396 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2396 ][line0 ][-1, 0, 0] sent data... (A)
[Jan 17 18:19:46] DEBUG[3693]: celliax_additional.c:2396 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2396 ][line0 ][-1, 0, 0] sent data... (T)
[Jan 17 18:19:46] DEBUG[3693]: celliax_additional.c:2426 celliax_serial_write_AT: rev [(nil)|b6178b90][DEBUG_AT 2426 ][line0 ][-1, 0, 0] sent (carriage return)
[Jan 17 18:19:49] ERROR[3693]: celliax_additional.c:2701 celliax_serial_config_AT: rev [(nil)|b6178b90][ERROR 2701 ][line0 ][-1, 0, 0] no response to AT
[Jan 17 18:19:49] ERROR[3693]: chan_celliax.c:2002 celliax_mkif: rev [(nil)|b6178b90][ERROR 2002 ][line0 ][-1, 0, 0] celliax_serial_config failed
[Jan 17 18:19:49] ERROR[3693]: chan_celliax.c:1350 load_module: rev [(nil)|b6178b90][ERROR 1350 ][none ][-1,-1,-1] Unable to create channel Celliax from celliax.conf category '[line0]'
[Jan 17 18:19:49] DEBUG[3693]: channel.c:535 ast_channel_unregister: Unregistering channel type 'Celliax'
[Jan 17 18:19:49] DEBUG[3693]: chan_celliax.c:1355 load_module: rev [(nil)|b6178b90][DEBUG_PBX 1355 ][none ][-1,-1,-1] EXITING FUNC

In celliax.conf, I ve changed the "control_device_name" to /dev/ttyS0
Contents of celliax.conf is
;;
;;
; Celliax Asterisk Driver
;
; Configuration file
; lines beginning with semicolon (" are ignored (commented out)
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; The first interface (named line0)
[line0]
;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; general settings, valid on all platforms
;
;
; Default language
;
language=en
;
; Default context (is overridden with @context syntax)
;
context=default
;
; Default extension (in extensions.conf) where incoming calls land
;
extension=s
;
;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; Debugging settings, valid globally for all interfaces on all platforms
;
; the debug values are global for all the interfaces.
;
; default is no celliax debugging output, you **have** to activate debugging here to obtain debugging from celliax
;
; To see the debugging output you have to "set debug 100" from the Asterisk CLI or launch
; Asterisk with -ddddddddddd option, and have the logger.conf file activating debug info for console and messages
;
; You can activate each of the following separately, but you can't disactivate. Eg: debug_at=no does not subtract debug_at from debug_all
; debug_all activate all possible debugging info
;
;debug_all=yes
debug_at=yes
;debug_fbus2=yes
debug_serial=yes
debug_pbx=yes
debug_sound=yes
;debug_locks=yes
debug_call=yes
;debug_monitorlocks=yes
;debug_cvm=yes

;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; This is the program that will receive in stdin the incoming SMSs
sms_receiving_program=/usr/lib/asterisk/ciapalo

;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; serial settings, valid for all platforms
;
;control_device_protocol can be AT or FBUS2 or NO_SERIAL (with NO_SERIAL the speed and name of the port are ignored)
control_device_protocol=at

;speed of the serial port
control_device_speed=115200

;name of the serial port device
control_device_name=/dev/ttyS0 ; this is a Celliax Official Device, recognized as a modem by Linux
;control_device_name=/dev/ttyUSB0 ; this is an alternative form of a Celliax Official Device, recognized as a modem by Linux

;watch the soundcard for noise (ring), because the serial port do not tell us about incoming calls (eg 3310nokia), NO_SERIAL protocol watch for acoustic ring in any case
need_acoustic_ring=0

;audio noise threshold beyond which we declare there is a ring (512 is default, put it to 1024 or 2048 if you have false positive), ignored if not watching for ring
dsp_silence_threshold=1024

;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; audio boost settings, valid for all platforms, to compensate for different soundcard/phone input/output signal levels
; tweak it if you get horrible (or not hearable) sound
;
;boost can be positive or negative (-40 to +40) in db
;experiment to find which values are best for your soundcard
playback_boost=0 ;
capture_boost=0 ;

;;;;;;;;;;;;;;;;;;;;;;;;;;;
; which audio device to use
;;;;;;;;;;;;;;;;;;;;;;;;;;;

;names of the sound devices in linux
;if you don't use skype on this interface (eg don't need to share the audio device with other applications while celliax is running), use the plughw:n devices (plughw:0 is the first, plughw:1 is the second soundcard, etc). They have the best latency
;if you use skype on this interface use the default:n devices (default:0 is the first, default:1 is the second soundcard, etc). They have worst latency, but you can share them

alsa_capture_device_name=plughw:1
alsa_playback_device_name=plughw:1

alsa_period_size=160
alsa_periods_in_buffer=4

;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; at "modem" commands settings for this interface (if controldevice_protocol is not AT they are ignored)
;
;what the modem is expecting in the part of the dial command before the number to be dialed (eg: ATD)
;at_dial_pre_number=AT+CKPD="EEE
at_dial_pre_number=ATD
;what the modem is expecting in the part of the dial command after the number to be dialed. If you want it to wait for a semicolon (;), just comment out the followin line. Wait for semicolon is the default
;at_dial_post_number=S"
;what the modem will answer after succesful execution of the dial command
at_dial_expect=OK

;command to hangup the current call
;at_hangup=AT+CKPD="EEE"
at_hangup=ATH
;what the modem will answer after succesful execution of the hangup command
at_hangup_expect=OK

;command to answer an incoming call
at_answer=ATA
;what the modem will answer after succesful execution of the answer command
at_answer_expect=OK

;pause right after serial port opening, before any command is sent, in usecs (1million usec= 1sec)
at_initial_pause=500000
;custom commands to be sent after the initial pause and before the "built in" initialization commands, and what the modem is expected to send as reply
;the first empty string stop the preinit sending
at_preinit_1=atciapa ; nonsense entry, just to show the preinit
at_preinit_1_expect=OK
at_preinit_2=
at_preinit_2_expect=
at_preinit_3=
at_preinit_3_expect=
at_preinit_4=
at_preinit_4_expect=
at_preinit_5=
at_preinit_5_expect=
;pause right after the custom preinit commands, before any "built in" command is sent, in usecs (1million usec= 1sec)
at_after_preinit_pause=500000
;custom commands to be sent after the "built in" initialization commands, and what the modem is expected to send as reply
;the first empty string stop the postinit sending
;at_postinit_1=atcucu ; nonsense entry, just to show the postinit
at_postinit_1=at+cmic=0,9 ; modem's microphone sensitivity (our spk)
at_postinit_1_expect=OK
at_postinit_2=AT+CKPD="EEE" ;send three "end" buttonpress, to have the phone in a sane state, ready to dialing with furter CKPDs ***THIS IS IMPORTANT, needed on c650***
at_postinit_2_expect=OK
at_postinit_3=AT+CSSN=1,0
at_postinit_3_expect=OK
at_postinit_4=at+sidet=0 ; no sidetone in modem, please
at_postinit_4_expect=OK
at_postinit_5=at+clvl=99 ; modem's speaker level, out mic
at_postinit_5_expect=OK

;what command to query the battery status, and what the modem is expected to send as reply
at_query_battchg=AT+CBC
at_query_battchg_expect=OK
;what command to query the signal status, and what the modem is expected to send as reply
at_query_signal=AT+CSQ
at_query_signal_expect=OK

;what command to send a DTMF
at_send_dtmf=AT+VTS

;the modem will send us the following messages to signal that the visual indicators on the phone has changed because of events (without us to ask for them), loosely based on ETSI standard (see CIND/CIEV/CMER in ETSI). Variable by manufacturer and phone model
; no service
at_indicator_noservice_string=+CIEV: 2,0
; no signal
at_indicator_nosignal_string=+CIEV: 5,0
; low signal
at_indicator_lowsignal_string=+CIEV: 5,1
; low battery
at_indicator_lowbattchg_string=+CIEV: 0,1
; no battery battery
at_indicator_nobattchg_string=+CIEV: 0,0
; call is up
at_indicator_callactive_string=+CIEV: 3,1
; call is down
at_indicator_nocallactive_string=+CIEV: 3,0
; call is no more in process
at_indicator_nocallsetup_string=+CIEV: 6,0
; call incoming is in process
at_indicator_callsetupincoming_string=+CIEV: 6,1
; call outgoing is in process
at_indicator_callsetupoutgoing_string=+CIEV: 6,2
; remote party is ringing because of our call outgoing
at_indicator_callsetupremoteringing_string=+CIEV: 6,3

;call processing unsolicited messages, proprietary for each phone manufacturer
;the modem will send us the following mesage to signal that the line is idle (eg. after an outgoing call has failed, or after hangup)
at_call_idle=+MCST: 1
;the modem will send us the following mesage to signal that there is an incoming voice call
at_call_incoming=+MCST: 2
;the modem will send us the following mesage to signal that there is an active call (eg. the remote party has answered us, or we answered them)
;at_call_active=+MCST: 3
at_call_active=+CSSI: 7
;the modem will send us the following mesage to signal that our outgoing call has failed
at_call_failed=+MCST: 65
;the modem will send us the following mesage to signal that our outgoing call is in the calling phase
;at_call_calling=+MCST: 64
at_call_calling=+CSSI: 1

aplay -l | grep card output is
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 0: Intel ICH [Intel 82801DB-ICH4]
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 4: Intel ICH - IEC958 [Intel 82801DB-ICH4 - IEC958]

lsmod|grep snd output is
snd_intel8x0 37532 3
snd_ac97_codec 112292 1 snd_intel8x0
ac97_bus 9856 1 snd_ac97_codec
snd_pcm_oss 46336 0
snd_mixer_oss 22656 1 snd_pcm_oss
snd_pcm 82948 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_seq_dummy 10756 0
snd_seq_oss 37760 0
snd_seq_midi 14336 0
snd_rawmidi 29696 1 snd_seq_midi
snd_seq_midi_event 15104 2 snd_seq_oss,snd_seq_midi
snd_seq 56880 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 29704 2 snd_pcm,snd_seq
snd_seq_device 14988 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 62628 16 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 15200 1 snd
snd_page_alloc 16904 2 snd_intel8x0,snd_pcm

uname -a output is
Linux asterisk1 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux

ls: cannot access /dev/ttyA*: No such file or directory
ls: cannot access /dev/ttyU*: No such file or directory

ls -l /dev/snd* output is
lrwxrwxrwx 1 root root 24 2010-01-17 18:07 /dev/sndstat -> /proc/asound/oss/sndstat

/dev/snd:
total 0
crw-rw----+ 1 root audio 116, 10 2010-01-17 18:07 controlC0
crw-rw----+ 1 root audio 116, 9 2010-01-17 18:08 pcmC0D0c
crw-rw----+ 1 root audio 116, 8 2010-01-17 18:08 pcmC0D0p
crw-rw----+ 1 root audio 116, 7 2010-01-17 18:07 pcmC0D1c
crw-rw----+ 1 root audio 116, 6 2010-01-17 18:07 pcmC0D2c
crw-rw----+ 1 root audio 116, 5 2010-01-17 18:07 pcmC0D3c
crw-rw----+ 1 root audio 116, 4 2010-01-17 18:07 pcmC0D4p
crw-rw----+ 1 root audio 116, 3 2010-01-17 18:07 seq
crw-rw----+ 1 root audio 116, 2 2010-01-17 18:07 timer

ls -l /dev/ttyS*out put is
crw-rw---- 1 root dialout 4, 64 2010-01-17 18:19 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 2010-01-17 18:07 /dev/ttyS1
crw-rw---- 1 root dialout 4, 66 2010-01-17 18:07 /dev/ttyS2
crw-rw---- 1 root dialout 4, 67 2010-01-17 18:07 /dev/ttyS3

I am attaching gammu detailed log for reference
[Gammu - 1.22.1 built 17:44:42 Dec 22 2008 using GCC 4.3]
[Connection - "at115200"]
[Connection index - 0]
[Model type - ""]
[Device - "/dev/ttyS0"]
[Runing on - Linux, kernel 2.6.28-11-generic (#42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009)]
Serial device: DTR is up, RTS is up, CAR is down, CTS is down
Setting speed to 115200
[Module - "auto"]
Escaping SMS mode
SENDING frametype 0x00/length 0x02/2
1B |0D ..
Sending simple AT command to wake up some devices
SENDING frametype 0x00/length 0x03/3
41A|54T|0D AT.
1 "AT"
2 "OK"
RECEIVED frametype 0x00/length 0x09/9
41A|54T|0D |0D |0A |4FO|4BK|0D |0A AT...OK..
Enabling echo
SENDING frametype 0x00/length 0x05/5
41A|54T|45E|311|0D ATE1.
1 "ATE1"
2 "OK"
RECEIVED frametype 0x00/length 0x0B/11
41A|54T|45E|311|0D |0D |0A |4FO|4BK|0D |0A ATE1...OK..
Trying Motorola mode switch
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D AT+MODE=2.
1 "AT+MODE=2"
2 "ERROR"
RECEIVED frametype 0x00/length 0x13/19
41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D |0D |0A |45E|52R|52R|4FO AT+MODE=2...ERRO
52R|0D |0A R..
Seems not to be supported
Enabling CME errors
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D AT+CMEE=1.
1 "AT+CMEE=1"
2 "OK"
RECEIVED frametype 0x00/length 0x10/16
41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D |0D |0A |4FO|4BK|0D |0A AT+CMEE=1...OK..
SENDING frametype 0x00/length 0x09/9
41A|54T|2B+|43C|53S|43C|53S|3F?|0D AT+CSCS?.
1 "AT+CSCS?"
2 "+CSCS: "HEX""
3 "OK"
RECEIVED frametype 0x00/length 0x1F/31
41A|54T|2B+|43C|53S|43C|53S|3F?|0D |0D |0A |2B+|43C|53S|43C|53S AT+CSCS?...+CSCS
3A:|20 |22"|48H|45E|58X|22"|0D |0A |0D |0A |4FO|4BK|0D |0A : "HEX"....OK..
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|49I|0D AT+CGMI.
1 "AT+CGMI"
2 "Nokia"
3 "OK"
RECEIVED frametype 0x00/length 0x17/23
41A|54T|2B+|43C|47G|4DM|49I|0D |0D |0A |4EN|6Fo|6Bk|69i|61a|0D AT+CGMI...Nokia.
0A |0D |0A |4FO|4BK|0D |0A ...OK..
Manufacturer info received
HINT: Consider using Nokia specific protocol instead of generic AT.
[Manufacturer: Nokia]
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D AT+CSCS=?.
1 "AT+CSCS=?"
2 "+CSCS: ("UCS2","GSM","PCCP437","PCDN","IRA","8859-1","HEX")"
3 "OK"
RECEIVED frametype 0x00/length 0x4F/79
41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D |0D |0A |2B+|43C|53S|43C AT+CSCS=?...+CSC
53S|3A:|20 |28(|22"|55U|43C|53S|322|22"|2C,|22"|47G|53S|4DM|22" S: ("UCS2","GSM"
2C,|22"|50P|43C|43C|50P|344|333|377|22"|2C,|22"|50P|43C|44D|4EN ,"PCCP437","PCDN
22"|2C,|22"|49I|52R|41A|22"|2C,|22"|388|388|355|399|2D-|311|22" ","IRA","8859-1"
2C,|22"|48H|45E|58X|22"|29)|0D |0A |0D |0A |4FO|4BK|0D |0A ,"HEX")....OK..
Chosen HEX as normal charset
Chosen UCS2 as unicode charset
Getting model
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|4DM|0D AT+CGMM.
1 "AT+CGMM"
2 "Nokia 6080"
3 "OK"
RECEIVED frametype 0x00/length 0x1C/28
41A|54T|2B+|43C|47G|4DM|4DM|0D |0D |0A |4EN|6Fo|6Bk|69i|61a|20 AT+CGMM...Nokia
366|300|388|300|0D |0A |0D |0A |4FO|4BK|0D |0A 6080....OK..
Unknown model, but it should still work
[Model name: `Nokia 6080']
[Model data: `']
[Model data: `unknown']
[Connected model - "Nokia 6080"]
Checking for OBEX support
SENDING frametype 0x00/length 0x0B/11
41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D AT+CPROT=?.
1 "AT+CPROT=?"
2 "ERROR"
RECEIVED frametype 0x00/length 0x14/20
41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D |0D |0A |45E|52R|52R AT+CPROT=?...ERR
4FO|52R|0D |0A OR..
[Module - "A2D|iPAQ|at|M20|S25|MC35|TC35|C35i|S65|S300|5110|5130|5190|5210|6110|6130|6150|6190|6210|6250|6310|6310i|6510|7110|8210|8250|8290|8310|8
390|8850|8855|8890|8910|9110|9210"]
Escaping SMS mode
SENDING frametype 0x00/length 0x02/2
1B |0D ..
Sending simple AT command to wake up some devices
SENDING frametype 0x00/length 0x03/3
41A|54T|0D AT.
1 "AT"
2 "OK"
RECEIVED frametype 0x00/length 0x09/9
41A|54T|0D |0D |0A |4FO|4BK|0D |0A AT...OK..
Enabling echo
SENDING frametype 0x00/length 0x05/5
41A|54T|45E|311|0D ATE1.
1 "ATE1"
2 "OK"
RECEIVED frametype 0x00/length 0x0B/11
41A|54T|45E|311|0D |0D |0A |4FO|4BK|0D |0A ATE1...OK..
Trying Motorola mode switch
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D AT+MODE=2.
1 "AT+MODE=2"
2 "ERROR"
RECEIVED frametype 0x00/length 0x13/19
41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D |0D |0A |45E|52R|52R|4FO AT+MODE=2...ERRO
52R|0D |0A R..
Seems not to be supported
Enabling CME errors
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D AT+CMEE=1.
1 "AT+CMEE=1"
2 "OK"
RECEIVED frametype 0x00/length 0x10/16
41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D |0D |0A |4FO|4BK|0D |0A AT+CMEE=1...OK..
SENDING frametype 0x00/length 0x09/9
41A|54T|2B+|43C|53S|43C|53S|3F?|0D AT+CSCS?.
1 "AT+CSCS?"
2 "+CSCS: "HEX""
3 "OK"
RECEIVED frametype 0x00/length 0x1F/31
41A|54T|2B+|43C|53S|43C|53S|3F?|0D |0D |0A |2B+|43C|53S|43C|53S AT+CSCS?...+CSCS
3A:|20 |22"|48H|45E|58X|22"|0D |0A |0D |0A |4FO|4BK|0D |0A : "HEX"....OK..
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|49I|0D AT+CGMI.
1 "AT+CGMI"
2 "Nokia"
3 "OK"
RECEIVED frametype 0x00/length 0x17/23
41A|54T|2B+|43C|47G|4DM|49I|0D |0D |0A |4EN|6Fo|6Bk|69i|61a|0D AT+CGMI...Nokia.
0A |0D |0A |4FO|4BK|0D |0A ...OK..
Manufacturer info received
HINT: Consider using Nokia specific protocol instead of generic AT.
[Manufacturer: Nokia]
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D AT+CSCS=?.
1 "AT+CSCS=?"
2 "+CSCS: ("UCS2","GSM","PCCP437","PCDN","IRA","8859-1","HEX")"
3 "OK"
RECEIVED frametype 0x00/length 0x4F/79
41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D |0D |0A |2B+|43C|53S|43C AT+CSCS=?...+CSC
53S|3A:|20 |28(|22"|55U|43C|53S|322|22"|2C,|22"|47G|53S|4DM|22" S: ("UCS2","GSM"
2C,|22"|50P|43C|43C|50P|344|333|377|22"|2C,|22"|50P|43C|44D|4EN ,"PCCP437","PCDN
22"|2C,|22"|49I|52R|41A|22"|2C,|22"|388|388|355|399|2D-|311|22" ","IRA","8859-1"
2C,|22"|48H|45E|58X|22"|29)|0D |0A |0D |0A |4FO|4BK|0D |0A ,"HEX")....OK..
Chosen HEX as normal charset
Chosen UCS2 as unicode charset
Checking for OBEX support
SENDING frametype 0x00/length 0x0B/11
41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D AT+CPROT=?.
1 "AT+CPROT=?"
2 "ERROR"
RECEIVED frametype 0x00/length 0x14/20
41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D |0D |0A |45E|52R|52R AT+CPROT=?...ERR
4FO|52R|0D |0A OR..
Getting firmware versions
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|52R|0D AT+CGMR.
1 "AT+CGMR"
2 "V 04.22"
3 "24-05-07"
4 "RM-166"
5 "(c) Nokia. "
6 "OK"
RECEIVED frametype 0x00/length 0x42/66
41A|54T|2B+|43C|47G|4DM|52R|0D |0D |0A |56V|20 |300|344|2E.|322 AT+CGMR...V 04.2
322|0D |0A |322|344|2D-|300|355|2D-|300|377|0D |0A |52R|4DM|2D- 2..24-05-07..RM-
311|366|366|0D |0A |28(|63c|29)|20 |4EN|6Fo|6Bk|69i|61a|2E.|20 166..(c) Nokia.
20 |20 |20 |20 |20 |20 |20 |20 |20 |20 |0D |0A |0D |0A |4FO|4BK ....OK
0D |0A ..
Received firmware version: "V 04.22,24-05-07"
[Firmware version - "V 04.22,24-05-07"]
[Connected]
Entering GSM_GetManufacturer
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|49I|0D AT+CGMI.
1 "AT+CGMI"
2 "Nokia"
3 "OK"
RECEIVED frametype 0x00/length 0x17/23
41A|54T|2B+|43C|47G|4DM|49I|0D |0D |0A |4EN|6Fo|6Bk|69i|61a|0D AT+CGMI...Nokia.
0A |0D |0A |4FO|4BK|0D |0A ...OK..
Manufacturer info received
HINT: Consider using Nokia specific protocol instead of generic AT.
[Manufacturer: Nokia]
Leaving GSM_GetManufacturer
Entering GSM_GetModel
Getting model
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|4DM|0D AT+CGMM.
1 "AT+CGMM"
2 "Nokia 6080"
3 "OK"
RECEIVED frametype 0x00/length 0x1C/28
41A|54T|2B+|43C|47G|4DM|4DM|0D |0D |0A |4EN|6Fo|6Bk|69i|61a|20 AT+CGMM...Nokia
366|300|388|300|0D |0A |0D |0A |4FO|4BK|0D |0A 6080....OK..
Unknown model, but it should still work
[Model name: `Nokia 6080']
[Model data: `']
[Model data: `unknown']
[Connected model - "Nokia 6080"]
Leaving GSM_GetModel
Entering GSM_GetFirmware
Getting firmware versions
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|52R|0D AT+CGMR.
1 "AT+CGMR"
2 "V 04.22"
3 "24-05-07"
4 "RM-166"
5 "(c) Nokia. "
6 "OK"
RECEIVED frametype 0x00/length 0x42/66
41A|54T|2B+|43C|47G|4DM|52R|0D |0D |0A |56V|20 |300|344|2E.|322 AT+CGMR...V 04.2
322|0D |0A |322|344|2D-|300|355|2D-|300|377|0D |0A |52R|4DM|2D- 2..24-05-07..RM-
311|366|366|0D |0A |28(|63c|29)|20 |4EN|6Fo|6Bk|69i|61a|2E.|20 166..(c) Nokia.
20 |20 |20 |20 |20 |20 |20 |20 |20 |20 |0D |0A |0D |0A |4FO|4BK ....OK
0D |0A ..
Received firmware version: "V 04.22,24-05-07"
[Firmware version - "V 04.22,24-05-07"]
Leaving GSM_GetFirmware
Entering GSM_GetPPM
GSM_GetPPM failed with error NOTSUPPORTED[21]: Function not supported by phone.
Leaving GSM_GetPPM
Entering GSM_GetHardware
GSM_GetHardware failed with error NOTSUPPORTED[21]: Function not supported by phone.
Leaving GSM_GetHardware
Entering GSM_GetIMEI
Getting IMEI
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|53S|4EN|0D AT+CGSN.
1 "AT+CGSN"
2 "355505014344385"
3 "OK"
RECEIVED frametype 0x00/length 0x21/33
41A|54T|2B+|43C|47G|53S|4EN|0D |0D |0A |333|355|355|355|300|355 AT+CGSN...355505
300|311|344|333|344|344|333|388|355|0D |0A |0D |0A |4FO|4BK|0D 014344385....OK.
0A .
Received IMEI 355505014344385
Leaving GSM_GetIMEI
Entering GSM_GetOriginalIMEI
GSM_GetOriginalIMEI failed with error NOTSUPPORTED[21]: Function not supported by phone.
Leaving GSM_GetOriginalIMEI
Entering GSM_GetManufactureMonth
GSM_GetManufactureMonth failed with error NOTSUPPORTED[21]: Function not supported by phone.
Leaving GSM_GetManufactureMonth
Entering GSM_GetProductCode
GSM_GetProductCode failed with error NOTSUPPORTED[21]: Function not supported by phone.
Leaving GSM_GetProductCode
Entering GSM_GetSIMIMSI
Getting SIM IMSI
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|49I|4DM|49I|0D AT+CIMI.
1 "AT+CIMI"
2 "410071960045610"
3 "OK"
RECEIVED frametype 0x00/length 0x21/33
41A|54T|2B+|43C|49I|4DM|49I|0D |0D |0A |344|311|300|300|377|311 AT+CIMI...410071
399|366|300|300|344|355|366|311|300|0D |0A |0D |0A |4FO|4BK|0D 960045610....OK.
0A .
Received IMSI 410071960045610
Leaving GSM_GetSIMIMSI
[Terminating]
[Closing]

It may be a problem due to setting of serial port pin. gammu is using "Serial device: DTR is up, RTS is up, CAR is down, CTS is down"

peace
waqqas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

can you test with minicom?

Thanks for the very fine report, waqqas!

can you test if you have connection with the cellphone using minicom?

minicom test

You are welcome.
It works fine with minicom too...

My minicom settings are

A - Serial Device : /dev/ttyS0
B - Lockfile Location : /var/lock
C - Callin Program :
D - Callout Program :
E - Bps/Par/Bits : 115200 8N1
F - Hardware Flow Control : Yes
G - Software Flow Control : No

Example session is

Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Oct 24 2008, 06:37:44.
Port /dev/ttyS0

Press CTRL-A Z for help on special keys

AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
OK
AT
OK
AT+CGMM
Nokia 6080

OK
ATE1
OK
AT+CSCS?
+CSCS: "HEX"

OK
AT+CSCS=?
+CSCS: ("UCS2","GSM","PCCP437","PCDN","IRA","8859-1","HEX")

OK

RTS is up

This patch works for me. I ve added some comments that u can remove. Can appropriate option be added it celliax.conf ?

--- chan_celliax.c 2010-01-18 12:28:34.000000000 +0500
+++ chan_celliax.new.c 2010-01-18 12:27:25.000000000 +0500
@@ -2658,14 +2658,18 @@
unsigned int status = 0;
#ifndef __CYGWIN__
ioctl(fd, TIOCMGET, &status);
+ DEBUGA_SERIAL("DTR is %s\n", CELLIAX_P_LOG, status & TIOCM_DTR ? "up" : "down");
+ DEBUGA_SERIAL("RTS is %s\n", CELLIAX_P_LOG, status & TIOCM_RTS ? "up" : "down");
+ DEBUGA_SERIAL("CAR is %s\n", CELLIAX_P_LOG, status & TIOCM_CAR ? "up" : "down");
+ DEBUGA_SERIAL("CTS is %s\n", CELLIAX_P_LOG, status & TIOCM_CTS ? "up" : "down");
status |= TIOCM_DTR; /* Set DTR high */
- status &= ~TIOCM_RTS; /* Set RTS low */
+ status |= TIOCM_RTS; /* Set RTS high */
ioctl(fd, TIOCMSET, &status);
ioctl(fd, TIOCMGET, &status);
unsigned int flags = TIOCM_DTR;
- ioctl(fd, TIOCMBIS, &flags);
+ //ioctl(fd, TIOCMBIS, &flags);
flags = TIOCM_RTS;
- ioctl(fd, TIOCMBIC, &flags);
+ //ioctl(fd, TIOCMBIC, &flags);
ioctl(fd, TIOCMGET, &status);
#else /* __CYGWIN__ */
ioctl(fd, TIOCMGET, &status);
@@ -2675,6 +2679,13 @@
#endif /* __CYGWIN__ */
p->controldevfd = fd;
DEBUGA_SERIAL("Syncing Serial\n", CELLIAX_P_LOG);
+ flags = 0;
+ ioctl(fd, TIOCMGET, &flags);
+ DEBUGA_SERIAL("DTR is %s\n", CELLIAX_P_LOG, flags & TIOCM_DTR ? "up" : "down");
+ DEBUGA_SERIAL("RTS is %s\n", CELLIAX_P_LOG, flags & TIOCM_RTS ? "up" : "down");
+ DEBUGA_SERIAL("CAR is %s\n", CELLIAX_P_LOG, flags & TIOCM_CAR ? "up" : "down");
+ DEBUGA_SERIAL("CTS is %s\n", CELLIAX_P_LOG, flags & TIOCM_CTS ? "up" : "down");
+
rt = celliax_serial_sync(p);
if (rt == -1) {
ERRORA("Serial init error\n", CELLIAX_P_LOG);

great patch!

Thanks waqqas!

This will be added to the next version of chan_celliax (will be named chan_gsmopen).

Also, mod_gsmopen for freeswitch is almost ready to test, and I'll add this patch to it too.

Thanks again,

-giovanni

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.