User:Dipak

From ASCEND
(Redirected from Dipak Chirmade)
Jump to: navigation, search
GSoC09 continued...
[1]
John Pye
dipak:
dipak(dot)chirmade(at)gmail(dot)com
Real-time ASCEND



Project summary or achievements (so far)

  • A completion of a DA-hardware firmware with advance features like
    • New_Data_Detection is as fast as approximately 870 readings per seconds,
    • Detection of inactive or malfunctioned sensor.
    • Feeds suspend or resume on user-button,
    • Support to multiple and different kinds of temperature sensors including analog as well as digital,
    • On-board debugging and memory leak testing functionality for an embedded DA hardware,
    • On-board crystal-based time-stamping for fetched reading with correction for time due to minor change in crystal frequency over time etc
    • Sensor time-out functionality and on-board averaging filters for initial raw feeds.
    • Two way communication in between DA-hardware and real-time data reader can be done using command.
    • DA-Hardware can set parameter like time-step, raw data smoothing laps etc on the fly.
    • Now supports 3 temperature sensors.
    • New_Data_Detection is as fast as approximately 870 readings per seconds,
    • Detection of inactive or malfunctioned sensor.
    • Feeds suspend or resume on user-button,
    • Support to multiple and different kinds of temperature sensors including analog as well as digital,
    • On-board debugging and memory leak testing functionality for an embedded DA hardware,
    • On-board crystal-based time-stamping for fetched reading with correction for time due to minor change in crystal frequency over time etc
    • Sensor time-out functionality and on-board averaging filters for initial raw feeds.
    • Two way communication in between DA-hardware and real-time data reader can be done using command.
    • DA-Hardware can set parameter like time-step, raw data smoothing laps etc on the fly.
    • Now supports 3 temperature sensors.
  • New_Data_Detection is as fast as approximately 870 readings per seconds,
  • Detection of inactive or malfunctioned sensor.
  • Feeds suspend or resume on user-button,
  • Support to multiple and different kinds of temperature sensors including analog as well as digital,
  • On-board debugging and memory leak testing functionality for an embedded DA hardware,
  • On-board crystal-based time-stamping for fetched reading with correction for time due to minor change in crystal frequency over time etc
  • Sensor time-out functionality and on-board averaging filters for initial raw feeds.
  • Two way communication in between DA-hardware and real-time data reader can be done using command.
  • DA-Hardware can set parameter like time-step, raw data smoothing laps etc on the fly.
  • Now supports 3 temperature sensors.
  • A completion real-time terminal data reader with demonstration of integration into an ASCEND model.
  • Completed prototype of Runge-Kutta based single step solver(but as a external method for the time being).



TODO list

  • To integrate LM335A-L743 or LM335x series sensors to DA event base.
  • To extend current realtime solver to support multiple steps than current single step solver.
  • To handle the event of 'Serial-Port-Change' in data reader. During testing I found that sometime serial port changes from /dev/USB0 to /dev/USB1 if USB0 is not closed properly in previous operation etc
  • To implement new command which should ask DA hardware to send a feeds in batch etc (This kind of communication will be really fast as no handshaking involved)
  • To give support to K-Type Thermocouple WIRE-SENSOR (non assembled and cheapest) using AD595 A2D converter kit



Project plan:

By midterm review

    • May be with one working example | Demonstrated for Quadratic Equations solvers.
    • May be with one working example | Demonstrated for Quadratic Equations solvers.
  • May be with one working example | Demonstrated for Quadratic Equations solvers.
    • Which has an ability to fetch the data in background.
    • Which can parse the live feeds according to sensor type / an event.
    • Which can generate a signal/call to tell solver that new data is available etc
    • To work out time-stepping and handling etc
    • Which has an ability to fetch the data in background.
    • Which can parse the live feeds according to sensor type / an event.
    • Which can generate a signal/call to tell solver that new data is available etc
    • To work out time-stepping and handling etc
  • Which has an ability to fetch the data in background.
  • Which can parse the live feeds according to sensor type / an event.
  • Which can generate a signal/call to tell solver that new data is available etc
  • To work out time-stepping and handling etc

Additional information: Since hardware is involved in this project, following steps need to be addressed by mid term:


  • Get a RAW DA (Data Acquisition) hardware working which includes all software and hardware configurations for multiple temperature (for the time being) sensors.
  • Hardware configurations/Other info:
  1. To make a mini pcb with noise eliminator circuits (like R-C kits) for sensors.
    Mini pcb is required as when I used RC by soldering with wires directly, I think some short circuit happens with opened nodes and one sensor got corrupt. Besides for multiple sensors, it is bit hard to use sensors without board so that no short circuit will happen in future etc
  2. To make sure that DA module works both GNU/Linux box and on MS-Windows box.
  3. To test burner for Arduino firmware(ATMEGA 328 IC) on GNU/Linux machine and on MS-Windows machine.
  4. To build a data reader interface from which hardware and other configurations parameters are taken like serial ports no – type (usb|com),baud rate, CRTSCTS,CS8 , parity etc
  5. Pause/Resume feeds using button on DA Hardware and show the status on-board LED if feeds are in active condition.
  6. On-board time stamping and reset-time event handling with the help of a user-button.
  7. To develop and to test the firmware for multiple temperature sensors with shared memory with ASCEND.
  8. To document different limitations that current DA hardware has.
  9. To update the wiki pages with all details and samples configuration for hardware.
  10. To write few test cases with scenarios tested on hardware.

  1. To develop a mechanism by which one can track available memory on DA-Hardware at RUN-Time

By final review

  • To demonstrate solving of steady-state models using real time data.
  • Real-time Runge-Kutta (single-step) solver
  • To work on adapting solver algorithms with real-time time stepping (Handing on initial time-stepping is done at real-time data reader side).

Additional hardware-related tasks:


  1. To make changes in firmware according to adaptive real-time data reader e.g. changing the time-stepping according to data-reader's instructions..
  2. Option to send a feeds to real-time data reader only upon request from real-time data reader..
  3. Option to enable or disable data filtering only if real-time data reader asked to do so.

Stretch goals

  • [Needs Hardware Calibration. Work is in progress]To write a module that can support analog LM335A-L743 temperature sensor as well as LM35CZ temperature sensor in addition to the digital sensor.
  • To get feeds from other sensors than temperature (or other types of commonly used temperature sensors). May be humidity or pressure etc
  • To create a mini simulation for sensor. Which will allow user/developer to test real-time ascend module without any hardware as simulator will create a virtual terminal to generate fake live feeds. This simulation will of-course ask little more information like temperature ranges, stepping size etc to the target user.