summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
2011-03-28gatsyntax: Support echo of empty linesDenis Kenzior1-1/+4
2011-03-28gatsyntax: Re-name enum a proper wayDenis Kenzior1-3/+3
2011-03-25gatserver: add v250 ATL and ATM commandsOlivier Guiter1-0/+18
2011-03-24gatserver: add AT&F commandOlivier Guiter1-2/+27
2011-03-23gatserver: add ATZ commandOlivier Guiter1-18/+35
2011-03-16ringbuffer: Switch ringbuffer to g_slice allocatorPatrick Porlan1-4/+4
This should allow for more efficient handling of equally sized buffers, in terms of alignment and recycling.
2011-03-15PPP: Optimize write buffer managementPatrick Porlan1-22/+71
Extend the write buffer handling in gathdlc.c to minimize stalling and process switching during large PPP transfers. The single write buffer is replaced by a queue of buffers, allowing for much larger emission windows without hugely impacting memory consumption. This reduces the time required to send 50 MB between a couple of local PPP interfaces on my laptop from ~53s to ~3s.
2011-03-02gatchat: Optimize ringbuffer modulo operationsPatrick Porlan1-6/+8
Replace modulo operations in ringbuffer.c by masking operations. This is possible because the size of the ring buffers is always a power of two, and yields a small performance improvement. The improvement should be mostly visible on processors that implement division in microcode (Atom) or lack a division instruction (ARM).
2011-02-28gsmdial: Introduce data_modeDenis Kenzior1-0/+7
If we're in PPP mode, then don't send unsolicited notifications. Only a NO CARRIER is really allowed.
2011-02-28gatserver: Tweak use of g_at_server_suspend/resumeDenis Kenzior1-11/+18
2011-02-28test-server: Make sure to send CONNECTDenis Kenzior1-6/+9
Before starting the ppp session we should make sure that the CONNECT response has been sent on the wire.
2011-02-28gatserver: Exit garbage state on HDLC frame endDenis Kenzior1-1/+2
2011-02-28gatppp: Try to detect no carrier conditionsDenis Kenzior1-0/+1
2011-02-28gatppp: Delay signaling ppp_downDenis Kenzior1-2/+14
Delay signaling of ppp_down until we exit the GAtHDLC read handler. Otherwise exchanging the read handler on GAtIO might lead to funny double consumption problems.
2011-02-28gathdlc: Try to detect no carrier conditionsDenis Kenzior2-0/+21
Sometimes we receive the no carrier embedded in a stream following the PPP packets. This might be due to write scheduling on the remote side or read scheduling locally. Try not to consume the no carrier condition and assume the previous hdlc frames will result in closing of the ppp stack.
2011-02-28gatio: Remove stray empty lineDenis Kenzior1-1/+0
2011-02-28gatio: update commentDenis Kenzior1-2/+2
2011-02-28gathdlc: Unregister read / write handlersDenis Kenzior1-0/+3
When GAtHDLC is being unregistered make sure to unregister read / write handlers so as not to crash.
2011-02-28gathdlc: drain the last hdlc frame processedDenis Kenzior1-1/+1
If we're being destroyed, we should drain the last HDLC frame
2011-02-28gsmdial: register notification before resumingDenis Kenzior1-1/+5
2011-02-28ppp: Remove some g_printsDenis Kenzior3-11/+0
2011-02-28ppp_cp: Replace some left over g_prints with DBGDenis Kenzior1-3/+3
2011-02-28gatppp: Replace some left-over g_prints with DBGDenis Kenzior1-4/+4
2011-02-28gatppp: Send the final terminate ackDenis Kenzior1-10/+42
In the case where we're going down, but have a pending terminate ack, delay signaling the upper layers until the ack has been put on the wire.
2011-02-28gatppp: Add a debug macroDenis Kenzior1-0/+7
2011-02-28gatio: Add write 'done' notifierDenis Kenzior2-0/+21
This allows external clients to get notified when GAtIO no longer has a registered write watcher. E.g. no more data is currently pending.
2011-02-28test-server: Remove root user checkDenis Kenzior1-5/+0
2011-02-28gatserver: Update the internal command parsersDenis Kenzior1-10/+3
commit 61b30c025d3d461bfd577de29f27f4f9a5546213 changed the way the command callbacks are being called (namely the contents of the GAtResult object). Most command callbacks were updated, but the internal ones were forgotten. This patch fixes this issue.
2011-02-25gatchat: Fix minor style issuesDenis Kenzior1-3/+3
2011-02-24gatchat: add g_at_result_iter_next_number_default APIFrédéric Danis2-0/+32
2011-02-23gatserver: Add function to enable/disable echoFrédéric Dalleau2-0/+11
2011-02-22gatserver: Add various ATSx handlersOlivier Guiter1-0/+36
2011-02-17test-server: Fix crash when remote disconnectsGuillaume Zajac1-0/+6
If the remote side kills the connection when PPP is established, we should not try to resume the AT server.
2011-02-16gsmdial: Fix minor style quirkDenis Kenzior1-1/+1
2011-02-16gsmdial: add option for Bluetooth DUN dialingGustavo F. Padovan1-3/+16
2011-02-16PPP: Use default ACCM (0xffffffff) to trasmitMartin Xu1-3/+5
Using my Huawei EM770W modem, if set ACCM as 0x00000000, RXJ- event breaks PPP link, after IP package transmit for a while. Using default ACCM, the issue can be fixed. I tested it at China Unicom networks.
2011-02-16gatserver: Be more const correctDenis Kenzior2-2/+2
2011-02-15test-server: Fix a few more occurrencesDenis Kenzior1-11/+10
2011-02-15gatserver: Change callback signatureDenis Kenzior3-105/+86
Provide the originating GAtServer to the callback
2011-02-15gatserver: extend D with GSM/UMTS specificsDenis Kenzior1-3/+9
2011-02-15test-server: Behavior to match previous commitDenis Kenzior1-8/+6
2011-02-15gatserver: Don't bother reporting command prefixesDenis Kenzior1-2/+10
The command line parser knows where the actual command line parameters begin, so there's no need to make the callback skip the prefix and the additional separator characters.
2011-02-14PPP: Fix transmit ACCM and receive ACCM mixupMartin Xu1-2/+14
According to RFC1662 Section 7.1, ACCM Configuration Option is used to inform the peer which control characters MUST remain mapped when the peer sends them.
2011-02-14gatserver: Add ATS5 command featureOlivier Guiter1-1/+5
2011-02-08gatmux: Remove unused error variableDenis Kenzior1-4/+2
2011-01-20gatchat: improve large file downlink data transferCarlos Pargada1-2/+2
Fix large file downlink data transfer on IFX modem. Increase buffer size of ring buffer to support close received Packets from the modem. Set highest priority for write data on IO device
2011-01-20gatchat: The IO setup already ensures no encoding and no bufferingMarcel Holtmann1-3/+0
2011-01-20gatchat: Small cleanup to make function look simplerMarcel Holtmann1-3/+2
2011-01-19gatchat: Disable encoding for RawIP GIOChannelMarcel Holtmann1-0/+1
2011-01-19gatchat: Fix setup of GIOChannel from multiplexer DLCMarcel Holtmann1-0/+4