Author |
Post |
|
#1 Tue Dec 18, 2018 16:36, 77 months ago.
|
Member
Registered: Dec 2018
Location: Concepción, Chile
|
Operating system name and version: Debian 9.3 Version of smsd: 3.1.15 Smsd installed from: sudo apt-get install build-essential manpages-dev Name and model of a modem / phone: Sim800L Interface: Windows 10 / PUTTY
I am trying to send SMS from a GSM module (Sim800L) connected to a BeagleBone Black by UART (the module is activated and is called TTYO2).
The GSM module is connected to a USB charger (5V-2A), with a chip that has 4G. The LEDs of the module restart intermittently, in addition, since the USB charger remains constant while it is plugged in. It's a weird problem, while I have the SIM connected the LEDs restart every so often, but when I remove the sim, the module seems not to restart and the LEDs remain lit.
I installed and started the instruction program and first of all, I realized that the "sendsms" command does not work from PUTTY. I have been testing the second option, to create a file inside the Outgoing Folder directory, but the sms goes to the directory of failed messages automatically. I also declared the GSM module (TTYO2) in /etc/smsd.conf.
I think that the module is badly powered or definitely that I installed or did something wrong in the smstools tool. I also printed the smsd.log record through the tail program
|
|
#2 Tue Dec 18, 2018 16:49, 77 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
In the global part of smsd.conf use the setting loglevel = 7. Restart smsd and create an outgoing file for testing. After the sending has failed, show the log here.
|
|
#3 Tue Dec 18, 2018 18:33, 77 months ago.
|
Member
Registered: Dec 2018
Location: Concepción, Chile
Topic owner
|
The file was already with the value 7 by default. Attached the tail program record.
https://ibb.co/WKsLkHC (IMAGE ON LINK)
|
|
#4 Wed Dec 19, 2018 16:34, 77 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Smsd does not start because the directory /var/log/smsd_stats does not exist or it has incorrect permissions.
Perhaps this is not the only problem in your system. When smsd does not start, it of course does not move any message to the failed directory. I think that you could temporarily remove the stats setting, and try with a single change at a time.
|
|
#5 Fri Dec 28, 2018 15:24, 77 months ago.
|
Member
Registered: Dec 2018
Location: Concepción, Chile
Topic owner
|
I have connected the GSM module in another way. I am connected by a USB-UART and virtual machine with DEBIAN 9.6. I already solved the feeding problem. I have tested the module with the GSM utils program and I have sent SMS with the gsmsendsms command and it works correctly. I have also tested the sendsms command in smstools3 and it works correctly. I have done tail -f to smsd.log to verify its operation and I have a new error to show you. If you could help me, I would be very grateful. I leave the LOG image.
https://ibb.co/HF0tCGt
|
|
#6 Sun Dec 30, 2018 22:44, 77 months ago.
|
Member
Registered: Dec 2018
Location: Concepción, Chile
Topic owner
|
Up u.u
|
|
#7 Mon Dec 31, 2018 03:00, 77 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Your modem does not answer.
Please show your smsd.conf here.
When you tested the module with the GSM utils, what was the port? Are you using the same port when testing with smstools3?
|
|
#8 Mon Dec 31, 2018 17:23, 77 months ago.
|
Member
Registered: Dec 2018
Location: Concepción, Chile
Topic owner
|
Port do you mean what device on the list? I've searched for it in cd / dev, the one that is in use by default is TTYUSB0. I have the module connected to a USB-UART.
I have checked the status of the GSM module with gsmctl -X -d / dev / ttyUSB0 ALL before trying to run SMSTOOLS3 and it has thrown me all normal Functionality is in 1.
When I used gsm utils, I used the command gsmsendsms -X -d / dev / ttyUSB0 + NNNNNNNNN 'Hello World!' And it works. The message is sent
Regarding port, I do not know exactly what you mean ... if you could explain me, or indicate where to get that information, I can upload more images. For now, I'm attaching the smsd.conf
https://ibb.co/sbHsm2C
|
|
#9 Thu Jan 03, 2019 15:02, 77 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
First try with this modem setting: baudrate = 38400
If it does not help, add this modem setting too: rtscts = no
|
|
#10 Thu Jan 03, 2019 15:55, 77 months ago.
|
Member
Registered: Dec 2018
Location: Concepción, Chile
Topic owner
|
First of all, I'm sorry for the images. The virtual machine does not let me select texts in the console, I have guest additions installed and the option to share clipboards too, but every time I select a text, it deselects itself. That is why attached images.
I managed to run the program and send SMS with the sendsms command, but I have a very important question.
The error that I added previously in the last answer is repeated every time I start the program with the command /etc/init.d/sms3 start
This problem is solved every time after launching the program /etc/init.d/sms3 start, I use the command gsmctl -X -d / dev / ttyUSB0 ALL
Then, the module automatically starts communicating and the demon goes on to listen if I receive or do not receive SMS (I tried to send and receive, at this level if everything works, but it raises my doubts why the communication does not start automatically after using / etc /init.d/sms3 start, but you need the gsmctl command to start)
1-> In this image, I used the command / etc / init.d/sms3 start, but in the smsd.log, the system stays locked in the AT line, until I stop the program with / etc /init.d / sms3 stop
https://ibb.co/ssRbRwS
2-> In this stage, I already executed / etc /init.d/sms3 stop and I did / etc /init.d/sms3 restart so that you see the not working of the program.
https://ibb.co/KxhsrSW
3-> In this image, I used the gsmctl command to see the status of the GSM module. In this step, the smsd.log starts to work and the daemon starts listening normally.
https://ibb.co/Z2DK21L
4-5-> Image of the demon working normally.
https://ibb.co/c1RFWCg https://ibb.co/hgcvKxM
I will use the configuration you gave me, I will notify you of anything.
|
|
#11 Fri Jan 04, 2019 03:00, 77 months ago.
|
Member
Registered: Dec 2018
Location: Concepción, Chile
Topic owner
|
Problem solved with the indications that you gave me, it was not necessary to change the baud rate, rather "rts cts = no" solved my problem. Thanks for the patience and the time. SOLVED.
|