|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Thu Mar 13, 2025 07:47 |
Page: 1
Keywords: Mode: All keywords (AND) |
Sun Oct 07, 2012 10:16
|
marcel: I have debugged into it but in the debugger the variable
process_id remains -1
and like this lockfile() crashes (accessing an array with -1):
devices[process_id]
The fork() should assign a process_id to the child, I'm not sure
why the parent process with process_id==-1 ends up in lock() ...
So currently I'm stuck.
But to summarize: use a 32 bit compilation of smsd and all works fine.
To enable 32bit compilation add the -m32 command line option to smstools3/src/Makefile
CFLAGS += -W -Wall -m32
and recompile (be sure to have gcc-32 additionally installed on your 64bit machine)
Probably it is related to site_t being different in 64bit systems, but this is a guess.
Also I had the impression that the code is not buffer overflow save.
regards
Marcel
|
Sun Oct 07, 2012 08:43
|
marcel: Ok, I think it is related to my 64bit compilation.
When using the binary from the other machine it works:
nettop:/usr/local/bin # ldd smsd
linux-gate.so.1 (0xf7729000)
libc.so.6 => /lib/libc.so.6 (0xf7568000)
/lib/ld-linux.so.2 (0xf772a000)
nettop:/usr/local/bin # ldd v3.1.14selfcompiled/smsd
linux-vdso.so.1 (0x00007fff601e7000)
libc.so.6 => /lib64/libc.so.6 (0x00007f4809c2f000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4809fd4000)
as you can see the not working variant uses the 64bit loader.
...
|
Sun Oct 07, 2012 08:41
|
marcel:
Operating system name and version:
OpenSuse 12.2
Version of smsd:
3.1.14
Smsd installed from: sources / package repository / from elsewhere...
source
Name and model of a modem / phone:
BenQ
Interface: serial / USB / some adapter...
USB
I have the same configuration running successfully on another server.
But on the new server the outgoing directory setting seems to be ignored.
If I put a SMS file (which works well on the other server) into the outgoing directory
it is not sent by smsd.
It is moved to the checked directory, but then nothing happens:
> ls -al out
drwxrwxr-x 3 watchee users 4096 7. Okt 10:30 .
drwxrwxr-x 10 watchee users 4096 7. Okt 10:30 ..
-rw-r--r-- 1 watchee users 37 7. Okt 10:30 2012-10-06-sms.txt
drwxrwxr-x 6 watchee users 4096 6. Okt 16:48 .svn
> ls -al out l checked/
drwxrwxr-x 3 watchee users 4096 7. Okt 10:30 .
drwxrwxr-x 10 watchee users 4096 7. Okt 10:30 ..
-rw-r--r-- 1 watchee uucp 0 7. Okt 10:30 2012-10-06-sms.txt.LOCK
drwxrwxr-x 6 watchee users 4096 6. Okt 16:48 .svn
> ls -al out sent
drwxrwxr-x 3 watchee users 4096 7. Okt 10:27 .
drwxrwxr-x 10 watchee users 4096 7. Okt 10:30 ..
drwxrwxr-x 6 watchee users 4096 6. Okt 16:48 .svn
The Logfile with loglevel = 7 does not give me any hint.
I run smsd as a normal user, and this user owns the outgoing directory.
What could be the reason?
How can I debug the situation?
Thank you
Marcel
|
Sat Oct 06, 2012 16:57
|
marcel: Operating system name and version:
OpenSuse 12.2
Version of smsd:
3.1.14
Smsd installed from: sources / package repository / from elsewhere...
source
Name and model of a modem / phone:
BenQ
Interface: serial / USB / some adapter...
USB
I have the same configuration running successfully on another server.
But on the new server the outgoing directory setting seems to be ignored.
If I put a SMS file (which works well on the other server) into the outgoing directory
it is not detected by smsd.
It is not moved to the checked directory.
The Logfile with loglevel = 7 does not give me any hint.
I run smsd as a normal user, and this user owns the outgoing directory.
What could be the reason?
How can I debug the situation?
Thank you
Marcel
|
Fri Nov 25, 2011 11:25
|
marcel: It is a Siemens Module MC388 or 389
|
Thu Nov 24, 2011 10:43
|
marcel: I have introduced a "sleep 4" before starting smsd after plugin the modem to USB,
now everything seems to work:
In my /lib/udev/rules.d/76-GSM-Modem.rules file:
KERNELS=="5-1:1.0",SYMLINK+="GSM-Modem",GROUP="uucp",ACTION=="add",RUN+="/etc/init.d/sms3-marcel restart"
(in /etc/init.d/sms3-marcel a sleep 4 is added)
It seems the modem needs some seconds after getting power before we start
talking to it.
regards
Marcel
|
Thu Nov 24, 2011 09:40
|
marcel: I am leaving away -> AT+CNMI=0,0,0,1,0 but this doesn't help:
2011-11-24 10:37:54,7, : -> AT+CREG?
2011-11-24 10:37:54,7, : Command is sent, waiting for the answer
2011-11-24 10:38:04,7, : put_command expected (\+CREG:.*OK)|(ERROR), timeout occurred. 5.
2011-11-24 10:38:04,7, : <-
2011-11-24 10:38:04,3, : Error: Unexpected answer from Modem after +CREG?, waiting 1 sec. before retrying
2011-11-24 10:38:05,7, : -> AT+CSQ
2011-11-24 10:38:05,7, : Command is sent, waiting for the answer
2011-11-24 10:38:15,7, : put_command expected (OK)|(ERROR), timeout occurred. 6.
2011-11-24 10:38:15,7, : <-
seems to be a strange modem ....
|
Wed Nov 23, 2011 19:01
|
marcel: Operating system name and version: Ubuntu 11.10
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: USB GPRS Modem China: G-388U
Interface: USB
I have ordered a cheap china modem, but using it fails (the same works fine for EST-600U):
2011-11-23 19:55:44,5, GSM-Modem: Using check_memory_method 31: CMGL is used and messages are taken from the list.
2011-11-23 19:55:44,6, GSM-Modem: Checking device for incoming SMS
2011-11-23 19:55:44,6, GSM-Modem: Checking if modem is ready
2011-11-23 19:55:44,7, GSM-Modem: -> AT
2011-11-23 19:55:44,7, GSM-Modem: Command is sent
2011-11-23 19:55:44,7, GSM-Modem: -> AT
2011-11-23 19:55:44,7, GSM-Modem: Command is sent, waiting for the answer
2011-11-23 19:55:46,7, GSM-Modem: <- AT OK AT OK
2011-11-23 19:55:46,6, GSM-Modem: Pre-initializing modem
2011-11-23 19:55:46,7, GSM-Modem: -> ATE0+CMEE=1;+CLIP=1;+CREG=2
2011-11-23 19:55:46,7, GSM-Modem: Command is sent, waiting for the answer
2011-11-23 19:55:47,7, GSM-Modem: <- ATE0+CMEE=1;+CLIP=1;+CREG=2 OK
2011-11-23 19:55:47,6, GSM-Modem: Checking if modem needs PIN
2011-11-23 19:55:47,7, GSM-Modem: -> AT+CPIN?
2011-11-23 19:55:47,7, GSM-Modem: Command is sent, waiting for the answer
2011-11-23 19:55:47,7, GSM-Modem: <- +CPIN: READY OK
2011-11-23 19:55:47,6, GSM-Modem: Initializing modem
2011-11-23 19:55:47,7, GSM-Modem: -> AT+CNMI=0,0,0,1,0
2011-11-23 19:55:47,7, GSM-Modem: Command is sent, waiting for the answer
2011-11-23 19:55:48,7, GSM-Modem: <- +CMS ERROR: 500 (Unknown error)
2011-11-23 19:55:58,7, GSM-Modem: -> AT+CNMI=0,0,0,1,0
2011-11-23 19:55:58,7, GSM-Modem: Command is sent, waiting for the answer
2011-11-23 19:56:08,7, GSM-Modem: put_command expected (OK)|(ERROR), timeout occurred. 1.
2011-11-23 19:56:08,7, GSM-Modem: <-
2011-11-23 19:56:08,3, GSM-Modem: Modem did not accept the init string
2011-11-23 19:56:18,6, GSM-Modem: Checking device for incoming SMS
2011-11-23 19:56:18,6, GSM-Modem: Checking if modem is ready
2011-11-23 19:56:18,7, GSM-Modem: -> AT
2011-11-23 19:56:18,7, GSM-Modem: Command is sent
2011-11-23 19:56:18,7, GSM-Modem: -> AT
2011-11-23 19:56:18,7, GSM-Modem: Command is sent, waiting for the answer
2011-11-23 19:56:23,7, GSM-Modem: put_command expected (OK)|(ERROR), timeout occurred. 2.
Is this a known device with a solution?
Thanks
Marcel
|
Mon Sep 19, 2011 14:41
|
marcel: Thank you for the link, yes this would have done it.
I like the smart way to choose the modem from a line inside a message ...
But I have setup yesterday the system running with multiple different smsd -c<configXYZ> processes.
Like this they are completely separate accessing messages from different directories.
One challenge was not easy to resolve: How force a modem to always use the same /dev/GSM-Modem-Prolific-100 etc USB links.
The problem is that the Prolific / BenQ modem does not return any unique serial number (no IMEI or such).
So the only way to distinguish the modems (and their SIMs inside) was to name each USB plug with a handwritten memo
on the PC and always plugin the modem to the correct USB port.
The next challenge was that on my ZOTAC Linux box the USB port was not queryable:
udevadm info --name=/dev/ttyUSB0 --attribute-walk
always two USB ports had a same identifier. But from the six USB ports three pairs where unique
and like this I could insert my modems as I only need three modems (what a luck).
On my other PC, the udev rules where again completely different ...
Here are some example of udev rules which worked:
KERNELS=="3-1:1.0",SYMLINK+="GSM-Modem-Prolific-100",GROUP="uucp",ACTION=="add",RUN+="/etc/init.d/sms3-100 restart"
KERNELS=="5-1:1.0",SYMLINK+="GSM-Modem-BenQ-200",GROUP="uucp",ACTION=="add",RUN+="/etc/init.d/sms3-200 restart"
KERNEL=="ttyACM?",ATTRS{idVendor}=="0fce",ATTRS{idProduct}=="d0d9",SYMLINK+="SonyEricssonC702-300",ACTION=="add",RUN+="/etc/init.d/sms3-300 restart"
I hope this help others,
regards
Marcel
|
Sun Sep 18, 2011 14:25
|
marcel: Operating system name and version: Ubuntu
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: Prolific,BenQ,SE-C702,SE-Hazel
Interface: USB
Hi,
I have three different domains, each needs to send&receive SMS via a separate SIM card in a separate modem/phone device.
In the modem section I can't change the pathes: outgoing/incoming etc,
so how can I route the SMS to the correct modem?
I can adjust the /etc/init.d/sms3 script to start multiple versions of smsd with differen -c<smsconf> files.
Is this the recomended way to do?
For understanding:
When people discuss in this forum they have 20 modems at one Linux box (devices=modem1,modem2,...,modem20)
does that mean that those 20 devices do a load balancing? One of the 20 picks the next of the SMS from the outgoing path and sends it, like this one can send simultaneously 20 files from outgoing path?
Thanks
Marcel
|
Tue Jul 26, 2011 23:33
|
marcel: Thank you!
The position of the modem is indeed bad, I have to search a new location.
regards
Marcel
|
Mon Jul 25, 2011 17:31
|
marcel: With the new Prolific BenQ M32 I get then and again (on Ubuntu 11.4 smstools3-3.1.14 with SE voicecall patch)
2011-07-25 19:28:02,7, GSM_PROLIFIC_MODEM: Command is sent, waiting for the answer
2011-07-25 19:28:02,7, GSM_PROLIFIC_MODEM: <- +CREG: 2, 2 OK
2011-07-25 19:28:02,5, GSM_PROLIFIC_MODEM: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 5. TIME
2011-07-25 19:28:04,7, GSM_PROLIFIC_MODEM: -> AT+CSQ
2011-07-25 19:28:04,7, GSM_PROLIFIC_MODEM: Command is sent, waiting for the answer
2011-07-25 19:28:04,7, GSM_PROLIFIC_MODEM: <- +CSQ: 99,0 OK
2011-07-25 19:28:04,5, GSM_PROLIFIC_MODEM: Signal Strength Indicator: not present of not measurable, Bit Error Rate: less than 0.2 %
2011-07-25 19:28:04,7, GSM_PROLIFIC_MODEM: -> AT+CREG?
2011-07-25 19:28:04,7, GSM_PROLIFIC_MODEM: Command is sent, waiting for the answer
2011-07-25 19:28:04,7, GSM_PROLIFIC_MODEM: <- +CREG: 2, 2 OK
2011-07-25 19:28:04,5, GSM_PROLIFIC_MODEM: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 6. TIME
2011-07-25 19:28:06,7, GSM_PROLIFIC_MODEM: -> AT+CSQ
2011-07-25 19:28:06,7, GSM_PROLIFIC_MODEM: Command is sent, waiting for the answer
2011-07-25 19:28:06,7, GSM_PROLIFIC_MODEM: <- +CSQ: 99,0 OK
2011-07-25 19:28:06,5, GSM_PROLIFIC_MODEM: Signal Strength Indicator: not present of not measurable, Bit Error Rate: less than 0.2 %
2011-07-25 19:28:06,7, GSM_PROLIFIC_MODEM: -> AT+CREG?
2011-07-25 19:28:06,7, GSM_PROLIFIC_MODEM: Command is sent, waiting for the answer
2011-07-25 19:28:06,7, GSM_PROLIFIC_MODEM: <- +CREG: 2, 2 OK
2011-07-25 19:28:06,5, GSM_PROLIFIC_MODEM: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 7. TIME
2011-07-25 19:28:08,7, GSM_PROLIFIC_MODEM: -> AT+CSQ
2011-07-25 19:28:08,7, GSM_PROLIFIC_MODEM: Command is sent, waiting for the answer
2011-07-25 19:28:08,7, GSM_PROLIFIC_MODEM: <- +CSQ: 99,0 OK
2011-07-25 19:28:08,5, GSM_PROLIFIC_MODEM: Signal Strength Indicator: not present of not measurable, Bit Error Rate: less than 0.2 %
2011-07-25 19:28:08,7, GSM_PROLIFIC_MODEM: -> AT+CREG?
What could be the reason for this?
Thanks again
Marcel
|
Mon Jul 25, 2011 13:09
|
marcel: About the changing USB0/USB1:
Setting up udev with suse and ubuntu works fine to enforce a nice name.
But note that the BenQ or Prolific modem don't report their IMEI via USB,
so it is difficult to setpu two or more modems on the same PC
as you can't distinguish them:
lsusb -v:
Bus 001 Device 023: ID 067b:0609 Prolific Technology, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x067b Prolific Technology, Inc.
idProduct 0x0609
bcdDevice 0.00
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Usually I would expect the IMEI for "iSerial: "
Marcel
|
Mon Jul 25, 2011 12:41
|
marcel: Feedback:
The new modem from dealextreme.com (Manufacturer Prolific Technology, Inc.) for US$25.36 has arrived.
VoiceCall and SMS send and SMS receive works fine.
The only strange log output is
Unexpected input: +CREG: 1, 1E27, 45A5
(which I ignore)
Here are its details:
----------------------------
2011-07-25 14:34:49,7, GSM_PROLIFIC_MODEM: ## Start of device details
2011-07-25 14:34:49,7, GSM_PROLIFIC_MODEM: # Manufacturer identification:
2011-07-25 14:34:49,7, GSM_PROLIFIC_MODEM: -> AT+CGMI
2011-07-25 14:34:50,7, GSM_PROLIFIC_MODEM: <- BenQ
OK
2011-07-25 14:34:50,7, GSM_PROLIFIC_MODEM: # Model identification:
2011-07-25 14:34:50,7, GSM_PROLIFIC_MODEM: -> AT+CGMM
2011-07-25 14:34:50,7, GSM_PROLIFIC_MODEM: <- M32
OK
2011-07-25 14:34:50,7, GSM_PROLIFIC_MODEM: # Revision identification:
2011-07-25 14:34:50,7, GSM_PROLIFIC_MODEM: -> AT+CGMR
2011-07-25 14:34:51,7, GSM_PROLIFIC_MODEM: <- SW ver: 1.80
HW ver: 1.00
FS ver: 1.00
Build Date: 2004/6/25
Build Time: 18:40:37
OK
2011-07-25 14:34:51,7, GSM_PROLIFIC_MODEM: # New message indications, list of supported modes:
2011-07-25 14:34:51,7, GSM_PROLIFIC_MODEM: -> AT+CNMI=?
2011-07-25 14:34:51,7, GSM_PROLIFIC_MODEM: <- +CNMI: (0-2),(0-3),(0,2),(0,1),(0,1)
OK
2011-07-25 14:34:51,7, GSM_PROLIFIC_MODEM: # New message indications, current settings:
2011-07-25 14:34:51,7, GSM_PROLIFIC_MODEM: -> AT+CNMI?
2011-07-25 14:34:52,7, GSM_PROLIFIC_MODEM: <- +CNMI: 0,0,0,1,0
OK
2011-07-25 14:34:52,7, GSM_PROLIFIC_MODEM: # Preferred message storage, list of supported mem's:
2011-07-25 14:34:52,7, GSM_PROLIFIC_MODEM: -> AT+CPMS=?
2011-07-25 14:34:52,7, GSM_PROLIFIC_MODEM: <- +CPMS: ("ME","SM"),("ME","SM"),("ME","SM")
OK
2011-07-25 14:34:52,7, GSM_PROLIFIC_MODEM: # Phonebook storage, available mem's:
2011-07-25 14:34:52,7, GSM_PROLIFIC_MODEM: -> AT+CPBS=?
2011-07-25 14:34:53,7, GSM_PROLIFIC_MODEM: <- +CPBS: ("EN","FD","DC","LD","RC","SM","MC","ON")
OK
2011-07-25 14:34:53,7, GSM_PROLIFIC_MODEM: # List messages, list of supported stat's:
2011-07-25 14:34:53,7, GSM_PROLIFIC_MODEM: -> AT+CMGL=?
2011-07-25 14:34:53,7, GSM_PROLIFIC_MODEM: <- +CMGL: (0,1,2,3,4)
OK
2011-07-25 14:34:53,7, GSM_PROLIFIC_MODEM: # Delete message, list of supported values:
2011-07-25 14:34:53,7, GSM_PROLIFIC_MODEM: -> AT+CMGD=?
2011-07-25 14:34:54,7, GSM_PROLIFIC_MODEM: <- OK
2011-07-25 14:34:54,7, GSM_PROLIFIC_MODEM: # Phone activity status, list of supported stat's:
2011-07-25 14:34:54,7, GSM_PROLIFIC_MODEM: -> AT+CPAS=?
2011-07-25 14:34:54,7, GSM_PROLIFIC_MODEM: <- +CPAS: (0-5)
OK
2011-07-25 14:34:54,7, GSM_PROLIFIC_MODEM: # TE character set, list of supported charset's:
2011-07-25 14:34:54,7, GSM_PROLIFIC_MODEM: -> AT+CSCS=?
2011-07-25 14:34:55,7, GSM_PROLIFIC_MODEM: <- +CSCS: "GSM","IRA","PCCP437","PCDN","8859-1","HEX","UCS2"
OK
2011-07-25 14:34:55,7, GSM_PROLIFIC_MODEM: # TE character set, current setting:
2011-07-25 14:34:55,7, GSM_PROLIFIC_MODEM: -> AT+CSCS?
2011-07-25 14:34:55,7, GSM_PROLIFIC_MODEM: <- +CSCS: "IRA"
OK
2011-07-25 14:34:55,7, GSM_PROLIFIC_MODEM: ## End of device details
---------------
regards
Marcel
|
Mon Jul 18, 2011 19:47
|
marcel: It is a device probably very similar to Dealextreme, I'm using this since several years but couldn't find it any more for purchase.
Unfortunately it only runs on a very old notebook via USB.
Trying it on my new ZOTEC nettop refuses to work.
---------------------------------- DETAILS -----------------------
2011-07-18 21:44:16,2, smsd: Smsd v3.1.14 started.
2011-07-18 21:44:16,2, smsd: Running as watchee:uucp.
2011-07-18 21:44:16,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2011-07-18 21:44:16,5, GSM_BENQ_MODEM: Modem handler 0 has started. PID: 5653.
2011-07-18 21:44:16,5, smsd: Outgoing file checker has started. PID: 5652.
2011-07-18 21:44:16,5, GSM_BENQ_MODEM: Using check_memory_method 31: CMGL is used and messages are taken from the list.
2011-07-18 21:44:21,5, GSM_BENQ_MODEM: CGSN: 35815600206294-9IMEISV: 35815600206294-52
2011-07-18 21:44:21,5, GSM_BENQ_MODEM: IMSI: 262032251657506
2011-07-18 21:44:22,7, GSM_BENQ_MODEM: ## Start of device details
2011-07-18 21:44:22,7, GSM_BENQ_MODEM: # Manufacturer identification:
2011-07-18 21:44:22,7, GSM_BENQ_MODEM: -> AT+CGMI
2011-07-18 21:44:22,7, GSM_BENQ_MODEM: <- BenQ
OK
2011-07-18 21:44:22,7, GSM_BENQ_MODEM: # Model identification:
2011-07-18 21:44:23,7, GSM_BENQ_MODEM: -> AT+CGMM
2011-07-18 21:44:23,7, GSM_BENQ_MODEM: <- M23A
OK
2011-07-18 21:44:23,7, GSM_BENQ_MODEM: # Revision identification:
2011-07-18 21:44:23,7, GSM_BENQ_MODEM: -> AT+CGMR
2011-07-18 21:44:24,7, GSM_BENQ_MODEM: <- SW ver: 1.43
HW ver: 1.00
FS ver: 1.00
Build Date: 2006/9/18
Build Time: 19:27:16
OK
2011-07-18 21:44:24,7, GSM_BENQ_MODEM: # New message indications, list of supported modes:
2011-07-18 21:44:24,7, GSM_BENQ_MODEM: -> AT+CNMI=?
2011-07-18 21:44:24,7, GSM_BENQ_MODEM: <- +CNMI: (0-2),(0-3),(0,2),(0,1),(0,1)
OK
2011-07-18 21:44:24,7, GSM_BENQ_MODEM: # New message indications, current settings:
2011-07-18 21:44:24,7, GSM_BENQ_MODEM: -> AT+CNMI?
2011-07-18 21:44:25,7, GSM_BENQ_MODEM: <- +CNMI: 0,0,0,1,0
OK
2011-07-18 21:44:25,7, GSM_BENQ_MODEM: # Preferred message storage, list of supported mem's:
2011-07-18 21:44:25,7, GSM_BENQ_MODEM: -> AT+CPMS=?
2011-07-18 21:44:25,7, GSM_BENQ_MODEM: <- +CPMS: ("ME","SM"),("ME","SM"),("ME","SM")
OK
2011-07-18 21:44:25,7, GSM_BENQ_MODEM: # Phonebook storage, available mem's:
2011-07-18 21:44:25,7, GSM_BENQ_MODEM: -> AT+CPBS=?
2011-07-18 21:44:26,7, GSM_BENQ_MODEM: <- +CPBS: ("EN","FD","DC","LD","RC","SM","MC","ON")
OK
2011-07-18 21:44:26,7, GSM_BENQ_MODEM: # List messages, list of supported stat's:
2011-07-18 21:44:26,7, GSM_BENQ_MODEM: -> AT+CMGL=?
2011-07-18 21:44:26,7, GSM_BENQ_MODEM: <- +CMGL: (0,1,2,3,4)
OK
2011-07-18 21:44:26,7, GSM_BENQ_MODEM: # Delete message, list of supported values:
2011-07-18 21:44:26,7, GSM_BENQ_MODEM: -> AT+CMGD=?
2011-07-18 21:44:27,7, GSM_BENQ_MODEM: <- OK
2011-07-18 21:44:27,7, GSM_BENQ_MODEM: # Phone activity status, list of supported stat's:
2011-07-18 21:44:27,7, GSM_BENQ_MODEM: -> AT+CPAS=?
2011-07-18 21:44:27,7, GSM_BENQ_MODEM: <- +CPAS: (0-5)
OK
2011-07-18 21:44:27,7, GSM_BENQ_MODEM: # TE character set, list of supported charset's:
2011-07-18 21:44:27,7, GSM_BENQ_MODEM: -> AT+CSCS=?
2011-07-18 21:44:28,7, GSM_BENQ_MODEM: <- +CSCS: "GSM","IRA","PCCP437","PCDN","8859-1","HEX","UCS2"
OK
2011-07-18 21:44:28,7, GSM_BENQ_MODEM: # TE character set, current setting:
2011-07-18 21:44:28,7, GSM_BENQ_MODEM: -> AT+CSCS?
2011-07-18 21:44:28,7, GSM_BENQ_MODEM: <- +CSCS: "IRA"
OK
2011-07-18 21:44:28,7, GSM_BENQ_MODEM: ## End of device details
Thanks
Marcel
|
Mon Jul 18, 2011 17:25
|
marcel: Hi Keke,
this works perfectly!!!
Thank you (I was missing/trying this for several years now),
regards
Marcel
|
Mon Jul 18, 2011 13:16
|
marcel: Operating system name and version: Linux OpenSuse 11.0
Version of smsd: 3.1.12
Smsd installed from: sources
Name and model of a modem / phone: BenQ HXT-600U+
Interface: USB
My goal: Call a phone, ring about five times, hangup
--------------
device = /dev/ttyUSB0
incoming = yes
baudrate = 9600
init = AT+CNMI=0,0,0,1,0
check_memory_method = 31
phonecalls = clip
voicecall_hangup_ath = yes
# If yes: TIME has no effekt
voicecall_cpas = no
voicecall_clcc = yes
needs_wakeup_at = yes
using_routed_status_report = yes
routed_status_report_cnma = no
--------------
and
------------
To: 49175461XXXXX
Voicecall: 1
TONE: TIME: 8 2 #
------------
but now it rings forever and lands in the mailbox (TIME is ignored)
what can I try to reach my goal?
If I leave away voicecall_cpas and voicecall_clcc it reaches the phone but hangs up immediately without ringing.
Thanks a lot
Marcel
|
Mon Jul 18, 2011 05:43
|
marcel: Testing outgoing voicecall still fails with Sony Ericsson C702 as modem,
the call arrives at the destination but is hang up immediately without ringing:
-----------------------------
[GSM-C702]
device = /dev/C702
incoming = yes
baudrate = 9600
init = AT+CPMS="ME","ME","ME"
voicecall_clcc=yes
voicecall_cpas=yes
-----------------------------
and
-----------------------------
To: 491754616XXX
Voicecall: 1
TONE: TIME: 35 2 #
-----------------------------
2011-07-18 07:36:57,6, GSM-C702: Checking if modem is ready
2011-07-18 07:36:57,7, GSM-C702: -> AT
2011-07-18 07:36:57,7, GSM-C702: Command is sent, waiting for the answer
2011-07-18 07:36:57,7, GSM-C702: <- OK
2011-07-18 07:36:57,6, GSM-C702: Pre-initializing modem
2011-07-18 07:36:57,7, GSM-C702: -> ATE0+CMEE=1;+CREG=2
2011-07-18 07:36:57,7, GSM-C702: Command is sent, waiting for the answer
2011-07-18 07:36:57,7, GSM-C702: <- OK
2011-07-18 07:36:57,6, GSM-C702: Initializing modem
2011-07-18 07:36:57,7, GSM-C702: -> AT+CPMS="ME","ME","ME"
2011-07-18 07:36:57,7, GSM-C702: Command is sent, waiting for the answer
2011-07-18 07:36:58,7, GSM-C702: <- +CPMS: 0,47280,0,47280,0,47280 OK
2011-07-18 07:36:58,7, GSM-C702: -> AT+CSQ
2011-07-18 07:36:58,7, GSM-C702: Command is sent, waiting for the answer
2011-07-18 07:36:58,7, GSM-C702: <- +CSQ: 6,99 OK
2011-07-18 07:36:58,6, GSM-C702: Signal Strength Indicator: (6,99) -101 dBm (Marginal), Bit Error Rate: not known or not detectable
2011-07-18 07:36:58,6, GSM-C702: Checking if Modem is registered to the network
2011-07-18 07:36:58,7, GSM-C702: -> AT+CREG?
2011-07-18 07:36:58,7, GSM-C702: Command is sent, waiting for the answer
2011-07-18 07:36:58,7, GSM-C702: <- +CREG: 2,1,"1E27","000045A5" OK
2011-07-18 07:36:58,6, GSM-C702: Modem is registered to the network
2011-07-18 07:36:58,6, GSM-C702: Selecting PDU mode
2011-07-18 07:36:58,7, GSM-C702: -> AT+CMGF=0
2011-07-18 07:36:58,7, GSM-C702: Command is sent, waiting for the answer
2011-07-18 07:36:58,7, GSM-C702: <- OK
2011-07-18 07:36:58,6, GSM-C702: I have to make a voice call to 491754616XXX, with (2 times) DTMF #
2011-07-18 07:36:58,7, GSM-C702: -> ATD+491754616XXX;
2011-07-18 07:36:58,7, GSM-C702: Command is sent
2011-07-18 07:36:58,7, GSM-C702: Waiting for 35 seconds
2011-07-18 07:37:00,7, GSM-C702: <- OK
2011-07-18 07:37:00,6, GSM-C702: The result of a voice call was OK
2011-07-18 07:37:03,7, GSM-C702: -> AT+VTS=#
2011-07-18 07:37:03,7, GSM-C702: Command is sent, waiting for the answer
2011-07-18 07:37:03,7, GSM-C702: <- +CME ERROR: 100 (unknown)
2011-07-18 07:37:06,7, GSM-C702: -> AT+VTS=#
2011-07-18 07:37:06,7, GSM-C702: Command is sent, waiting for the answer
2011-07-18 07:37:06,7, GSM-C702: <- +CME ERROR: 100 (unknown)
2011-07-18 07:37:07,7, GSM-C702: -> AT+CHUP
2011-07-18 07:37:07,7, GSM-C702: Command is sent, waiting for the answer
2011-07-18 07:37:08,7, GSM-C702: <- OK
|
Sat Jul 09, 2011 09:28
|
marcel: I have ordered a BenQ M32, thank you!
Voicecall:
Sending a
-----------
To: 49175XXXXXX
Voicecall: 1
TONE: TIME: 35 2 #
-----------
or any other TONE variant fails partly:
-----------
2011-07-09 11:01:31,6, GSM-C702: I have to make a voice call to 49175XXXXXX, with (2 times) DTMF #
2011-07-09 11:01:31,7, GSM-C702: -> ATD+49175XXXXXX;
2011-07-09 11:01:31,7, GSM-C702: Command is sent
2011-07-09 11:01:31,7, GSM-C702: Waiting for 35 seconds
2011-07-09 11:01:33,7, GSM-C702: <- OK
2011-07-09 11:01:33,6, GSM-C702: The result of a voice call was OK
2011-07-09 11:01:36,7, GSM-C702: -> AT+VTS=#
2011-07-09 11:01:36,7, GSM-C702: Command is sent, waiting for the answer
2011-07-09 11:01:36,7, GSM-C702: <- +CME ERROR: 100 (unknown)
-----------
The receiver-phone receives the call for some milliseconds (I can see the received call in the phone)
but no ringing is done, as if it is immediately hang up.
regards
Marcel
|
Fri Jul 08, 2011 15:47
|
marcel: Ok resolved
I can choose the default USB connection mode on my C702 in the menu "Connection" (German: "Verbindungen")
-> Now I boot my Ubuntu and the Sony Ericsson is ready for SMS send/receive without any interaction!
Great!
PS: But still one more question:
Which cheap sms modem available in Germany (for SMS send/rcv and doing a call to another phone with just ringing a couple of times) can anybody recommend?
Is it possible to trigger the C702 to initiate a phone call and hang up again???
|
Fri Jul 08, 2011 15:37
|
marcel: Ok, now the system automatically adds a symbolic link to the correct device (here Ubuntu 11.04 with Sony Ericsson C702):
> ls -al /dev/C702
> lrwxrwxrwx 1 root root 7 2011-07-08 17:08 /dev/C702 -> ttyACM2
If have created this file: /lib/udev/rules.d/76-SonyEricssonC702.rules
after reading http://wiki.ubuntuusers.de/UDEV
-----------------
BUS=="usb",KERNEL=="ttyACM?",SYSFS{serial}=="357787024794XXXX",SYMLINK+="C702",ACTION=="add",RUN+="/etc/init.d/sms3 restart"
-----------------
But now one problem remains:
After reboot of Ubuntu I have to manually choose "Phone Mode" on the C702 display.
Question:
Is there a way to avoid the user interaction? If not:
What cheap SMS modem available in Germany can anybody recommend (to receive and send SMS, and probably also to trigger phone calls on demand, just ringing some times and hang up), which I connect to my Ubuntu box with USB?
Thank you
Marcel
|
Fri Jul 08, 2011 14:38
|
marcel: init = AT+CPMS="ME","ME","ME"
works with Sony Ericsson Hazel and C702, thank you!
(init = AT+CPMS="ME" responded ERROR)
|
Fri Jul 08, 2011 09:25
|
marcel: Operating system name and version: Ubuntu 11.04
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: Sony Ericsson Hazel
Interface: USB
I can send SMS with my Hazel with sms3.
But when I want to receive SMS they land on the screen of the Hazel Phone and not in my computer.
In the FAQ I have read to send some AT commands to my phone,
i have tryed to send AT+CPMS="SM","SM","SM" to it with minicom, and got a OK, but
still no SMS is coming to my computer.
Thank you
Marcel
2011-07-08 11:16:53,6, GSM1: Checking device for incoming SMS
2011-07-08 11:16:53,6, GSM1: Checking if modem is ready
2011-07-08 11:16:53,7, GSM1: -> AT
2011-07-08 11:16:53,7, GSM1: Command is sent, waiting for the answer
2011-07-08 11:16:53,7, GSM1: <- OK
2011-07-08 11:16:53,6, GSM1: Pre-initializing modem
2011-07-08 11:16:53,7, GSM1: -> ATE0+CMEE=1;+CREG=2
2011-07-08 11:16:53,7, GSM1: Command is sent, waiting for the answer
2011-07-08 11:16:54,7, GSM1: <- OK
2011-07-08 11:16:54,6, GSM1: Checking if modem needs PIN
2011-07-08 11:16:54,7, GSM1: -> AT+CPIN?
2011-07-08 11:16:54,7, GSM1: Command is sent, waiting for the answer
2011-07-08 11:16:54,7, GSM1: <- +CPIN: READY OK
2011-07-08 11:16:54,7, GSM1: -> AT+CSQ
2011-07-08 11:16:54,7, GSM1: Command is sent, waiting for the answer
2011-07-08 11:16:55,7, GSM1: <- +CSQ: 13,99 OK
2011-07-08 11:16:55,6, GSM1: Signal Strength Indicator: (13,99) -87 dBm (Workable), Bit Error Rate: not known or not detectable
2011-07-08 11:16:55,6, GSM1: Checking if Modem is registered to the network
2011-07-08 11:16:55,7, GSM1: -> AT+CREG?
2011-07-08 11:16:55,7, GSM1: Command is sent, waiting for the answer
2011-07-08 11:16:55,7, GSM1: <- +CREG: 2,1,"1E27","000045A5" OK
2011-07-08 11:16:55,6, GSM1: Modem is registered to the network
2011-07-08 11:16:55,6, GSM1: Selecting PDU mode
2011-07-08 11:16:55,7, GSM1: -> AT+CMGF=0
2011-07-08 11:16:55,7, GSM1: Command is sent, waiting for the answer
2011-07-08 11:16:56,7, GSM1: <- OK
2011-07-08 11:16:56,6, GSM1: Checking memory size
2011-07-08 11:16:56,7, GSM1: -> AT+CPMS?
2011-07-08 11:16:56,7, GSM1: Command is sent, waiting for the answer
2011-07-08 11:16:56,7, GSM1: <- +CPMS: "SM",0,30,"SM",0,30,"ME",18,85328 OK
2011-07-08 11:16:56,6, GSM1: Used memory is 0 of 30
2011-07-08 11:16:56,6, GSM1: No SMS received
|
Fri Jul 08, 2011 09:14
|
marcel: One is OpenSuse 11.1
another is Ubuntu 11.04
Ok I need to find out how this udev thingi works ...
|
Fri Jul 08, 2011 07:58
|
marcel: Hi,
on my Linux boxes with smstools 3.1.14, when I unplug the USB modem and plug in again
the device changes on each cable-plug-action from
/dev/ttyUSB0 -> /dev/ttyUSB1 -> /dev/ttyUSB2 ...
As /etc/smsd.conf uses a fixed
device = /dev/ttyUSB0
then the SMS sending/receiving fails.
How can I fix this automatically?
Thank you
Marcel
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|