[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CDMA AT driver status?
From: |
Cameron Stone |
Subject: |
Re: CDMA AT driver status? |
Date: |
Thu, 21 Apr 2005 13:11:38 +1000 |
User-agent: |
Debian Thunderbird 1.0 (X11/20050116) |
Pawel Kot wrote:
What is the debug output of the communication?
I can't seem to get xgnokii to start again. Now I get:
$ xgnokii
LOG: debug mask is 0x1
LOG: rlpdebug mask is 0x1
LOG: xdebug mask is 0x1
GLib-ERROR **: could not allocate 1073742194 bytes
aborting...
Aborted
$
When I try to run gnokii with model=5100 I get a whole bunch of timeouts
which I've appended below. With model=AT I get:
$ gnokii --getphonebook ME 1
GNOKII Version 0.6.4
LOG: debug mask is 0x1
LOG: rlpdebug mask is 0x1
LOG: xdebug mask is 0x1
phone instance config:
model: AT
port_device: /dev/ttyACM0
connection_type: 0
init_length: 0
serial_baudrate: 19200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
rfcomm_cn: 1
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyACM0
Serial device: setting RTS to high and DTR to high
Message sent: 0x00 / 0x0004
41 54 5a 0d | ATZ
write: [ATZ<cr>]
read : [TZ<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0009
02 54 5a 0d 0d 0a 4f 4b 0d | TZ OK
Received message type 00
Message sent: 0x00 / 0x0005
41 54 45 31 0d | ATE1
write: [ATE1<cr>]
read : [ATE1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000b
02 41 54 45 31 0d 0d 0a 4f 4b 0d | ATE1 OK
Received message type 00
Message sent: 0x00 / 0x000a
41 54 2b 43 4d 45 45 3d 31 0d | AT+CMEE=1
write: [AT+CMEE=1<cr>]
read : [AT+CMEE=1<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x00 / 0x0013
03 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 45 52 52 | AT+CMEE=1 ERR
4f 52 0d | OR
Received message type 00
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d | AT+CGMM
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x06 / 0x0011
03 41 54 2b 43 47 4d 4d 0d 0d 0a 45 52 52 4f 52 | AT+CGMM ERROR
0d |
Received message type 06
Initialization failed (8)
Telephone interface init failed: Unknown error - well better than nothing!!
Quitting.
$
Well, you may take a look at common/phones/atgen.c, but I suspect the
problem is in the link or device driver.
Yes, I agree. I believe the AT command set is different for CDMA phones.
That is why I'd like to add a CDMA model to gnokii. It seems that the
atgen.c file has a lot of AT commands hard coded into it (which are
probably standard for all GSM phones).
I'm thinking I need to create a atnokcdma.c file (and a .h in the
include dir), which will be similar to atgen.c. Is the interface
specified anywhere, or do I need to figure it out from the functions in
common/phones/*.c?
Cameron.
--
===================================================================
It is never too late to be what you might have been.
Cameron Stone <address@hidden>
===================================================================