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 Mar 07, 2021 17:40
SMSTools3 Community » Help and support Bottom

[answered] device = /dev/ttyUSB0 changes during unplug

  This topic is locked

Page:  1

Author Post
Member
Registered:
Jul 2011
Location: Germany
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

Member
Registered:
Jul 2011
Location: Germany
What is you linux box?
This is no error in smstools.
If you linux box used udev, search for udev and configure an udev rule for your modem.

Martin

Member
Registered:
Jul 2011
Location: Germany
Topic owner
One is OpenSuse 11.1
another is Ubuntu 11.04

Ok I need to find out how this udev thingi works ...

Member
Registered:
Jul 2011
Location: Germany
Topic owner
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

Member
Registered:
Jul 2011
Location: Germany
Topic owner
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???

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
marcel wrote
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???

At least BenQ M32 from Dealextreme is cheap and available worldwide, but usually other modems work too. However, all modems should be tested, because this functionality varies very much. If you choose BenQ, see this topic.

See Voicecall header in fileformat, there is a parameter TIME: available for hangup.

Member
Registered:
Jul 2011
Location: Germany
Topic owner
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

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
marcel wrote
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.

With Sony Ericsson you need to try voicecall_clcc or voicecall_cpas options.

With BenQ M32 see this topic: GSM Modem BenQ M32 from Dealextreme.

Member
Registered:
Jul 2011
Location: Germany
Topic owner
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

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
It seems that you did not restart smsd after changing the configuration. Settings will take effect when smsd is restarted.

Your configuration now has both voicecall_clcc and voicecall_cpas defined, and smsd will not start. You have to decide which one to use. First try with voicecall_clcc, and if it does not work with your modem, try with voicecall_cpas.

Member
Registered:
Jul 2011
Location: Germany
Topic owner
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:


Usually I would expect the IMEI for "iSerial: "

Marcel

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
You could connect devices to physical ports, like is done in this post.

  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.