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

Compatibility with Huawei E3531 #369

Open
silgon opened this Issue Nov 1, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@silgon

silgon commented Nov 1, 2017

Hello. I've been trying to make the dongle work to receive messages. (Sending is working perfectly)

My file /etc/usb_modeswitch.d/12d1:1f01 is the following:

TargetVendor=0x12d1
TargetProduct= 0x1f01

MessageContent="55534243123456780000000000000011062000000100000000000000000000"

And my /etc/gammu-smsdrcis:

[gammu]
port=/dev/ttyUSB0
connection=at
name=huawei E3531
model = E3131

[smsd]
service = files
logfile = /var/log/ss.log
# Increase for debugging information
debuglevel = 5
ReceiveFrequency = 60
StatusFrequency = 60
CommTimeout = 60
SendTimeout = 60
LoopSleep = 10
CheckSecurity = 0
# Paths where messages are stored
inboxpath = /root/gammu/inbox/
outboxpath = /root/gammu/outbox/
sentsmspath = /root/gammu/sent/
errorsmspath = /root/gammu/error/

I really have no idea what to do. I've been tinkering with the files and I just do not know what to do.
Just as reference, I used picocom -b 115200 -f n -p n -d 8 -r /dev/ttyUSB0 to test some stuff as the following:

AT+CMGF=1
AT+CMGS="+3300000000"
This is my message
# returns
+CMGS: 172

Which sends me a message perfectly well. Then, to read messages the following commands:

AT+CMGF=1
OK
AT+CMGL="ALL"
OK

I always have the same response. I also receive the following message when I send an sms to the number of the dongle.

+CMTI: "ME",0

Lastly, I add a logfile.
Any ideas of what happens or what workaround could I use? Thanks.

@silgon

This comment has been minimized.

Show comment
Hide comment
@silgon

silgon Nov 2, 2017

As a complementary debug. I tried:

AT+CPMS="ME","ME","ME"

And every time I receive a message I receive.

+CMTI: "ME",0
+CMTI: "ME",0
+CMTI: "ME",0
+CMTI: "ME",0

I think the last 0 should be 0, the 1,2,3 and so, because it is the same place in memory. However I'm not sure because I've never used the AT commands before.

I also tried AT+CPMS="SM","SM","SM" but I get the same behavior only with +CMTI: "ME",#NUMBER when I receive a message and I get nothing in the list with AT+CMGL="ALL"as before.

silgon commented Nov 2, 2017

As a complementary debug. I tried:

AT+CPMS="ME","ME","ME"

And every time I receive a message I receive.

+CMTI: "ME",0
+CMTI: "ME",0
+CMTI: "ME",0
+CMTI: "ME",0

I think the last 0 should be 0, the 1,2,3 and so, because it is the same place in memory. However I'm not sure because I've never used the AT commands before.

I also tried AT+CPMS="SM","SM","SM" but I get the same behavior only with +CMTI: "ME",#NUMBER when I receive a message and I get nothing in the list with AT+CMGL="ALL"as before.

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