{"action":"created","issue":{"url":"https://api.github.com/repos/gammu/gammu/issues/146","labels_url":"https://api.github.com/repos/gammu/gammu/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/gammu/gammu/issues/146/comments","events_url":"https://api.github.com/repos/gammu/gammu/issues/146/events","html_url":"https://github.com/gammu/gammu/issues/146","id":118029912,"number":146,"title":"Huawei E180 not working snappy on smsd","user":{"login":"pdorn87","id":15942091,"avatar_url":"https://avatars.githubusercontent.com/u/15942091?v=3","gravatar_id":"","url":"https://api.github.com/users/pdorn87","html_url":"https://github.com/pdorn87","followers_url":"https://api.github.com/users/pdorn87/followers","following_url":"https://api.github.com/users/pdorn87/following{/other_user}","gists_url":"https://api.github.com/users/pdorn87/gists{/gist_id}","starred_url":"https://api.github.com/users/pdorn87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdorn87/subscriptions","organizations_url":"https://api.github.com/users/pdorn87/orgs","repos_url":"https://api.github.com/users/pdorn87/repos","events_url":"https://api.github.com/users/pdorn87/events{/privacy}","received_events_url":"https://api.github.com/users/pdorn87/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gammu/gammu/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-20T12:20:59Z","updated_at":"2015-11-20T15:38:39Z","closed_at":null,"body":"We are trying to build a sms gateway using gammu smsd however we are experiencing some problems.\r\nQuite often the daemon (according to the logfile) is only in an infinite loop processing RSSI data:\r\n\r\nFri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: 1 \"^RSSI:31\"\r\nFri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: Checking line: ^RSSI:31\r\nFri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: AT reply state: 4\r\nFri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: RECEIVED frame type 0x00/length 0x0A/10\r\nFri 2015/11/20 13:13:13 gammu-smsd[23431]: gammu: 5E^|52R|53S|53S|49I|3A:|333|311|0D |0A                          ^RSSI:31..  \r\n\r\n\r\nThis 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.\r\n\r\nThis is the 'startup data' from the logfile:\r\n\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: Connected to Database: xxx on xxx\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: Connected to Database native_mysql: xxx on xxx\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: Created POSIX RW shared memory at 0x76fc5000\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: Starting phone communication...\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Gammu            - 1.36.6]\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Connection       - \"at\"]\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Connection index - 0]\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Model type       - \"\"]\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Device           - \"/dev/custom/pt-voda-sms\"]\r\nFri 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)]\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: Locking device\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: Lockfile /var/lock/LCK..pt-voda-sms is stale. Overriding it..\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: Serial device: DTR is up, RTS is up, CAR is down, CTS is down\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: Setting speed to 115200\r\nFri 2015/11/20 13:08:04 gammu-smsd[23431]: gammu: [Module           - \"auto\"]\r\n\r\nBelow the current config:\r\n[gammu]\r\nport  = /dev/custom/pt-voda-sms\r\nconnection = at\r\nuse_locking = yes\r\nlogformat = textall\r\n\r\n[smsd]\r\nLogFile = /var/log/gammu-smsd-pt-voda.log\r\nDebugLevel = 4\r\nCommTimeout = 30\r\nSendTimeout = 30\r\nMaxRetries = 1\r\nReceiveFrequency = 4\r\nStatusFrequency = 4\r\nLoopSleep = 1\r\nCheckSecurity = 1\r\nHangupCalls = 1\r\nCheckBattery = 0\r\nCheckSignal = 0\r\nResetFrequency = 0\r\nHardResetFrequency = 0\r\nPhoneID = pt-voda\r\nSend = True\r\nReceive = True\r\n\r\nService = SQL\r\nDriver = native_mysql\r\nHost = xxx\r\nUser = xxx\r\nPassword = xxx\r\nDatabase = xxx\r\n\r\nHope you can help me get this fixed!\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28455282-huawei-e180-not-working-snappy-on-smsd?utm_campaign=plugin&utm_content=tracker%2F253405&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F253405&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/gammu/gammu/issues/comments/158435242","html_url":"https://github.com/gammu/gammu/issues/146#issuecomment-158435242","issue_url":"https://api.github.com/repos/gammu/gammu/issues/146","id":158435242,"user":{"login":"pdorn87","id":15942091,"avatar_url":"https://avatars.githubusercontent.com/u/15942091?v=3","gravatar_id":"","url":"https://api.github.com/users/pdorn87","html_url":"https://github.com/pdorn87","followers_url":"https://api.github.com/users/pdorn87/followers","following_url":"https://api.github.com/users/pdorn87/following{/other_user}","gists_url":"https://api.github.com/users/pdorn87/gists{/gist_id}","starred_url":"https://api.github.com/users/pdorn87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdorn87/subscriptions","organizations_url":"https://api.github.com/users/pdorn87/orgs","repos_url":"https://api.github.com/users/pdorn87/repos","events_url":"https://api.github.com/users/pdorn87/events{/privacy}","received_events_url":"https://api.github.com/users/pdorn87/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T15:38:39Z","updated_at":"2015-11-20T15:38:39Z","body":"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).\r\n\r\nI guess a nice feature of SMSD would be to support sending USSD's and prevent me the hassle of stopping/starting the daemon :-)"}}