Click here to load reader
Upload
chw2054
View
1.140
Download
14
Embed Size (px)
Citation preview
Google Maps
II
Zigbee G sensor Zigbee G sensor G sensor Zigbee G sensor JAVA IO Zigbee
III
...............................................................II ............................................................. ............................................................. 1 .........................................................1 1.1 ........................................................1 1.2 ........................................................1 1.3 ........................................................2 1.4 ..........................................2 1.4.1 ..............................................2 1.4.2 ..............................................3 1.5 ....................................................4 1.6 ................................................5 2 .....................................................11 2.1 Zigbee EST Network..................................11 2.1.1 Zigbee.......................................11 2.1.2 Zigbee...........................................11 2.1.3 Zigbee...........................................13 2.1.4 Zigbee.......................................14 2.1.5 EST Network..................................16 2.1.6 EST Network.....................................16 2.1.7 EST Network ....................................16 2.1.8 EST Network ...............................17 2.2. G Sensor? ..........................................18 2.3 EEVK02C001-A00EEVK02F001-B00....................19 2.3.1 ...................................21 3 ...............................................23 3.1 ...................................................23 3.2....................................................25 4 ...............................................27 4.1 ...................................................27 4.1.1 Use Case Diagram.....................................27 4.1.2 Use Case Description.................................28 4.2....................................................29 4.2.1......................................29 4.2.2......................................30 4.2.3..................................31
IV
4.2.4 .............................................32 5 .....................................................34 5.1 Zigbee G-Sensor device...........................35 5.2 .......................................36 5.3 ....................................37 5.4 UART .............................................38 5.5 XYZ ...........................................41 5.6 ........................................43 5.6.1 ............................................43 5.6.2 ............................................46 5.6.3 ............................................47 6 ...............................................60 6.1 .......................................................60 6.2 ...................................................61 7 .....................................................62
V
1 : ..............................................................5 2 : ..............................................................5 3 : ..............................................................6 4 : ..............................................................6 5 : ..............................................................7 6 : ..............................................................7 7 : ..............................................................8 8 : ..............................................................9 9 : ..............................................................9 10 : ............................................................10 11 : ............................................................10 12 : ............................................................11 13 : ............................................................13 14 : ............................................................14 15 : ............................................................17 16 : ............................................................17 17 : ............................................................19 18 : ............................................................20 19 : ............................................................20 20 : ............................................................21 21 : ............................................................22 22 : ............................................................22 23 : ............................................................23 24 : ............................................................24 25 : ............................................................24 26 : ............................................................25 27 : ............................................................27 28 : ............................................................29 29 : ............................................................30 30 : ............................................................31 31 : ............................................................32 32 : ............................................................34 33 : ............................................................35 34 : ............................................................36 35 : ............................................................36 36 : ............................................................37
VI
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
: : : : : : : : : : : : : : : : : : : : : : : :
............................................................38 ............................................................38 ............................................................39 ............................................................40 ............................................................41 ............................................................41 ............................................................42 ............................................................44 ............................................................45 ............................................................46 ............................................................47 ............................................................48 ............................................................48 ............................................................49 ............................................................50 ............................................................51 ............................................................52 ............................................................53 ............................................................54 ............................................................55 ............................................................56 ............................................................57 ............................................................58 ............................................................59
VII
1 :..............................................................4
1
1 1.1 Google Maps 1.2 Google Maps
2
1.3 1.3.1
Google Maps
1.3.2
1.4 1.4.1 :
(1) (2) TM2 Google Maps
WGS84 (3) IE Firefox IE Only (4) 1.4.2 (1) Java
Java (2) TM2 () WGS84()
3
XML (3) Firefox Firefox (4) 1.5 Zigbee 1 1 zigbee Trace zigbee UART OOAD JAVA 4 5 6 4 7 8 9 10 11 12
1.6
1 Firefox Google Maps
4
1 Firefox 2
2 3
5
3
4 5
6
300
5 7
7
6
7
8
7
9
8
10
2 2.1 Google Map API 2.1.1 Google Map Google Map Google API 2.1.2 Google Map API Google Map API
2.2. AJAX? synchronous JavaScript And XML(AJAX) 2.3 Apache Tomcat
Apache Tomcat
11
3 3.1 Server Molliza Firefox
Internet
User Web Page Firefox
Server
Data files Java Program
Memory
3.2 3.2.1 Server Server Server Server Server
12
Action Request Server Send Result Back Web Page
User Action User Show Result
Server Server Memory Memory Server Server
Memory Read from files
Stop ID Stop position Bus name Stop name Cell
24() Memory Server
13
Send request Java Program Search data Memory Send data
ServerSend result back
Web Page
3.2. 2 Server Server Memory
14
User Find bus287 Web Page Find bus287 Java program Search bus stop which belongs to bus287 Memory Show information
Send request back
Send result back
15
User Set start point and end point Web Page Search bus which can fit them Java program Show information
Send request back
Search bus stop which near start point and end point
Send result back and starting the algorithm
Memory
Server
16
User Try to add or update the bus stop Web Page Add or update stop information Java program Show information
Send request back
Find place and update information
Send message back
Memory
3. 3 1. : Microsoft Windows XP 2. : 733 MHz PentiumIII processor or AMD-K7 class processor, 128 MB of RAM 3. Apache Tomcat
17
JDK 1.5 Eclipse Java EE () 1. : Microsoft Windows XP 2. : 733 MHz PentiumIII processor or AMD-K7 class processor, 128 MB of RAM 3. Mozilla Firefox JDK 1.5
18
4 4.1 Use Case Diagram Use Case Description 4.1.1 Use Case Diagram Actor Zigbee Device Use Case
(Zigbee Controler) XYZ
3D
27Use Case Diagram 4.1.2 Use Case Description User System 1. 2.
19
3.
4.
User 1. 3.
System 2. 4.
User 1.
System 2.
() User System 1. 2. User 1. User 1. 3. System 2.
System 2. XYZ 3D 4.
4.2 UML Sequence diagram 4.2.1
20
28 Actor GUI Keyboard start() 3 runX() X Robot keypree() Y Z UART exitGUI 4.2.2
21
29 Actor GUI (mouse1)(mouse2) start() X Y runY() X Robot mousemove() Y UART exitGUI 4.2.3
22
30 Actor GUI (mouse1)(mouse2) start() windows X Y runX() X Robot mousemove() Y runY()isPressSW() SW2 setLocation() mouse2 X Y runX() X Robot mousemove() Y runY() UART exitGUI 4.3
23
31 Actor GUI XYZ Value 3Dstart() observe start() while 3 UART setX() observe mathX() setx() paint
24
5 Start
JAVA IO
IO
JAVA UART Finish
32
25
5.1 Zigbee G-Sensor device
Y
X
Z 33Zigbee G-Sensor device Zigbee G-Sensor device XYZ
5.2
26
RX
TX XYZ
XYZ SCI
XYZ
34 SW1 TX RX G-Sensor device G-Sensor device SCI(serial communications interface) SCI universal asynchronous receiver/ transmitters(UARTs) RS232 Zigbee device X X Y Y Z Z 35 0X79 Y
0X78
X
0X7A
Z
35 Byte 6 Bytes 5.3
27
SW1
RX
TX XYZ
XYZ SCI
XYZ
36 TX XYZ 3 0X78( X ) 0X01 0X02 0X04 0X08 0X06(0X02 OR 0X04 ) Y Z 0X03 0X05 0X79 0X7A XYZ 37 0X03 Y 0X05
X
Z
5.4 UART
28
Input Buffer
Buffer
Sleep
38UART Java InputBuffer Stream
Buffer Buffer Buffer
39Buffer
29
Buffer X Y Z
30
40Java XYZ
5.5 XYZ
31
XZ 43 105 X 170 Y 41X 41 X X 105X 43X 170 X 43~105~170
YZ 175 114 Y 48Y 175~114~48
X
42Y 42 Y Y 114Y 175Y 48
32
ZX 203 141 Z 75Z 203~141~75
Y 43Z 43 Z Z 141Z 203Z 75
5.6 5.6.1 1. JAVA ROBOT Try{ Robot robot =new Robot();
33
robot.KeyPress(int keycode); // robot.KeyRelease(int keycode); // robot.MousePress(int buttons); // robot.MouseRelease(int buttons); // robot.MouseMove(int x, int y); }Catch(AWTException awte){} //
2. X Y175 170 120 80 43
Z
205
KeyRelease KeyPress105
KeyPress
KeyPress155
KeyPress130
KeyRelease140
KeyRelease115 100 125
KeyPress75
KeyPress45
44
34
45 X 43~170 120 80 120() 80() 120~80 ()
5.6.2 Windows 1.
35
X Y175 130
170
120 105
90
115
100 45 46 XY , X Y 2. Y
,
36
175 65 110 65 45
0 400
400 800
47 3. MouseMove(640,400-(y-115)*400/65) Y 175 45 110 65 400/65 5.6.3 1. Y 65,, 90/65 (Y-110)*90/65Y 175 Y 90
110
0
45
-90
48Y 2. XYZ
37
49Y 5 Y
Y_pixel[5]
50 Y Y 50 70 100 130 170 150 120 90 60 0 Y (Y - ) Y -60 -40 -10 20 60 40 10 -20 -50
38
Y_pixel[5]
Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9
0 0 0 0 60 60 60 60 60
0 0 0 20 20 20 20 20
0 0
0
-60
-40 -60
-10 -40 -60 -10 -40 -60 -10 -40 -60 -10 -40 40 -10 10 -20 10 40 40 40
-50 -20 10
51Y
39
Y_pixel[5] Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9 0 0 0 0 60 60 60 60 60 0 0 0 20 20 20 20 20 0 0 0 -60 4 3 2 1 5 4 3 2 1
3 2 1 5 4 3 2 1 5
2 1 5 4 3 2 1 5 4
1 5 4 3 2 1 5 4 3
5 4 3 2 1 5 4 3 2
-40 -60
-10 -40 -60 -10 -40 -60 -10 -40 -60 -10 -40 40 -10 10 -20 10 40 40 40
-50 -20 10
52Y
40
Pixel Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9
1 0 0 0 0
2 0 0 0
3 0 0
4 0
5 -60
-60 -40
-60 -40 -10
-60 -40 -10 20 60 40 10 -20
-60 -40 -10 20 -40 -10 20 -10 20 20 60 60 40 60 40 10 60 40 10
-20 50
53 Y Pixel
3.
41
54Y Y Y XYZ 3D (JGL) JGL(JAVA OPENGL) 3D Y 3D Wii Sport Y X
Z
XZ
42
Y X
Z
XZ
55Y Y 0 (XZ )
43
56Y X Z
44
X Z X Z X Z
X Z
57Y X Z
X Z
X Z X Z
X Z
45
X Z
X Z X Z
X Z
58Y X Z X x=-(x-105)*90/65 // Z z=(z-140)*90/65 JGL
46
X 90 JGL 90 Z 90 90
0 0
-90 270
0
0
-90
270
59X Z JGL if (x >= 0) { //X 0 mainCanvas.spinx = x; } else { //X 0 mainCanvas.spinx = 360 + x; } if zz >= 0) { //Z 0 mainCanvas.spinz = zz; } else { //Z 0 mainCanvas.spinz = 360 + z; } JGL Y X Z myGL.glRotatef(spinz, 0.0f, 0.0f, 1.0f);// Z myGL.glRotatef(spinx, 1.0f, 0.0f, 0.0f);// X
47
// Y myGL.glBegin (GL.GL_LINES); myGL.glVertex3f (0, 0, 0); myGL.glVertex3f (0, 2, 0); myGL.glEnd ();
Y
X
JGL X Z
JGL Z
60JGL Y X Z
48
6 6.1 Zigbee G Sensor Wii Zigbee Gsensor Device G-Sensor Zigbee Zigbee G Sensor Device G-Sensor G-Sensor Zigbee G-Sensor 6.2 1. Zigbee G-Sensor 2. G-Sensor 3. 4. 5. 6.
49
7 [1] EEVK013 Document, 2007/03/22 [2] EST_EVB_README02 Document, 2007/04/09 [3] EST Wireless Network Module, Product Specification Document, Feb. 16, 2007 [4] Freescale Semiconductor, Accelerometer Demonstration With the Sensor Applications Reference Design (SARD) [5] Freescale Semiconductor, MC13192 Accelerometer Demostration Program Quick Start Guide [6] Sensor Applications Reference Design (SARD) Users Manual, 10/2004 [7] Freescale Semiconductor, Demonstration Operation Running the Packet Error Rate, Wireless UART, Accelerometer, Range, and Lighting Demonstration Applications, 09/2004 [8] Freescale Semiconductor, Application Note, Document Number: AN3231, 10/2006 [9] Simple Media Access Controller (SMAC) Users Guide, Document Number: SMACRM Rev. 1.4, 10/2006 [10] ZigBee Alliance, ZigBee Specification. Version 1.0 ZigBee Document 053474r06, December 14th, 2004. [11] Z-Stack Users Guide for the Freescale MC13193 Evaluation Kit [12] ZigBee Technology and Device Design, Microelectronics Brno University of Technology Department of
50