Author |
Post |
|
#1 Sat Apr 17, 2010 06:08, 182 months ago.
|
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.
|
|
#2 Sat Apr 17, 2010 09:06, 182 months ago.
|
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.
|
|
#3 Sat Apr 17, 2010 16:42, 182 months ago.
|
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
|
|
#4 Sat Apr 17, 2010 16:48, 182 months ago.
|
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
|
|
#5 Tue Apr 20, 2010 12:28, 182 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Please check the latest version 3.1.7beta7 which is just published... 
|
|
#6 Tue Apr 20, 2010 12:33, 182 months ago.
|
Member
Registered: Mar 2010
Location: Ukraine
Topic owner
|
Thank you, just looking now
|