Page screensaver2 Attributes ID : 0 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 Width : 480 Effect : load Effect Priority : 0 Effect Time : 300 Locked : no Swide up page ID : disabled Swide down page ID : disabled Swide left page ID : disabled Swide right page ID: disabled Fill : solid color Back. Color : 0 Events Preinitialize Event recmod=1 baud=115200 vis tInstruction,0 vis tTmp,0 vis p0,0 vis tNotifyHead,0 vis tNotifyText,0 //load gloabl time string from pageIcons //tTime.txt=vaTime.txt spstr pageIcons.vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1 if(tAMPM.txt=="") { vis tAMPM,0 } tDate.txt=pageIcons.vaDate.txt dim=dimValue vis tSend,0 //page open event // clear weather elements, to keep example content in HMI Variable (string) strCommand Attributes ID : 4 Scope : local Text : Max. Text Size: 1979 Variable (string) strTmp Attributes ID : 31 Scope : local Text : Max. Text Size: 2 Variable (string) tId Attributes ID : 12 Scope : local Text : Max. Text Size: 25 Variable (string) tInstruction Attributes ID : 18 Scope : local Text : Max. Text Size: 50 Variable (string) tSend Attributes ID : 20 Scope : local Text : Max. Text Size: 50 Variable (string) tTmp Attributes ID : 19 Scope : local Text : Max. Text Size: 50 Variable (int32) vaTap Attributes ID : 14 Scope: local Value: 0 Variable (int32) xc1 Attributes ID : 25 Scope: local Value: 0 Variable (int32) xc2 Attributes ID : 27 Scope: local Value: 0 Variable (int32) xcR Attributes ID : 30 Scope: local Value: 0 Variable (int32) yc1 Attributes ID : 26 Scope: local Value: 0 Variable (int32) yc2 Attributes ID : 28 Scope: local Value: 0 Variable (int32) ycR Attributes ID : 29 Scope: local Value: 0 Text d1Icon Attributes ID : 17 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 30 y coordinate : 85 Width : 30 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text d1Val Attributes ID : 16 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 65 y coordinate : 85 Width : 100 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: left Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text d2Icon Attributes ID : 33 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 29 y coordinate : 117 Width : 30 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text d2Val Attributes ID : 32 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 65 y coordinate : 118 Width : 100 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: left Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text d3Icon Attributes ID : 34 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 29 y coordinate : 150 Width : 30 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text d3Val Attributes ID : 35 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 65 y coordinate : 151 Width : 100 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: left Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e1Icon Attributes ID : 11 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 20 y coordinate : 221 Width : 70 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e1Name Attributes ID : 9 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 20 y coordinate : 195 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e1Val Attributes ID : 10 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 20 y coordinate : 252 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e2Icon Attributes ID : 37 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 94 y coordinate : 221 Width : 70 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e2Name Attributes ID : 36 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 93 y coordinate : 195 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e2Val Attributes ID : 38 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 94 y coordinate : 252 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e3Icon Attributes ID : 40 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 168 y coordinate : 221 Width : 70 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e3Name Attributes ID : 39 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 168 y coordinate : 195 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e3Val Attributes ID : 41 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 168 y coordinate : 252 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e4Icon Attributes ID : 43 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 245 y coordinate : 221 Width : 70 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e4Name Attributes ID : 42 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 245 y coordinate : 195 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e4Val Attributes ID : 44 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 245 y coordinate : 252 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e5Icon Attributes ID : 46 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 319 y coordinate : 221 Width : 70 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e5Name Attributes ID : 45 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 319 y coordinate : 195 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e5Val Attributes ID : 47 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 319 y coordinate : 252 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e6Icon Attributes ID : 49 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 392 y coordinate : 221 Width : 70 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e6Name Attributes ID : 48 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 392 y coordinate : 195 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text e6Val Attributes ID : 50 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 392 y coordinate : 252 Width : 70 Height : 25 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text f1Icon Attributes ID : 55 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 183 y coordinate : 125 Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 3 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text f2Icon Attributes ID : 53 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 239 y coordinate : 125 Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 3 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text f3Icon Attributes ID : 54 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 295 y coordinate : 125 Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 3 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text f4Icon Attributes ID : 52 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 351 y coordinate : 125 Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 3 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text f5Icon Attributes ID : 51 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 407 y coordinate : 125 Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 3 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tAMPM Attributes ID : 13 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 424 y coordinate : 30 Width : 40 Height : 32 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : PM Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tDate Attributes ID : 6 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 190 y coordinate : 76 Width : 263 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: right Vertical Alignment : center Input Type : character Text : Thursday, 02.02 Max. Text Size : 30 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tIcon1 Attributes ID : 21 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 15 y coordinate : 280 Width : 223 Height : 40 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 17299 Horizontal Alignment: center Vertical Alignment : top Input Type : character Text : Max. Text Size : 16 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tIcon2 Attributes ID : 22 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 242 y coordinate : 280 Width : 222 Height : 40 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 17299 Horizontal Alignment: center Vertical Alignment : top Input Type : character Text : Max. Text Size : 16 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tMainIcon Attributes ID : 7 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 29 y coordinate : 15 Width : 70 Height : 65 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 4 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 4 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tMainText Attributes ID : 8 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 100 y coordinate : 50 Width : 82 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tNotifyHead Attributes ID : 56 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 15 y coordinate : 181 Width : 448 Height : 40 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 3 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : top Input Type : character Text : Max. Text Size : 35 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tNotifyText Attributes ID : 57 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 15 y coordinate : 221 Width : 448 Height : 58 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : top Input Type : character Text : Max. Text Size : 120 Word wrap : enabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tTime Attributes ID : 5 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 266 y coordinate : 15 Width : 192 Height : 60 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 4 Back. Color : 0 Font Color : 65535 Horizontal Alignment: right Vertical Alignment : center Input Type : character Text : 21:32 Max. Text Size : 15 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tTimeAdd Attributes ID : 23 Scope : local Dragging : 0 Send Component ID : disabled Opacity : 127 x coordinate : 105 y coordinate : 15 Width : 153 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 0 Font Color : 65535 Horizontal Alignment: center Vertical Alignment : bottom Input Type : character Text : Max. Text Size : 20 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Picture p0 Attributes ID : 1 Scope : local Dragging : 0 Send Component ID: disabled Opacity : 127 x coordinate : 0 y coordinate : 1 Width : 479 Height : 319 Effect : load Effect Priority : 0 Effect Time : 300 Picture ID : 0 Timer tm0 Attributes ID : 24 Scope : local Period (ms): 50 Enabled : yes Events Timer Event if(tc0.val!=0) { xc2.val=tch0 yc2.val=tch1 } Timer tmSerial Attributes ID : 3 Scope : local Period (ms): 50 Enabled : yes Events Timer Event // data available if(usize>1) { bufferPos=0 while(bufferPos-125&&xcR.val<125) { //tStatusNew.txt="x low, -> y" // check if below minimum value (change is negative) if(ycR.val<-80) { //tDirNew.txt="down" tSend.txt="event,buttonPress2,screensaver,swipeDown" }else if(ycR.val>80) { //tDirNew.txt="up" tSend.txt="event,buttonPress2,screensaver,swipeUp" }else { //tDirNew.txt="invalid" } // y difference between -125 and 125 (swipe on x-axis) }else if(ycR.val>-125&&ycR.val<125) { //tStatusNew.txt="y low, -> x" if(xcR.val<-80) { //tDirNew.txt="right" tSend.txt="event,buttonPress2,screensaver,swipeRight" }else if(xcR.val>80) { //tDirNew.txt="left" tSend.txt="event,buttonPress2,screensaver,swipeLeft" }else { //tDirNew.txt="invalid" } //diagonal swipe invalid }else { //tStatusNew.txt="invalid" //tDirNew.txt="diagonal" } } //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2