Skip to content
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

Huawei E180 not working snappy on smsd #146

Closed
peter-dorn opened this issue Nov 20, 2015 · 9 comments
Closed

Huawei E180 not working snappy on smsd #146

peter-dorn opened this issue Nov 20, 2015 · 9 comments
Labels

Comments

@peter-dorn
Copy link

We are trying to build a sms gateway using gammu smsd however we are experiencing some problems.
Quite often the daemon (according to the logfile) is only in an infinite loop processing RSSI data:

Fri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: 1 "^RSSI:31"
Fri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: Checking line: ^RSSI:31
Fri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: AT reply state: 4
Fri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: RECEIVED frame type 0x00/length 0x0A/10
Fri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: 5E^|52R|53S|53S|49I|3A:|333|311|0D |0A ^RSSI:31..

This just keeps going on and on, and sometimes it never ends up inserting the phone into MySQL or it takes a very long time. When it is inserted, its no guarantee it's working from that point on. The outbox is not always processed and the 'UpdatedInDB' column in MySQL in not being updated. The MySQL connection is working OK and there are no errors regarding MySQL in the logfile.

This is the 'startup data' from the logfile:

Fri 2015/11/20 13:08:04 gammu-smsd[23431]: Connected to Database: xxx on xxx
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: Connected to Database native_mysql: xxx on xxx
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: Created POSIX RW shared memory at 0x76fc5000
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: Starting phone communication...
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Gammu - 1.36.6]
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Connection - "at"]
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Connection index - 0]
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Model type - ""]
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Device - "/dev/custom/pt-voda-sms"]
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Running on - Linux, kernel 3.18.0-25-rpi2 (#26-Ubuntu SMP PREEMPT Sun Jul 5 06:46:34 UTC 2015)]
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: Locking device
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: Lockfile /var/lock/LCK..pt-voda-sms is stale. Overriding it..
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: Serial device: DTR is up, RTS is up, CAR is down, CTS is down
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: Setting speed to 115200
Fri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Module - "auto"]

Below the current config:
[gammu]
port = /dev/custom/pt-voda-sms
connection = at
use_locking = yes
logformat = textall

[smsd]
LogFile = /var/log/gammu-smsd-pt-voda.log
DebugLevel = 4
CommTimeout = 30
SendTimeout = 30
MaxRetries = 1
ReceiveFrequency = 4
StatusFrequency = 4
LoopSleep = 1
CheckSecurity = 1
HangupCalls = 1
CheckBattery = 0
CheckSignal = 0
ResetFrequency = 0
HardResetFrequency = 0
PhoneID = pt-voda
Send = True
Receive = True

Service = SQL
Driver = native_mysql
Host = xxx
User = xxx
Password = xxx
Database = xxx

Hope you can help me get this fixed!

@nijel
Copy link
Member

nijel commented Nov 20, 2015

Can you try uslng latest version from Git? It contains several improvements for Huawei modems (see #4).

@nijel nijel added the bug label Nov 20, 2015
@peter-dorn
Copy link
Author

Hi!

Just downloaded master.zip and installed over the existing version (there's no uninstall, is there?)
Have been waiting for 2 minutes now and still it hasn't inserted itself into the DB. All I keep seeing is the RSSI communication.

Any suggestions?

@peter-dorn
Copy link
Author

It started working and started 5 instances, but now the Raspberry Pi is hanging. Have you ever tested with that much instances at the same time?

@nijel
Copy link
Member

nijel commented Nov 20, 2015

Not on RPI, but on regular systems I know users who are running about 100 instances..

@peter-dorn
Copy link
Author

Ok nice! The SMSD seems to be working way better at the moment, however I found another problem now. Could it be that your fix means playing with the PORTSEL and CURC command? When I stop the SMSD it appears that info like RSSI is being delivered to another TTY. This was never happening with previous versions gammu-smsd.

@nijel
Copy link
Member

nijel commented Nov 20, 2015

That might be the side effect. We just tell the modem that this is interface where it should act as a modem...

@peter-dorn
Copy link
Author

Ok. The problem here is that I have to shutdown the smsd when I want to send out an USSD, because smsd locks the TTY. However, because the TTY is registered as modem, I cannot use the gammu getussd command anymore (the response is being delivered to another TTY).

I guess a nice feature of SMSD would be to support sending USSD's and prevent me the hassle of stopping/starting the daemon :-)

@nijel
Copy link
Member

nijel commented Nov 20, 2015

I think that's already somewhere reported....

@nijel
Copy link
Member

nijel commented Nov 24, 2015

Anyway the locking is intentional to avoid two programs accessing same TTY (otherwise there is no guarantee that the one who wrote message will get the response). The USSD for SMSD is tracked as #150

@nijel nijel closed this as completed Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants