463
|
1 FreeCalypso end user libre phone goals
|
|
2 ======================================
|
|
3
|
|
4 The Mother's primary goal in FreeCalypso is to create (design and build) our
|
|
5 own FreeCalypso libre phone handset (a Libre Dumbphone) that can replace the
|
|
6 proprietary Pirelli DP-L10, retaining the following essential qualities of the
|
|
7 latter:
|
|
8
|
|
9 * a "dumbphone" in the most classic "candybar" form factor with traditional
|
|
10 dial buttons, NOT a smartphone;
|
|
11 * a color LCD of a decent size (Pirelli's is 128x128 pixels, ours will be
|
|
12 176x220 pixels);
|
|
13 * a loudspeaker that works for both hands-free calls and polyphonic ringtone
|
|
14 melodies;
|
|
15 * a USB port that combines charging with a built-in serial interface for
|
|
16 computer interfacing.
|
|
17
|
|
18 A secondary goal is to put together a firmware version that can be flashed into
|
|
19 a surplus Motorola C139 or C140 phone (obscenely cheap hardware) and turn those
|
|
20 originally-proprietary phones into a sort of Libre Dumbphone Lite - functionally
|
|
21 inferior to our own FreeCalypso Libre Dumbphone because Mot C139/140 hardware
|
|
22 is significantly inferior to what I seek to build (no loudspeaker, no USB, much
|
|
23 smaller LCD), but may be attractive to those cheap souls who are unwilling to
|
|
24 pay for higher-quality hardware. (Doing a similar feat with Pirelli DP-L10
|
|
25 hardware - turning it into a Libre Dumbphone by way of aftermarket firmware -
|
|
26 is not practically feasible: the effort to reverse-eng Pirelli's undocumented
|
|
27 hardware to the extent necessary for such a feat would cost at least as much
|
|
28 time and money as designing and building our own Libre Dumbphone hardware,
|
|
29 hence the latter is clearly preferable.)
|
|
30
|
|
31 The primary goal of entirely new FreeCalypso Libre Phone hardware and the
|
|
32 secondary goal of FC on the C139 are not mutually exclusive: because we are a
|
|
33 FLOSS project rather than proprietary sw, we do not artificially restrict what
|
|
34 hardware our fw can run on and what functionality it can provide: while the
|
|
35 primary target for our Libre Dumbphone firmware will always be our own hw,
|
|
36 whatever functionality can work on the more limited Mot C139 hw will work there,
|
|
37 subject to the limitations of the crippled hw platform.
|
|
38
|
|
39 However, in terms of timeline sequentiality, the critical point is that I,
|
|
40 Mychaela Falconia, the Mother of FreeCalypso, am not willing to do any more
|
|
41 work on the UI firmware (for any target) ahead of designing and building the
|
|
42 first prototype of the just-outlined FC Libre Dumbphone hardware: when it comes
|
|
43 to the work that *I* am doing, it has to be hardware first, then UI firmware.
|
|
44
|
|
45 But the FreeCalypso codebase is free for everyone, it is free software which
|
|
46 anyone in the world is free to fork in whatever ways they like, hence for those
|
|
47 who feel (contrary to my own personal stance) that aftermarket Libre Dumbphone
|
|
48 firmware for pre-existing hw platforms like Mot C139 is more important than new
|
|
49 FreeCalypso Libre Dumbphone hardware, the correct solution for those people is
|
|
50 to get over their fear of programming, roll up their sleeves and do some
|
|
51 firmware coding of their own.
|
|
52
|
|
53 What we got from TI in terms of firmware
|
|
54 ========================================
|
219
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 Phone handset firmware, i.e., fw that makes a phone device work as an untethered
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 phone and not just a serial-cable-controlled pseudo-modem, requires a few
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 additional layers of functionality beyond AT-command-controlled modem fw:
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 * The hardware-specific LCD driver, called R2D in TI's TCS211 program;
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 * The actual phone UI implementation, which the cellular industry calls by the
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 sexist term "MMI" - TI's implementation consists of two components called BMI
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 and MFW;
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 * Battery management (monitoring and charging);
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 * Fairly complex on/off logic to handle all possible combinations of turn-on,
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 turn-off, charging while "on", charging while "off", charging completed or
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 failed but charging power source not unplugged yet.
|
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68
|
463
|
69 The bulk of the UI code resides in the BMI and MFW layers, which sit on top of
|
|
70 ACI (Application Control Interface), which is the topmost layer of the
|
|
71 underlying GSM modem firmware stack. We got two different versions of this
|
|
72 MFW+BMI code from TI:
|
|
73
|
|
74 * The version under src/aci2, used together with the original TCS211 versions
|
|
75 of G23M PS and ACI components in the legacy 2092 config, has a very unclear
|
|
76 origin: it came from the internal SVN of an obscure company that made
|
|
77 AT-command-controlled Calypso modems (*not* complete phones with Calypso UI),
|
|
78 those people did not use this code themselves at all (their environment was
|
|
79 not even set up to be able to compile it), and it is totally unclear how they
|
|
80 came to have that code which they did not use. It *might* correspond to the
|
|
81 rest of TCS211 fw which we got from the same source, or it might not.
|
|
82
|
|
83 * The version under src/ui3, used in our hybrid configs going forward, has a
|
|
84 much clearer origin: we took it from TCS3.2_N5.24_M18_V1.11_M23BTH_PSL1_src
|
|
85 reference firmware for TI's later LoCosto chipset, which was published free
|
|
86 to the world by Peek Inc. as that company was closing shop.
|
|
87
|
|
88 We are now able to build UI-enabled firmware configs using both versions of TI's
|
|
89 MFW+BMI code, and there are no significant differences in the quality of the
|
|
90 phone UI implementation: in both cases it is only a proof of concept, and is
|
|
91 absolutely not ready for driving a real end user phone: the UI code contains
|
|
92 crashing and other killer bugs, the battery management driver officially
|
|
93 endorsed by TI for TCS211 and later programs (LCC for "low cost" unregulated
|
|
94 chargers) is not appropriate for phones that use simple charging circuits and
|
|
95 regulated +5 VDC charging power sources (USB or Motorola's C1xx charging
|
|
96 adapters), and TI's older PWR battery management driver (TI totally removed it
|
|
97 from TCS211, but we pulled it from the older MV100 source fragments) is
|
|
98 bitrotten and just generally broken.
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
99
|
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
100 In FreeCalypso we have developed our own battery charging and discharge
|
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
101 monitoring driver (FCHG) that works on Mot C1xx and Pirelli DP-L10 phones in
|
376
|
102 the "voice pseudo-modem" configuration (see the Voice-pseudo-modem article),
|
|
103 but we still have the problem of the UI, namely, the lack of one that is
|
463
|
104 practically usable. Because TI were in the business of making and selling
|
|
105 chipsets rather than complete phones, proper phone UI development was something
|
|
106 they left to their customers, and they provided only a very rough proof of
|
|
107 concept implementation.
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
108
|
463
|
109 What we have currently
|
|
110 ======================
|
|
111
|
|
112 If you wish to play with our current work in progress based on TI's PoC UI code,
|
|
113 you have 3 configurations (in the ./configure.sh sense) to choose from:
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
114
|
463
|
115 2092 This is our first UI-enabled configuration; it got its name
|
|
116 because it is a mostly unchanged replica of TI's pdt_2092
|
|
117 configuration in the original TCS211 program. This config uses
|
|
118 the original TCS211 versions of G23M PS (blobs), ACI (source)
|
|
119 and MFW+BMI (source) components. Data services (FAX_AND_DATA
|
|
120 and GPRS) are enabled and cannot be disabled because of G23M PS
|
|
121 blobs.
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
122
|
463
|
123 hybrid-ui This config is the TCS2/TCS3 hybrid counterpart to the above,
|
|
124 using the new full source versions of G23M PS, ACI and MFW+BMI
|
|
125 from the TCS3.2/LoCosto source. FAX_AND_DATA and GPRS are
|
|
126 still enabled.
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
127
|
463
|
128 hybrid-ui-vo Same as hybrid-ui, but with FAX_AND_DATA and GPRS disabled,
|
|
129 resulting in a lighter build.
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
130
|
463
|
131 All 3 of the above configs can be usefully built for 3 hardware targets:
|
|
132 dsample, fcdev3b and c139. The resulting firmware will work as follows:
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
133
|
463
|
134 * If you have a real TI-made D-Sample board with the attached test handset (the
|
|
135 platform that TI's own software engineers used when working on this UI code,
|
|
136 at least before LoCosto), TI's 176x220 pixel color UI will be displayed on
|
|
137 the LCD in the handset part of the kit, just the way TI meant it. However,
|
|
138 because we are missing a piece of code for Clara RF, GSM radio won't work,
|
|
139 and the UI can only be exercised as it would work in the absence of coverage:
|
|
140 one can step through the menus and read SIM phonebook entries and saved
|
|
141 messages, but no calls. See the D-Sample article for the details.
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
142
|
463
|
143 * You can run a UI-enabled firmware build on our FCDEV3B modem board that has
|
|
144 no physical LCD or keypad hardware, and display TI's 176x220 pixel color UI
|
|
145 on a connected external host, sending simulated keypresses from the same -
|
|
146 look in the freecalypso-ui-dev repository for the necessary tools.
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
147
|
463
|
148 * When a UI-enabled firmware config is built for the C139 target, the UI config
|
|
149 (Bourne shell variable UI_CONFIG in our configuration and Makefile generation
|
|
150 system) is switched from TI's D-Sample UI (176x220 pix color,
|
|
151 UI_CONFIG=bigcolor) to their older C-Sample UI: 84x48 pix black & white,
|
|
152 UI_CONFIG=84x48. This 84x48 pix B&W C-Sample UI is then displayed on the
|
|
153 96x64 pixel physical LCD on the C139 phone.
|
374
3f2dce15278c
doc: new Handset-goal write-up replaces old Handset-configs
Mychaela Falconia <falcon@freecalypso.org>
diff
changeset
|
154
|
463
|
155 If you are interested in the Mot C139 hardware target and you are interested in
|
|
156 turning our current state of affairs into something that would allow you to use
|
|
157 your C139 as a practically usable libre phone with FreeCalypso, the Mother
|
|
158 strongly recommends that you use the hybrid-ui-vo configuration as your starting
|
|
159 point; working on the old src/aci2 UI code that is slated for retirement because
|
|
160 it is coupled to a G23M PS version that exists only as binary blobs would be a
|
|
161 total waste. If you try to use our current hybrid-ui-vo firmware on the C139
|
|
162 as a practical phone, the following problems will be the ones that hit you most
|
|
163 immediately, and therefore would need to be fixed first:
|
219
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164
|
463
|
165 * The FCHG driver included in the fw build does monitor the battery state of
|
|
166 charge as it discharges, and you can query it with the standard AT+CBC command
|
|
167 using the AT-over-RVTMUX channel on the headset jack serial port, but it is
|
|
168 not connected to the UI, hence the battery icon on the screen shows no useful
|
|
169 info. Thus with an end user hat on, you would have no way of knowing if your
|
|
170 battery is full or almost empty and about to die any second or anywhere in
|
|
171 between.
|
219
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172
|
463
|
173 * The firmware similarly supports battery charging, but once again there is
|
|
174 absolutely no indication in the UI as to the state of the charging process as
|
|
175 in progress, completion or errors. Instead you can only observe this
|
|
176 charging process by watching the debug trace output emitted on the headset
|
|
177 jack serial port.
|
219
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178
|
463
|
179 * Every standard commercial end user phone implements a special mode of
|
|
180 operation that is activated if the user plugs in the charging power source
|
|
181 while the phone is off: the phone firmware boots just enough to manage the
|
|
182 battery charging process (the LCD shows nothing but this charging process),
|
|
183 but does not boot all the way to "full on" operation (SIM bring-up and
|
|
184 network search) until and unless some designated button is pressed to request
|
|
185 such full boot. The proof-of-concept code we got from TI does not implement
|
|
186 this special "charging boot" mode; instead if you connect the charging power
|
|
187 source to a fully-off phone, the result will be a full boot just as if you
|
|
188 pressed the red power-on button. This lack of the expected "charging boot"
|
|
189 mode is bad, as one really needs a "charge while off" mode in order to
|
|
190 properly recover from a fully discharged battery.
|
|
191
|
|
192 * Every standard commercial end user phone implements some timer logic for the
|
|
193 power-on button, such that if the phone is fully off, the power button needs
|
|
194 to be pressed not just momentarily, but held down for some time in order to
|
|
195 make the phone turn on and boot. This logic provides necessary protection
|
|
196 from accidental turn-ons: if you are in some place where your phone needs to
|
|
197 be off and you have turned it off, you don't want it booting back up on its
|
|
198 own because the button got pressed momentarily from the phone being in your
|
|
199 pocket or purse. This logic is currently missing.
|
219
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200
|
463
|
201 * The LCD on Mot C139 phones is already small, only 96x64 pixels, but with the
|
|
202 current firmware using the UI which TI originally created for their C-Sample
|
|
203 and earlier development boards, the usable area is reduced even further to
|
|
204 only 84x48 pixels. Likewise the physical LCD is color, but the UI is only
|
|
205 black&white because the UI code "thinks" it's running on a C-Sample board
|
|
206 which only had a black&white LCD. Massively reworking the UI code to make
|
|
207 use of the full 96x64 pixel LCD real estate, along with some colors, ought to
|
|
208 be essential before this UI can really become fit for end user operation.
|
219
b05dba024f95
doc/Handset-configs and doc/Modem-configs written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209
|
463
|
210 Some of these just-listed killer bugs are specific to the C139 target, while
|
|
211 others will still be there when we have our own HSMBP with a 176x220 pix color
|
|
212 LCD like on the D-Sample. Those bugs which are not C139-specific will be fixed
|
|
213 in the process of making our own FreeCalypso Libre Dumbphone based on our own
|
|
214 hardware, and by virtue of the common code the fixes will benefit the C139
|
|
215 target as well. In the case of C139-specific bugs, i.e., those specific to the
|
|
216 tiny screen size or to the weird (not TI-canonical) way in which the power
|
|
217 button is wired on C1xx phones, it is not currently known whether or not I
|
|
218 (Mychaela aka The Mother) will ever be willing to invest significant work into
|
|
219 these C139-specific issues. Thus the message is loud and clear: those who
|
|
220 desire FreeCalypso as aftermarket libre phone fw for Mot C139 or other non-FC
|
|
221 hardware need to roll up their sleeves and start learning the code.
|