[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Gnokii-smsd-mysql question
From: |
Paul Darius |
Subject: |
Gnokii-smsd-mysql question |
Date: |
Wed, 24 Mar 2010 23:48:14 +0700 |
Hi there,
Just install the box with centos 5.3 and gnokii 0.6.27
# ls -l /root/g*
-rw-r--r-- 1 root root 716806 Mar 24 21:45
/root/gnokii-0.6.27-2.el5.i386.rpm
-rw-r--r-- 1 root root 37398 Mar 24 21:40
/root/gnokii-devel-0.6.27-2.el5.i386.rpm
-rw-r--r-- 1 root root 34738 Mar 24 21:40
/root/gnokii-smsd-0.6.27-2.el5.i386.rpm
-rw-r--r-- 1 root root 15081 Mar 24 21:49
/root/gnokii-smsd-mysql-0.6.27-2.el5.i386.rpm
# gnokii --identify
GNOKII Version 0.6.27
Couldn't read /root/.gnokiirc config file.
Couldn't read /root/.gnokiirc config file.
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
phone instance config:
model = AT
port = /dev/ttyUSB0
connection = serial
initlength = default
serial_baudrate = 115200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyUSB0
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
...
write: [AT+CGSN<cr>]
read : [AT+CGSN<cr><cr><lf>355780003038039<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0021
02 41 54 2b 43 47 53 4e 0d 0d 0a 33 35 35 37 38 | AT+CGSN 35578
30 30 30 33 30 33 38 30 33 39 0d 0a 0d 0a 4f 4b | 0003038039 OK
0d |
Received message type 06
IMEI : 355780003038039
Manufacturer : iWOW
Model : TR-800
Product name : TR-800
Revision : AB_02_00_30N_DEF003
Serial device: closing device
# /etc/rc.d/init.d/gnokii-smsd start
Starting Gnokii SMS daemon (gnokii-smsd): Starting Gnokii S[ OK ]n
(gnokii-smsd):
address@hidden /]# Couldn't read //.gnokiirc config file.
Couldn't read //.gnokiirc config file.
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
phone instance config:
model = AT
port = /dev/ttyUSB0
connection = serial
initlength = default
serial_baudrate = 115200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyUSB0
Gnokii serial_open: open: Permission denied
Couldn't open ATBUS device: Permission denied
AT bus initialization failed (1)
Initialization failed (1)
Serial device: closing device
Telephone interface init failed: Command failed.
Quitting.
Cannot unlock device.
GSM/FBUS init failed! (Unknown model?). Quitting.
Command failed.
The gnokii --identify work fine as it can recognize the imei and other info
BUT /etc/rc.d/init.d/gnokii-smsd can not open the ports
What should we do to solve this problem ?
Paul
- Gnokii-smsd-mysql question,
Paul Darius <=