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. Mon Jun 24, 2024 14:07
SMSTools3 Community » Help and support Bottom

[answered] Help AT command to initialize Huawei e353

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Sep 2016
Location: Caracas, Venezuela
Ubuntu 16.04 64Bits / Laptop Toshiba Satellite L455 :
Version: 3.1.15-1.2:
Smsd installed from: package repository via apt-get
Modem Huawei e353 [12d1:1506]:
Interface: USB

Hi guys, I need some help with the initialization command for my USB stick modem.





My smsconf is almost unmodified , only changed the device.

# cat /etc/smsd.conf


# dmesg


this is basically what I get from :
# cat /dev/ttyUSB2


This is the logfile:


I thought it was a permissions thing but...


Any advice??


« Last edit by rmgomez44 on Tue Sep 06, 2016 16:57, 94 months ago. »
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Perhaps you have stability problem with the USB, probably not enough power is provided to the modem.

Also check how you are starting smsd, as there is some fatal error when smsd was started twice.

Stop the smsd and disconnect the modem.
Connect the modem, and after you have seen dmesg output, look:
ls -l /dev/serial/by-id

Check which link points to ttyUSB0, and use that link as a device. For example:
device = /dev/serial/by-id/usb-HUAWEI_HUAWEI_Mobile-if00-port00

Do not use the link which points to the USB2.

Then just check what is happening, and be sure that smsd is not started more than once. The init script should take care of that.

Member
Registered:
Sep 2016
Location: Caracas, Venezuela
Topic owner
Thank you keke for your response

Following your advice....



changed the config file to USB0
Device = /dev/ttyUSB0
 
'smsdconf' Syntax Highlight powered by GeSHi



this is how I'm starting it


this is the log file :


so, we are back to the Initialization string issue

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Ok, your init string has semicolons missing.

Try this:
init = AT+CPMS="SM";+CNMI=2,0,0,2,1

With Huawei devices you will need this for reading messages:
memory_start = 0

"serial/by_id" was mentioned, because these devices provide ttyUSB0, 1 and 2, but after the USB failure the ports are ttyUSB1, 2 and 3. As the first port should be used, the by-id does this.

Member
Registered:
Sep 2016
Location: Harrogate, United Kingdom
Thanks to this thread I finally sorted incoming messages to my Huawei E5220

It needed this in the smsd.conf to ensure that incoming/outgoing worked

[modem1]
init = AT+CPMS="SM";+CNMI=2,0,0,2,1
memory_start = 0
device = /dev/ttyUSB2
baudrate = 19200
incoming = high
report = yes
queues = modem1

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.