Author |
Post |
|
#1 Sun Sep 18, 2011 14:25, 161 months ago.
|
Member
Registered: Jul 2011
Location: Germany
|
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
|
|
#2 Mon Sep 19, 2011 13:26, 161 months ago.
|
Member
Registered: Sep 2011
Location: Lisboa, Portugal
|
I think you can use the "Provider Queue" in the sms text file - http://smstools3.kekekasvi.com/index.php?p=fileformat with the configuration the provider directly in the modem configuration (example 3) - http://smstools3.kekekasvi.com/index.php?p=configure2
|
|
#3 Mon Sep 19, 2011 14:41, 161 months ago.
|
Member
Registered: Jul 2011
Location: Germany
Topic owner
|
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
|