Commit Graph

668 Commits

Author SHA1 Message Date
Denis Kenzior bb3df7a66d phonesim: Move the stk atom to post_sim state 2010-09-02 10:45:01 -05:00
Pekka Pessi bbe4cf9f9d mbm: D5530 gets bogus +GCAP, not +CGAP 2010-08-30 11:28:19 -05:00
Marcel Holtmann 58830cb025 udev: Add rule for ZTE MF110 modem 2010-08-28 08:19:02 +02:00
Pekka Pessi 72bc1c7780 mbm: add quirks for Dell D5530
Dell D5530 is an OEM version of F3507g. It has an annoying habit of
announcing itself to world with its own name. Another problem is some weird
+CGAP messages at the same time. It also crashes upon processing received
CBS messages.
2010-08-25 12:18:23 -05:00
Marcel Holtmann a5bb510787 novatel: Use Qualcomm specific quirk for SIM handling 2010-08-23 22:54:34 +02:00
João Paulo Rechi Vita 8ca72b9706 hfp: fix typo 2010-08-23 20:15:28 +02:00
Marcel Holtmann c2cf902d03 huawei: Query AT^U2DIAG and AT^GETPORTMODE settings
Just to make the values show up in the AT command debug logs, query them
when enabling the device.
2010-08-23 17:43:20 +02:00
Pekka Pessi 51a1bae8c7 mbm: fix initial polling for sim
There seems to be no specific error codes returned when SIM is missing.
Poll at least 5 times upon an error and give up after that.
2010-08-23 16:31:36 +02:00
Marcel Holtmann 0488550b55 nokia: Add GPRS handling 2010-08-20 21:27:13 +02:00
Marcel Holtmann a466443f55 zte: Add GPRS handling 2010-08-20 21:19:40 +02:00
Marcel Holtmann e3372f0b04 mbm: Remove registration and bearer specific notifications 2010-08-20 16:51:24 +02:00
Marcel Holtmann 9cdc303574 mbm: Enable notifications for packet switched bearer changes 2010-08-20 16:24:12 +02:00
Marcel Holtmann 132041004b mbm: Enable CFUN and EREG notifications 2010-08-20 15:45:17 +02:00
Marcel Holtmann 3251e7e234 mbm: Fix naming of MBM driver for GPRS context handling 2010-08-20 14:12:01 +02:00
Marcel Holtmann f1e8114f2a mbm: Use proper MBM quirks 2010-08-20 14:09:55 +02:00
Marcel Holtmann 607b21e7e3 ste: Use MBM quirk for network registration 2010-08-20 14:08:12 +02:00
Marcel Holtmann 26213aa1cc ste: Use MBM quirk instead of a STE specific one 2010-08-20 14:07:19 +02:00
Zhenhua Zhang 2084fffed0 udev: Add check for serial before string operation
'serial' could be NULL in some case. So it need to add check before
doing string operation.
2010-08-20 10:20:39 +02:00
Marcel Holtmann 12af4601bd nokia: Add initial plugin for Nokia Datacard support 2010-08-20 03:05:18 +02:00
Marcel Holtmann d05ea32ac2 udev: Add detection for Nokia data cards 2010-08-20 02:20:37 +02:00
Denis Kenzior 7be74dabe2 zte: Use QUALCOMM_MSM quirk for sim driver 2010-08-19 18:20:29 -05:00
Denis Kenzior 56aab76f41 huawei: Use QUALCOMM_MSM quirk for sim driver 2010-08-19 18:20:29 -05:00
Marcel Holtmann 86b58a7e43 hso: Use Qualcomm specific USSD quirk 2010-08-19 21:59:11 +02:00
Marcel Holtmann d0fdaa7f72 huawei: Add support for switching USSD mode
Some newer Huawei modems have support for ^USSDMODE command which seems
to be default to 1. In that mode the text USSD is not working. Switching
it to 0 and text USSD works just fine. Assumption is that with this command
the modem switches between text and PDU mode for USSD. Currently it is
unclear on how the PDU mode is suppose to work all. So default to text mode
if this command is supported.
2010-08-19 21:01:21 +02:00
Andrzej Zaborowski 01cb20f32d calypso: Subscribe to %SIMREM and %SIMINS
These notifications should be emitted on SIM removal and insertion.
These notifications don't work very well though, on the hardware this
has been tested on, the modem never issued %SIMINS, and %SIMREM was
emitted only in some specific circumenstances.
2010-08-18 00:29:37 -05:00
Sjur Brændeland e1cd53476a stemodem: Add polling for SIM ready status
Interim solution until support for SIM 'ready' notification is supported.
2010-08-17 14:57:31 +02:00
Sjur Brændeland 53546e6e23 plugins: Add STE sample to modem.conf 2010-08-17 14:51:31 +02:00
Sjur Brændeland 66f1f3d1d4 modemconf: Add support for Interface for STE plugin 2010-08-17 14:50:31 +02:00
Sjur Brændeland 825a2c2d66 ste: Use SOCK_STREAM for CAIF and enable interface specification 2010-08-17 14:46:01 +02:00
Sjur Brændeland e006d6db04 ste: Add Radio-Settings 2010-08-17 14:42:30 +02:00
Sjur Brændeland 9cbbf1d3ab ste: Add AT Channel configurations 2010-08-17 14:39:46 +02:00
Sjur Brændeland 266a3893a3 ste: SIM - STE registers as MBM to utilize mbm quirks 2010-08-17 14:37:58 +02:00
Denis Kenzior 47253998be phonesim: Should use none_prefix
When only OK is expected
2010-08-16 21:29:19 -05:00
Sjur Brændeland ce46fd322c ste: Include STK support from MBM driver 2010-08-16 23:57:58 +02:00
Marcel Holtmann de363a0056 zte: Use Qualcomm specific USSD quirk 2010-08-16 22:38:57 +02:00
Marcel Holtmann 7e01bef1b4 zte: Add support for sms, cbs, ussd and phonebook atoms 2010-08-16 15:28:31 +02:00
Marcel Holtmann 885880512d zte: Add initial support for devinfo, sim and netreg atoms 2010-08-16 15:16:01 +02:00
Marcel Holtmann 78a304de71 Fix typo in Huawei port detection 2010-08-16 14:49:54 +02:00
Marcel Holtmann 0a18997416 Add udev detection support for ZTE modems 2010-08-16 14:49:04 +02:00
Marcel Holtmann 3e93fbca03 Add skeleton for ZTE modem support 2010-08-16 14:48:41 +02:00
Denis Kenzior 3b34dd44f1 phonesim: Support set_online/post_online 2010-08-12 15:53:59 -05:00
Marcel Holtmann 4e9fc90e8a Use permissive parser for MBM since otherwise STK causes problems 2010-08-10 21:42:00 -04:00
Andrzej Zaborowski 29510815c5 calypso: Create STK atom and reorder initialisation
See comment in the code.  The Sim Toolkit apps seem to work rather
reliably with this, tested on both PIN-enabled and unprotected cards.
2010-08-06 12:07:12 -05:00
Andrzej Zaborowski 8f0b5a13c1 calypso: Enable AT extended error codes
The STK driver tries to interpret the codes.
2010-08-06 12:00:40 -05:00
Andrzej Zaborowski 1ba7fbd3c4 calypso: Check if SIM is present on modem startup
Like in case of MBM modem, the SIM slot is not easily accessible
while the device is running so we assume there's no need to check
for SIM presence after startup.
2010-08-06 11:55:09 -05:00
Andrzej Zaborowski 303394910f phonesim: Don't use VENDOR_PHONESIM for calypso
Also move the STK initialisation to post-sim because it is more logical
there (even if it makes no difference under phonesim).
2010-08-06 11:53:27 -05:00
João Paulo Rechi Vita f01de438bd huawei: Fix SIM state logic
Add support for voice-only SIM cards and enable phonebook atom for
non-voice modems.
2010-08-05 14:19:56 -05:00
Gustavo F. Padovan c441ca167d bluetooth: define DBUS_TIMEOUT macro 2010-08-05 10:34:38 -05:00
João Paulo Rechi Vita 4c8e084bf4 huawei: fix double include of GPRS header 2010-08-02 12:16:40 -07:00
Marcel Holtmann d2c8f957c0 Fix Huawei product ID matching in udev rules 2010-07-17 14:46:37 -07:00
Marcel Holtmann 9a72521d7b Add a little bit debug to udev modem detection 2010-07-17 14:43:29 -07:00
Pekka Pessi 99f6c920f5 mbm: poll SIM status when initializing 2010-07-15 09:18:08 -05:00
Yang Gu ce24e7b2c8 Use specific vendor for phonesim stk 2010-07-13 09:55:06 -05:00
Zhenhua Zhang bf562fd639 huawei: Add Huawei EM770 modem support
Huawei EM770W is a 3G WCDMA modem that supports HSPA/UMTS/EDGE/GPRS/GSM
data service and WCDMA/GSM short message services. It also has voice
call capability that supports both 2G and 3G network.
2010-07-02 10:40:13 -05:00
Zhenhua Zhang 7d42e4782d huawei: Remove existing Huawei EM770 plugin 2010-07-02 10:38:59 -05:00
Denis Kenzior 494ce09c49 huawei: cleanup warnings from the previous patch 2010-06-29 14:44:20 -05:00
Kalle Valo 39382730d7 huawei: reopen the GPRS context on hup
Huawei always closes the tty port after PPP disconnect. Handle this in
huawei plugin, similarly as done with novatel. Now there's no need
to unplug the modem after disconnection.

