SMS Server Tools 3
 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. The forum is currently read-only, but will open soon. Tue Jul 01, 2025 00:08
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
mikolajj: I think that it should not be done every time when a modem is initialized. Does it mean, that modem save this information inside? In some kind of memory? And next time it will know that I forced operator selection? COPS took about 10 seconds, so I set startsleeptime to 15 sec. No errors in smsd.log So, THX again ;-) Regards MJ
mikolajj: Hello, answer from AT+COPS=?: at+cops=? +COPS: (2,"Plus GSM","PLUS","26001"),(3,"IDEA Centertel","IDEA","26003"),(3,"Era ","Era","26002"),,(0-4),(0-2) In AT commands from modem manual I can get info like: Operator selection +COPS=<mode>,<format>,<operator> attempts a forced selection and registration on the GSM network using a particular operator (i.e. GSM service carrier). <mode> determines whether the selection is performed automatically by the modem or is forced to the specific operator given in <operator>, using the format specified in <format>. (The format setting is retained if the +COPS? command is reissued.) The selected <mode> applies to all further network registrations (e.g. after <mode>=2, the modem is unregistered until <mode>=0 or 1 is selected). +COPS? returns the current mode and the currently selected operator. If no operator is selected, <format> and <operator> are omitted. +COPS=? returns a list of quadruplets, each representing an operator present on the GSM network, follows by a list of supported <modes> and <format>s: +COPS: <status>,<loperator>, <soperator>,<noperator> supported <mode>s,supported <format>s Each quadruplet consists of a <status> integer indicating the availability of the operator, the long <loperator> and short <soperator> alphanumeric names of the operator, and the <noperator> numeric code for the operator. If any of the formats is unavailable, its field is empty (not omitted). Note: Operators are listed in this order: home network, networks listed in the SIM card, and other networks. Supported values <mode> sets how the modem should determine the GSM operator. It can be one of four values: - <mode>=0: Automatically (<operator> field is ignored) - <mode>=1: Manually (<operator> field required, no operator selected if not available) - <mode>=2: Deregister from the network. - <mode>=3: Only set the <format> (for the read command +COPS?)—do notattempt registration/deregistration. The <operator> field is ignored. - <mode>=4: Manually if possible (<operator> field is required). If manual selection fails, the modem switches to automatic (<mode>=0). <format> selects which format to use for the <operator> parameter. It can beone of three values: - <format>=0: Long format alphanumeric (equivalent to <loperator> from+COPS=?). - <format>=1: Short format alphanumeric (equivalent to <soperator>). - <format>=2: numeric (equivalent to <noperator>). <operator> is a string, whose type is determined by the <format> parameter. The long alphanumeric format can be upto 16 characters long, and the short up to 8 characters. The numeric format is the GSM Location Area Identification number (see the standard GSM 04.08[8] subclause 10.5.1.3), in the format: <country code digit 3><country code digit 2> <country code digit 1><network code digit 2> <network code digit 1> <status> returns the status of an operator: - <status>=0: Unknown - <status>=1: Available - <status>=2: Current - <status>=3: Forbidden So as I understand this I should chose: AT+COPS=1,0,"Plus GSM" or AT+COPS=4,0,"Plus GSM" (this one is more safe) ? But where to put this parameter? Into modem part of smsd.conf and in init string? init = ATE0,+COPS=4,0,"Plus GSM" is this correct ?
mikolajj: Operating system name and version: XP SP3 Version of smsd: 3.1.14 Smsd installed from: package (smstools3-3.1.14.tar.gz, 2010-09-21 11:31) Name and model of a modem / phone: Sierra Wireless AirCard 750+ Interface: PCI-PCMCIA adapter + PCMCIA Hello again ;-) I would like to force operator selection (sth like manual operator select in mobile phone). I live in Poland, where my home network is 260 06 (PLAY). But with a lack of 2G system this network has an internal roaming with 260 01(PLUS) network, which I can use free of charge. Problem is that I have server inside of a building (nothing strange hugh... ;-) ) where signal strength is low for my home network. So modem is switching sometimes between those 2 operators... during this operation I get: 2011-02-14 14:08:56,5, PCIMCIA: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 1. TIME 2011-02-14 14:08:57,5, PCIMCIA: Signal Strength Indicator: (21,0) -71 dBm (Excellent), Bit Error Rate: less than 0.2 % 2011-02-14 14:08:58,5, PCIMCIA: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 2. TIME 2011-02-14 14:09:00,5, PCIMCIA: Signal Strength Indicator: (21,0) -71 dBm (Excellent), Bit Error Rate: less than 0.2 % 2011-02-14 14:09:00,5, PCIMCIA: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 3. TIME 2011-02-14 14:09:02,5, PCIMCIA: Signal Strength Indicator: (21,0) -71 dBm (Excellent), Bit Error Rate: less than 0.2 % 2011-02-14 14:09:02,5, PCIMCIA: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 4. TIME 2011-02-14 14:09:04,5, PCIMCIA: Signal Strength Indicator: (21,0) -71 dBm (Excellent), Bit Error Rate: less than 0.2 % 2011-02-14 14:09:05,5, PCIMCIA: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 5. TIME 2011-02-14 14:09:06,5, PCIMCIA: Signal Strength Indicator: (21,0) -71 dBm (Excellent), Bit Error Rate: less than 0.2 % 2011-02-14 14:09:07,5, PCIMCIA: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 6. TIME 2011-02-14 14:09:09,5, PCIMCIA: Signal Strength Indicator: (21,0) -71 dBm (Excellent), Bit Error Rate: less than 0.2 % 2011-02-14 14:09:09,5, PCIMCIA: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 7. TIME 2011-02-14 14:09:11,5, PCIMCIA: Signal Strength Indicator: (17,0) -79 dBm (Good), Bit Error Rate: less than 0.2 % 2011-02-14 14:15:57,5, PCIMCIA: SMS received, From: PLAY Is there any way to force modem to use 260 01 operator always and not try to switch beetween two networks? Regars MJ
mikolajj: I have changes init = ATE0 and there's no ERROR any more ;-) Modem is not new ;-) I'll use it a few days and see if it's working fine. THANK YOU FOR YOUR HELP AND TIME !!! ;-) Regards MJ
mikolajj: After changing what you pointed, taking PCI<>PCMCIA out of computer and puting it back I think I got it work... Log looks like this right now: 2011-02-14 12:26:22,2, smsd: Smsd v3.1.14 started. 2011-02-14 12:26:22,2, smsd: Running as SYSTEM:Administratorzy. 2011-02-14 12:26:22,7, smsd: Running startup_check (shell): /var/spool/sms/incom ing/smsd_script.KLdug3 /tmp/smsd_data.3dqSqg 2011-02-14 12:26:23,7, smsd: Done: startup_check (shell), execution time 1 sec., status: 0 (0) 2011-02-14 12:26:23,4, smsd: File mode creation mask: 022 (0644, rw-r--r--). 2011-02-14 12:26:23,2, smsd: Running in terminal mode. 2011-02-14 12:26:23,5, smsd: Outgoing file checker has started. PID: 1840. 2011-02-14 12:26:23,7, smsd: All PID's: 1840,2756 2011-02-14 12:26:23,5, PCIMCIA: Modem handler 0 has started. PID: 2756. 2011-02-14 12:26:23,5, PCIMCIA: Using check_memory_method 1: CPMS is used. 2011-02-14 12:26:23,6, PCIMCIA: Checking device for incoming SMS 2011-02-14 12:26:23,6, PCIMCIA: Checking if modem is ready 2011-02-14 12:26:23,7, PCIMCIA: -> AT 2011-02-14 12:26:23,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:24,7, PCIMCIA: <- AT OK 2011-02-14 12:26:24,6, PCIMCIA: Pre-initializing modem 2011-02-14 12:26:24,7, PCIMCIA: -> ATE0+CMEE=1 2011-02-14 12:26:24,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:24,7, PCIMCIA: <- ATE0+CMEE=1 ERROR 2011-02-14 12:26:24,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-14 12:26:24,6, PCIMCIA: Checking if modem needs PIN 2011-02-14 12:26:24,7, PCIMCIA: -> AT+CPIN? 2011-02-14 12:26:24,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:25,7, PCIMCIA: <- +CPIN: READY OK 2011-02-14 12:26:25,7, PCIMCIA: -> AT+CSQ 2011-02-14 12:26:25,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:25,7, PCIMCIA: <- +CSQ: 18,0 OK 2011-02-14 12:26:25,6, PCIMCIA: Signal Strength Indicator: (18,0) -77 dBm (Good) , Bit Error Rate: less than 0.2 % 2011-02-14 12:26:25,6, PCIMCIA: Checking if Modem is registered to the network 2011-02-14 12:26:26,7, PCIMCIA: -> AT+CREG? 2011-02-14 12:26:26,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:26,7, PCIMCIA: <- +CREG: 0,5 OK 2011-02-14 12:26:26,6, PCIMCIA: Modem is registered to a roaming partner network 2011-02-14 12:26:26,6, PCIMCIA: Selecting PDU mode 2011-02-14 12:26:26,7, PCIMCIA: -> AT+CMGF=0 2011-02-14 12:26:26,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:27,7, PCIMCIA: <- OK 2011-02-14 12:26:27,7, PCIMCIA: -> AT+CIMI 2011-02-14 12:26:27,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:27,7, PCIMCIA: <- 260060095414504 OK 2011-02-14 12:26:28,7, PCIMCIA: -> AT+CGSN 2011-02-14 12:26:28,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:28,7, PCIMCIA: <- 354592001806262 OK 2011-02-14 12:26:28,5, PCIMCIA: CGSN: 354592001806262 2011-02-14 12:26:28,5, PCIMCIA: IMSI: 260060095414504 2011-02-14 12:26:28,6, PCIMCIA: Checking if reading of messages is supported 2011-02-14 12:26:28,7, PCIMCIA: -> AT+CPMS? 2011-02-14 12:26:28,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:29,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-14 12:26:29,6, PCIMCIA: Checking memory size 2011-02-14 12:26:29,7, PCIMCIA: -> AT+CPMS? 2011-02-14 12:26:29,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:29,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-14 12:26:29,6, PCIMCIA: Used memory is 0 of 50 2011-02-14 12:26:29,6, PCIMCIA: No SMS received 2011-02-14 12:26:39,6, PCIMCIA: Checking device for incoming SMS 2011-02-14 12:26:39,6, PCIMCIA: Checking if modem is ready 2011-02-14 12:26:40,7, PCIMCIA: -> AT 2011-02-14 12:26:40,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:40,7, PCIMCIA: <- OK 2011-02-14 12:26:40,6, PCIMCIA: Pre-initializing modem 2011-02-14 12:26:40,7, PCIMCIA: -> ATE0+CMEE=1 2011-02-14 12:26:40,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:41,7, PCIMCIA: <- ERROR 2011-02-14 12:26:41,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-14 12:26:41,7, PCIMCIA: -> AT+CSQ 2011-02-14 12:26:41,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:41,7, PCIMCIA: <- +CSQ: 18,0 OK 2011-02-14 12:26:41,6, PCIMCIA: Signal Strength Indicator: (18,0) -77 dBm (Good) , Bit Error Rate: less than 0.2 % 2011-02-14 12:26:41,6, PCIMCIA: Checking if Modem is registered to the network 2011-02-14 12:26:42,7, PCIMCIA: -> AT+CREG? 2011-02-14 12:26:42,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:42,7, PCIMCIA: <- +CREG: 0,5 OK 2011-02-14 12:26:42,6, PCIMCIA: Modem is registered to a roaming partner network 2011-02-14 12:26:42,6, PCIMCIA: Selecting PDU mode 2011-02-14 12:26:42,7, PCIMCIA: -> AT+CMGF=0 2011-02-14 12:26:42,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-14 12:26:43,7, PCIMCIA: <- OK 2011-02-14 12:26:43,6, PCIMCIA: Checking memory size 2011-02-14 12:26:43,7, PCIMCIA: -> AT+CPMS? 2011-02-14 12:26:43,7, PCIMCIA: Command is sent, waiting for the answer There's still ERROR after ATE0+CMEE=1 ? How can I fix this ? Regards MJ
mikolajj: THX for answer. 1) I have credits on this pre-paid card ;-) 2) I have checked SIM in regular phone - it works. 3) I have switched check_network because I wanted to show you full log (this was your request in most problems to turn this option to 0) As I understand right now, I have to change my smsd.conf to: ... [PCIMCIA] #Sierra Wireless 750+ device = /dev/com3 pre_init = yes #changed loglevel_lac_ci = 8 #added incoming = yes outgoing = yes report = yes baudrate = 57600 loglevel = 7 I have changed baudrate because I have found info about globtrotters that this is best speed (not sure does it matter a lot ?) I thought it's a hardware problem so there can be a PCI<->PCMCIA converter or MODEM. I'll try to use this modem in my laptop, but right now I have no other PC to check Converter PCI-PCMCIA. I'll let you know what is effect of this tests. Regards MJ
mikolajj: Operating system name and version: Windows XP Prof SP3 , cygwin Version of smsd: 3.1.14 Smsd installed from: package (smstools3-3.1.14.tar.gz, 2010-09-21 11:31) Name and model of a modem / phone: Sierra Wireless AirCard 750+ Interface: PCI-PCMCIA adapter + PCMCIA Hello, I have a problem with configuration ( I hope ). I have installed smstools + cygwin + air card drivers; modem is working (in Terminal it answers AT commands) But It doesn't recive or send SMS messages. something like no connection to gsm network is made. This is my config file smsd.conf # Example smsd.conf. Read the manual for a description devices = PCIMCIA logfile = /var/log/smsd.log loglevel = 7 sent = /var/spool/sms/sent report = /var/spool/sms/reports outgoing = /var/spool/sms/outgoing checked = /var/spool/sms/checked failed = /var/spool/sms/failed incoming = /var/spool/sms/incoming receive_before_send = no [PCIMCIA] #Sierra Wireless 750+ report_device_details = yes # I found this on forum check_network = 0 # I found this on forum device = /dev/com3 incoming = yes outgoing = yes report = yes baudrate = 9600 loglevel = 7 My log file looks like this, at the end I was trying to send SMS: 2011-02-13 23:52:28,2, smsd: Smsd v3.1.14 started. 2011-02-13 23:52:28,2, smsd: Running as SYSTEM:Administratorzy. 2011-02-13 23:52:28,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.4ksCPG /tmp/smsd_data.n2nBZG 2011-02-13 23:52:28,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0) 2011-02-13 23:52:28,4, smsd: File mode creation mask: 022 (0644, rw-r--r--). 2011-02-13 23:52:28,2, smsd: Running in terminal mode. 2011-02-13 23:52:28,5, smsd: Outgoing file checker has started. PID: 156. 2011-02-13 23:52:28,7, smsd: All PID's: 156,3060 2011-02-13 23:52:28,5, PCIMCIA: Modem handler 0 has started. PID: 3060. 2011-02-13 23:52:28,5, PCIMCIA: Using check_memory_method 1: CPMS is used. 2011-02-13 23:52:28,6, PCIMCIA: Checking device for incoming SMS 2011-02-13 23:52:28,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:52:29,7, PCIMCIA: -> AT 2011-02-13 23:52:29,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:29,7, PCIMCIA: <- OK 2011-02-13 23:52:29,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:52:29,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:52:29,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:30,7, PCIMCIA: <- ERROR 2011-02-13 23:52:30,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:52:30,6, PCIMCIA: Checking if modem needs PIN 2011-02-13 23:52:30,7, PCIMCIA: -> AT+CPIN? 2011-02-13 23:52:30,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:30,7, PCIMCIA: <- +CPIN: READY OK 2011-02-13 23:52:30,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:52:30,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:31,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:52:31,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:52:31,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:52:31,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:52:31,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:31,7, PCIMCIA: <- OK 2011-02-13 23:52:32,7, PCIMCIA: -> AT+CIMI 2011-02-13 23:52:32,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:32,7, PCIMCIA: <- 260060095414504 OK 2011-02-13 23:52:32,7, PCIMCIA: -> AT+CGSN 2011-02-13 23:52:32,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:33,7, PCIMCIA: <- 354592001806262 OK 2011-02-13 23:52:33,5, PCIMCIA: CGSN: 354592001806262 2011-02-13 23:52:33,5, PCIMCIA: IMSI: 260060095414504 2011-02-13 23:52:33,6, PCIMCIA: Checking if reading of messages is supported 2011-02-13 23:52:33,7, PCIMCIA: -> AT+CPMS? 2011-02-13 23:52:33,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:33,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-13 23:52:33,7, PCIMCIA: ## Start of device details 2011-02-13 23:52:33,7, PCIMCIA: # Manufacturer identification: 2011-02-13 23:52:34,7, PCIMCIA: -> AT+CGMI 2011-02-13 23:52:34,7, PCIMCIA: <- Sierra Wireless Inc OK 2011-02-13 23:52:34,7, PCIMCIA: # Model identification: 2011-02-13 23:52:34,7, PCIMCIA: -> AT+CGMM 2011-02-13 23:52:35,7, PCIMCIA: <- AC775 {### My comment: modem is 750+ not 775 ??? ###} OK 2011-02-13 23:52:35,7, PCIMCIA: # Revision identification: 2011-02-13 23:52:35,7, PCIMCIA: -> AT+CGMR 2011-02-13 23:52:35,7, PCIMCIA: <- G1_0_1ACAP OK 2011-02-13 23:52:35,7, PCIMCIA: # New message indications, list of supported modes: 2011-02-13 23:52:35,7, PCIMCIA: -> AT+CNMI=? 2011-02-13 23:52:36,7, PCIMCIA: <- +CNMI: (0-3),(0-3),(0,2),(0-1),(0) OK 2011-02-13 23:52:36,7, PCIMCIA: # New message indications, current settings: 2011-02-13 23:52:36,7, PCIMCIA: -> AT+CNMI? 2011-02-13 23:52:36,7, PCIMCIA: <- +CNMI: 2,1,0,0,0 OK 2011-02-13 23:52:36,7, PCIMCIA: # Preferred message storage, list of supported mem's: 2011-02-13 23:52:37,7, PCIMCIA: -> AT+CPMS=? 2011-02-13 23:52:37,7, PCIMCIA: <- +CPMS: ("SM"),("SM"),("SM") OK 2011-02-13 23:52:37,7, PCIMCIA: # Phonebook storage, available mem's: 2011-02-13 23:52:37,7, PCIMCIA: -> AT+CPBS=? 2011-02-13 23:52:38,7, PCIMCIA: <- +CPBS: ("MC","RC","DC","LD","LA","ME","SM","FD","ON","BN","SD","VM") OK 2011-02-13 23:52:38,7, PCIMCIA: # List messages, list of supported stat's: 2011-02-13 23:52:38,7, PCIMCIA: -> AT+CMGL=? 2011-02-13 23:52:38,7, PCIMCIA: <- +CMGL: (0-4) OK 2011-02-13 23:52:38,7, PCIMCIA: # Delete message, list of supported values: 2011-02-13 23:52:39,7, PCIMCIA: -> AT+CMGD=? 2011-02-13 23:52:39,7, PCIMCIA: <- +CMGD: (1-50) OK 2011-02-13 23:52:39,7, PCIMCIA: # Phone activity status, list of supported stat's: 2011-02-13 23:52:39,7, PCIMCIA: -> AT+CPAS=? 2011-02-13 23:52:40,7, PCIMCIA: <- +CPAS: (0,2,3,4) OK 2011-02-13 23:52:40,7, PCIMCIA: # TE character set, list of supported charset's: 2011-02-13 23:52:40,7, PCIMCIA: -> AT+CSCS=? 2011-02-13 23:52:40,7, PCIMCIA: <- +CSCS: ("GSM","HEX","IRA","PCCP","PCDN","UCS2","8859-1") OK 2011-02-13 23:52:40,7, PCIMCIA: # TE character set, current setting: 2011-02-13 23:52:40,7, PCIMCIA: -> AT+CSCS? 2011-02-13 23:52:41,7, PCIMCIA: <- +CSCS: "IRA" OK 2011-02-13 23:52:41,7, PCIMCIA: ## End of device details 2011-02-13 23:52:41,6, PCIMCIA: Checking memory size 2011-02-13 23:52:41,7, PCIMCIA: -> AT+CPMS? 2011-02-13 23:52:41,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:41,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-13 23:52:41,6, PCIMCIA: Used memory is 0 of 50 2011-02-13 23:52:41,6, PCIMCIA: No SMS received 2011-02-13 23:52:52,6, PCIMCIA: Checking device for incoming SMS 2011-02-13 23:52:52,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:52:52,7, PCIMCIA: -> AT 2011-02-13 23:52:52,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:52,7, PCIMCIA: <- OK 2011-02-13 23:52:52,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:52:53,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:52:53,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:53,7, PCIMCIA: <- ERROR 2011-02-13 23:52:53,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:52:53,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:52:53,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:54,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:52:54,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:52:54,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:52:54,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:52:54,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:54,7, PCIMCIA: <- OK 2011-02-13 23:52:54,6, PCIMCIA: Checking memory size 2011-02-13 23:52:54,7, PCIMCIA: -> AT+CPMS? 2011-02-13 23:52:54,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:52:55,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-13 23:52:55,6, PCIMCIA: Used memory is 0 of 50 2011-02-13 23:52:55,6, PCIMCIA: No SMS received 2011-02-13 23:53:05,6, PCIMCIA: Checking device for incoming SMS 2011-02-13 23:53:05,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:53:05,7, PCIMCIA: -> AT 2011-02-13 23:53:05,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:06,7, PCIMCIA: <- OK 2011-02-13 23:53:06,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:53:06,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:53:06,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:06,7, PCIMCIA: <- ERROR 2011-02-13 23:53:06,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:53:06,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:53:06,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:07,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:53:07,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:53:07,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:53:07,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:53:07,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:07,7, PCIMCIA: <- OK 2011-02-13 23:53:07,6, PCIMCIA: Checking memory size 2011-02-13 23:53:08,7, PCIMCIA: -> AT+CPMS? 2011-02-13 23:53:08,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:08,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-13 23:53:08,6, PCIMCIA: Used memory is 0 of 50 2011-02-13 23:53:08,6, PCIMCIA: No SMS received 2011-02-13 23:53:18,6, PCIMCIA: Checking device for incoming SMS 2011-02-13 23:53:18,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:53:18,7, PCIMCIA: -> AT 2011-02-13 23:53:18,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:19,7, PCIMCIA: <- OK 2011-02-13 23:53:19,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:53:19,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:53:19,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:19,7, PCIMCIA: <- ERROR 2011-02-13 23:53:19,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:53:20,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:53:20,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:20,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:53:20,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:53:20,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:53:20,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:53:20,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:21,7, PCIMCIA: <- OK 2011-02-13 23:53:21,6, PCIMCIA: Checking memory size 2011-02-13 23:53:21,7, PCIMCIA: -> AT+CPMS? 2011-02-13 23:53:21,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:21,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-13 23:53:21,6, PCIMCIA: Used memory is 0 of 50 2011-02-13 23:53:21,6, PCIMCIA: No SMS received 2011-02-13 23:53:31,6, PCIMCIA: Checking device for incoming SMS 2011-02-13 23:53:31,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:53:32,7, PCIMCIA: -> AT 2011-02-13 23:53:32,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:32,7, PCIMCIA: <- OK 2011-02-13 23:53:32,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:53:32,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:53:32,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:33,7, PCIMCIA: <- ERROR 2011-02-13 23:53:33,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:53:33,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:53:33,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:33,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:53:33,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:53:33,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:53:34,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:53:34,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:34,7, PCIMCIA: <- OK 2011-02-13 23:53:34,6, PCIMCIA: Checking memory size 2011-02-13 23:53:34,7, PCIMCIA: -> AT+CPMS? 2011-02-13 23:53:34,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:35,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-13 23:53:35,6, PCIMCIA: Used memory is 0 of 50 2011-02-13 23:53:35,6, PCIMCIA: No SMS received 2011-02-13 23:53:45,6, PCIMCIA: Checking device for incoming SMS 2011-02-13 23:53:45,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:53:45,7, PCIMCIA: -> AT 2011-02-13 23:53:45,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:45,7, PCIMCIA: <- OK 2011-02-13 23:53:45,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:53:46,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:53:46,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:46,7, PCIMCIA: <- ERROR 2011-02-13 23:53:46,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:53:46,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:53:46,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:47,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:53:47,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:53:47,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:53:47,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:53:47,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:47,7, PCIMCIA: <- OK 2011-02-13 23:53:47,6, PCIMCIA: Checking memory size 2011-02-13 23:53:48,7, PCIMCIA: -> AT+CPMS? 2011-02-13 23:53:48,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:48,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-13 23:53:48,6, PCIMCIA: Used memory is 0 of 50 2011-02-13 23:53:48,6, PCIMCIA: No SMS received 2011-02-13 23:53:58,6, PCIMCIA: Checking device for incoming SMS 2011-02-13 23:53:58,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:53:58,7, PCIMCIA: -> AT 2011-02-13 23:53:58,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:59,7, PCIMCIA: <- OK 2011-02-13 23:53:59,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:53:59,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:53:59,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:53:59,7, PCIMCIA: <- ERROR 2011-02-13 23:53:59,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:54:00,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:54:00,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:00,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:54:00,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:54:00,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:54:00,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:54:00,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:01,7, PCIMCIA: <- OK 2011-02-13 23:54:01,6, PCIMCIA: Checking memory size 2011-02-13 23:54:01,7, PCIMCIA: -> AT+CPMS? 2011-02-13 23:54:01,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:01,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-13 23:54:01,6, PCIMCIA: Used memory is 0 of 50 2011-02-13 23:54:01,6, PCIMCIA: No SMS received 2011-02-13 23:54:08,5, smsd: Moved file /var/spool/sms/outgoing/send_xLNQRu to /var/spool/sms/checked 2011-02-13 23:54:09,6, PCIMCIA: I have to send 1 short message for /var/spool/sms/checked/send_xLNQRu 2011-02-13 23:54:09,6, PCIMCIA: Sending SMS from to 48xxxxxxxxx 2011-02-13 23:54:09,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:54:09,7, PCIMCIA: -> AT 2011-02-13 23:54:09,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:09,7, PCIMCIA: <- OK 2011-02-13 23:54:09,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:54:09,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:54:09,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:10,7, PCIMCIA: <- ERROR 2011-02-13 23:54:10,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:54:10,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:54:10,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:10,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:54:10,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:54:10,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:54:11,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:54:11,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:11,7, PCIMCIA: <- OK 2011-02-13 23:54:11,7, PCIMCIA: -> AT+CMGS=27 2011-02-13 23:54:11,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:12,7, PCIMCIA: <- > 2011-02-13 23:54:12,7, PCIMCIA: -> 0031000B918405716446F00000FF0EF4F29C0E8AC96620D94C579B01. 2011-02-13 23:54:12,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:12,7, PCIMCIA: <- +CMS ERROR: PS busy 2011-02-13 23:54:12,3, PCIMCIA: The modem answer was not OK: +CMS ERROR: PS busy 2011-02-13 23:54:12,5, PCIMCIA: Waiting 10 sec. before retrying 2011-02-13 23:54:22,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:54:23,7, PCIMCIA: -> AT 2011-02-13 23:54:23,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:23,7, PCIMCIA: <- OK 2011-02-13 23:54:23,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:54:23,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:54:23,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:24,7, PCIMCIA: <- ERROR 2011-02-13 23:54:24,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:54:24,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:54:24,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:24,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:54:24,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:54:24,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:54:25,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:54:25,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:25,7, PCIMCIA: <- OK 2011-02-13 23:54:25,7, PCIMCIA: -> AT+CMGS=27 2011-02-13 23:54:25,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:26,7, PCIMCIA: <- > 2011-02-13 23:54:26,7, PCIMCIA: -> 0031000B918405716446F00000FF0EF4F29C0E8AC96620D94C579B01. 2011-02-13 23:54:26,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:26,7, PCIMCIA: <- +CMS ERROR: PS busy 2011-02-13 23:54:26,3, PCIMCIA: The modem answer was not OK: +CMS ERROR: PS busy 2011-02-13 23:54:26,5, PCIMCIA: Waiting 10 sec. before retrying 2011-02-13 23:54:36,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:54:37,7, PCIMCIA: -> AT 2011-02-13 23:54:37,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:37,7, PCIMCIA: <- OK 2011-02-13 23:54:37,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:54:37,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:54:37,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:38,7, PCIMCIA: <- ERROR 2011-02-13 23:54:38,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:54:38,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:54:38,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:38,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:54:38,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:54:38,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:54:39,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:54:39,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:39,7, PCIMCIA: <- OK 2011-02-13 23:54:39,7, PCIMCIA: -> AT+CMGS=27 2011-02-13 23:54:39,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:40,7, PCIMCIA: <- > 2011-02-13 23:54:40,7, PCIMCIA: -> 0031000B918405716446F00000FF0EF4F29C0E8AC96620D94C579B01. 2011-02-13 23:54:40,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:40,7, PCIMCIA: <- +CMS ERROR: PS busy 2011-02-13 23:54:40,3, PCIMCIA: The modem answer was not OK: +CMS ERROR: PS busy 2011-02-13 23:54:40,4, PCIMCIA: Sending SMS to 48xxxxxxxxx failed, trying time 31 sec. Retries: 2. 2011-02-13 23:54:40,6, PCIMCIA: Moved file /var/spool/sms/checked/send_xLNQRu to /var/spool/sms/failed/send_xLNQRu 2011-02-13 23:54:40,6, PCIMCIA: Checking device for incoming SMS 2011-02-13 23:54:40,6, PCIMCIA: Checking if modem is ready 2011-02-13 23:54:41,7, PCIMCIA: -> AT 2011-02-13 23:54:41,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:41,7, PCIMCIA: <- OK 2011-02-13 23:54:41,6, PCIMCIA: Pre-initializing modem 2011-02-13 23:54:41,7, PCIMCIA: -> ATE0+CMEE=1;+CREG=2 2011-02-13 23:54:41,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:42,7, PCIMCIA: <- ERROR 2011-02-13 23:54:42,3, PCIMCIA: Modem did not accept the pre-init string 2011-02-13 23:54:42,7, PCIMCIA: -> AT+CSQ 2011-02-13 23:54:42,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:42,7, PCIMCIA: <- +CSQ: 99,99 OK 2011-02-13 23:54:42,6, PCIMCIA: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable 2011-02-13 23:54:42,6, PCIMCIA: Selecting PDU mode 2011-02-13 23:54:42,7, PCIMCIA: -> AT+CMGF=0 2011-02-13 23:54:42,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:43,7, PCIMCIA: <- OK 2011-02-13 23:54:43,6, PCIMCIA: Checking memory size 2011-02-13 23:54:43,7, PCIMCIA: -> AT+CPMS? 2011-02-13 23:54:43,7, PCIMCIA: Command is sent, waiting for the answer 2011-02-13 23:54:43,7, PCIMCIA: <- +CPMS: "SM",0,50,"SM",0,50,"SM",0,50 OK 2011-02-13 23:54:43,6, PCIMCIA: Used memory is 0 of 50 2011-02-13 23:54:43,6, PCIMCIA: No SMS received 2011-02-13 23:54:53,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 156. 2011-02-13 23:54:53,2, PCIMCIA: Modem handler 0 terminated. PID: 3060, was started 11-02-13 23:52:28. 2011-02-13 23:54:53,2, smsd: Smsd mainprocess terminated. PID 156, was started 11-02-13 23:52:28. The SMS file looks like this: File: send_xLNQRu To: 48xxxxxxxxx Modem: PCIMCIA IMSI: 260060095414504 Fail_reason: +CMS ERROR: PS busy Failed: 11-02-13 23:54:40 PDU: 0031000B918405716446F00000FF0EF4F29C0E8AC96620D94C579B01 test 123 23:53 As I can see in logfile there are 2 errors: - Modem did not accept the pre-init string..., this has to be the point? - Signal Strength Indicator..., but it should not affect sending or reciving of messages? Can anyone point me to right direction where to look ? This "PS busy" error... I found nothing in forum. Regards MJ
mikolajj: Hurrayyy ;-) It's working ;-) Regards Mikolaj
mikolajj: I will try to change this code... but I'm a little afraid of this ;-) I'll let you know when I do that. But first I have to find out how to use this diff file ;-) Regards Mikolaj PS Can you give me an example how to ask modem in this regular_run.sh file to answer for this "ATDT*101#" ? I have no idea how to do that. I was looking for example on this forum but no results where found.
mikolajj: Hello, I was wondering is it possible, to as a modem a query "*101#" which will check status of prepaid card. Of course it's possible and I have found a perfect solution for this on this forum. But I stuck on a different problem, I would like to store this answer to dataase. I tried to look inside of scripts/regular_run script, but it is working on files only and I don't know how can I ask modem through command line to get answer for my "*101#" question? When I use regular_run_cmd = ATDT*101# answer is in regular_run_statfile for reading once, then this file is deleted in the "next loop". I can see that when I try to use regular_run, regular_run_cmd is skiped, so I can't ask for this file content every loop. My smsd.conf (part with modem config): ... [PCMCIA] #Sierra Wireless 750+ device = /dev/com8 pre_init = no incoming = yes outgoing = yes report = yes baudrate = 115200 loglevel = 7 #Status part regular_run_interval = 60 regular_run_cmd = ATDT*109# regular_run_cmd = ATDT*101# regular_run_statfile = /var/log/smsd_regular_run_answer.log regular_run_logfile = /var/log/smsd_regular_run.log regular_run = /etc/smsd/regular_run.sh My regrular_run.sh (very simple to check can I grab the contents of a answer file): #!/bin/bash DATE=`date +"%Y-%m-%d %H:%M:%S"` ANSWER=`cat /var/log/smsd_regular_run_answer.log` echo $DATE $ANSWER >> /tmp/tmp111 After starting I get this piece of log: 2009-08-26 13:41:50,6, PCMCIA: No SMS received 2009-08-26 13:41:50,6, PCMCIA: Running a regular_run. 2009-08-26 13:41:50,7, PCMCIA: Running regular_run (modem): /etc/smsd/regular_run.sh: /var/log/smsd_regular_run_answer.log: No such file or directory 2009-08-26 13:41:51,7, PCMCIA: Done: regular_run (modem), execution time 1 sec., status: 0 2009-08-26 13:42:01,6, PCMCIA: Checking device for incoming SMS Maby there's another way to grab answer and put this file into database? Regards Mikolaj
mikolajj: Your shared memory works well, surely you also tested it while installing OSSP mm? Yes, shared memory works fine. Regards Mikolaj
mikolajj: THX a lot. Your version is better ;-) - told you I'm not a shell geek ;-) BTW theres a strange file in sats.tmp in .../stats directory starting with "VERSION 3.1.5-1..." is this has to do sth with taking stats once per X minutes/hours from status_interval? Or sth is wrong with my shared memory and the file is used? Regards Mikolaj
mikolajj: Thx for fast answer. I did both things. Second was easier ;-) so I got my NOKIA6310i.counter file with counter ;-) But I also would like to store this info in database, so I had to count "PDU" lines. I had to google a little bit and fount this, because I'm a shell lamer 8) : tr -s ' ' '\n' < file.txt | grep -c 'WORD' so now in my handler file there's: OUT_MSG_COUNTER=`tr -s ' ' '\n' < $2 | grep -c 'PDU'` And I can save this value to DB. Hope it helps someone. THX again Mikolaj PS It's working in cygwin env.
mikolajj: Hi, I would like to store number of messages that were used to send message content. Specially that I have a prepaid phone connected to my laptop and ammount of free SMS messages is important to me. If I could save this count I could sum this and get the amount of messages left to send for free. I can't find any parameter from .../sent/somefile.EAFszDFR that shows number of SMS messages used to send message. There's only a Length parameter, but for UCS2 messages it's not equivalent to ISO Length, so dividing Length by 160 or 67 (not sure about this 67) does not make sens. Is there any config parameter to save this info inside the sent file? Regards Mikolaj

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.