summaryrefslogtreecommitdiffstats
path: root/plugins/huawei.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-19huawei: Add support for switching USSD modeMarcel Holtmann1-5/+56
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-05huawei: Fix SIM state logicJoão Paulo Rechi Vita1-25/+51
Add support for voice-only SIM cards and enable phonebook atom for non-voice modems.
2010-08-02huawei: fix double include of GPRS headerJoão Paulo Rechi Vita1-1/+0
2010-07-02huawei: Add Huawei EM770 modem supportZhenhua Zhang1-0/+23
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-06-29huawei: cleanup warnings from the previous patchDenis Kenzior1-2/+0
2010-06-29huawei: reopen the GPRS context on hupKalle Valo1-24/+62
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 0329a6ceaf8f69857cb5f8437b9db86ca327ef1d 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-09Enable Qualcomm specific CBS quirk for Novatel and Huawei devicesMarcel Holtmann1-1/+2
2010-06-07huawei: Rework huawei pluginDenis Kenzior1-90/+42
- Use the PCUI (event) port for all commands unrelated to ppp - Use the Modem port for ppp
2010-06-06Use event channel for SMS, CBS and USSD with Huawei devicesMarcel Holtmann1-9/+8
2010-06-06Enable CBS and USSD for Huawei modemsMarcel Holtmann1-2/+6
2010-06-02Fix debug channel prefix strings for Huawei pluginMarcel Holtmann1-2/+2
2010-05-25huawei: remove voicecall supportKalle Valo1-1/+0
These modems don't support voicecall anyway. Recommended by Denis.
2010-05-25huawei: send a prefix with AT commandsKalle Valo1-4/+8
2010-05-25huawei: properly notify sim state to ofonoKalle Valo1-21/+23
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-25huawei: use g_at_result_iter_skip_next()Kalle Valo1-5/+5
2010-05-25Some minor cleanups for the Huawei pluginMarcel Holtmann1-13/+14
2010-05-25huawei: follow sim state change notificationsKalle Valo1-3/+73
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-19huawei: add gprs contextKalle Valo1-1/+60
Tested with Huawei E1552 HSDPA USB stick using a finnish Saunalahti prepaid SIM.
2010-05-19huawei: detect possible secondary deviceKalle Valo1-14/+53
2010-04-28Fix: Remove easy uses of g_at_chat_shutdownDenis Kenzior1-1/+0
2010-04-15Drivers can notify core of SIM insertion / removalAndrzej Zaborowski1-1/+5
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-03-18huawei: use GSM permissive parser instead of V1.João Paulo Rechi Vita1-1/+1
With V1 parser the driver fails to detect when a SMS is successfully sent and keeps re-trying until Max retries.
2010-01-20Add quirk for cid and lac handling for HuaweiJussi Kukkonen1-1/+2
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-02Fix: Convert Huawei plugin to new world orderDenis Kenzior1-0/+3
2009-11-24Move g_at_chat_add_terminator after chat object is verifiedMarcel Holtmann1-1/+2
2009-11-24Support Huawei specific terminatorYang Gu1-0/+1
2009-11-18Fix: modem _disable needs to send the CFUNDenis Kenzior1-6/+6
For Huawei driver
2009-11-10Fix: Rename G1 quirk to QUALCOMM_MSMDenis Kenzior1-1/+1
2009-10-02Enable a few extra atoms in the Huawei pluginMarcel Holtmann1-0/+9
2009-10-01Update plugins to the new g_at_tty_open APIDenis Kenzior1-1/+8
2009-09-17Convert all the modem drivers to the new APIDenis Kenzior1-2/+11
2009-09-03Add basic support for Huawei based devicesMarcel Holtmann1-0/+174