[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lowlevel.c - Unknown error
From: |
Benjamin Chodroff |
Subject: |
Re: lowlevel.c - Unknown error |
Date: |
Mon, 15 Sep 2008 23:30:50 -0400 |
The problem is in sms/lowlevel.c and how it handles memory positions
for AT model phones (Motorola RAZR V3). What happens is that the
RefreshSMS() function calls gn_sms_get (&data, sm) which always throws
a GN_ERR_INVALIDLOCATION error. This causes the first SMS to be read
at memory position 1 - which is incorrect, and it loops on this memory
position read. If I manually set smsdConfig.firstSMS to the correct
memory position, the program works at reading the messages but then
gets off track.
Any help at creating a proper fix for this bug would be appreciated.
I'd be happy to help debug on IRC if a developer is willing to help
out.
Ben
On Mon, Sep 15, 2008 at 2:38 PM, Benjamin Chodroff
<address@hidden> wrote:
> Thanks Pawel,
> Did a fresh Ubuntu installation, tracked down the required packages,
> and compiled from source (0.6.26) so everything (except postgres) is
> supported in ./configure. Little more output, but the error I was
> receiving is still there. How do I enable more debugging output? See
> error below:
>
> address@hidden:~$ smsd -u root -p mypassword -d sms -c localhost -m mysql
> Couldn't read /home/bec/.gnokiirc config file.
> Couldn't read /home/bec/.gnokiirc config file.
> LOG: debug mask is 0x1
> Config read from file /etc/gnokiirc.
> phone instance config:
> model = AT
> port = /dev/ttyACM0
> connection = serial
> initlength = default
> serial_baudrate = 19200
> serial_write_usleep = -1
> handshake = software
> require_dcd = 0
> smsc_timeout = 10
> rfcomm_channel = 1
> sm_retry = 0
> 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 : [ATZ<cr><cr><lf>OK<cr><lf>]
> Message received: 0x00 / 0x000a
> 02 41 54 5a 0d 0d 0a 4f 4b 0d | ATZ 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>OK<cr><lf>]
> Message received: 0x00 / 0x0010
> 02 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 4f 4b 0d | AT+CMEE=1 OK
> Received message type 00
> Message sent: 0x06 / 0x0007
> 41 54 2b 47 4d 4d 0d | AT+GMM
> write: [AT+GMM<cr>]
> read : [AT+GMM<cr><cr><lf>+GMM:
> "GSM900","GSM1800","GSM1900","GSM850","MODEL=V3"<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x06 / 0x0047
> 02 41 54 2b 47 4d 4d 0d 0d 0a 2b 47 4d 4d 3a 20 | AT+GMM +GMM:
> 22 47 53 4d 39 30 30 22 2c 22 47 53 4d 31 38 30 | "GSM900","GSM180
> 30 22 2c 22 47 53 4d 31 39 30 30 22 2c 22 47 53 | 0","GSM1900","GS
> 4d 38 35 30 22 2c 22 4d 4f 44 45 4c 3d 56 33 22 | M850","MODEL=V3"
> 0d 0a 0d 0a 4f 4b 0d | OK
> Received message type 06
> Message sent: 0x06 / 0x0008
> 41 54 2b 43 47 4d 49 0d | AT+CGMI
> write: [AT+CGMI<cr>]
> read : [AT+CGMI<cr><cr><lf>+CGMI: "Motorola CE, Copyright
> 2004"<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x06 / 0x0036
> 02 41 54 2b 43 47 4d 49 0d 0d 0a 2b 43 47 4d 49 | AT+CGMI +CGMI
> 3a 20 22 4d 6f 74 6f 72 6f 6c 61 20 43 45 2c 20 | : "Motorola CE,
> 43 6f 70 79 72 69 67 68 74 20 32 30 30 34 22 0d | Copyright 2004"
> 0a 0d 0a 4f 4b 0d | OK
> Received message type 06
> Message sent: 0x61 / 0x0009
> 41 54 2b 43 53 43 53 3f 0d | AT+CSCS?
> write: [AT+CSCS?<cr>]
> read : [AT+CSCS?<cr><cr><lf>+CSCS: "ASCII"<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x61 / 0x0021
> 02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 | AT+CSCS? +CSC
> 53 3a 20 22 41 53 43 49 49 22 0d 0a 0d 0a 4f 4b | S: "ASCII" OK
> 0d |
> Received message type 61
> Initialisation completed
> Message sent: 0x06 / 0x0007
> 41 54 2b 47 4d 4d 0d | AT+GMM
> write: [AT+GMM<cr>]
> read : [AT+GMM<cr><cr><lf>+GMM:
> "GSM900","GSM1800","GSM1900","GSM850","MODEL=V3"<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x06 / 0x0047
> 02 41 54 2b 47 4d 4d 0d 0d 0a 2b 47 4d 4d 3a 20 | AT+GMM +GMM:
> 22 47 53 4d 39 30 30 22 2c 22 47 53 4d 31 38 30 | "GSM900","GSM180
> 30 22 2c 22 47 53 4d 31 39 30 30 22 2c 22 47 53 | 0","GSM1900","GS
> 4d 38 35 30 22 2c 22 4d 4f 44 45 4c 3d 56 33 22 | M850","MODEL=V3"
> 0d 0a 0d 0a 4f 4b 0d | OK
> Received message type 06
> Message sent: 0x61 / 0x000a
> 41 54 2b 43 53 43 53 3d 3f 0d | AT+CSCS=?
> write: [AT+CSCS=?<cr>]
> read : [AT+CSCS=?<cr><cr><lf>+CSCS:
> ("8859-1","ASCII","GSM","UCS2","UTF8")<cr><lf><cr><lf>OK<cr><lf>]
> Message received: 0x61 / 0x0041
> 02 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 2b 43 53 | AT+CSCS=? +CS
> 43 53 3a 20 28 22 38 38 35 39 2d 31 22 2c 22 41 | CS: ("8859-1","A
> 53 43 49 49 22 2c 22 47 53 4d 22 2c 22 55 43 53 | SCII","GSM","UCS
> 32 22 2c 22 55 54 46 38 22 29 0d 0a 0d 0a 4f 4b | 2","UTF8") OK
> 0d |
> Received message type 61
> Message sent: 0x00 / 0x000e
> 41 54 2b 43 53 43 53 3d 22 47 53 4d 22 0d | AT+CSCS="GSM"
> write: [AT+CSCS="GSM"<cr>]
> read : [AT+CSCS="GSM"<cr><cr><lf>OK<cr><lf>]
> Message received: 0x00 / 0x0014
> 02 41 54 2b 43 53 43 53 3d 22 47 53 4d 22 0d 0d | AT+CSCS="GSM"
> 0a 4f 4b 0d | OK
> Received message type 00
> Message sent: 0x00 / 0x000d
> 41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d | AT+CPMS="SM"
> write: [AT+CPMS="SM"<cr>]
> read : [^B^D+CPMS="SM"<cr><cr><lf>+CMS ERROR: 516<cr><lf>]
> Message received: 0x00 / 0x0020
> 04 02 04 2b 43 50 4d 53 3d 22 53 4d 22 0d 0d 0a | +CPMS="SM"
> 2b 43 4d 53 20 45 52 52 4f 52 3a 20 35 31 36 0d | +CMS ERROR: 516
> Received message type 00
> lowlevel.c:461 error: 8, Unknown error - well better than nothing!!
> Message sent: 0x00 / 0x000d
> 41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d | AT+CPMS="SM"
> write: [AT+CPMS="SM"<cr>]
> read : [^B^D+CPMS="SM"<cr><cr><lf>+CMS ERROR: 516<cr><lf>]
> Message received: 0x00 / 0x0020
> 04 02 04 2b 43 50 4d 53 3d 22 53 4d 22 0d 0d 0a | +CPMS="SM"
> 2b 43 4d 53 20 45 52 52 4f 52 3a 20 35 31 36 0d | +CMS ERROR: 516
> Received message type 00
> lowlevel.c:461 error: 8, Unknown error - well better than nothing!!
> Message sent: 0x00 / 0x000d
> 41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d | AT+CPMS="SM"
> write: [AT+CPMS="SM"<cr>]
> read : [^B^D+CPMS="SM"<cr><cr><lf>+CMS ERROR: 516<cr><lf>]
> Message received: 0x00 / 0x0020
> 04 02 04 2b 43 50 4d 53 3d 22 53 4d 22 0d 0d 0a | +CPMS="SM"
> 2b 43 4d 53 20 45 52 52 4f 52 3a 20 35 31 36 0d | +CMS ERROR: 516
> Received message type 00
> lowlevel.c:461 error: 8, Unknown error - well better than nothing!!
> Message sent: 0x00 / 0x000d
> 41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d | AT+CPMS="SM"
> write: [AT+CPMS="SM"<cr>]
> read : [^B^D+CPMS="SM"<cr><cr><lf>+CMS ERROR: 516<cr><lf>]
> Message received: 0x00 / 0x0020
> 04 02 04 2b 43 50 4d 53 3d 22 53 4d 22 0d 0d 0a | +CPMS="SM"
> 2b 43 4d 53 20 45 52 52 4f 52 3a 20 35 31 36 0d | +CMS ERROR: 516
> Received message type 00
> lowlevel.c:461 error: 8, Unknown error - well better than nothing!!
>
>
>
> Ben
>
>
> On Mon, Sep 15, 2008 at 3:30 AM, Pawel Kot <address@hidden> wrote:
>> Hi,
>>
>> On Mon, Sep 15, 2008 at 05:29, Benjamin Chodroff
>> <address@hidden> wrote:
>>> Hello -
>>> I am not sure how to begin debugging this error I am receiving when
>>> running Gnokii's (0.6.22.dfsg-3) gnokii-smsd-mysql in Ubuntu
>>
>> First of all, please upgrade. We had tons of fixes since 0.6.22.
>>
>>> address@hidden:~$ sudo smsd -u root -p mypassword -d sms -m mysql
>>> lowlevel.c:410 Unknown error - well better than nothing!!
>>> lowlevel.c:410 Unknown error - well better than nothing!!
>>> lowlevel.c:410 Unknown error - well better than nothing!!
>>
>> You need to provide some debug output to get help.
>>
>> pkot
>> --
>> Pawel Kot
>>
>>
>> _______________________________________________
>> gnokii-users mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/gnokii-users
>>
>