Tested with Huawei E1552.

Based on a patch by Marcel Holtmann:

commit 0329a6ceaf
Author: Marcel Holtmann <marcel@holtmann.org>
Date:   Mon Jun 7 02:36:12 2010 -0700

    Reopen the GPRS context channel when the modem closes it after PPP
2010-06-29 14:01:16 -05:00
Pekka Pessi e8965f5f8c mbm: use CPIN? to check if SIM is missing
AT+CRSM=242 is not supported by all mbm models.
2010-06-29 12:24:51 -05:00
Denis Kenzior 6f08920c1a Fix huawei udev rules 2010-06-22 09:46:25 -05:00
Denis Kenzior 2f967651fb hfp: Fix style issues 2010-06-21 22:53:05 -05:00
Gustavo F. Padovan f4e1b5ca91 hfp: use bluetooth helpers and remove similar code 2010-06-21 22:49:37 -05:00
Denis Kenzior 8319eee7c0 bluetooth: Various style issues 2010-06-21 22:48:15 -05:00
Gustavo F. Padovan 922d8aed48 bluetooth: add PropertyChanged watch
This one is a bit diferent from the hfp.c one, so a separated patch for
it.
2010-06-21 22:45:50 -05:00
Gustavo F. Padovan 447162185f bluetooth: add watches for service and adapters
Exactly the same code from hfp.c
2010-06-21 22:43:38 -05:00
Gustavo F. Padovan 88ffebf801 bluetooth: add device_properties_cb() and has_uuid() 2010-06-21 22:43:08 -05:00
Gustavo F. Padovan d6154362d3 bluetooth: Move functions from hfp.c to bluetooth.c
The part that call device_properties_cb is commented to permit this patch
compile.
device_properties_cb() will be changed, so it will have separated patch.
2010-06-21 22:40:22 -05:00
Denis Kenzior c3d61c9467 history: Make example_history use Delivery Reports 2010-06-21 15:21:39 -05:00
Arun Ravindran 7aab2d07aa Enabling PDP Context support in atmodem. 2010-06-21 09:32:06 -05:00
Andrzej Zaborowski 4f72a3a1f7 mbm: Use MBM vendor quirk of the sim driver. 2010-06-18 14:14:53 -05:00
Andrzej Zaborowski 56c8033f9f mbm: Register stk driver post sim. 2010-06-18 14:11:26 -05:00
Florian Steinel a769091803 huawei: Import Huawei rules
From 10-Huawei-Datacard.rules (Linux Driver 4.08.01.108.tar.gz)
2010-06-18 12:58:07 -05:00
Denis Kenzior 02a54376c9 hfp: Use bluetooth_parse_properties
Instead of the local version
2010-06-17 05:32:29 -05:00
Denis Kenzior 6ba350cec5 bluetooth: Rename & expose parse_properties 2010-06-17 05:32:29 -05:00
Denis Kenzior cfc9722b13 hfp: Use the bluetooth_send_with_reply
Instead of send_method_call_with_reply
2010-06-17 05:32:29 -05:00
Denis Kenzior 2b2b992c22 bluetooth: Rename send_method_call_with_reply 2010-06-17 05:32:28 -05:00
Gustavo F. Padovan b611316bbe Remove send_method_call from hfp.c 2010-06-17 05:32:12 -05:00
Gustavo F. Padovan 9d543c0719 Move create_path() to bluetooth plugin 2010-06-17 05:07:05 -05:00
Gustavo F. Padovan 4ccb481f4d Add parse properties stuff to bluetooth.c 2010-06-17 05:06:55 -05:00
Gustavo F. Padovan 5bf4bec526 Add send_method_call_with_reply to bluetooth.c 2010-06-17 05:06:51 -05:00
Gustavo F. Padovan 4004433ad4 Add bluetooth plugin skeleton.
The bluetooth plugin has bluetooth_resgister_uuid() and
bluetooth_unresgister_uuid() where bluetooth profiles plugins such as HFP
and DUN can register themselves to get know about BlueZ stuff ( new
devices, bluetoothd shutdown, etc..)
2010-06-17 05:06:39 -05:00
Marcel Holtmann 74791ca805 Remove all voice related atoms from MBM modem support 2010-06-15 14:16:43 +02:00
Marcel Holtmann 66c50b6a72 Add nasty quirk to allow HSO devices to read network code length
The AT+CRSM=192 commands are failing on HSO devices and thus it might
be needed to return its details from a predefined database. Start with
testing this for reading the network code length.
2010-06-13 08:10:13 +02:00
Marcel Holtmann 6a26431f58 Use Qualcomm quirk for CBS on HSO devices 2010-06-13 07:02:55 +02:00
Marcel Holtmann 118759d5ba Enable Qualcomm specific CBS quirk for Novatel and Huawei devices 2010-06-09 18:42:09 -07:00
Denis Kenzior cc6a43c477 huawei: Rework huawei plugin
- Use the PCUI (event) port for all commands unrelated to ppp
- Use the Modem port for ppp
2010-06-07 19:07:05 -05:00
Denis Kenzior 71ea72adf2 udev: Fixup Huawei detection 2010-06-07 19:04:36 -05:00
Florian Steinel 5c0bdac347 udev: Add support for Huawei E176 2010-06-07 16:08:29 -05:00
Marcel Holtmann 0329a6ceaf Reopen the GPRS context channel when the modem closes it after PPP 2010-06-07 02:36:12 -07:00
Marcel Holtmann edc33cfdb3 Use event channel for SMS, CBS and USSD with Huawei devices 2010-06-06 18:22:03 -07:00
Marcel Holtmann d990308c69 Enable CBS and USSD for Huawei modems 2010-06-06 15:52:02 -07:00
Marcel Holtmann 6ab0b6f29a Fix detection of Huawei E220 and E270 modems 2010-06-06 15:51:36 -07:00
Marcel Holtmann f1c209d973 Move AT_ODO quirk into HSO driver instead of network registration 2010-06-06 15:27:34 -07:00
Marcel Holtmann 360abb0f5b Use hsomodem instead of hso for Option HSO GPRS atom driver 2010-06-06 15:20:48 -07:00
Marcel Holtmann 8a96a250f0 Enable Option specific radio settings 2010-06-06 15:19:32 -07:00
Marcel Holtmann fabf28cf02 Set Novatel quirk also for the GPRS atom 2010-06-06 13:13:02 -07:00
Marcel Holtmann 197d2c08bd Check the supported technologies for Novatel devices on startup 2010-06-06 12:05:10 -07:00
Marcel Holtmann 63d1efdf7f Enable Novatel specific radio settings 2010-06-06 11:08:41 -07:00
Marcel Holtmann 4f4565b33a Add disconnect callback handling to Novatel plugin 2010-06-05 22:37:02 -07:00
Marcel Holtmann e92040671d Use secondary port for everything besides GPRS with Novatel devices
If a Novatel device allows to enable a secondary AT command based
channel, then use that for device information, SIM handling, network
registration etc. and only leave the GPRS context setup to the first
command port.
2010-06-04 21:12:09 -07:00
Marcel Holtmann f6d252cf04 Rename Novatel ports into Primary and Secondary 2010-06-04 19:38:05 -07:00
Marcel Holtmann 78cc0e8efa Enable CBS and USSD for Option HSO based devices 2010-06-04 13:01:32 -07:00
Marcel Holtmann 372a2e306e Add Option specific SMS quirk since ack pdu is broken 2010-06-03 18:16:01 -07:00
Marcel Holtmann 2eec57da65 Enable USSD and CBS support for Novatel based devices 2010-06-03 09:56:42 -07:00
Marcel Holtmann 9b6ec94b21 Enable SMS support for Novatel based devices
The important part here is that the SMS atom needs to be on the second
AT command port since the main port doesn't handle sending correctly. It
never returns any success or error after the submission of the PDU.
2010-06-03 08:57:16 -07:00
Marcel Holtmann 6df182c5db Use new Novatel quirk for network registration 2010-06-03 01:21:44 -07:00
Marcel Holtmann 1261978f56 Add GPRS support for Novatel based devices 2010-06-02 23:18:32 -07:00
Marcel Holtmann d06d87e277 Fix debug channel prefix strings for Huawei plugin 2010-06-02 21:52:03 -07:00
Marcel Holtmann 788b21cfb9 Add support for detecting second port of Novatel devices 2010-06-02 21:45:09 -07:00
Denis Kenzior e8dec14a7c atgen: Don't use sim polling
Some modems get confused by the CSIM commands and reply with an error,
which we treat as sim not inserted.
2010-06-01 14:01:48 -05:00
Pessi Pekka (Nokia-D/Helsinki) 647a2e56b9 Fix: set correct local address for phonet on PCs 2010-05-26 00:06:43 +03:00
Kalle Valo 53d70bc137 huawei: remove voicecall support
These modems don't support voicecall anyway. Recommended by Denis.
2010-05-25 09:47:18 -05:00
Kalle Valo 99e4200c64 huawei: send a prefix with AT commands 2010-05-25 09:47:03 -05:00
Kalle Valo 2d3c0cd3b0 huawei: properly notify sim state to ofono
Instead of using ofono_modem_set_powered(), use ofono_sim_inserted_notify()
which is the proper way to notify about sim state changes.

Now the problem is that voicecall commands fail with my Huawei E1552:

ofonod[12395]: > AT+CRC=1\r
ofonod[12395]: src/sim.c:ofono_sim_add_state_watch() 0x1bf8e50
ofonod[12395]: src/sim.c:ofono_sim_add_state_watch() 0x1bf8e50
ofonod[12395]: < \r\n+CME ERROR: SIM busy\r\n
ofonod[12395]: > AT+CLIP=1\r
ofonod[12395]: < \r\n+CME ERROR: SIM busy\r\n
ofonod[12395]: > AT+COLP=1\r
ofonod[12395]: < \r\n+CME ERROR: SIM busy\r\n
ofonod[12395]: > AT+CCWA=1\r
ofonod[12395]: < \r\n+CME ERROR: SIM busy\r\n
ofonod[12395]: drivers/atmodem/voicecall.c:at_voicecall_initialized()
  voicecall_init: registering to notifications
ofonod[12395]: src/sim.c:ofono_sim_add_state_watch() 0x1bf8e50
ofonod[12395]: > AT^SYSINFO\r
ofonod[12395]: < \r\n^SYSINFO:0,0,0,0,255,,0\r\n\r\nOK\r\n
ofonod[12395]: > AT+CGMI\r
ofonod[12395]: < \r\nhuawei\r\n\r\nOK\r\n
ofonod[12395]: EventChannel: < \r\n^STIN:0,0,0\r\n
ofonod[12395]: > AT+CLCC\r
ofonod[12395]: < \r\n+CME ERROR: SIM busy\r\n

But as I can't make voice calls with this modem anyway, I don't worry
about them right now.
2010-05-25 09:46:37 -05:00
Kalle Valo 3cdbed3c37 huawei: use g_at_result_iter_skip_next() 2010-05-25 09:45:18 -05:00
Marcel Holtmann 1ff130d66e Some minor cleanups for the Huawei plugin 2010-05-25 11:13:48 +02:00
Kalle Valo 160e4fe122 huawei: follow sim state change notifications
With Huawei E1552 I got sim busy errors when I plugged in the modem
and ofono was already running:

May 24 17:02:04 tukki ofonod[7619]: > AT+CRC=1\r
May 24 17:02:04 tukki ofonod[7619]: < \r\n+CME ERROR: SIM busy\r\n
May 24 17:02:04 tukki ofonod[7619]: > AT+CLIP=1\r
May 24 17:02:04 tukki ofonod[7619]: < \r\n+CME ERROR: SIM busy\r\n

Fix this by following sim state changes with ^SIMST notification and
only enable modem after SIM is ready. In case SIM is already ready
and we miss the notification for some reason, also use AT^SYSINFO
to check the state during enable phase.

Also change huawei_enable() to return -EINPROGRESS to make sure that
ofono modem is not powered too early. I believe this was a bug.
2010-05-25 11:11:11 +02:00
Kalle Valo 36e9803cdc huawei: add gprs context
Tested with Huawei E1552 HSDPA USB stick using a finnish Saunalahti prepaid
SIM.
2010-05-19 23:09:21 -05:00
Kalle Valo 6f4b3c31fd huawei: detect possible secondary device 2010-05-19 23:08:33 -05:00
Aki Niemi b8ec7553ef Add network time support
Adding a new notify function in the netreg atom for notifying a
received Network Identification and Timezone (NITZ) indication. This
data is consumed via a nettime plugin, of which there is also an
example.
2010-05-19 10:46:18 +03:00
Pekka Pessi 3e07987776 Configure phonet link in usbpnmodem 2010-05-17 13:51:51 +03:00
Pekka Pessi 89cd67f076 Use g_pn_netlink_by_modem() in usbpnmodem plugin 2010-05-17 13:44:11 +03:00
Andrzej Zaborowski bf7afc6130 mbm: Check there's a SIM card inserted. 2010-05-12 13:46:17 -05:00
Andrzej Zaborowski 19ddfb302f mbm: Register sim toolkit atom in mbm plugin. 2010-05-12 13:44:53 -05:00
Zhenhua Zhang af976f7e52 Fix Use hashtable to record udev path
Sometimes, Udev device 'remove' event could not report correct parent
node of current udev_device. Current code replies on the devpath
attached on the parent node to find modem and then remove it.

This fix is to change the way to store the devpath info into a
hashtable. So that we search hashtable to get devpath and remove the
modem.
2010-05-11 09:18:55 -05:00
Zhenhua Zhang 988750898e Fix check data device before register the modem
To avoid the race condition that modem is registered before we retrieve
the data device property.
2010-05-10 15:26:09 -05:00
Torgny Johansson 4c483acbc6 add vid/pid for Dell 5541 and 5542 2010-05-04 11:08:46 +02:00
Denis Kenzior 244ea076cc Fix: Remove easy uses of g_at_chat_shutdown 2010-04-28 17:27:33 -05:00
Zhenhua Zhang e1daf20651 mbm: Add Dell 5530 modem port suffix
Dell 5530 seems to have three tty ports labeled:
"Dell Wireless 5530 HSPA Mobile Broadband Minicard Modem"
"Dell Wireless 5530 HSPA Mobile Broadband Minicard Modem 2"
"Dell Wireless 5530 HSPA Mobile Broadband Minicard GPS Port"
2010-04-21 12:46:47 -05:00
Denis Kenzior 1442b0af46 wavecom: Trivial comment update 2010-04-20 11:54:25 -05:00
Denis Kenzior 9d58e01d96 wavecom: Braces are not necessary 2010-04-20 11:54:25 -05:00
Matthias Günther d8e1a68264 Added Wavecom modem plugin.
The Wavecom WMP100 is a serial based modem, however it assumes CPIN to
be the final response.  This requires some quirking in the sim driver.

Refer to commit 6d28f82dc1 for details.
2010-04-20 11:54:25 -05:00
Pekka Pessi fa3501b8d2 Refactor isimodem and gisi/netlink
Now usbpnmodem plugin is used to register ISI modems.
2010-04-20 17:47:17 +03:00
Pekka Pessi 793710d800 Parse Interface key for isimodem and n900modem 2010-04-20 17:47:16 +03:00
Denis Kenzior 92cb776fae phonesim: Disable polling in phonesim for now
Seems that polling support in phonesim is less than working
2010-04-20 09:12:43 -05:00
Denis Kenzior 53a2520ab8 Trivial: Remove extra ':' from history output 2010-04-20 09:12:43 -05:00
Denis Kenzior cc0ffd1720 Rename ofono_atmodem_poll_enable
This is not official oFono API
2010-04-15 16:49:43 -05:00
Andrzej Zaborowski 14bcca32c0 Implement STATUS polling in atmodem driver. 2010-04-15 16:49:43 -05:00
Andrzej Zaborowski b34c35d822 Add AT driver for STK atom. 2010-04-15 16:49:42 -05:00
Andrzej Zaborowski ddfe8acf11 Drivers can notify core of SIM insertion / removal
Add ofono_sim_inserted_notify function to notify the core of SIM
insertion / removal.

Make every plugin generate a sim inserted event on start.  For devices
with removable card, the event should be emitted after the
plugin detects such event.  For devices that need to wait for SIM card
initialization, they can emit this event later.
2010-04-15 16:49:40 -05:00
Daniel Wagner 7bbbb6949c Add support for Option iCON 451 2010-04-14 03:36:24 -07:00
Denis Kenzior aadc1d884d Add support for Option iCon 452 2010-04-01 22:32:58 -05:00
Denis Kenzior 4d44103cce Update mbm to use two ports
The second port might be used for a second active context via ppp
2010-03-31 18:36:21 -05:00
Denis Kenzior 149650db8d Fix: MD300 uses two ACM ports, so set one to data 2010-03-31 18:34:32 -05:00
Denis Kenzior b046142044 Fix: Potential crash in modemconf 2010-03-31 08:22:03 -05:00
Denis Kenzior 40a2d9034d Add call-forwarding to mbm driver 2010-03-29 15:38:22 -05:00
Denis Kenzior 21dd4f040a Move erinfo notify to atmodem netreg driver 2010-03-28 23:49:57 -05:00
Denis Kenzior 8b33129bac Add phonesim vendor quirk 2010-03-26 23:00:28 -05:00
Denis Kenzior d994ed1111 Add mbm vendor 2010-03-26 23:00:28 -05:00
João Paulo Rechi Vita c0c682d5c0 huawei: use GSM permissive parser instead of V1.
With V1 parser the driver fails to detect when a SMS is successfully
sent and keeps re-trying until Max retries.
2010-03-18 16:06:07 -05:00
Yang Gu d26e71a06a Add support of Huawei EM770 modem
Comparing with general Huawei modem, EM770 is a full feature modem that
supports voicecall, phonebook, call forwarding, call barring, etc.
2010-03-16 01:33:23 -07:00
Gustavo F. Padovan 400d692e6e hfp: add watch to trigger HUP of the file descriptor 2010-02-15 16:46:17 -06:00
Gustavo F. Padovan f738a84588 hfp: remove modems if bluetoothd exits unexpectedly 2010-02-15 15:03:31 -06:00
Gustavo F. Padovan e66002bbcf hfp: remove duplicated ofono_modem_set_powered 2010-02-15 13:37:34 -06:00
Denis Kenzior 766a0bcfa5 Fix: Unregistering the agent in disable is wrong
What we really want to do here is set a flag that the agent has not been
released yet.  If this is the case we should send the Disconnect call on
disable.
2010-02-12 20:10:29 -06:00
Denis Kenzior 7194bd03a0 Add hfp/ prefix to the path for HFP modems 2010-02-12 19:49:19 -06:00
Denis Kenzior 5d104529f9 Add support for alias changes 2010-02-12 18:42:48 -06:00
Denis Kenzior 8210719201 Set modem name from Bluetooth device alias 2010-02-12 18:30:03 -06:00
Denis Kenzior 546a9fdd14 Fix: Use persistent paths for hfp modems 2010-02-12 18:19:32 -06:00
Denis Kenzior e3016c3bc5 Fix: Store the modem in the uuid hash
The modem is more useful to store than the path, particularly once we
track Aliases
2010-02-12 17:57:20 -06:00
Denis Kenzior 6ec67d79ed Refactor the UUIDs property changed path 2010-02-12 17:52:55 -06:00
Denis Kenzior 9f74296c2b Don't leak user_data in send_method_call_with_reply 2010-02-12 17:51:23 -06:00
Gustavo F. Padovan 4c0790da4f hfp: Don't use Disconnect when agent was released 2010-02-12 17:35:11 -06:00
Denis Kenzior a040ca718b Keep track of adapter addresses
This will be required for peristent HFP modem path tracking.
2010-02-12 16:33:53 -06:00
Denis Kenzior a8cd42c4d5 Fix: Add free_func to send_method_call_with_reply 2010-02-12 16:30:34 -06:00
Denis Kenzior 2b9c5ee411 Fix: ofono_dbus_get_connection does not ref it 2010-02-12 16:07:13 -06:00
Denis Kenzior 103a5fdfcb Cleanup: No sense in creating the hash if failed 2010-02-12 16:05:09 -06:00
Denis Kenzior ed455645f9 Refactor: Device GetProperties handling 2010-02-12 15:44:31 -06:00
Denis Kenzior d9382dc4b2 Refactor: Use Adapter Devices property
Adapter interface ListDevices method is deprecated
2010-02-12 15:32:53 -06:00
Denis Kenzior 41a1dacae9 Fix: Use Manager's Adapters property instead
ListAdapters method on Manager interface is deprecated
2010-02-12 15:05:52 -06:00
Denis Kenzior 7a48b56ebb Add a more sophisticated GetProperties reply parser 2010-02-12 15:05:27 -06:00
Denis Kenzior d5577a393d Style: No need for this to be a function 2010-02-12 12:02:39 -06:00
Denis Kenzior 35f83a7129 Fix: Use a 15 second timeout on a disconnect 2010-02-12 12:01:07 -06:00
Denis Kenzior 668dc8e42b Style: No need for this to be a function 2010-02-12 12:01:04 -06:00
Denis Kenzior 1155a0c1a7 Style: No need for a function here 2010-02-12 11:27:02 -06:00
Gustavo F. Padovan 0d86193b34 hfp: set timeout to rfcomm establishment procedure
If it expires we call org.bluez.HandsfreeGateway.Disconnect()
It also modifies send_method_call and break it down into two functions.
Now we have send_method_call_with_reply, for DBus messages that needs a
reply. It sets a reply and a timeout for the message reply.
The other funcion is called send_method_call without timeout or reply
parameters.
2010-02-12 10:03:31 -06:00
Gustavo F. Padovan 46836533e0 hfp: avoid crash when hfp is declared on modem.conf 2010-02-11 17:03:31 -06:00
Gustavo F. Padovan 8f95e03d75 hfp: fix copyright notice 2010-02-11 17:03:17 -06:00
Denis Kenzior 7f9a9b0cdc Fix: Don't use ofono_debug directly in plugins 2010-02-08 12:09:01 -06:00
Denis Kenzior c02dc9c68b Fix: Simplify overly complex error handling 2010-02-05 17:31:13 -06:00
Denis Kenzior 5237a12ca2 Style: Rename variables to better indicate arrays
Variables that hold arrays of strings should be named more appropriately
to help indicate this.
2010-02-05 17:25:53 -06:00
Denis Kenzior 8dc538e252 Style: No need for void here 2010-02-05 17:24:18 -06:00
Vinicius Costa Gomes e20587631d hfp: Fix memory leak when listing bluetooth devices 2010-02-05 17:15:16 -06:00
Gustavo F. Padovan 805a6c47d3 hfp: wait Disconnect reply to power down the modem 2010-02-05 13:35:43 -06:00
Gustavo F. Padovan edb98c16e8 Fix: Don't call UnregisterAgent if already Released
Prevent to call UnregisterAgent on an already unregistered agent.
2010-02-05 13:34:33 -06:00
Gustavo F. Padovan 4522c9686d hfp: create modem for new devices paired on runtime
It listens the UUIDs property to create a modem from the recently paired
devices. It also renames added_watch to adapter_watch, a more proper
name.
2010-02-05 13:33:13 -06:00
Denis Kenzior d223243913 Fix: Use snprintf instead of sprintf in HFP 2010-02-05 12:00:14 -06:00
Denis Kenzior 7bab47f07b Fix: No need to check for handsfree_path now 2010-02-04 13:49:36 -06:00
Denis Kenzior 5a6bbd113d Cleanup: Refactor handling of failed connections 2010-02-04 13:49:36 -06:00
Denis Kenzior 4822b21b4d Cleanup: Modem creation 2010-02-04 13:49:33 -06:00
Denis Kenzior 1cd4bf036f Add function to handle SLC handshake failures 2010-02-04 13:13:57 -06:00
Marcel Holtmann 4d6eaa7404 Use blocking GAtChat objects for STE modems
Due to some missing implementation of POLLOUT, the access to the CAIF
channels of the STE modems have to be done in a blocking fashion.
2010-01-30 07:46:22 -08:00
Marcel Holtmann 16f477653d Add support for using old CAIF subsystem with character devices 2010-01-30 07:45:24 -08:00
Marcel Holtmann 3e46541dd4 Use simple driver table for modem configuration setup helpers 2010-01-30 07:43:12 -08:00
Sjur Brændeland ddd5582a54 Add STE voice call support. 2010-01-28 15:08:23 -06:00
Gustavo F. Padovan bc7d0fb27f Handle the error path from service_level_connection 2010-01-28 11:16:05 -06:00
Gustavo F. Padovan 0bb749a51f Remove unneeded code to disable the modem on hfp
ofono_modem_remove() already disables the modem.
2010-01-28 10:41:28 -06:00
Marcel Holtmann 406988b94e Disable dummy CAIF modem detection for now 2010-01-28 12:11:36 +01:00
Marcel Holtmann badca24c5a Add plugin for static CAIF device detection 2010-01-28 11:58:35 +01:00
Marcel Holtmann ae6a0b32cf Some minor style cleanups for STE support 2010-01-28 11:30:56 +01:00
Denis Kenzior 392f092ee0 Style: Various whitespace issues 2010-01-27 16:37:50 -06:00
Denis Kenzior 911b24c12d Style: Don't go over 80 characters 2010-01-27 16:37:32 -06:00
Denis Kenzior 971e4c7345 Fix: Remove unused includes 2010-01-27 16:19:46 -06:00
Gustavo F. Padovan abf86ae5fa Add copyright note to the HFP plugin 2010-01-27 14:34:48 -06:00
Marcel Holtmann 59eeea0ebc Remove wrong copyright statement within HFP plugin 2010-01-27 21:22:19 +01:00
Marcel Holtmann 49233dbc2f Limit HFP plugin loading to D-Bus 1.3 only systems 2010-01-27 21:18:07 +01:00
Gustavo F. Padovan ac6672e9b3 Add HFP support through BlueZ
It uses BlueZ through to get HFP working following the
org.bluez.HandsfreeGateway and org.bluez.HandsfreeAgent from
the BlueZ D-Bus API.

You need the HFP suport into BlueZ and the new D-Bus 1.3 or
later with fd-passing support.

Many thanks to Zhenhua Zhang <zhenhua.zhang@intel.com> for its
prototype on this code.
2010-01-27 21:18:07 +01:00
Sjur Brændeland b0106d1225 Add STE modem support for GPRS PDP Contexts 2010-01-27 12:16:43 -06:00
Sjur Brændeland e564dcf1cb Add STE modem plugin 2010-01-25 20:58:34 +01:00
Jussi Kukkonen ebe8904f39 Add quirk for cid and lac handling for Huawei 2010-01-20 10:09:54 -06:00
Denis Kenzior 9bed04ca2f Style: Trailing whitespace & extra lines 2010-01-12 17:54:37 -06:00
Marcel Holtmann 058584e36b Use short serial number for udev detected devices 2010-01-06 14:22:40 -08:00
Denis Kenzior ee59512567 Port udev (temporarily) to the new framework 2010-01-06 15:51:01 -06:00
Denis Kenzior 0181d51684 Port modemconf to the new framework 2010-01-06 15:50:53 -06:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Denis Kenzior 57512ad924 Style: Repeat for plugins 2009-12-17 21:45:39 -06:00
Martin Xu 028dc812be New modem desc for f3607g modem in Samos platform 2009-12-09 02:37:57 -06:00
Denis Kenzior 94f71484db Register to MBM ERINFO notification
This is purely for information gathering purposes
2009-12-07 18:36:27 -06:00
Denis Kenzior 749930dd18 Add HSO quirk to hso modem driver 2009-12-07 17:14:41 -06:00
Marcel Holtmann ca5d0f9c35 Require udev-143 or later 2009-12-05 05:49:47 +01:00
Denis Kenzior c25532df50 Fix: Convert PalmPre plugin to new world order 2009-12-02 19:11:36 -06:00
Denis Kenzior 82a4903eeb Fix: Convert Novatel plugin to new world order 2009-12-02 19:11:36 -06:00
Denis Kenzior ecfa61c50f Fix: Convert MBM plugin to new world order 2009-12-02 19:11:35 -06:00
Denis Kenzior 4dc8c0aa80 Fix: Convert Huawei plugin to new world order 2009-12-02 19:11:35 -06:00
Denis Kenzior 21b9d4f017 Fix: Convert HSO plugin to new world order 2009-12-02 19:11:35 -06:00
Denis Kenzior b77c63b73a Fix: Convert G1 plugin to new world order 2009-12-02 19:11:35 -06:00
Denis Kenzior a514983981 Fix: Force calypso to return to command mode ASAP
Calypso firmware is just bizarre.  It seems that if anything is sent
before CPI=3 to the DLC handling voice commands, the ATD will not return
to command mode immediately, but instead wait until connected / failed
condition occurs.

If CPI=3 is sent first, then calypso will go to command mode immediately
after ATD is issued and report CPI indications as usual.
2009-12-01 12:45:44 -06:00
Denis Kenzior 5323e37bc8 Fix: Remove duplicate atoms from calypso plugin 2009-12-01 12:45:44 -06:00
Denis Kenzior d1e62194ef Fix: Disable echo on all calypso DLCs 2009-12-01 12:42:23 -06:00
Denis Kenzior 78008c6022 Update calypso plugin to the new wakeup handling 2009-11-26 07:44:25 -06:00
Denis Kenzior 37384ddb9c Fix: Make Calypso handling a bit better 2009-11-26 07:44:25 -06:00
Marko Saukko 757c8f096c Add udev rules for Option GI0201 and GTM382 modems 2009-11-25 11:04:48 +01:00
Zhenhua Zhang 64015ff4b8 Fix: Move CHLD from voicecall driver to plugin
According HFP v1.5 spec, AT+CHLD=? should be a part of SLC
connection. So we should not do it after SLC connection is
created.
2009-11-24 20:43:41 -06:00
Zhenhua Zhang a4a4bddbe9 Fix: Order of CMER and CIND in SLC connection
According to the HFP 1.5 specification the order of commands is actually
important.  The required sequence is to use CIND=?, CIND? and then CMER.
Currently oFono issues commands in the order of CIND=?, CMER, CIND?
2009-11-24 20:39:19 -06:00
Martin Xu 5cc3323cd1 Fix: handle weird Dell 5530 mbm card network name 2009-11-24 14:54:46 -06:00
Marcel Holtmann 0333ad8580 Move g_at_chat_add_terminator after chat object is verified 2009-11-24 18:08:46 +01:00
Yang Gu 4bc444e9a8 Support Huawei specific terminator 2009-11-24 18:06:45 +01:00
Denis Kenzior 4c64f30438 Fix: Try sending AT<CR>
Sometimes <CR> doesn't work
2009-11-23 19:55:16 -06:00
Denis Kenzior 781a9eedf3 Turn off echo on HSO modems 2009-11-18 18:07:11 -06:00
Denis Kenzior 08ff8b6cd9 Make HSO modem driver use App & Control ports
The Application port gets all unsolicited notifications except for
OWANCALL notifications.  In turn only the Control port gets OWANCALL
notifications.

This means that we run GPRS Context control on the Control port and
network registration / sms on the application port
2009-11-18 18:07:11 -06:00
Denis Kenzior d4fb6d1a8c Make HSO support detect Application & Control port 2009-11-18 18:07:10 -06:00
Denis Kenzior eec0dbfb85 Fix: Use none_prefix
Do not eat up unsolicited notifications that might arrive as a result of
CFUN=0
2009-11-18 18:07:10 -06:00
Denis Kenzior 781f9cc0d0 Add initial HSO GPRS context driver 2009-11-18 18:07:10 -06:00
Denis Kenzior 9badf5ca73 Fix: modem _disable needs to send the CFUN
For PalmPre driver
2009-11-18 12:09:43 -06:00
Denis Kenzior d7613a0478 Fix: modem _disable needs to send the CFUN
For Novatel driver
2009-11-18 12:09:43 -06:00
Denis Kenzior 1ebf59b61b Fix: modem _disable needs to send the CFUN
For MBM driver
2009-11-18 12:09:42 -06:00
Denis Kenzior 446b9e645d Fix: modem _disable needs to send the CFUN
For Huawei driver
2009-11-18 12:09:42 -06:00
Denis Kenzior 16834cc005 Fix: modem _disable needs to send the CFUN
For HSO driver
2009-11-18 12:09:42 -06:00
Denis Kenzior 8c52019c1a Fix: modem _disable needs to send the CFUN
For G1 Driver
2009-11-18 12:09:42 -06:00
Denis Kenzior 911b78594e Support SonyEricsson MD300 2009-11-18 09:34:08 -06:00
Denis Kenzior 6afea47158 Fix: Use Application port instead of Control
It seems Control port does not send CGREG unsolicited notifications
2009-11-17 11:38:23 -06:00
Denis Kenzior 6c428c9823 Fix: Add support for Option Icon 401 2009-11-13 09:12:47 -06:00
Denis Kenzior 9a29698cdf Fix: Remove yet another duplicate atom 2009-11-13 09:12:35 -06:00
Denis Kenzior df410cfd1e Fix: Remove duplicate SMS atom from HSO plugin 2009-11-13 00:23:19 -06:00
Ryan M. Raasch d10f7c2b04 Fix: Capitalize modem options in calypso driver
This patch fixes the calypso driver when setting the g_at_tty
variables.
2009-11-11 16:49:25 -06:00
Zhenhua Zhang 28c6bbb558 Add call volume support for hfpmodem
The call volume driver listens the speaker volume and microphone
gain from the AG. It also allow to synchronze the speaker and
microphone volume changes with the AG through AT+VGS and AT+VGM.

Volume level synchronization from HFP spec 1.5 Section 4.28.2
is performed on startup.
2009-11-11 15:53:55 -06:00
Denis Kenzior 7b9d72f2fe Add SMS support to PalmPre plugin 2009-11-10 16:29:24 -06:00
Andrzej Zaborowski aad6a76125 Add Palm Pre plugin 2009-11-10 16:29:23 -06:00
Denis Kenzior 27e32f12cd Fix: Rename G1 quirk to QUALCOMM_MSM 2009-11-10 16:29:23 -06:00
Denis Kenzior 55425238b0 Add sample implementation of SMS history 2009-11-05 16:47:38 -06:00
Denis Kenzior 6297470cf0 Fix: Handle MBM hardware that fails on EMRDY? 2009-11-05 11:00:57 -06:00
Denis Kenzior c63a0413cd Fix: Minor style issues 2009-11-03 11:57:43 -06:00
Gustavo F. Padovan 1acd7f8b75 Create network registration driver for hfpmodem
This driver handles phone informations about registration status, signal
strength and roaming status listening +CIEV commands.  It also gets the
Network Operator name with +COPS commands.
2009-11-03 11:49:35 -06:00
Marcel Holtmann 3c24593c0c Use ofono_info() for AT command debugging 2009-11-01 23:42:18 +09:00
Ryan M. Raasch f92888fae7 Inserted the GSM syntax option in modem.conf
This is patch to allow the gsm syntax to be specified in the
modem.conf file. It is a 2nd version based on code change requests.
2009-11-01 23:29:03 +09:00
Denis Kenzior a25f11862d Fix: Quiet compiler warning 2009-10-29 14:18:58 -05:00
Denis Kenzior 7ac963a26f Refactor: Make MBM driver actually use EMRDY 2009-10-29 14:18:58 -05:00
Denis Kenzior 8fed5a97fe Fix: Return EINPROGRESS as intended 2009-10-29 14:18:58 -05:00
Zhenhua Zhang 4a36fc7c82 Add voicecall driver for Bluetooth HFP
HFP voicecall driver uses AT+CIEV indicator to notify call status
update according to Bluetooth HFP spec v1.5. This patch only adds single
call support.
2009-10-28 17:33:33 -05:00
Denis Kenzior 6d31b05b95 Cleanup previous patch 2009-10-28 16:56:45 -05:00
Ryan Raasch a55b43123f Add serial settings parser to modemconf plugin 2009-10-28 16:39:19 -05:00
Marcel Holtmann 0bf1401589 Remove support for call forwarding and barring from MBM plugin 2009-10-25 01:14:26 +09:00
Andrzej Zaborowski 427224e9f8 Register gprs-context on calypso modem/phonesim. 2009-10-24 10:27:11 -05:00
Denis Kenzior 5cfe541582 Add GPRS context setup to MBM plugin 2009-10-23 17:05:56 -05:00
Denis Kenzior c3772c2bb6 Fix: Update Init string & shutdown string for mbm 2009-10-23 17:05:56 -05:00
Denis Kenzior 88c0f77a58 Refactor: First round of renaming 2009-10-23 17:05:53 -05:00
Denis Kenzior b2fd75014a Refactor: rename data-connection to gprs
Keep the name specific to GSM, other implementations will probably
require their own interfaces
2009-10-23 17:05:53 -05:00
Andrzej Zaborowski f43efa8a5f Add GPRS support
This commit implements the GPRS context setup and teardown according to
doc/dataconnectionmanager-api.txt

One issue with the AT implementation of the api is that "Powered" (a
read-write property) can be set independently of "Attached" (read-only
property) and remain set when "Attached" is clear.  The semantics would
be that the network doesn't have resources to let the modem attach,
but the modem waits for the resources to become available and then
attaches.  On AT the modem is in this state only when executing +CGATT,
so currently the code will rerun +CGATT as soon as the previous one
returns with error, probably starving other commands.  A possible
workaround would be for "Powered" to flip back to False after the modem
fails to attach once, or give up on having separate properties.
Alternatively we could re-try to attach periodically but on one modem
I've tried +CGATT fails after about 1 minute (that's the Calypso) and
on another only about 0.5s (Nokia phones with AT emulation).

When "Powered"  is set and "RoamingAllowed" is clear and we manage to
attach and find that we're roaming, ofono resets "Powered".

We may want to catch the user trying to dial *99***1# which is the
backwards compatibility quirk for old modems (same way ofono parses
USSD strings).
2009-10-23 17:05:53 -05:00
Olivier Le Thanh Duong 6d9bd02480 Migrate from RFC2822 to ISO8601 2009-10-21 19:04:47 -05:00
Denis Kenzior f726596860 Rename: drivers/hfpmodem/hfp.[ch] to hfpmodem.[ch]
Be more consistent with other drivers
2009-10-19 22:13:19 -05:00
Denis Kenzior c4594d2543 Fix: Make 'make distcheck' happy again 2009-10-19 17:07:23 -05:00
Denis Kenzior 17072b1949 Fix: Use debug instead of info 2009-10-19 17:00:32 -05:00
Denis Kenzior 5635703141 Refactor: Setup the HF features bitmap
Do not use magic numbers unless strictly necessary
2009-10-19 16:59:44 -05:00
Denis Kenzior 0ca88b36e7 Refactor: Don't store indicator names
We already know the indicators we're interested in from the
specification, malloc/free-ing the indicator names is thus pointless.
Instead save off the indicator index positions in an array.  Parse the
current values instead of storing the unparsed list.
2009-10-19 16:58:13 -05:00
Zhenhua Zhang fb0c157c11 Add initial glue code for hfp driver 2009-10-19 15:48:07 -05:00
Denis Kenzior a1ca46253f Setup better debugging information for calypso 2009-10-15 16:15:18 -05:00
Denis Kenzior 42b74e9db3 Multiplexer support for OpenMoko device 2009-10-15 16:15:18 -05:00
Denis Kenzior 389da0bb15 Fix: Do not leak chat memory 2009-10-15 16:15:18 -05:00
Denis Kenzior 74f350aaf7 Add mux setup step to phonesim plugin 2009-10-15 16:15:16 -05:00
Marcel Holtmann 32ffbf915e Enable a few extra atoms in the Huawei plugin 2009-10-02 13:23:26 +02:00
Marcel Holtmann 0ebadcee45 Enable more atoms in the MBM plugin 2009-10-02 13:22:09 +02:00
Marcel Holtmann 7e11615ac3 Remove unused variables causing a compiler warning 2009-10-02 03:26:35 +02:00
Denis Kenzior 79cb80c7eb Update plugins to the new g_at_tty_open API 2009-10-01 17:01:15 -05:00
Andres Salomon 4decda3f7f G1: move chat handling into enable callback
This updates the g1 code to create the GAtChat object in the enable() callback,
and to unref it in the disable() callback.  This is more in line with what
the other plugins do, and as a bonus fixes a segfault when powering down
the G1 modem..

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
2009-09-29 23:04:24 -05:00
Denis Kenzior 2e09c0002d Add call volume atom to calypso plugin 2009-09-29 14:56:23 -05:00
Denis Kenzior b015cd655a Add call volume to phonesim plugin 2009-09-29 14:56:22 -05:00
Denis Kenzior 2fb723c658 Fix: F3607gw not being recognized properly
Reports <foo> Broadband <foo> instead of <foo> Broadband Minicard <foo>

F3607gw Mobile Broadband Data Modem
F3607gw Mobile Broadband Modem
F3607gw Mobile Broadband GPS Port
F3607gw Mobile Broadband Network Adapter
F3607gw Mobile Broadband Device Management
F3607gw Mobile Broadband USIM Port
2009-09-28 12:51:33 -05:00
Denis Kenzior 599069e109 Add disconnection function 2009-09-18 13:33:41 -05:00
Denis Kenzior 12e77a3c70 Convert all the modem drivers to the new API 2009-09-17 10:15:34 -05:00
Denis Kenzior 8d52353425 Fix double free issue 2009-09-10 17:20:00 -05:00
Denis Kenzior f208e15ea8 Enable cell broadcast for phonesim plugin 2009-09-10 16:29:52 -05:00
Denis Kenzior 0c1f8003af Fix memory leak 2009-09-10 16:13:15 -05:00
Marcel Holtmann c155a91313 Add option to phonesim to run with or without multiplexer 2009-09-08 09:24:52 +02:00
Denis Kenzior 74d0493230 Add a few more comments to the calypso plugin 2009-09-07 20:16:16 -05:00
Marcel Holtmann 3c0ea95f9a Add more calypso specific quirks when using phonesim 2009-09-08 03:14:46 +02:00
Marcel Holtmann 0910ee7349 Add support for using phonesim and calypso for testing 2009-09-08 03:01:52 +02:00
Marcel Holtmann e4d0a28b48 Update modem configuration parameter parsing for generic AT plugin 2009-09-05 04:48:08 +02:00
Denis Kenzior 8f607eff42 Update calypso modem driver
Use calypso voicecalls driver
2009-09-04 20:37:50 -05:00
Denis Kenzior 918a8ee7f3 Make calypso plugin use the permissive parser 2009-09-04 20:37:49 -05:00
Denis Kenzior 85cbb8bfe9 Make G1 driver use the permissive parser 2009-09-04 20:37:48 -05:00
Marcel Holtmann f84a37bb00 Add plugin for generic AT testing modem driver 2009-09-05 03:01:02 +02:00
Marcel Holtmann 7434ab6e81 Add example modem configuration for TI Calypso based devices 2009-09-04 19:08:41 +02:00
Denis Kenzior ac491a0512 Fix style issues 2009-09-04 11:57:41 -05:00
Denis Kenzior 0e1c801e58 Make sure modemconf handles calypso driver 2009-09-03 23:20:22 -05:00
Denis Kenzior 5cbf388d30 Add calypso plugin 2009-09-03 23:20:22 -05:00
Marcel Holtmann a16abe5813 Add support for SIM atom to HSO driver 2009-09-03 10:13:40 -07:00
Marcel Holtmann 8acad4d0b4 Add support for SIM atom to MBM driver 2009-09-03 10:07:20 -07:00
Marcel Holtmann d9afc75ce3 Add basic support for Option HSO based devices 2009-09-03 01:10:40 -07:00
Marcel Holtmann 4b9b44f818 Add basic support for Novatel based devices 2009-09-03 00:50:47 -07:00
Marcel Holtmann bdad83d831 Add basic support for Huawei based devices 2009-09-03 00:22:06 -07:00
Marcel Holtmann f5bf6e309d Add Ericsson MBM device detection to udev plugin 2009-09-02 23:49:52 -07:00
Marcel Holtmann b6acdcf905 Add udev rules to identify modem driver 2009-09-02 22:21:42 -07:00
Marcel Holtmann fac1349090 Some minor coding style cleanups for G1 plugin 2009-09-02 19:59:19 -07:00
Marcel Holtmann 9b3a8183f3 Parse and use Address and Port options from modem.conf 2009-09-02 19:48:02 -07:00
Marcel Holtmann 057860c4c7 Parse and use Device option from modem.conf 2009-09-02 19:37:55 -07:00
Marcel Holtmann 9c45f2e74b Remove generic_at plugin 2009-09-02 19:30:21 -07:00
Marcel Holtmann 95a47df997 Fix some broken DOS newline messup 2009-09-02 19:27:47 -07:00
Marcel Holtmann 0417133a63 Update the modem.conf example one more time 2009-09-02 19:24:09 -07:00
Marcel Holtmann f81fcb66ea Remove the async TTY open helper and just use a blocking one 2009-09-02 19:18:41 -07:00
Andres Salomon aceaac4b7b G1: Add an SMS quirk for CNMI mode
The G1 doesn't support mode2, despite advertising it.

The G1 chokes w/ an "Error 303" when we specify NMI mode 2.  Adding a
quirk to drop that mode from the supported list (just use mode 1) allows
the G1 to properly deal with SMS.
2009-09-02 19:06:03 -07:00
Marcel Holtmann 3bb7fbd5d5 Use proper debug calls for pure debugging output 2009-09-02 19:04:21 -07:00
Marcel Holtmann 959a90b7e8 Add a separate plugin for connection to phone simulator 2009-09-02 18:56:46 -07:00
Marcel Holtmann 9a351266fe Update modem.conf example 2009-09-02 18:53:14 -07:00
Andres Salomon 3b1733b18a G1: Add a G1 syntax for parsing
This is based on the generic_at parser, with unnecessary stuff removed.

The G1 routinely screws up CRLFs, so the parser needs to account for
that.  This parser ignores leading CRLFs (which is what reference-ril
does as well), as well as trailing LFs (which are sometimes left out).
CRs are used as end-of-message indicators.  Since we're not bothering
tracking CRLFs, there's also no need for a GARBAGE state, or MULTILINE
stuff.
2009-09-02 16:11:10 -07:00
Andres Salomon 7b9f0773fa G1: Add initial HTC G1 modem support
G1 plugin is based on generic_at, with a bunch of stuff dropped
and simplified.  We use AT+CFUN=1 for powering on rather than having
a configurable init string.  We also manually set the default state
during init (the G1 appears to start in mode V0 by default).  The
device (/dev/smd0) is hardcoded.
2009-09-02 16:07:36 -07:00
Denis Kenzior f36e764c43 Update modemconf driver to the new ofono_modem_create 2009-09-02 17:39:23 -05:00
Denis Kenzior 10d4c54c30 Change plugins to the new ofono_modem_create api 2009-09-02 17:39:23 -05:00
Marcel Holtmann 55e1c65ec1 Use OFONO_AT_DEBUG even for MBM plugin 2009-09-02 15:43:10 -07:00
Marcel Holtmann 2dc4d7d2d7 Unset the driver data when MBM driver is removed 2009-09-02 15:22:30 -07:00
Marcel Holtmann e555445f23 Add example for modem.conf and install it if requested 2009-09-02 15:18:10 -07:00
Marcel Holtmann 24d1d0ee16 Add really simple modem configuration parsing 2009-09-02 14:56:14 -07:00
Marcel Holtmann 9177c1dd86 Add skeleton for plugin to handle static modem configurations 2009-09-02 14:41:47 -07:00
Marcel Holtmann 9deaa6e70f Add initial plugin for Ericsson MBM devices 2009-09-02 03:19:02 -07:00
Denis Kenzior a613105f91 Rename generic_at drivers to atmodem
Be more consistent with directory naming
2009-09-01 22:33:05 -05:00
Denis Kenzior 7ff85d9737 populate should return void 2009-09-01 22:29:02 -05:00
Denis Kenzior 9caa606bcc Make remove functions not return anything 2009-09-01 22:27:08 -05:00
Marcel Holtmann d8282ec589 Add first steps for a udev based modem detection plugin 2009-09-01 18:54:27 -07:00
Denis Kenzior 4064f4ba73 Add vendor flag capability to voicecalls 2009-09-01 18:14:59 -05:00
Denis Kenzior e5577046f0 Add vendor flag capability to ussd 2009-09-01 18:14:58 -05:00
Denis Kenzior afb0e2b854 Add vendor flag capability to ssn 2009-09-01 18:14:58 -05:00
Denis Kenzior 8d380f8fa0 Add vendor flag capability for sms 2009-09-01 18:14:58 -05:00