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 Apr 19, 2024 04:26
SMSTools3 Community » Help and support Bottom

Cannot get delivery report

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Aug 2017
Location: Iran, Iran
Operating system: Ubuntu 16.04
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem: D-Link DWM-157
Interface: /dev/ttyUSB1

Hi. I cannot receive delivery report in the logs and in 'report' folder. here's my smsd.conf file:



Any help is appreciated.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
When you start the smsd, some details of device are reported in the log. Please show those details here.

Do you have a manual of AT commands for this device? Likely the CNMI setting should be adjusted, but it depends on the device.

Member
Registered:
Aug 2017
Location: Iran, Iran
Topic owner
The strange thing is that, with the same smsd.conf file I could get delivery report on my old laptop. But with the same configuration I cannot get delivery report on the new one!!
The logs are as follow:



Unfortunately I don't have any manual. But I will google for it.
Thank you.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Please disconnect the modem and check what USB ports you do have. Then reconnect the modem and check what ports are provided by it. Probably there are more than one ports provided. If you were using the first port of a modem, try the third one if it exists, otherwise try the second one. As your system worked well on laptop, check which port of a modem was used when everything worked well.

I do not know all about D-Link DWM-157, but some other devices provide multiple ports and routed delivery reports and USSD answers are not shown when using the first port. The first port just gets OK for USSD, as you now have, and the answer is going to another port.

Member
Registered:
Aug 2017
Location: Iran, Iran
Topic owner
The information when the modem is disconnected are as follows:
lsusb


There is no USB serial in /dev

The information after connecting the modem are as follows:
lsusb


ls /dev/ttyU*


from the above ports, only one of them works at a time. sometimes USB1 sometimes USB0 and sometimes USB2!!!! another big problem is that when I disconnect the modem and reconnect it to my machine, it does not work and I have to restart the system to make it work!!!
you said "The first port just gets OK for USSD, as you now have, and the answer is going to another port". You mean I should send USSD codes via one of the ports (e.g. first port) and receive the answers from another port (e.g. second port)??

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
sinai wrote
You mean I should send USSD codes via one of the ports (e.g. first port) and receive the answers from another port (e.g. second port)??

No, I meant that when using (e.g) ttyUSB0, it answers only OK for USSD command. When using (e.g.) ttyUSB2, it gives the correct answer for USSD command. And, when using ttyUSB0 you cannot see status reports, and when using ttyUSB2, status reports are seen. Both ports can be used for most AT commands, but not all.

You have to test ports with your laptop. Check which ports is giving USSD answers and status reports. Then try to get that port working on your new hardware. If the USB is unstable or broken, I cannot help with it.

Member
Registered:
Oct 2017
Location: Luxembourg
Hello sinai,

Did you get the report receipt working ?

I've exactly the same 3G USB Modem (D-Link DWM-157) and get the same issue.

My Config : (ttyUSB start USB2 to USB5 for my modem)
devices = GSM1

outgoing = /var/spool/sms/outgoing
incoming = /var/spool/sms/incoming
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
report = /var/spool/sms/reports

logfile = /var/log/smstools/smsd.log
stats = /var/log/smstools/smsd_stats

infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid

store_received_pdu = 3
store_sent_pdu = 3

loglevel = 7
receive_before_send = yes
autosplit = 3
validity = 255


[GSM1]

start = AT+CFUN=1
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB2
mode = new

routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes

report = yes

incoming = 2
baudrate = 115200

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




Thanks in advance for your help :)

Best regards,
Grégory

Member
Registered:
Aug 2017
Location: Iran, Iran
Topic owner
Hello Greg57330,

I am not receiving delivery reports anymore. Because my employer said it does not need delivery report for speeding up the SMS sending!!
Furthermore if you want to receive delivery report I think you should set CNMI correctly, as keke said. I think the CNMI is related to the SIM card operator! For example, in Iran we have two cell phone operators; MTN and MCI. At first I was using MTN and I set the CNMI = 1,0,0,1,0 and I could get delivery reports. But when I changed the sim card to the 2nd operator I could not get any delivery reports. I think you should find the correct CNMI related to the used operator.
I have another experience in using D-Link modem. It is related to the GSM ports (ttyUSB0,..,ttyUSB4). If I want to check the balance of the sim card, I have to send the AT command via the port ttyUSB0 and get the result from the port ttyUSB1!! Here's my smsd.conf:



Member
Registered:
Jan 2018
Location: Palmas, Brazil
I'm sorry for my english.

Several times I had problems with Modens USB ports, so my friend Jnetodino Created a solution that may help you, he made a rule for Linux Udev, so every time a modem connects it finds out which port the modem is in, and in the case of needing several modens with different configurations, has a python script that identifies the modens by the unique code of the chip (could be by the IMEI, but pirated modens does not have the unique IMEI) with this set of configurations no longer have to worry with the modem, it configures itself.

if you find it useful, I'll post the codes and scripts here, and how to configure them

thanks!

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.