Gammu Error 11
Contents |
my Nokia 3510i. I am connected with a serial cable to ttyS0. Some things work fine, e.g. --monitor, --identify (output below), and uploading rtttl files. However when I try to upload a midi file (size 1820 bytes) I get the error:
Gammu Send Sms
[System error - serial_write, 11, "Resource temporarily unavailable"] [ERROR 11: Error writing device.] Error writing device. gammu smsd config [Closing] This happens when writing the 9th frame. I put a bit of debug code in fbus2.c and it seems that in FBUS2_WriteFrame after
Gammu Receive Sms
calling WriteDevice sent != len so it aborts. len is always 120, but sent varies - 73 or 25 or 123. Any ideas? I am using fbus (although mbus gives the same error) and my rc file reads: [gammu] port gammu config = /dev/ttyS0 #model = 6110 connection = fbus #synchronizetime = yes #logfile = gammulog #logformat = textall #use_locking = yes #gammuloc = locfile #startinfo = yes #gammucoding = utf8 Output from --identify Manufacturer : Nokia Model : 3510i (RH-9) Firmware : 04.44 C (22-05-03) Hardware : 2018 IMEI : 352532004702342 Original IMEI : 352532/00/470234/2 Manufactured : 11/2003 Product code : 0509403 UEM : 8 Thanks for any help, and great product by the way. -- Scott Thread at a gammu read sms glance: Previous Message by Date: Slackware packages Hi everyone, thanks to Michal Cihar, slackware packages made by me are available at http://www.cihar.com/gammu/slackware/ this is the static gammu (not shared), with the default configure options. -- [ Andrea Spadaccini a.k.a. Lupino / Lupin85 - from Catania ] [ MAIL: lupin85(at)email.it - ICQ#: 91528290 - Linux 2.6.3 ] [ Linux Registered User #313388 - Powered by Slackware 9.1 ] Next Message by Date: Re: Problems with Nokia 7250i Well , after trying a lot of different gammu configurations I finaly got it working by configuring IRDA as SIR insted of FIR. Now I can download pictures from the phone. Is there no chance of geting --presskeysequence support for the 7250i? I would like to be able to make the computer tell the phone to take a picture. Ingvi Gautsson Previous Message by Thread: Slackware packages Hi everyone, thanks to Michal Cihar, slackware packages made by me are available at http://www.cihar.com/gammu/slackware/ this is the static gammu (not shared), with the default configure options. -- [ Andrea Spadaccini a.k.a. Lupino / Lupin85 - from Catania ] [ MAIL: lupin85(at)email.it - ICQ#: 91528290 - Linux 2.6.3 ] [ Linux Registered User #313388 - Powered by Slackware 9.1 ] Next Message by Thread: Re: [ERROR 11: Error writing device.] Nokia 3510i Hi Original message (scott, 17.03.2004 23:08 +0000): > I've installed 0.94.0 of gammu on Linux 2.6.2 and I have a problem
ERR_DEVICENODRIVER, ERR_DEVICENOTWORK, ERR_DEVICEDTRRTSERROR, ERR_DEVICECHANGESPEEDERROR, ERR_DEVICEWRITEERROR,
Gammu Identify
ERR_DEVICEREADERROR, ERR_DEVICEPARITYERROR, ERR_TIMEOUT, ERR_FRAMENOTREQUESTED, ERR_UNKNOWNRESPONSE, ERR_UNKNOWNFRAME, ERR_UNKNOWNCONNECTIONTYPESTRING, ERR_UNKNOWNMODELSTRING, ERR_SOURCENOTAVAILABLE, ERR_NOTSUPPORTED, ERR_EMPTY, http://osdir.com/ml/linux.drivers.gammu/2004-03/msg00028.html ERR_SECURITYERROR, ERR_INVALIDLOCATION, ERR_NOTIMPLEMENTED, ERR_FULL, ERR_UNKNOWN, ERR_CANTOPENFILE, ERR_MOREMEMORY, ERR_PERMISSION, ERR_EMPTYSMSC, ERR_INSIDEPHONEMENU, ERR_NOTCONNECTED, ERR_WORKINPROGRESS, ERR_PHONEOFF, ERR_FILENOTSUPPORTED, ERR_BUG, ERR_CANCELED, ERR_NEEDANOTHERANSWER, ERR_OTHERCONNECTIONREQUIRED, ERR_WRONGCRC, ERR_INVALIDDATETIME, ERR_MEMORY, ERR_INVALIDDATA, ERR_FILEALREADYEXIST, https://wammu.eu/docs/devel/api/gammu-error_8h.html ERR_FILENOTEXIST, ERR_SHOULDBEFOLDER, ERR_SHOULDBEFILE, ERR_NOSIM, ERR_GNAPPLETWRONG, ERR_FOLDERPART, ERR_FOLDERNOTEMPTY, ERR_DATACONVERTED, ERR_UNCONFIGURED, ERR_WRONGFOLDER, ERR_PHONE_INTERNAL, ERR_WRITING_FILE, ERR_NONE_SECTION, ERR_USING_DEFAULTS, ERR_CORRUPTED, ERR_BADFEATURE, ERR_DISABLED, ERR_SPECIFYCHANNEL, ERR_NOTRUNNING, ERR_NOSERVICE, ERR_BUSY, ERR_COULDNT_CONNECT, ERR_COULDNT_RESOLVE, ERR_GETTING_SMSC, ERR_ABORTED, ERR_INSTALL_NOT_FOUND, ERR_READ_ONLY, ERR_NETWORK_ERROR, ERR_DB_VERSION, ERR_DB_DRIVER, ERR_DB_CONFIG, ERR_DB_CONNECT, ERR_DB_TIMEOUT, ERR_SQL, ERR_LAST_VALUE } Functions const char *GSM_ErrorString (GSM_Error e) const char *GSM_ErrorName (GSM_Error e) Detailed Description AuthorMichal Čihař Error codes definitions. Definition in file gammu-error.h. includegammu-error.h Generated by 1.8.12
Sign in Pricing Blog Support Search GitHub This repository Watch 32 Star 172 Fork 67 gammu/gammu Code https://github.com/gammu/gammu/issues/138 Issues 36 Pull requests 0 Projects 0 Pulse Graphs New issue https://stackoverflow.com/questions/29619252/gammu-cannot-start-service-due-to-sql-syntax-error Issue with Huawei E1752 modem after gammu-smsd 1.36.5 upgrade #138 Closed Nano69 opened this Issue Sep 23, 2015 · 12 comments Projects None yet Labels bug Milestone No milestone Assignees nijel 2 participants Nano69 commented Sep 23, 2015 Hi, gammu smsd Using a Huawei E1752 modem with gammu-smsd, I recently upgraded from version 1.33 which worked correctly (except a specific Huawei E1752 bug corrected in 1.36.5) to 1.36.5. This does not work any more… It seems that the gammu-smsd process does not communicate correctly with modem any more, thus sending a reset to the modem, gammu error 11 forcing it to reboot in cdrom-mode, kicking my /dev/ttyUSB* away ! What’s happening ? Thanks for your help Arnaud [Phone info] Device : /dev/ttyUSB1 Manufacturer : Huawei Model : unknown (E1752) Firmware : 11.126.03.01.314 IMEI : 359853035323129 SIM IMSI : 208150010458697 [Operating System] Linux raspbmc2 3.12.31 #2 PREEMPT Wed Oct 29 09:24:56 UTC 2014 armv6l GNU/Linux [Gammu version] [Gammu version 1.36.5 [Gammu config File] Configuration file for Gammu SMS Daemon # Configuration file for Gammu SMS Daemon # Gammu library configuration, see gammurc(5) [gammu] # Please configure this! port = /dev/ttyUSB1 connection = at pin = 1234 # Debugging logformat = textall # SMSD configuration, see gammu-smsdrc(5) [smsd] service = files pin = 1234 #logfile = syslog logfile = /media/HD/rootnano/log/gammu.log Send = True Receive = True RunOnReceive = /media/HD/rootnano/actionsms.sh CommTimeout = 10 # Increase for debugging information debuglevel = 255 # debuglevel = 0 # Paths where messages are stored inboxpath = /var/spool/gammu/inbox/ outboxpath = /var/spool/gammu/outbox/ sentsmspath =
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Gammu Cannot Start Service Due to SQL Syntax Error up vote 1 down vote favorite I have installed Gammu, and I use the 1.33 version I got some error that I copied from logs. Tue 2015/04/14 11:00:28 gammu-smsd[7272]: SQL failure: 2 Tue 2015/04/14 11:00:28 gammu-smsd[7272]: Error inserting into database (SMSDSQL_InitAfterConnect) Tue 2015/04/14 11:00:28 gammu-smsd[7272]: Post initialisation failed, stopping Gammu smsd: Unknown error. (UNKNOWN[27]) Tue 2015/04/14 11:00:28 gammu-smsd[7272]: Terminating communication... Tue 2015/04/14 11:03:13 gammu-smsd[2816]: Using generic SQL for ODBC, this might fail. In such case please set SQL configuration option. Tue 2015/04/14 11:03:13 gammu-smsd[2816]: Connected to Database odbc: aptikad on sms Tue 2015/04/14 11:03:13 gammu-smsd[2816]: Created Windows RW shared memory at 0000000002D60000 Tue 2015/04/14 11:03:13 gammu-smsd[2816]: Starting phone communication... Tue 2015/04/14 11:03:21 gammu-smsd[2816]: Inserting phone info Tue 2015/04/14 11:03:21 gammu-smsd[2816]: SQLExecDirect failed, Code = -1, ODBC diagnostics: Tue 2015/04/14 11:03:21 gammu-smsd[2816]: 42000:1:1064:[MySQL][ODBC 3.51 Driver][mysqld-5.6.20]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Signal) VALUES ("354232040876139", "", "yes", "yes", {fn CURRENT_TIMESTAMP()}, { When I start the gammu's service, it start for a while less than 1 second, than stopped again. I use Gammu 1.33 MySQL Connector/ODBC 3.51.30 to connect to my MySQL Database mysql odbc sms-gateway gammu share|improve this question edited Jan 23 at 11:03 halfer 13k54075 asked Apr 14 '15 at 4:35 Iman Tumorang 469 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted It tells you in the log what to do: Using generic SQL for ODBC, this might fail. In such case please set SQL configuration option. Set SQL = mysql in SMSD configuration. See http://wammu.eu/docs/manual/smsd/config.html#option-SQL for more details. share|improve this answer answered Apr 14 '15 at 17:37 Michal Čihař 6,01312549 thanks a lot bro, it helping me.... –Iman Tumorang Apr 1