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. Fri Sep 22, 2017 11:36
SMSTools3 Community » Feature requests Bottom

additional parametrs for primary and secondary memory

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Feb 2017
Location: Ukraine
When you work with a ZTE modem and want to receive and SMS and the delivery Reports you face a specific problem.
Have ZTE modems, all incoming SMS are stored in memory SM, and reports are stored in the memory of SR
memory modems. As modems got memory ME, MT.
AT+CMGD method only works for SM, ME, MT. SR only works for CPMS.


start = ATE+CPMS="SM","SR","ME"
check_memory_method = 1
'smsdconf' Syntax Highlight powered by GeSHi


To receive the reports for FREE you need to go through the memory of the SR method with CPMS. But the fact that +CPMS: "SM",0,20,"SR",0,100,"ME",0,100 in reality look like
SM has indexes 0-19
ME has indexes 0-49
SR has indexes 50-99

If you set

primary_memory = SR
secondary_memory = SM
'smsdconf' Syntax Highlight powered by GeSHi


When memory_start = 50 will not be able to read incoming SMS.
When memory_start = 0 delivery reports are checked for too long (about 6-8 seconds is too much non-existent cells).


Offer variant:
1)
primary_memory = SR
memory_start = 50
memory_end = 99

secondary_memory = SM
secondary_memory_start = 0
secondary_memory_end = 49
'smsdconf' Syntax Highlight powered by GeSHi


2)
primary_memory = SR
memory_start = 50
memory_end = 99
check_memory_method = 1

secondary_memory = SM
secondary_memory_start = 0
secondary_memory_end = 49
secondary_check_memory_method = 2
'smsdconf' Syntax Highlight powered by GeSHi


3)
memory = SR
memory_start = 50
memory_end = 99
check_memory_method = 1

memory = SM
memory_start = 0
memory_end = 50
check_memory_method = 1

memory = ME
check_memory_method = 2
'smsdconf' Syntax Highlight powered by GeSHi


Member
Registered:
Feb 2017
Location: Ukraine
Topic owner
I've modified the sources and introduced an additional parameter secondary_memory_start.
The final configuration for ZTE (MF628, MF100 tested)

start = ATE0+CPMS="SR","ME","SR"
check_memory_method = 1
primary_memory = SR
memory_start = 50
secondary_memory = ME
secondary_memory_start = 0
'smsdconf' Syntax Highlight powered by GeSHi


The result is no delay and error in reading status and sending messages

I've modified smsd_cfg.h



I've modified smsd_cfg.c



and included the treatment of this parameter in the smsd.c for // Dual-memory handler:


This is not the best option but I don't know the programming language in which is written the source code :) the Author can make this moment much better.

Login and Post Reply

Page:  1

SMSTools3 Community » Feature requests Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.