Kenneth Chan Andrew Lai Jon Li Jesse Mwaura 1 System Architecture void insertNode(Node** head, int x, int y){ Node* temp = malloc(sizeof(Node)); if(!temp){ printf("malloc of tmp failed"); exit(0); } } void calcline(Node* head); Node* detect(IplImage* im, Node* head); int initializeIPC(); int publishMessage(float b, float invM); void OPEN_CV_DATA_MSG_handler(MSG_INSTANCE msgRef, BYTE_ARRAY callData,void *clientData); int main( int argc, char** argv ){ /* first we'll connect to central */ printf("Initializing IPC\n"); if(-1 == initializeIPC()){ printf("Couldn't initialize IPC...\n"); return -1; } printf("IPC is been set up\n"); Internet /* all done */ printf("This program is now finished.\n"); printf("If you were running the telemetryManager,\n"); printf("some new message should appear in today's log.\n"); Wi-Fi Module Parser LCD Accelerometer User 2 Test Cases Boot Time y y Hard Shutdown y y y Internet connectivity measured in unit of signal strength, bandwidth and latency Fault-free Displaying text y y Device must not corrupt saved files or settings in the event of hard shutdown Failure-injected Wireless Bandwidth/Latency y Device must initialize correctly and in a timely manner Fault-free Device must be able to display text to convey information Fault-free Retrieve RSS feed y y Device must be able to retrieve an xml file to parse Fault-free 3 Test Cases (Continued) Soft Shutdown y y Display Graphics y y y y Device must be able to read accelerometer information to switch feeds Fault-free Interpreting Accelerometer data y y Device must be able to parse xml file to display pertinent information Fault-free Interface with accelerometer w/ gumstix y GUI is more user friendly Fault-free Parse RSS feed y Device must shutdown gracefully and store all settings Fault-free Need accelerometer data to switch between feeds. Fault-free Loss of Network Connection y y Device must be able to re-establish network connection if it is lost Failure-injected 4 Metrics Time required to: y Boot up y Shutdown y (Re)acquire network connection y Retrieve and parse RSS file Latency on response to user input Sensitivity of accelerometer Freshness/staleness of feeds 5 Initial Results Time to ___ 90 80 70 Time (sec) 60 Nibo logo 50 Wifi up 40 Login prompt 30 20 10 0 0 2 4 6 8 10 12 14 Trial number 12 trials Time to ___ (Mean, SD) y y y Nibo logo - (7.5, 0.12792043) Wifi up - (43.01818182, 0.568890467) Login prompt - (64.55, 6.115628266) Trial number 7 is an outlier During trial 7, the device was not able to acquire a network connection 6 Initial Results Time to ___ (w/o outliers) 70 60 Time (sec) 50 Nibo logo 40 Wifi up 30 Login prompt 20 10 0 0 2 4 6 8 10 12 14 Trial number 11 trials kept No 3SD outliers Time to ___ (Mean, SD) y y y Nibo logo - (7.509090909, 0.13003496) Wifi up - (43.01818182, 0.568890467) Login prompt - (62.79090909, 0.54305533) 7 Initial Results Time required for wget ___ 6 5 Time (sec) 4 http://digg.com/rss/index.html 3 http://feeds.wired.com/wired/ind ex?format=xml 2 1 0 0 2 4 6 8 10 12 14 Trial number 12 trials No 3SD outliers Time required to wget ___ (Mean, SD) y y digg - (2.010833333, 0.13694447) wired - (4.865, 0.153593324) 8 Initial Results ping ___.res.cmu.edu of ten 1KB packets 100 90 80 Time (ms) 70 60 Min 50 Avg 40 Max 30 20 10 0 0 2 4 6 8 10 12 14 Trial number 12 trials No 3SD outliers ping ___.res.cmu.edu (Mean, SD) y y y Min - (10.00833333, 0.079296146) Avg - (15.45, 3.337255269) Max - (29.45833333, 20.19394411) 9 Initial Results Signal quality during ping trials 0 -10 0 2 4 6 8 10 12 14 -20 -30 dBm -40 Signal level -50 Noise level -60 -70 -80 -90 -100 Trial number 12 trials No 3SD outliers Signal quality (Mean, SD) y y Signal - (-62.75, 3.934116512) Noise - (-89.16666667, 1.114640858) 10 Initial Results 100 -50 90 -60 80 -70 70 -80 Min 60 -90 Avg 50 -100 40 -110 Signal level 30 -120 Noise level 20 -130 10 -140 0 dBm Time (ms) ping ___.res.cmu.edu of ten 1KB packets Max -150 0 2 4 6 8 10 12 14 Trial number 12 trials No 3SD outliers ping ___.res.cmu.edu (Mean, SD) y y y Min - (10.00833333, 0.079296146) Avg - (15.45, 3.337255269) Max - (29.45833333, 20.19394411) 12 trials No 3SD outliers Signal quality (Mean, SD) y y Signal - (-62.75, 3.934116512) Noise - (-89.16666667, 1.114640858) 11