Subversion Repositories FlightCtrl

Rev

Rev 411 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
208 ligi 1
/*************************************************************************************************
2
 *
303 ligi 3
 * DUBwise
4
 * Digital UFO Broadcasting with intelligent service equipment
5
 *
250 ligi 6
 * Project to Communicate via J2ME (Mobile Phone) and Bluetooth
7
 * with a MikroKopter ( www.mikrokopter.de )
208 ligi 8
 *
9
 *
10
 * Author:        Marcus -LiGi- Bueschleb
11
 * Project-Start: 9/2007
483 ligi 12
 * Version:	  0.42
325 ligi 13
 * Mailto:        ligi
403 ligi 14
 *		  <-/AT/->
325 ligi 15
 *		  smart4mobile.de
208 ligi 16
 *
17
 * Licence:       http://creativecommons.org/licenses/by-nc-sa/2.0/de/
18
 *                (Creative Commons / Non Commercial / Share Alike)
303 ligi 19
 *		  Addtitonally to this Licence it is not allowed to use this software in any violent manner.
20
 *                This explicitly includes that lethal Weapon owning "People" (e.g. Army & Police) are not allowed to use this Project
483 ligi 21
 *		  If you want to use this tool in any Commercial Context - please contact me first!
303 ligi 22
 *
23
 * Disclaimer:    Use this Project at your own Risk!
24
 *
250 ligi 25
 * Credits:       Holger&Ingo for the MikroKopter Project
26
 *                CaScAdE for Testing and Graphics
27
 *                Orion8 for inspiration
405 ligi 28
 *                Joko for Testing and Comments
483 ligi 29
 *                Thomas Fitchen for equipping me with my first RC stuff
208 ligi 30
 *
406 ligi 31
 * Online Links:
303 ligi 32
 *
406 ligi 33
 *  -this Document (Subversion):
34
 *   http://mikrocontroller.cco-ev.de/mikrosvn/FlightCtrl/branches/ligi_j2me/README
208 ligi 35
 *
406 ligi 36
 *  -Wiki:
37
 *   http://mikrokopter.de/ucwiki/en/DUBwise
38
 *
39
 *  -Forum ( German Discussion around DUBwise ):
40
 *   http://forum.mikrokopter.de/topic-1682.html
41
 *
42
 *  -GetJar:
43
 *   http://www.getjar.com/products/12587/DUBwise
44
 *
208 ligi 45
 *************************************************************************************************/
165 ligi 46
 
250 ligi 47
*** Features:
48
 - draw Graphs with Nick integral / Roll integral / Nick acc / Roll acc
325 ligi 49
 - test each motor ( like MotorTest in MK-Tool )
250 ligi 50
 - Draw LCD of mk ( + interact with it Up/Down )
51
 - get MK_version
52
 - measure ConnectionTime / Motor=15Time / Motor>15Time ( UpTime )
303 ligi 53
 - Read and Edit Settings/Parameters from MK
325 ligi 54
 - initial Proxy Function ( send Data from MK via TCP/IP to socket )
405 ligi 55
 - save MK MAC/Name - so that scanning is only needed once ( you have to Quit via the Menu-Item - not the systems Exit button or simply turning the Phone off)
325 ligi 56
 - reconnect after connection loss ( detection of disconnect could be faster )
250 ligi 57
 
58
*** Install:
208 ligi 59
 - If u know how to handle JAR/JADs take the ones from the bin directory.
325 ligi 60
 - If u dont visit http://www.getjar.com/products/12587/DUBwise ( SVN might be more recent)
165 ligi 61
 
250 ligi 62
*** Usage:
231 ligi 63
 General:
64
  KEY # toggle Fullscreen
303 ligi 65
  KEY * MainMenu
193 ligi 66
 
231 ligi 67
 Device selection Screen:
325 ligi 68
  KEY UP/Down to select device
231 ligi 69
 
325 ligi 70
 Telemetry Screen:
231 ligi 71
  KEY UP to go Page up in MK-LCD
72
  KEY DOWN to go Page up in MK-LCD
73
 
74
 MotorTest Screen
75
  UP/DOWN increas/decrease speed of actual motor
76
  LEFT prev motor ( if first go to main screen )
77
  RIGHT next motor
78
 
250 ligi 79
*** Tested on:
390 ligi 80
 SE  K800i
81
 SE  W800i
483 ligi 82
 SE  W810i
83
 SE  K610i
231 ligi 84
 
390 ligi 85
 Nokia N95
483 ligi 86
 Nokia N80
390 ligi 87
 Nokia 6234
88
 Nokia 6131
483 ligi 89
 Nokia 6300
90
 Nokia 6230
390 ligi 91
 Nokia 6230i ( without MK )
92
 
