probe_sim_card_tray¶
Source code: probe_sim_card_tray.py
Probes SIM card tray
Description¶
Detects SIM card tray by GPIO.
Test Procedure¶
Insert sim card.
The test checks the GPIO automatically.
Remove sim card.
The test checks the GPIO automatically.
or
Remove sim card.
The test checks the GPIO automatically.
Insert sim card.
The test checks the GPIO automatically.
Dependency¶
/sys/class/gpio
Examples¶
Just check presence:
{
"pytest_name": "probe_sim_card_tray",
"args": {
"tray_detection_gpio": 159,
"tray_already_present": true
}
}
Ask user to insert then remove tray:
{
"pytest_name": "probe_sim_card_tray",
"args": {
"tray_detection_gpio": 159,
"tray_already_present": false,
"insert": true,
"remove": true,
"only_check_presence": false
}
}
Ask user to remove then insert tray:
{
"pytest_name": "probe_sim_card_tray",
"args": {
"tray_detection_gpio": 159,
"tray_already_present": true,
"insert": true,
"remove": true,
"only_check_presence": false
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
timeout_secs |
int |
(optional; default: |
tray_already_present |
bool |
(optional; default: |
tray_detection_gpio |
int |
(optional; default: |
insert |
bool |
(optional; default: |
remove |
bool |
(optional; default: |
only_check_presence |
bool |
(optional; default: |
gpio_active_high |
bool |
(optional; default: |