Author |
Post |
|
#1 Thu Sep 10, 2009 14:37, 187 months ago.
|
Member
Registered: Aug 2009
Location: Mexico DF, Mexico
|
Dears
I’m working with SMS Tools now and I need to know if exist any application that auto-configure the modems.
I need an utility like wvdialconf. or any way to auto configure the modems or cell phones attached automatically.
I wait your news soon.
Thank in advance Cristian
|
|
#2 Fri Sep 11, 2009 15:59, 187 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
If I understood this correctly, there are no such kind of existing applications. You have to know what modem is connected to the each port and then modify your smsd.conf configuration before starting the smsd.
If you are using USB devices, you perhaps can use udev to get fixed port definitions.
Plug'n Play is not implemented inside the daemon, if this is what you are missing.
|
|
#3 Fri Sep 18, 2009 01:29, 186 months ago.
|
Member
Registered: Aug 2009
Location: Mexico DF, Mexico
Topic owner
|
Thank you for your answer..
Can I pre-configure 64 GSM devices in smsd.conf with default standard values??
What happen if i use only one modem but i have 64 configured in smsd.conf?
Sorry but i need a solution in order that the customers do not have to edit smsd.conf
devices = GSM1,GSM2,...., GSM64
....
[GSM1] init= AT+CPMS="ME" device = /dev/ttyACM0 incoming = yes mode = new baudrate = 19200 cs_convert = yes report = no
[GSM2] init= AT+CPMS="ME" device = /dev/ttyACM0 incoming = yes mode = new baudrate = 19200 cs_convert = yes report = no
[GSM3] init= AT+CPMS="ME" device = /dev/ttyACM0 incoming = yes mode = new baudrate = 19200 cs_convert = yes report = no
......
I wait your news, thank in advance Cristian
|
|
#4 Fri Sep 18, 2009 09:34, 186 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
This kind of pre-configuration is not possible. If you define 64 modems, but there is only one connected, there will be 63 processes which will fail in initializing, lot of errors are produced to the log file and last there will be lot of processes in the state "<defunct>". This sounds not good.
With smsd version 3.1.5 you can define most common values for the modems using [default] section in the smsd.conf file. Usually a device line is the only setting which differs for each modem.
Somebody has to edit smsd.conf, and if it's not a customer, you should do it before smsd is started. There is a startup script /etc/init.d/sms3 available and this script should be used to start and stop the smsd anyways. In some systems this script may be named as init.d/smstools. Modify this script to detect connected modems, for example using wvdialconf, and replace devices line in the smsd.conf before starting a daemon.
|
|
#5 Fri Sep 18, 2009 11:33, 186 months ago.
|
Member
Registered: Aug 2009
Location: Mexico DF, Mexico
Topic owner
|
Thank you good Idea, i will use wvdialconf and catch the output for modify smsd.conf before starting the daemond.
Thanks a lot
Regards Cristian
|