Denis Kenzior
fb918d39ba
Fix: Take care of uninitialized variable condition
...
In some (impossible) circumstances rbytes and err might be used
uninitialized. Here we make a check that a read was actually attempted
before checking those variables.
2010-01-28 14:38:59 -06:00
Marcel Holtmann
839988cfa3
Limit the number of continues read attempts
2010-01-28 12:41:31 +01:00
Denis Kenzior
aebda1ac94
Refactor: Reorder argument order
...
The order of arguments was a bit confusing, reorder them to make more
logical sense.
2010-01-20 14:21:22 -06:00
Zhenhua Zhang
7145edd3a4
Add gatutil.c to share common APIs with GAtServer
...
Add gatutil.c/h gat.h and move shared typedef and APIs into it.
So that they can be shared by GAtServer and GAtChat.
2010-01-20 14:13:57 -06:00
Denis Kenzior
e8d18946b9
Fix: One more fix for disconnect detection
...
In situations where lots of data is generated by the remote side (e.g.
phonebook is being read) we can get our ring buffer filled up. In this
case setting rbytes to zero first and then breaking out of the loop
leads to an erroneous disconnect detection. The fix is to move setting
of rbytes after we know we still have some space.
2010-01-15 10:24:01 -06:00
Denis Kenzior
aec5b8a44f
Fix: Make remote disconnect detection work
2010-01-14 10:26:12 -06:00
Denis Kenzior
687c84a1ff
Style: Various issues
2010-01-12 17:54:37 -06:00
Marcel Holtmann
144080e749
Update copyright information
2010-01-01 17:00:10 -08:00
Marcel Holtmann
2876e1aa64
Unifiy all GAtChat error labels
2009-12-24 07:06:23 -08:00
Denis Kenzior
76e2eb1afc
Add legacy mode to gsmdial
...
Use ATD*99 variety for modems that don't support CGDATA.
2009-12-10 18:14:11 -06:00
Denis Kenzior
a41e856cfd
Fix: wrong abbreviation for option
2009-12-10 17:49:33 -06:00
Denis Kenzior
7a456aaf7a
Add offmode to gsmdial
2009-12-10 17:43:57 -06:00
Denis Kenzior
62d8cf7aa3
Fix: Fix gsmdial to handle MD300
...
MD300 never sends a CGREG indication, we must query it after CGATT
2009-12-10 17:41:42 -06:00
Denis Kenzior
51e090a283
Add the beginnings of a GSM GPRS dialing app
2009-12-10 17:11:27 -06:00
Denis Kenzior
1d98c226b5
Add g_at_chat_unregister_all function
2009-12-02 19:10:08 -06:00
Denis Kenzior
cf98ebb653
Add: g_at_chat_cancel_all function
...
This will cancel all commands currently queued.
2009-12-02 19:10:04 -06:00
Denis Kenzior
9b5b1057e4
Fix: Sometimes it is possible to cancel first cmd
...
Commands on the head of the queue can be canceled if none of its bytes
have actually been written to the modem. This is tracked by
cmd_bytes_written variable.
2009-12-02 15:27:26 -06:00
Denis Kenzior
0d022d3057
Fix: Don't allow cancelation of command id 0
2009-12-02 15:26:56 -06:00
Denis Kenzior
48a61b6d06
Fix: Retry the wakeup command until the modem OKs
...
The calypso is weird where it doesn't actually wakeup on the first try,
we need to bang its head a few times until it responds
2009-11-26 07:44:25 -06:00
Yang Gu
d9acd12fae
Framework to support non-standard terminator
2009-11-24 18:06:20 +01:00
Denis Kenzior
d6f5ac3767
Fix: Make sure we don't gobble up unsolicited
2009-11-23 19:56:24 -06:00
Andrzej Zaborowski
19187a0ee7
Properly skip over quoted values
...
Otherwise a left paren in a string can bring an obscure segfault.
2009-11-10 12:59:30 -06:00
Denis Kenzior
f83bb9d7b7
Cleanup previous patch and update docs
2009-10-28 16:38:55 -05:00
Ryan Raasch
c630300c99
Refactor: Capitalize g_at_tty option names
2009-10-28 16:36:33 -05:00
Zhenhua Zhang
525ca751bd
Handle right bracket in next_unquoted_string
2009-10-23 13:39:41 -05:00
Ryan Raasch
d1db227d20
Enable / Disable CREAD functionality in gattty
2009-10-21 19:06:43 -05:00
Denis Kenzior
feda620c94
Fix: Stop crashing when unrefing chat in callback
2009-10-16 17:46:28 -05:00
Denis Kenzior
43e5152934
Fix: Do not leak chat references in case of error
2009-10-15 16:15:17 -05:00
Denis Kenzior
20dc22a6c4
Fix: Cleanup debug formats
2009-10-15 16:15:17 -05:00
Denis Kenzior
d4d1617684
Fix: Do not send shutdown more than once
2009-10-15 16:15:17 -05:00
Denis Kenzior
a8af38d209
Fix: Be more paranoid in checking DLC validity
2009-10-15 16:15:17 -05:00
Denis Kenzior
112d07e14e
Refactor: Add driver model to GAtMux
...
GAtMux can now be made to work with multiple multiplexing protocols.
Currently on the 27.010 (07.10) Advanced and Basic modes are supported.
However, further protocol support can be added by providing the
necessary driver functions for GAtMux
2009-10-15 16:15:17 -05:00
Denis Kenzior
bcf962c79c
Forgot to add void* to get_data
2009-10-15 16:15:17 -05:00
Denis Kenzior
6bfd76123b
Forgot to add driverdata functions
2009-10-15 16:15:17 -05:00
Denis Kenzior
a4a54f6625
Refactor: Enable multiplexer drivers for GAtMux
2009-10-15 16:15:17 -05:00
Denis Kenzior
1575f2dcd1
Fix: Notify sources upon shutdown
2009-10-15 16:15:16 -05:00
Denis Kenzior
5826fc9c15
Add ability to open/close multiple DLCs
2009-10-15 16:15:16 -05:00
Denis Kenzior
4734ebcb46
Refactor: Add convenience method to start 0710 MUX
...
Use an existing GAtChat that has been setup appropriately to conver the
channel into a MUX
2009-10-15 16:15:16 -05:00
Denis Kenzior
9aa2182261
Add ability to retrieve the atchat IOChannel
2009-10-15 16:15:16 -05:00
Denis Kenzior
556186eb35
Remove more unused code
2009-10-15 16:15:16 -05:00
Denis Kenzior
4c5cf38ddb
Fix: Use DISC on dlc 0 instead of CLD
...
Some MUX implementations do not seem to support Multiplexer Closedown
(CLD) command. The standard specifies that sending DISC on DLC 0 should
act exactly the same as CLD.
2009-10-08 12:53:25 -05:00
Denis Kenzior
e2415161de
Fix: Make compile on some obscure platforms
2009-10-08 12:53:25 -05:00
Denis Kenzior
f9db94cd73
Cleanup: Remove more dead code
2009-10-08 12:53:25 -05:00
Denis Kenzior
efadf058c3
Cleanup: Get rid of unused member
...
ctx->server is never set to anything but 0. This was intended to handle
server side functionality of the GSM 07.10 multiplexer, but never fully
implemented. Since GAtMux is only really meant for the client side, we
can safely remove this dead code.
2009-10-08 12:53:25 -05:00
Denis Kenzior
273c8b06a0
Get rid of from_tty variant, use gattty instead
2009-10-08 12:53:25 -05:00
Denis Kenzior
7e82686e70
Fix: Make next_hexstring handle optional quotes
...
Ericsson MBM devices send CRSM information as hex strings, yet enclose
them in quotes which is not according to the standard.
2009-10-02 18:25:56 -05:00
Marcel Holtmann
cfbc902287
Add support for switching to a different GAtSyntax at runtime
2009-10-02 12:29:02 +02:00
Marcel Holtmann
729056cb2e
Fix missing include for close() function call
2009-10-02 03:25:35 +02:00
Denis Kenzior
6a78e402d3
Replace g_at_chat_new_from_tty with g_at_tty_open
2009-10-01 16:43:19 -05:00
Marcel Holtmann
a37f0dbad6
Add skeleton for gsmdial test application
2009-09-24 17:39:09 -07:00