Keywords: Mode: All keywords (AND) |
Wed Apr 14, 2010 15:58
|
mfaridmailbox: but if you want a more stable, my suggestion to use a serial modem as wavecom FASTRACK suprem 10. If we use the USB modem is less good because it has no own power supply
regard
farid
|
Wed Apr 14, 2010 15:50
|
mfaridmailbox: I have tried sierra USB 885, and running well.
regard
farid
|
Sun Nov 29, 2009 13:53
|
|
Sun Nov 29, 2009 03:56
|
mfaridmailbox: thanks for the answer. you are so kind. I apologize for the delay in my response, when you've answered my questions quickly. I plan to sell a encrypted web application that has a modem in a package. I entered IMEI number into web application source, so the customers can only use the modem that I give. I also think how I can make customers could only use the smstools I include in the package. the customer can not compile it himself. This idea may look stupid, but I think this is one way in order the application can not be cracked by other people. This is the purpose of my second question.
About your answer to my first question, I was not able to read files from a web application, because mode of the file is 0640. I have an idea to enter the command AT+CGSN into reguler_run_cmd. But the problem is that I have placed orders regular_run_cmd = AT+CUSD = 1, "*555*1#", 15 to the smsd.conf file. my question is how to run the command AT+CGSN along with the command AT+CUSD = 1, "* 555*1#", 15 together ?
the porpose of the third question I really just wanted to see if smsd is running or not. I can see by looking at the file /var/run/sms/smsd.pid. but when smsd not run normally, I can not tell by simply checking the existence of the pid file. What the function of smsd.working file? why I do not find it in the directory /var/run/sms? I've put the line:
infofile = /var/run/sms/smsd.working
pidfile = /var/run/sms/smsd.pid
on smsd.conf file and I have already changed the file /etc/init.d/sms3
there is one more question, sometimes I want to send messages to many number. Some invalid destination number so that takes about 3 minutes to go to the directory /var/spool/sms/failed. how to speed up the pending time?
sorry for my bad english.. :)
regard
farid
|
Fri Nov 27, 2009 09:19
|
mfaridmailbox: Operating system name and version: ubuntu 8.04
Version of smsd: 3.1.5
Smsd installed from: sources
Name and model of a modem / phone:usb modem sierra 815u
Interface: USB
Hi expert,
I have succesfully made user interface of sms3 with cakePHP, with this application I can receive message and send message on multi contact and multigroup. smstools3 is a great SMS gateway. thanks. but I have a few questions that I have an application can create protected from piracy.
1) how do we know the IMEI number of the modem from smstools3 ? what files should be read?
2) I want the web applications that have been made to recognize only one type of smstools version only. so that my application can not be hijacked. have you any idea ?
3. How do I view the running status of sms3 from web application ? what files should be read?
thanks
regard
farid
|
Sun Nov 01, 2009 09:12
|
|
Fri Oct 30, 2009 22:41
|
mfaridmailbox: thanks keke for your answer.
I've changed reguler_run_statfile permission with 644. I have can read this file from web application, but 1 minute later this file can not be read again.
error message on browser :
All content:
Warning: file_get_contents(/var/spool/sms/reguler_run_statfile) [function.file-get-contents]: failed to open stream: Permission denied in /var/www/tesphp/view.php on line 6
when i checked on terminal, file permission have changed into -rw-r-----. how to changed reguler_run_statfile with permission 644 permanently ?
regard
farid
|
Fri Oct 30, 2009 16:57
|
mfaridmailbox: Operating system name and version: ubuntu 8.04
Version of smsd: 3.1.5
Smsd installed from: sources / package repository / from elsewhere...
Name and model of a modem / phone: sierra 815U
Interface: USB
hi, expert,
I have created web application with PHP and smstools3. smstools3 is great sms gateway. easy and simple. I have a problem when I tried to read my regular_run_statfile from my web aplication. I've changed file mode of reguler_run_statfile with 777, but when smsd refresh and create this file again, this file back to old mode. mode of reguler_run_statfile : -rw-r--r-- 1 root root.
this is my smsd.conf :
devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
report = /var/spool/sms/report
sent = /var/spool/sms/sent
#delaytime = 60
[GSM1]
#init = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
#init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1
device = /dev/ttyUSB3
incoming = yes
outgoing = yes
report = yes
#pin =
baudrate = 115200
regular_run_interval = 60
regular_run_cmd = AT+CUSD=1,"*388#",15
regular_run_statfile = /var/spool/sms/reguler_run_statfile
how to file canreguler_run_statfile be read with a web application?
thanks
regard
farid
|
Sat Sep 26, 2009 00:08
|
mfaridmailbox: i've used with 15 at the end of the command, its work !! :D
this is the result:
AT+CUSD=1,"*888#",15
OK
+CUSD: 0,"Sisa pulsa Rp. 3327.Aktif s/d 22/11/09.Atur SMS Anda dgn SMSPRO-autoreply,divert,copy,blacklist,whitelist.ktk MENU ke 2255",15
nice to discuss with u, thanks so much :)
regard
farid
|
Fri Sep 25, 2009 23:48
|
mfaridmailbox: thanks keke,
sorry for my wrong title, i mean *888# :)
i've try your tips, below the result:
ATE1
OK
AT+CUSD?
+CUSD: 0
OK
AT+CUSD=1,"*888#"
OK
+CME ERROR: retry operation
AT+CUSD=1,"*888#",0
OK
+CME ERROR: retry operation
about the other device, i've found on my country forum, unfortunely they do not tell device name & model. the SIM card similiar.
thanks for the tips:)
regard
farid
|
Fri Sep 25, 2009 17:08
|
mfaridmailbox: thanks keke,
i've found AT command reference for my sierra modem at http://www.sierrawireless.com/resources/documents/support/2130617_Supported_AT_Command_Reference_Rev_2.1.pdf
But i dont know where part can solve my problem :( .
i hope you can help me... :)
i get some information that AT+CUSD=1,"*888#" can run successfull on other device with the same operator. i think my device is bad :(
regard
farid
|
Fri Sep 25, 2009 12:50
|
mfaridmailbox: thanks keke for the quick response :),
I've used version is 3.1.5
my Modem is USB HSDPA Sierra 885U,
I also have tried to add the numbers 0, but the results remain the same
regard
farid
|
Fri Sep 25, 2009 09:01
|
mfaridmailbox: hi expert,
I have tried to request status of prepaid card with query "*888#".
I put the line in the file following /etc/smsd.conf:
[modem1]
#init =
device = /dev/ttyUSB3
incoming = yes
#pin =
baudrate = 460800
regular_run_interval = 60
regular_run_cmd = AT+CUSD=1,"*888#"
regular_run_statfile = /var/spool/sms/regular_run_statfile
when i check /var/spool/sms/reguler_run_statfile,
the result was not what I expected.
2009-09-25 15:13:17,5, modem1: CMD: AT+CUSD=1,"*888#": OK +CME ERROR: 258
why get out error that my modem busy?
what wrong my code?
regard
farid
|