Jump to content

Recommended Posts

Posted

Интересует сабж. Подключается по консольному шнурку (RS-232), умеет работать с SMS.

Брали шлюз и софт для него.

Софт под Windows, кроме того, компания-разработчик уже не существует.

Хотелось бы теперь этот шлюз перенести на *nix-платформу.

Никто не сталкивался? С чего лучше начать?

 

P.S. Читал про gnokii. Но смущает размер, почти 70 МБ для установки.

Posted
Почитал про gnokii и про wammu.

Вроде бы wammu поновее и получше.

Никто с ними не работал?

 

Я пользуюсь каждый день. Нормальный GUI для gammu.

Posted (edited)

Мне GUI не нужен, он из консоли будет работать.

 

Тогда, видимо, нужен gammu.

 

gammu - Does some neat things with your cellular phone or modem.

 

Там есть еще SMS daemon gammu-smsd

Edited by vop
Posted

Интересует сабж. Подключается по консольному шнурку (RS-232), умеет работать с SMS.

Брали шлюз и софт для него.

Софт под Windows, кроме того, компания-разработчик уже не существует.

Хотелось бы теперь этот шлюз перенести на *nix-платформу.

Никто не сталкивался? С чего лучше начать?

 

P.S. Читал про gnokii. Но смущает размер, почти 70 МБ для установки.

 

скорее всего там стандартный набор AT-команд для sms. берёте самый обычный smstools и пробуете

Posted

Debian 7.8

Нету.

# aptitude search sms
p   gammu-smsd                                                                             - SMS message daemon                                                                              
p   gnokii-smsd                                                                            - SMS Daemon for mobile phones                                                                    
p   gnokii-smsd-mysql                                                                      - SMSD plugin for MySQL storage backend                                                           
p   gnokii-smsd-pgsql                                                                      - SMSD plugin for PostgreSQL storage backend                                                      
p   libgsmsd7                                                                              - SMS daemon helper library                                                                       
p   libsbsms-dev                                                                           - Subband Sinusoidal Modeling Synthesis (development files)                                       
p   libsbsms10                                                                             - Subband Sinusoidal Modeling Synthesis                                                           
p   libsms-send-perl                                                                       - driver-based API for sending SMS messages                                                       
p   python-smstrade                                                                        - Python library to send SMS via the smstrade service (Python 2)                                  
p   python-smstrade-doc                                                                    - Python library to send SMS via the smstrade service (documentation)                             
p   python3-smstrade                                                                       - Python library to send SMS via the smstrade service (Python 3)                                  
p   smsclient                                                                              - A program for sending short messages (SM / SMS)                                                 
i   smstools                                                                               - SMS server tools for GSM modems                                                                 

# aptitude show smstools
Package: smstools                        
State: installed
Automatically installed: no
Version: 3.1.14-1.2
Priority: optional
Section: comm
Maintainer: Mark Purcell <msp@debian.org>
Architecture: amd64
Uncompressed Size: 888 k
Depends: debconf (>= 1.4.69), ucf (>= 0.28), adduser, libc6 (>= 2.7), libmm14 (>= 1.4.0-1)
Description: SMS server tools for GSM modems
The SMS server tools allow setting up a central SMS gateway. It sends and receives SMS messages using a simple file-based interface. It can accommodate up to 20,000 messages a month. 

It supports an event-handler option that allows calling customized programs or scripts after sending or receiving SMS messages. 

The SMS Server Tools use one or more (max. 32) GSM modems to send and receive SMS messages. Some modems may be equipped with SIM cards such as Vodafone or Telmi ones.  All messages are
sorted in queues by the provider. If one modem fails, it will be deactivated for one hour before the software retries, while other modems run without any restriction. The status
information and alarms are logged with syslog.
Homepage: http://smstools3.kekekasvi.com

# find / -name \*sms\* -type f -executable
/etc/init.d/smstools
/var/lib/dpkg/info/smstools.preinst
/var/lib/dpkg/info/smstools.prerm
/var/lib/dpkg/info/smstools.postrm
/var/lib/dpkg/info/smstools.postinst
/var/lib/dpkg/info/smstools.config
/usr/sbin/smsd

Posted

в debian6:

/usr/share/doc/smstools/examples/scripts/sendsms

 

+пришлось сделать патч для русских буковок:

# diff  /usr/share/doc/smstools/examples/scripts/sendsms /usr/bin/sendsms3
1c1
< #!/bin/sh
---
> #!/bin/bash
82,87c82,87
< if which iconv > /dev/null 2>&1; then
<   if ! $ECHO -n "$TEXT" | iconv -t ISO-8859-15 >/dev/null 2>&1; then
<     ALPHABET="Alphabet: UCS"
<     TEXT=`$ECHO -n "$TEXT" | iconv -t UNICODEBIG`
<   fi
< fi
---
> #if which iconv > /dev/null 2>&1; then
> #  if ! $ECHO -n "$TEXT" | iconv -t ISO-8859-15 >/dev/null 2>&1; then
>     ALPHABET="Alphabet: UCS2"
> #    TEXT=`$ECHO -n "$TEXT" | iconv -f UTF-8 -t UCS-2BE`
> # fi
> #fi
105c105
<   $ECHO -n "$TEXT" >> $TMPFILE
---
>   $ECHO -n "$TEXT" | iconv -f UTF-8 -t UCS-2BE >> $TMPFILE
111a112
>   chmod 660 $TMPFILE

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...