New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Gammu with wevecom-fasttrack device and SIM card is JIO #407

Open
udkumar opened this Issue Jun 7, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@udkumar

udkumar commented Jun 7, 2018

uday@uday-thinkpad01:/dev$ sudo gammu --identify
Device : /dev/ttyUSB1
Manufacturer : Wavecom
Model : MULTIBAND 900E 1800 (MULTIBAND 900E 1800)
Firmware : 532a09gg.2C2 1828120 040802 18:22
IMEI : 356222001143759
SIM IMSI : 405840052776395

uday@uday-thinkpad01:/dev$ sudo nano /etc/gammu-smsdrc
[gammu]
port = /dev/ttyUSB1
connection = at
[smsd]
service = sql
logfile = /var/log/smsdlog
debuglevel = 255
inboxpath = /var/spool/gammu/inbox/
outboxpath = /var/spool/gammu/outbox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/
Driver=native_mysql
User=root
Password=root
PC=Localhost
Database=gammu_sms
PIN=1111
CheckSecurity=0

uday@uday-thinkpad01:/dev$ sudo /etc/init.d/gammu-smsd restart
[ ok ] Restarting gammu-smsd (via systemctl): gammu-smsd.service.
uday@uday-thinkpad01:/dev$ sudo /etc/init.d/gammu-smsd status
● gammu-smsd.service - SMS daemon for Gammu
Loaded: loaded (/lib/systemd/system/gammu-smsd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-06-07 08:08:57 IST; 11s ago
Docs: man:gammu-smsd(1)
Process: 18933 ExecStopPost=/bin/rm -f /var/run/gammu-smsd.pid (code=exited, status=0/SUCCESS)
Process: 18934 ExecStart=/usr/bin/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon (code=exited, status=0/SUCCESS)
Main PID: 18942 (gammu-smsd)
Tasks: 1 (limit: 4915)
Memory: 2.2M
CPU: 43ms
CGroup: /system.slice/gammu-smsd.service
└─18942 /usr/bin/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon

Jun 07 08:08:57 uday-thinkpad01 systemd[1]: Starting SMS daemon for Gammu...
Jun 07 08:08:57 uday-thinkpad01 systemd[1]: gammu-smsd.service: PID file /var/run/gammu-smsd.pid not readable (yet?) after start: No s… directory
Jun 07 08:08:57 uday-thinkpad01 systemd[1]: Started SMS daemon for Gammu.
Hint: Some lines were ellipsized, use -l to show in full.

SMS debuging:
uday@uday-thinkpad01:/dev$ sudo gammu-smsd-inject TEXT 8510034891 -text "Test message TEXT here"
gammu-smsd-inject[20500]: Using SQL service
gammu-smsd-inject[20500]: Configuring Gammu SMSD...
gammu-smsd-inject[20500]: SHM token: 0x107afe2 (17280994)
gammu-smsd-inject[20500]: PIN code is "1111"
gammu-smsd-inject[20500]: CommTimeout=30, SendTimeout=30, ReceiveFrequency=15, ResetFrequency=0, HardResetFrequency=0
gammu-smsd-inject[20500]: checks: CheckSecurity=0, CheckBattery=1, CheckSignal=1, CheckNetwork=1
gammu-smsd-inject[20500]: mode: Send=1, Receive=1
gammu-smsd-inject[20500]: deliveryreport = no
gammu-smsd-inject[20500]: phoneid =
gammu-smsd-inject[20500]: Connected to Database: gammu_sms on Localhost
gammu-smsd-inject[20500]: Execute SQL: SELECT * FROM gammu LIMIT 1
gammu-smsd-inject[20500]: Execute SQL: SELECT * FROM inbox LIMIT 1
gammu-smsd-inject[20500]: Execute SQL: SELECT * FROM sentitems LIMIT 1
gammu-smsd-inject[20500]: Execute SQL: SELECT * FROM outbox LIMIT 1
gammu-smsd-inject[20500]: Execute SQL: SELECT * FROM outbox_multipart LIMIT 1
gammu-smsd-inject[20500]: Execute SQL: SELECT * FROM phones LIMIT 1
gammu-smsd-inject[20500]: Execute SQL: SELECT Version FROM gammu
gammu-smsd-inject[20500]: Database structures version: 16, SMSD current version: 16
gammu-smsd-inject[20500]: Connected to Database native_mysql: gammu_sms on Localhost
gammu-smsd-inject[20500]: Execute SQL: INSERT INTO outbox (CreatorID, SenderID, DeliveryReport, MultiPart, InsertIntoDB, Text, DestinationNumber, RelativeValidity, Coding, UDH, Class, TextDecoded) VALUES ('Gammu 1.38.4', '', 'default', 'FALSE', NOW(), '00540065007300740020006D0065007300730061006700650020005400450058005400200068006500720065', '918510034891', 255, 'Default_No_Compression', '', -1, 'Test message TEXT here')
gammu-smsd-inject[20500]: Written message with ID 5
Written message with ID 5
gammu-smsd-inject[20500]: Disconnecting from SQL database.

SMS /var/log/smslog:
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: Leaving GSM_SendSMS
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: Execute SQL: UPDATE outbox SET SendingTimeOut = (NOW() + INTERVAL 60 SECOND) + 0 WHERE ID = '4' AND (SendingTimeOut < NOW() OR SendingTimeOut IS NULL)
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 1 "AT+CMGS=33"
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 2 "> 079119071070059011000A8158013084190000FF16D4F29C0E6A97E7F3F0B90CA216B15410BA2C2F03�"
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 3 "+CMS ERROR: 512"
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: Checking line: +CMS ERROR: 512
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: AT reply state: 5
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: RECEIVED frame type 0x00/length 0x75/117
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 41A|54T|2B+|43C|4DM|47G|53S|3D=|333|333|0D |0D |0A |3E>|20 |300 AT+CMGS=33...> 0
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 377|399|311|311|399|300|377|311|300|377|300|300|355|399|300|311 7911907107005901
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 311|300|300|300|41A|388|311|355|388|300|311|333|300|388|344|311 1000A81580130841
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 399|300|300|300|300|46F|46F|311|366|44D|344|46F|322|399|43C|300 90000FF16D4F29C0
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 45E|366|41A|399|377|45E|377|46F|333|46F|300|42B|399|300|43C|41A E6A97E7F3F0B90CA
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 322|311|366|42B|311|355|344|311|300|42B|41A|322|43C|322|46F|300 216B15410BA2C2F0
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 333|1A |0D |0A |2B+|43C|4DM|53S|20 |45E|52R|52R|4FO|52R|3A:|20 3...+CMS ERROR:
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: 355|311|322|0D |0A 512..
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: Error 512
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: SMS sent on device: "/dev/ttyUSB1" status=512, reference=-1
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: gammu: CMS Error 512: "User abort"
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: Error getting send status of message: Unknown error. (UNKNOWN[27])
Thu 2018/06/07 08:21:44 gammu-smsd[18942]: Execute SQL: UPDATE outbox SET SendingTimeOut = (NOW() + INTERVAL 600 SECOND) + 0, Retries = 1 WHERE ID = '4'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment