SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sun May 19, 2024 20:20
SMSTools3 Community » Help and support Bottom

[answered] Can I receive messages on the event or flag

  This topic is locked

Page:  1

Author Post
Member
Registered:
Mar 2010
Location: Ukraine
Operating system name and version: altlinux 2.4
Version of smsd: 3-3.1.7beta4
Smsd installed from: sources
Name and model of a modem / phone: sim300,sim300
Interface: serial,serial

Can I receive messages on the event or flag.
keep the port closed, and check messages when I think fit well and forced every morning.
need to initialize the event of such action and what would be the port was closed when it is not necessary.

thanks.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Why do you need this functionality? Does it have something in common with your daily_reboot function?

When your smsd is running, but does not do anything, should it still send messages when necessary?

If you just start (and stop) the daemon when necessary, it would be the best option. However, you could try this kind of a setup:

delaytime_mainprocess = 15
delaytime = 86400

[GSM1]
keep_open = no


Basically, the modem is sleeping all day. Mainprocess checks the outgoing messages every 15 seconds. It there are any, signal is sent to the modem process and it will read incoming messages and send outgoing messages. After this the modem process is sleeping again. While sleeping, the port is closed, because keep_open = no is defined.

After starting the smsd, you could check what is the process id of a modem process. When you think that messages should be checked, send a signal CONT to the modem process. (kill -s CONT process_id). This breaks the sleeping and messages are checked.

However, you must ensure that any other process is not using the port when the modem process will need it.

Member
Registered:
Mar 2010
Location: Ukraine
Topic owner
I have one modem to send and receive, and the other to receive SMS and to keep the port closed

Member
Registered:
Mar 2010
Location: Ukraine
Topic owner
All the Problem of the fact that when the program scans incoming sms, its need to open port, and I have no occasion to scan incoming sms or to my desire, that too is an event.
Reason one, as seldom as possible to open the port, and do it then when it is extremely important

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Please check the latest version 3.1.7beta7 which is just published... ;)

Member
Registered:
Mar 2010
Location: Ukraine
Topic owner
Thank you, just looking now

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.