comparison doc/SE-J100-target @ 595:7cecc3dadbe7

doc/SE-J100-target article written
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 17 Mar 2019 06:30:39 +0000
parents
children
comparison
equal deleted inserted replaced
594:9327935d8549 595:7cecc3dadbe7
1 Sony Ericsson J100 target support in FreeCalypso
2 ================================================
3
4 SE J100 is the last Calypso device target of OsmocomBB origin to be added to
5 FreeCalypso, joining the already-supported Mot C1xx and Pirelli DP-L10. This
6 target is really not interesting at all on its own merit, instead it has been
7 added to FC Magnetite for testing purposes: to verify that we are able to drive
8 this J100 variant of Compal's RFFE and produce correct RF Tx output as observed
9 with our CMU200 instrument.
10
11 Despite being a Sony Ericsson rather than Motorola product (slightly different
12 case design, totally different battery and accessory connectors), in core
13 technical terms this SE J100 phone is still Compal, same as Mot C1xx. It is
14 technically closest to Mot C139, with only a few differences:
15
16 * The display is different: same 96x64 pixel color, but a different model
17 requiring a different driver;
18
19 * A ringtone player chip is used instead of the Calypso-driven buzzer;
20
21 * There are a few differences in GPIO setup, in TSPACT signal usage for RF Tx
22 and in some RF Tx parameters (APC offset and Tx ramp templates) stemming from
23 the use of a slightly newer RF PA, such that a firmware image built for Mot
24 C139 or C11x should not be run on the J100, even if the LCD and the buzzer
25 are don't-cares.
26
27 If you have one of these phones and wish to run FreeCalypso on it, follow the
28 procedure for Mot C139 in C1xx-Howto, with the following differences:
29
30 * You need to build a firmware image specifically for the j100 target
31 (./configure.sh j100 hybrid-vpm), don't flash a c139 or c11x build.
32
33 * Only the VPM configuration is available, not the proof-of-concept UI - the
34 LCD driver for the latter configuration exists only for the Mot C139 LCD,
35 not for SE J100 or any other C1xx.
36
37 * It is not certain at all whether the battery charging configuration we have
38 for Mot C1xx is correct or not for SE J100 - see further below.
39
40 Serial connection difficulty
41 ============================
42
43 Connecting the serial interface (the obvious prerequisite before one can do any
44 kind of firmware hacking) is a lot more difficult on the SE J100 compared to
45 Mot C1xx. Following Sony Ericsson's product line, this J100 phone does not have
46 round-jack headset or charger connectors, instead all accessories (charger,
47 headsets, Calypso UART access) are connected through a multi-pin connector (12
48 pins to be exact) that was used by SE across their product line. While there
49 exist a number of "cottage industry" vendors who make ready-to-use serial cables
50 for the kind of headset jack found in Mot C1xx phones, there does not appear to
51 be anyone making comparable cables for SE J100, thus the only way to play with
52 one of these phones is to construct the necessary serial cable yourself.
53
54 The pins on SE's proprietary accessory connector which carry Calypso UART RxD
55 and TxD on the J100 are the same pins which carry USB data lines on some other
56 SE phones which (unlike J100) have an official data services / computer
57 connection function, thus there are two ways to hack together Calypso UART
58 access on the J100:
59
60 Option 1: you can take a Sony Ericsson (or clone) USB-to-phone data cable and
61 mutilate it: cut off the USB end, split out the little wires and solder them to
62 your choice of 3.3 V USB-serial adapter. This is the route that was taken by
63 this author (Mother Mychaela), and when I did it, I ran into a nasty little
64 problem: the wires inside the cut-apart SE-clone USB-to-phone cable are
65 extremely thin (can't be any thicker than 28 AWG, and seemed to be even thinner
66 than that), and the solder contraption feels like it is barely holding, like it
67 is going to fall apart at any moment.
68
69 Option 2: you can take the same SE (or clone) USB-to-phone data cable, but
70 instead of mutilating it, connect it to another custom contraption: if you can
71 find a USB female-A connector part to which you can solder your own wires (or
72 cut apart some other cable that terminates in a USB female-A socket), make a
73 cable contraption consisting of this USB female-A on one side (into which you
74 insert the unmodified SE cable) and your choice of 3.3 V USB-serial adapter on
75 the other end. I still have one more SE-clone data cable which I haven't cut,
76 so I might try this approach.
77
78 For your choice of 3.3 V USB-serial adapter, you should definitely pick either
79 FT232R or CP2102, so you can use GSM-specific high baud rates (GSM-specific
80 because they derive from the 13 MHz clock) to transfer flash dumps and firmware
81 images.
82
83 Battery charging problem
84 ========================
85
86 Another problem stemming directly from SE's accessory connector arrangement is
87 that it is very difficult to connect both a charging power source and Calypso
88 UART access at the same time. At first I thought it was completely impossible
89 (there is only one accessory connector on the bottom of the phone), but then by
90 pure luck I acquired an unusual kind of SE charging adapter: this rare adapter
91 has a pass-through mechanical design, such that one can plug this charging
92 adapter into the phone and then piggy-back another accessory into it! However,
93 this kind of SE charging adapter is super-rare, and I haven't played with mine
94 yet because it has Europlug pins (not USA plug) on the AC power end, and I
95 haven't got around yet to acquiring the requisite AC plug adapter.
96
97 Connecting both the charging power source and the Calypso UART at the same time
98 is important for two reasons:
99
100 1) For me as the FreeCalypso developer, that is the only way I can develop and
101 test the charging configuration for this phone model.
102
103 2) For "end users" of the voice pseudo-modem FreeCalypso fw configuration on
104 this target, if you have no serial connection, you have no way of seeing how
105 your charging progresses, as there is no LCD driver and the display stays dark
106 and non-functional.
107
108 Because we don't have working battery charging on this SE J100 target yet, the
109 only safe way to play with this target at the present moment is to have two of
110 these phones (or another phone of a different model that takes the same
111 batteries), and keep one phone fully intact with its original fw so it can be
112 used to charge batteries when the FC-converted phone runs its battery down.