250 ligi 93
*** Compile:
94
 - install some tools to fullfill Compile-Dependencys ( see below )
95
 - Set the path to WTK it in build.xml
96
 - execute $> ant build
97
 - the JAR and JAD will appear in build/bin when success
98
 * see http://forum.mikrokopter.de/topic-post15829.html#post15829 for Hints on Compiling on Windows
99
 
100
*** Dependencys:
101
 Run:
102
  - The Phone needs the Bluetooth API and MIDP 2.0 .
103
  - The MK needs a Bluetooth-Modul - http://mikrokopter.de/ucwiki/F2M03GXA?action=show
104
 Compile:
105
  - WTK ( 2.2 proven to work - please test with newer )
106
  - Obfuscator (e.g. Proguard from http://sourceforge.net/project/showfiles.php?group_id=54750
107
) when willing to obfuscate
108
  - ANT
390 ligi 109
  - Ruby for some scripts around the build process
110
 
250 ligi 111
*** ToDo:
405 ligi 112
 - bidirektional Proxying to TCP/IP ( GPRS / UMTS / WLAN ( e.g. N80) .. )
390 ligi 113
 - internationalize Stings
165 ligi 114
 - measure DebugSets per Second
193 ligi 115
 - log data/csv ( send via TCP/IP ; save )
165 ligi 116
 - Sound Alarms on Batt low or other triggers
405 ligi 117
 - Flash new MK Version via this Tool ( with online connectivity it could be an automatic update reminder )
181 ligi 118
 - making lib to be useable with desktop JAVA / will be sceduled after bluecove for linux is ready ( anounced for next Version)
210 ligi 119
 - triangulate MK by BT rssi
405 ligi 120
 - trigger mobile-cammera via FC
121
 - save/reat Parameters in/from RMS ( e.g. to copy parameters from MK 2 MK )
483 ligi 122
 - Port to Android ( will do when i have such a phone ;-)
193 ligi 123
 - tbc
303 ligi 124
 
125
*** ChangeLog:
126
  0.01 - initial Version ( initialize connection / main Thread with reading data from MK)
127
  0.02 - reconnect after connection loss ( e.g. switching on/off )
128
  0.03 - added send_command ( with CRC )
129
  0.04 - added decode64 to decode 'pseudo' BASE64
130
  0.05 - added get_version
131
  0.06 - added parsing of DebugData
132
  0.07 - Code-(Doc&&Cleanup) && initial svn commit
133
  0.08 - Initial README / ToDo List
134
  0.09 - implemented BTScanner for detecting BT-Devices (No hard mac anymore for first public bin)
135
  0.10 - initial MKMinimalMidlet / Canvas
136
  0.11 - 1st public binary ( JAR/JAD)
137
  0.12 - measure Uptime ( like that word for MK being in Air ;-)
138
  0.14 - measure idling mixture
139
  0.15 - Fixed Nokia Problem 2 instead of 2.0 ..
140
  0.16 - LCD implementation & polishing code on serveral places
141
  0.17 - Quit via * | Rescan via #
142
  0.18 - Remember URL ( bt-mac ) on quit
143
  0.19 - better handling of MK Version
144
  0.23 - care for Version while parsing DebugData - MK0.64 compatible now (0.20-0.23 - n1 bugfixing With CaSCade)
145
  0.24 - adding some GFX
146
  0.25 - adding Graph ( Nick int;Roll int; nick acc ;roll acc)
147
  0.26 - more Visuals
148
  0.27 - implemented motor_test
149
  0.28 - Icon
150
  0.29 - ressources for 176x220 / Ress differencing
151
  0.30 - Load Parameters from MK
152
  0.31 - Edit Parameters ( MKParamEdit.java )
153
  0.32 - Main Menu
154
  0.33 - Bugfix / Code CleanUp
155
  0.34 - select ParamSet to edit
314 ligi 156
  0.35 - Proxy server test script
157
  0.36 - initial Proxy-function in DUBwise ( send data recieved from mk to socket )
325 ligi 158
  0.37 - write ParamSets / BugFixing
390 ligi 159
  0.38 - scrolling intro string ( some EYE-Candy )
160
  0.39 - rotation instead of clipping in main menu select
161
  0.40 - Input Values in ParameterEditor via KEY0..KEY9
411 ligi 162
  0.41 - block motortest values > 255 / BugFixes / better Parameter Input
483 ligi 163
  0.42 - Display UBatt and SenderOkay
164
       - RAW Debug Mode
165
       - BugFixes ( e.g. SetPoint in ParamsParser was wrong )
166
       - using newer Antenna Preprocessor so that version has to be changed only once
167
       - KeyControl -> send KeyEvents as BitField from mobile to FC in order to control the MK