Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gammu-smsd, shared memeory error for Huwaei E303F #50

Closed
nishadhka opened this issue Apr 18, 2014 · 1 comment
Closed

Gammu-smsd, shared memeory error for Huwaei E303F #50

nishadhka opened this issue Apr 18, 2014 · 1 comment

Comments

@nishadhka
Copy link

I am running gammu and gammu-smsd backed by Mysql in Ubuntu 12.04, All these setup was running with out error using Huwaei E173 data card. But upgraded model of this, Huwaei E303F, working fine with gammu, but starting gammu-smsd collapsing gammu. for example
gammu --identify
says phone not connected

  • gammurc ~/.gammurc
port = /dev/ttyUSB0
model = auto
connection = at
synchronizetime = yes
logfile = /home/user/gammu.log
logformat = textalldate
use_locking =
gammuloc =
  • gammu-smsdrc ~/etc/gammu-smsdrc
device = /dev/ttyUSB0
connection = at


# SMSD configuration, see gammu-smsdrc(5)
[smsd]
service = sql
driver = native_mysql
LogFile = /var/log/gammu-smsd
user = r
password =
pc = localhost
database = 
  • gammu-smsd log shows ~/var/log/gammu-smsd
Fri 2014/04/18 10:19:01 gammu-smsd[9600]: Warning: No PIN code in /etc/gammu-smsdrc file
Fri 2014/04/18 10:19:01 gammu-smsd[9601]: Connected to Database: smsd on localhost
Fri 2014/04/18 10:19:01 gammu-smsd[9601]: Connected to Database native_mysql: smsd on localhost
Fri 2014/04/18 10:19:01 gammu-smsd[9601]: Failed to allocate shared memory segment!, Error 13: Permission denied

Fri 2014/04/18 10:19:13 gammu-smsd[9605]: Warning: No PIN code in /etc/gammu-smsdrc file
Fri 2014/04/18 10:19:13 gammu-smsd[9606]: Connected to Database: smsd on localhost
Fri 2014/04/18 10:19:13 gammu-smsd[9606]: Connected to Database native_mysql: smsd on localhost
Fri 2014/04/18 10:19:13 gammu-smsd[9606]: Created POSIX RW shared memory at 0x2ae4ea330000
Fri 2014/04/18 10:19:13 gammu-smsd[9606]: Starting phone communication...
Fri 2014/04/18 10:19:21 gammu-smsd[9606]: Inserting phone info

Computer is a HP desktop with 8 GB RAM, shared memory details of the computer is

:~$ cat /proc/sys/kernel/shmmni
4096

and

:~$ cat /proc/sys/kernel/shmmax
33554432

More over I tried this same setup with a IBM X series server and Raspberry pi. In Raspberry pi installed with debian, it hangs board and disconnect ssh connection while giving gammu --identify itself. In IBM, it gives similar shared memory error. But this card (Huwaei E303F) is working fine for Internet connection, in Raspberry pi also no error with sakis3G.

@nishadhka
Copy link
Author

Compiling latest version of Gammu in Beagle Bone Black, removed this error and Gammu works fine with Hywaei E303F. Thanks.

@nijel nijel closed this as completed Dec 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants