Commit Graph

281 Commits

Author SHA1 Message Date
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