The Communication Protocol

The Communication Protocol

The communication protocol between our gadget is based on Pub-Sub Interface Included in the IGoogle frame work.
It is based on a broadcast Messages published by the "Yedion" Gadget, and heard by all other gadgets.
The Messages are a data structure serialized to a string using the JSon interface, and Parsed back to data structure in the receiver gadget.

The Messages:

  • Course Details : the message has 3 cells:
    • cNum: The Course number which the details are attached.
    • name: The Course name.
    • Num: The serial number of the message - keeps the gadget synchronize.
    • Data: The data of the course itself. it is also a string with a special structure. each group data is separated by a "|".In each group data the data is seperated by "_" in the this order: groupNum_days(seperated by ",")_ hours(seperated by ",")_lecture/recitation_status
  • Delete Message : this message tells all the gadgets to delete the information associated with it's serial.
    • num: The serial number of the message - keeps the gadget synchronize.
    • Data: del
  • Web Page message: used to tell the webPage to add a webSite
    • num: The serial number of the message - keeps the gadget synchronize.
    • data: the url link of the web page.
  • Exam message: used to tell the hebrew calender to add an exam
    • num: The serial number of the message - keeps the gadget synchronize.
    • data: test_date
    • name: The Course name.
  • Semester message: used to tell the other gadget what semester was chosen.
    • name: semester
    • data: the semester (a/b)
  • Year message: used to tell the other gadget what year was chosen.
    • name: year
    • data: the year

back to last page back to main page

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License