1 / 28

Developing a Mobile Phone Application

Developing a Mobile Phone Application. Compare and contrast to ENCM511 Lab ideas. Based on the following Circuit Cellar Articles.

Download Presentation

Developing a Mobile Phone Application

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Developing a Mobile Phone Application Compare and contrast to ENCM511 Lab ideas

  2. Based on the following Circuit Cellar Articles • Kotchorek, R., M. R. Smith, V. Garousi, "Development of a basic mobile phone application", Circuit Cellar magazine, Accepted September 2009. Expected to be published in issue #245, Dec. 2010 • Kotchorek, R., M. R. Smith, V. Garousi, "Adding health monitoring capability to a mobile phone application" Circuit Cellar magazine, Accepted, September 2009. . Expected to be published in issue #246, Jan. 2011

  3. The ‘story’Spark podcast 49 • The podcast explained how HappyWakeUp (happywakeup.com) used a cell phoneto monitor the sounds of a sleeper’s movement for the last half-an-hour before a planned wake-up alarm call. This time consists of alternating deep sleep and arousal periods. Wake up during an arousal time, and you are refreshed. • Prototype for mobile applications to form the first practical part of a software engineering course on the “Reliable development of mobile medical devices”.

  4. The articles • Building the initial Snorecognizer prototype at the “Hello World” level demonstrates how to write software to use the many basic features available on a PDA or smart phone. This meant that the prototype will have to accept input commands from the available keys and display text together with handling basic audio operations. • By doing some basic DSP analysis on the monitored input sounds, the final cell phone Snorecognizer will output graphs on the maximum number of snores per snooze and other useful pieces of information

  5. Getting started • 90-trial version of Visual Studio 2008 Professional is available on Microsoft’s site (www.microsoft.com/ downloads • Microsoft Developer Network function descriptions/usage guides (msdn.microsoft.com/) . • The Windows Mobile SDKs are also available on the same download site

  6. Compare to a VDSP project build • Details in articles

  7. Auto build – simpler to template for basic TTCOS project • Clicking on the finish button causes Visual Studio to generate a large portion of the code for us. • The WinMain( ) function, the entry point into the application, continuously listens to the messages sent to it by the mobile operating system when events (interrupts) occur . • These messages are then dispatched to the WndProc( ) callback function.

  8. Each call to BeginPaint( ) must be followed by an EndPaint( ) call (Line 32) to complete the painting processes. These functions can only be called inside the WM_PAINT case .

  9. Running as simulation or on an actual Windows Mobile Phone find the target device menu amongst your toolbars, it can be enabled by selecting View -> Toolbars - > Device from the menu bar.

  10. Recognizing key strokes • Detailed information about each WM_KEYDOWN message is contained in the wParam and lParam arguments passed to WndProc( ) (Line 1) • The wParam variable contains a code corresponding to which key has been pressed. • The lParam variable contains additional information about the key-press, such as whether or not the key has been pressed and released or is being held down

  11. Handling record on and record off message

  12. Set up buffers At very start of prorogram Equivalent at a higher level to [--SP] = R4 But to ‘System Heap’

  13. Avoid memory leaks when application closes Equivalent to R4 = [SP++] But at system ‘heap’ level

  14. First prototype worksWhere we want to go with 2nd • 1st also records and plays back

  15. General idea of 1st prototype

  16. Record • Start on press and stop on press

  17. Demonstrate DSP application

  18. Starting timers

  19. Using timer information

  20. Starting application phone graphics

  21. Drawing graph labels

  22. Based on the following Circuit Cellar Articles • Kotchorek, R., M. R. Smith, V. Garousi, "Development of a basic mobile phone application", Circuit Cellar magazine, Accepted September 2009. Expected to be published in issue #245, Dec. 2010 • Kotchorek, R., M. R. Smith, V. Garousi, "Adding health monitoring capability to a mobile phone application" Circuit Cellar magazine, Accepted, September 2009. . Expected to be published in issue #246, Jan. 2011

More Related