sim900: Enable serial receiver
authorJesper Larsen <jesper.larsen@ixonos.com>
Wed, 17 Jul 2013 07:14:13 +0000 (09:14 +0200)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 17 Jul 2013 15:19:11 +0000 (10:19 -0500)
The read option must be set to 'on' in order for two-way
communication with SIM900 module to work.

plugins/sim900.c

index 6cfed65..643de51 100644 (file)
@@ -127,6 +127,7 @@ static GAtChat *open_device(struct ofono_modem *modem,
        g_hash_table_insert(options, "XonXoff", "off");
        g_hash_table_insert(options, "Local", "off");
        g_hash_table_insert(options, "RtsCts", "off");
+       g_hash_table_insert(options, "Read", "on");
 
        channel = g_at_tty_open(device, options);
        g_hash_table_destroy(options);