lte_verify_config

Source code: lte_verify_config.py

Verifies the LTE module config.

Description

This test doesn’t work now since cros.factory.board.modem_utils is missing.

Internal references

  • b/35534119

Test Procedure

This is an automatic test that doesn’t need any user interaction.

Dependency

  • cros.factory.test.rf.modem

  • cros.factory.board.modem_utils

Examples

Usage example:

{
  "pytest_name": "lte_verify_config",
  "exclusive_resources": ["NETWORK"],
  "args": {
    "config_to_check": [
      ["AT_COMMAND_1", "RESPONSE_1"],
      [
        "AT_COMMAND_2",
        ["RESPONSE_2_LINE_1", "RESPONSE_2_LINE_2"]
      ]
    ],
    "modem_path": "ttyACM0",
    "attempts": 3
  }
}

Test Arguments

Name

Type

Description

modem_path

str, None

(optional; default: None) The path of the serial port. If not provided, will fall back to calling modem_utils.GetModem instead.

attempts

int

(optional; default: 2) Number of tries to enter factory mode, since the firmware AT+CFUN=4 is not stable enough.

config_to_check

list

A list of tuples. For each tuple, the first element is the command and the second element is the expected response. Expected response can be a single string indicating only one line response or a list of strings indicating multiline response.