1 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 mm_plugin = '"Novatel LTE"' 6 7 state_machines = { 8 'call_machine_e362', 9 } 10 11 at_to_wm_action_map = { 12 'AT$NWMDN': ('network_identity_machine', 'read_mdn'), 13 'AT$NWQMICONNECT=,,,,,,"vzwinternet",,,"",""': ('call_machine', 'connect_call'), 14 'AT$NWQMISTATUS': ('call_machine', 'get_qmi_call_status'), 15 'AT$NWQMIDISCONNECT': ('call_machine', 'disconnect_call'), 16 } 17 18 wm_response_to_at_map = { 19 'wm_response_mdn': '*', 20 'wm_response_network_registration_status_2': '+CEREG: 2, *, *, 21, *, *', 21 'wm_response_qmi_call_result_success': '$NWQMISTATUS: QMI_RESULT_SUCCESS:QMI_ERR_NONE', 22 'wm_response_qmi_call_state_connected': 'QMI State: CONNECTED', 23 'wm_response_qmi_call_state_disconnected': 'QMI State: DISCONNECTED', 24 'wm_response_qmi_call_end_reason': 'Call End Reason:*', 25 'wm_response_qmi_call_duration': 'Call Duration: * seconds', 26 } 27 28 wm_request_response_map = { 29 'ATI': ['Manufacturer: WardModem for Novatel', 30 'Model: E362 WWAN Test Modem', 31 'Revision: 0.00 Test Revision', 32 'IMEI: 987654323456789', 33 'GCAP: +GCAP: LTE2, +CGSM, +CIS707-A, CIS-856-A, +MS, +ES, +DS'], 34 'AT+CGMI': ['Novatel Wireless Incorporated'], 35 'AT+CGMM': ['E362 WWAN'], 36 'AT+CGMR': ['0.00 Test Revision'], 37 'AT+CGSN': ['987654323456789'], 38 'AT+GCAP': ['+GCAP: LTE2, +CGSM, +CIS707-A, CIS-856-A, +MS, +ES, +DS'], 39 'AT*CNTI=2': 'RING', 40 41 # These are E362 specific extension to the AT command set. 42 'AT$CNTI=2': ['GSM, GPRS, EDGE, UMTS, HSDPA, HSPA, LTE, 1xRTT, EvDO, EvDO ' 43 'Rel0, EvDO RelA'], 44 # Respond with the exact bitmask of bands reported by the actual modem. 45 'AT$NWBAND?': ['cf80387'], 46 # This restricts the modem to LTE. WardModem currently doesn't even try any 47 # other bands. 48 'AT$NWPREFMODE=30': 'OK', 49 'AT$NWSYSMODE' : [' LTE '], 50 51 # TODO(pprabhu) Implement SIM locking functionality. 52 # Migrate this to that state machine then. 53 'AT$NWPINR?': ['$NWPINR: PIN1, 3'], 54 } 55 56 # ############################################################################## 57 # Override specific state machine configurations. 58 59 60 #### modem_power_level_state_machine 61 modem_power_level_allowed_levels = ['MINIMUM', 'FULL', 'LOW', 'RESET'] 62