PROGRAMOWANIE URZDZE MOBILNYCH rodzaje urzdze mobilnych telefony komrkowe
PROGRAMOWANIE URZĄDZEŃ MOBILNYCH rodzaje urządzeń mobilnych - telefony komórkowe, smartfony - komputery typu palmtop ( handheld, pocket PC, Personal Digital Assistant ) - tablety - urządzenia specjalizowane (nawigacyjne, inwentaryzacyjne. . . )
systemy programowania: Java Virtual Machine - CLDC ( Connected Limited Service Configuration ) - MIDP 1. 0, 2. 0 ( Mobile Information Device Profile ) systemy operacyjne - Palm. OS ( Garnet OS ) - Symbian, EPOC ( Psion ) - Windows : CE ; Mobile 2003, 5. 0, 6. 1, Phone 7. 0 , 8. 0 - Andriod ( Linux ) - Mee. Go Core Software Platform (Intel/Nokia/Linux) - i. OS ( i. Phone OS )
wyposażenie - łącza komunikacyje GSM (GPRS, EDGE, HSDC, LTE), Wi. Fi, Bluetooth, USB, Ir. DA, Transfer. Jet - odbiornik GPS - NFC (RFID) - czujniki : oświetlenia, żyroskop, kompas, akcelerometr - klawiatura - aparat fotograficzny / kamera - radio
usługi - rozmowy telefoniczne - multimedia - internet - aplikacje zastosowania (niektóre) - lokalizacja, nawigacja - akwizycja - pozyskiwanie informacji - pomiary
tworzenie aplikacji Windows Mobile - Active. Sync - Remote Display Control - Visual Studio. NET 2008 - NET Compact Framework 3. 5 - wspomaganie uruchamiania - usuwanie - testowanie zasobów Microsoft. Windows. Mobile. Status. System. Property. Camera. Present. Equals(1) // using Microsoft. Windows. Mobile. Status; TT, Egzamin, Camera
Baza Danych SQL Mobile string db. Path = @"My Documentsindeks. sdf"; string make. Db. Path = @"My Documentsmake. Db. sql"; if(System. IO. File. Exists(make. Db. Path)) { System. Data. Sql. Server. Ce. Sql. Ce. Engine engine = new Sql. Ce. Engine("Data Source = " + db. Path); engine. Create. Database(); Sql. Ce. Connection db. Connection = new Sql. Ce. Connection("Data Source = " + db. Path); db. Connection. Open(); }
// View groups System. Data. Sql. Server. Ce. Sql. Ce. Data. Reader reader = null; string query. Text = "SELECT * FROM groups order by name"; Sql. Ce. Command query = new Sql. Ce. Command (query. Text, db. Connection); reader = query. Execute. Reader(); groups. List. Box. Items. Clear(); List. View. Item List. Item = null; while(reader. Read()) { List. Item = new List. View. Item(); List. Item. Text = reader["name"]. To. String(); List. Item. Sub. Items. Add(reader["id"]. To. String()); groups. List. Box. Items. Add(List. Item); } reader. Close();
GPS : Global Positioning System - ok. 30 satelitów, - orbity kołowe, ok. 20 000 km nad Ziemią - naziemne stacje nadzorujące - komunikaty : { TN , Z , h , . . . } d • S h O Z x d = c * ( TO – T N ) x = sqrt ( d 2 – h 2 )
O 2 x • Z O • Z 1 • Z 2 x 1 O 1 - dokładność : 4 – 12 m - czas przesłania komunikatu : ok. 70 ms - różnica czasów dla 1 km : ok. 3 µs
- polepszanie dokładności : stacje bazowe - ASG-EUPOS : 3 cm - POZGEO i POZGEO-D : 1 mm - przyspieszenie lokalizacji : A-GPS współpraca z operatorem telefonii komórkowej
Odbiornik GPS - włączany programowo, COMx standard National Marine Electronics Association ( NMEA ) http: //www. gpsinformation. org/dale/nmea. htm - sekwencje znaków ( sentences ) - nagłówki $GP (ok. 30 rodzajów) GGA : czas + współrzędne + wysokość npm GSA, GSV : ZDA : dane satelitów data + czas
$GPGGA, 123519, 4807. 038, N, 01131. 000, E, 1, 08, 0. 9, 545. 4, M, 46. 9, M, , *47 Where: GGA Global Positioning System Fix Data 123519 Fix taken at 12: 35: 19 UTC 4807. 038, N Latitude 48 deg 07. 038' N 01131. 000, E Longitude 11 deg 31. 000' E 1 Fix quality: 0 = invalid 1 = GPS fix (SPS) 2 = DGPS fix 3 = PPS fix 4 = Real Time Kinematic 5 = Float RTK 6 = estimated (dead reckoning) (2. 3 feature) 7 = Manual input mode 8 = Simulation mode
$GPGGA, 123519, 4807. 038, N, 01131. 000, E, 1, 08, 0. 9, 545. 4, M, 46. 9, M, , *47 08 Number of satellites being tracked 0. 9 Horizontal dilution of position 545. 4, M Altitude, Meters, above mean sea level 46. 9, M Height of geoid (mean sea level) above WGS 84 ellipsoid (empty field) time in seconds since last DGPS update (empty field) DGPS station ID number *47 the checksum data, always begins with * GPSR, Lon. Lat
biblioteka GPS Intermediate Driver - główne klasy GPS – reprezentuje odbiornik Gps. Device. State – stan odbiornika Gps. Position – pozycja geograficzna Deegrees. Minutes. Seconds – konwersja xx, xxxº yy' zz'' - zdarzenia device. State. Changed ( Gps. Device. State ) location. Changed ( Gps. Position )
Gps. Device. State device = null; Gps. Position position = null; Gps gps = new Gps(); // private void start. Gps(object sender, Event. Args e) { if (!gps. Opened) { gps. Open(); } } private void stop. Gps (object sender, Event. Args e) { if (gps. Opened) { gps. Close(); } }
string Update. Data(object sender, System. Event. Args args) { string str = ""; if (gps. Opened) { if (position != null) { if (position. Latitude. Valid) str += "Latitude (D, M, S): n " + position. Latitude. In. Degrees. Minutes. Seconds + "n";
if (position. Longitude. Valid) str += "Longitude (D, M, S): n " + position. Longitude. In. Degrees. Minutes. Seconds + "n"; } } return str; }
Wiadomości SMS wysyłanie Sms. Message sms = new Sms. Message(number, text); sms. Send(); odbieranie interceptor = new Message. Interceptor(); interceptor. Interception. Action = Interception. Action. Notify. And. Delete; interceptor. Message. Received += new Message. Interceptor. Event. Handler(On. Sms. Received);
private void On. Sms. Received (object sender, Message. Interceptor. Event. Args e) { Sms. Message msg = (Sms. Message)e. Message; text. Box 1. Text = msg. From. Address; text. Box 2. Text = msg. Body; } SMS
Sieć Internet (transmisja GPRS) sprowadzanie stron WWW Http. Web. Request req = (Http. Web. Request)Web. Request. Create(page. Uri); Http. Web. Response resp = (Http. Web. Response)req. Get. Response(); Stream. Reader sr = new Stream. Reader(resp. Get. Response. Stream()); page. Data = sr. Read. To. End(); sr. Close(); Get. Page (bez USB)
Sieć bezprzewodowa Wi. Fi. Mail klient Tcp. Client client = new Tcp. Client(); client. Connect(server, port); Network. Stream stream = client. Get. Stream(); // stream. Write(out. Data, 0, out. Data. Length); // stream. Read(in. Data, 0, in. Data. Length);
serwer IPEnd. Point LEP = new IPEnd. Point( IPAddress. Any, 5000); Tcp. Listener listener = new Tcp. Listener( LEP ); listener. Start(); Tcp. Client New = listener. Accept. Tcp. Client(); Network. Stream stream. X = New. Get. Stream(); // stream. X. Write(out. Data, 0, out. Data. Length); // stream. X. Read(in. Data, 0, in. Data. Length);
Łącze Bluetooth porty szeregowe COM klucz sieciowy otwarcie portu serial. Port 1. Open(); // PDA: COM 5, PC: COM 7 wysłanie tekstu serial. Port 1. Write. Line(text); odczytanie tekstu void serial. Port 1_Data. Received (object sender, System. IO. Ports. Serial. Data. Received. Event. Args e) { data = serial. Port 1. Read. Existing(); } BT
serwisy internetowe : jak dla PC gniazda TCP / UDP pliki XML : jak dla PC
Aplikacja Kelnerska kuchnia Potrawy Kelnerzy Nazwa Imię Cena Utarg Liczba ID_P ID_K Zamówione dania Razem Gotowe
kelner Potrawy Nazwa Zamówione dania Cena Liczba ID_P Razem Gotowe
komunikacja - kelner ID_K REZ ID_P ID_K ZWR ID_P ID_K ZAM ID_P ID_K kuchnia ODR ID_P. . . ID_P
- Slides: 27