summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
2009-09-18Simplify cleanup logicDenis Kenzior1-21/+17
2009-09-08Hook up GAtMux with GSM 07.10 implementationMarcel Holtmann2-4/+422
2009-09-08Remove AT command and re-init support from GSM 07.10Marcel Holtmann2-84/+5
2009-09-08Use NULL for init of function callbacksMarcel Holtmann1-10/+10
2009-09-08Export the GSM 07.10 status flagsMarcel Holtmann2-8/+9
2009-09-07Fix g_at_chat_unref from command callbackDenis Kenzior1-11/+13
The resources were being used after being freed in this case
2009-09-06Add functions for disconnect and debug handlingMarcel Holtmann2-2/+36
2009-09-06Integrate the multiplexer into the AT chat libraryMarcel Holtmann4-0/+881
2009-09-04Add GSM Permissive parserDenis Kenzior2-1/+100
2009-09-03Add unquoted string capabilityDenis Kenzior2-0/+47
This is completely broken according to the standard, but some vendors use this in their "special" commands.
2009-08-31Add PDU listing supportDenis Kenzior2-17/+79
2009-08-29Fix a problem with CtrlZ echoDenis Kenzior1-0/+10
When a PDU is submitted and echoed by the modem, the CtrlZ character is also echoed back. Fix the parser to handle this case appropriately.
2009-08-24Convert to fully non-recursive build systemMarcel Holtmann1-9/+0
2009-08-07Ensure g_timeout_add source can be removed safelyDenis Kenzior1-2/+10
2009-08-06Fix trailing whitespaceDenis Kenzior1-1/+1
2009-08-06Be more lenient for PDU linesDenis Kenzior1-1/+24
2009-08-06Remove unneeded declarationsDenis Kenzior1-7/+0
2009-08-06Cleanup the debug support patchDenis Kenzior2-27/+78
2009-08-06gatchat: add debugging infrastructureAndres Salomon2-0/+50
This patch adds debugging support to GAtChat (specifically of what's going across the serial line). Callbacks can be set via g_at_chat_set_debugging, and that callback is called after any channel reads or writes.
2009-08-06Make overflow code a bit betterDenis Kenzior1-8/+5
2009-08-06Refactor GAtChat to accept user-provided parsersDenis Kenzior5-230/+387
Intended for really broken modems. A default 27.007 compliant parser is provided.
2009-08-06Fix refcounting in GAtChatDenis Kenzior1-0/+1
2009-07-21Fix a crash with unsolicited notificationsDenis Kenzior1-1/+1
When a line comes in from the modem, we check against prefixes in outstanding commands and unsolicited notifications. If the outstanding command has not yet been sent (cmd_bytes_written == 0), we still check it resulting in access violation.
2009-07-15Add extra_pdu_crlf quirkDenis Kenzior2-1/+10
2009-07-15Add set / get flags for GAtChatDenis Kenzior2-0/+19
2009-07-15Fix modem wakeup handlingDenis Kenzior1-0/+8
2009-07-15Fix range handlingDenis Kenzior1-5/+2
2009-07-07Fix case where CMGS returns an error before pduDenis Kenzior1-3/+15
Commands like CMGS might return an error before the entire command has been submitted. This results in gatchat stalling completely.
2009-07-01Fix uninitialized use of bufposDenis Kenzior1-1/+2
2009-06-30Add support for opening TTYs directlyMarcel Holtmann2-0/+42
2009-06-19Fixes to parser state when command prompt is usedDenis Kenzior1-1/+4
2009-06-16Improve string parsing codeDenis Kenzior2-16/+21
Currently next_string and next_hexstring functions use a static buffer in the iterator to store the value. This value is clobbered as soon as next_string or next_hexstring is called. Instead, we copy the entire line in iter_next and use it as a scratch buffer. The only limitation is that lines of max 2048 are possible, however these are limited to around this size by parts of the standard.
2009-06-16Add g_at_send_listing functionDenis Kenzior2-6/+54
2009-06-08Additional fixes to multiline responsesDenis Kenzior1-5/+33
The previous fix did not take into account the logic in have_line function, which takes care of certain modems that do not prefix their responses by <cr><lf> at all. This fix should take both into consideration
2009-06-08Fix multiline responses in GAtChatDenis Kenzior1-0/+11
The standard is a bit fuzzy on how multiline responses are returned GAtChat assumed that they will always start with <cr><lf>, however this doesn't seem to be correct. Add a new state which is entered when a response is obtained. If <cr> is encountered, then it is processed regularly, otherwise the parser assumes that the next line is part of the multiline response
2009-05-26Add hex-encoded character string getter to AtChatAndrzej Zaborowski2-0/+55
2009-05-06Add AT chat library implementationDenis Kenzior7-1/+1980
2009-05-06Add directory for AT chat libraryMarcel Holtmann1-0/+8