Project

General

Profile

TestingInfrastructure » History » Version 22

Denis 'GNUtoo' Carikli, 06/20/2019 12:06 PM

1 1 Denis 'GNUtoo' Carikli
h1. TestingInfrastructure
2
3 18 Denis 'GNUtoo' Carikli
h2. Applications that can be used to do some testing on the device
4
5
* https://f-droid.org/wiki/page/org.zeroxlab.zeroxbenchmark
6
7 5 Denis 'GNUtoo' Carikli
h2. Projects and/or hardware that can be used to do functional testing
8 1 Denis 'GNUtoo' Carikli
9
h3. Lava
10
11 7 Denis 'GNUtoo' Carikli
"Lava":https://www.linaro.org/engineering/projects/lava/ can be used to do functional tests on real hardware. It can be easily installed on PureOS, an FSDG compliant GNU/Linux distribution.
12 4 Denis 'GNUtoo' Carikli
13 5 Denis 'GNUtoo' Carikli
h3. OsmoGSMTester
14 3 Denis 'GNUtoo' Carikli
15 6 Denis 'GNUtoo' Carikli
The "OsmoGSMTester project":https://osmocom.org/projects/osmo-gsm-tester is able to be interfaced with the Android RIL through ofono and can emulate a GSM network with the help of a compatible GSM base station or SDR.
16 3 Denis 'GNUtoo' Carikli
17 22 Denis 'GNUtoo' Carikli
18
This "presentation from 2019":https://media.ccc.de/v/osmodevcon2019-119-osmo-gsm-tester-e-gprs-test-setup has many insights on what kind of issue we might expect in interfacing it with smartphones.
19
20 5 Denis 'GNUtoo' Carikli
h3. Simtrace2
21 3 Denis 'GNUtoo' Carikli
22 1 Denis 'GNUtoo' Carikli
The "Simtrace 2 project":https://osmocom.org/projects/simtrace2/wiki can be used, along with SIM card readers to programmatically feed a SIM card to a smartphone. This can be used to run test on real networks.
23 7 Denis 'GNUtoo' Carikli
24
h2. Replicant supported devices and testing
25
26
h3. Requirements
27
28 8 Denis 'GNUtoo' Carikli
* Antenna connector for the modem
29 10 Denis 'GNUtoo' Carikli
* The ability to control the device buttons in order to be able to programmatically power on and off the device, and trigger boots into the bootloader and recovery
30 11 Denis 'GNUtoo' Carikli
* Optionally a way to connect to the serial port, programmatically
31 1 Denis 'GNUtoo' Carikli
32 11 Denis 'GNUtoo' Carikli
h3. Galaxy S2 (I9100)
33 7 Denis 'GNUtoo' Carikli
34 9 Denis 'GNUtoo' Carikli
* The Galaxy S2 (I9100) has:
35 1 Denis 'GNUtoo' Carikli
** An antenna connector
36 10 Denis 'GNUtoo' Carikli
** The SOC serial port that is accessible behind the USB connector at a low voltage
37 12 Denis 'GNUtoo' Carikli
** A full size mini-sim (easier to interface with)
38
39 13 Denis 'GNUtoo' Carikli
Holding the smartphone in place:
40
* The smartphone could either be screwed on a metallic surface or an external case could be screwed on a metallic surface enabling the smartphone not to move.
41 1 Denis 'GNUtoo' Carikli
42 13 Denis 'GNUtoo' Carikli
SIM cards:
43 14 Denis 'GNUtoo' Carikli
* Simtrace 2 "lacks screw holes":https://osmocom.org/issues/3711 so a way must be found to make sure that it doesn't move as it uses flex cables to interface with the SIM socket of the smartphone. That may be fixed in a subsequent hardware revision.
44 1 Denis 'GNUtoo' Carikli
45 13 Denis 'GNUtoo' Carikli
Serial port and USB:
46 1 Denis 'GNUtoo' Carikli
47 13 Denis 'GNUtoo' Carikli
Buttons:
48 12 Denis 'GNUtoo' Carikli
49 13 Denis 'GNUtoo' Carikli
Battery:
50
51
Antenna connector and GSM tower or SDR:
52 15 Denis 'GNUtoo' Carikli
The Galaxy S2 (I9100) has two antenna connectors:
53
* One internal connector, TODO: find the connector type
54
* One external connector, TODO: Find the connector type
55 16 Denis 'GNUtoo' Carikli
56
h4. Example setup
57
58 21 Denis 'GNUtoo' Carikli
See also the links inside the [[Serial_port]] article for more background on how to get serial port access on devices like the Galaxy SIII (i9300) or the Galaxy S2 (i9100).
59 20 Denis 'GNUtoo' Carikli
60 17 Denis 'GNUtoo' Carikli
!i9100.jpg!
61
62 19 Denis 'GNUtoo' Carikli
See https://git.replicant.us/contrib/GNUtoo/test-infrastructure.git for the source of the file.
63
64
h4. Links
65
66
* "How to use a Galaxy SIII without a battery":https://techblog.jeppson.org/2017/12/revive-old-samsung-galaxy-s3/