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. Tue Jun 25, 2024 16:16
SMSTools3 Community » Help and support Bottom

Unpredictable device names

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Sep 2020
Location: Gauteng, South Africa
Operating system name and version: Raspberry Pi reference 2020-05-27
Version of smsd: 3.1.21
Smsd installed from package repository
Name and model of a modem / phone: Wavecom
Interface: serial

Hi,

I have seven Wavecom modems connected to a raspberry Pi Zero with cheap Chinese serial to converters and they all have the same serial number. Problem is that now one can never be sure which SIM is on which Linux device.

My application is kind of upside down because it is based on the MSISDNs and I would rather decide which MSISDN the message is sent from as opposed to the the network it will be going to.

Is this possible regardless of the retarded serial to USB adapters?

Thank you

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Thank you for the interesting question.

Actually, there is an undocumented feature which may help. An identity can be defined for each device, and it is checked when smsd starts. If a modem is using different port than what was defined, modem processes are swapped as required.

To use this feature, first all PIN's must be disabled. Also, if you have paths for example /dev/ttyUSB0 ... 6, your system must create the same paths even when the modems are in the different places.

Start the smsd with loglevel = 7, and collect IMSI codes for each device (SIM). If the IMSI gives an ERROR for all devices, collect IMEI codes.

Then add a line identity = <IMSI> for each device.

That's it. Here is an example configuration, which also uses MSISDN's as device names and in queue definitions:

devices = 358466611111, 358465522222, 358466533333

logfile = /var/log/smsd.log
loglevel = 7

sent = /var/spool/sms/sent

[queues]
Q-ANY = /var/spool/sms/Q-ANY
Q-358466611111 = /var/spool/sms/Q-358466611111
Q-358465522222 = /var/spool/sms/Q-358465522222
Q-358466533333 = /var/spool/sms/Q-358466533333

[default]
queues = Q-modemname, Q-ANY
pin = ignore

incoming = yes
memory_start = 0

[358466611111]
device = /dev/ttyUSB0
identity = 244053111111111

[358465522222]
device = /dev/ttyUSB3
identity = 244053112222222

[358466533333]
device = /dev/ttyUSB6
identity = 244053112333333
 
 
'smsdconf' Syntax Highlight powered by GeSHi


Hope this helps.

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.