% % machine monitor startup % %% information exchange of parameters 1 !INFO %% switch to cloud communication 2 !CLOUD %% switch to server communication 3 !SERVICE %% save parameters as default 4 !SAVE %% reset comm parameters 5 !RECOMM %% send communication stream to machine 6 !SIPHON %% end of communication stream from server 7 !CHOKE %% heartbeat server communication lapse 8 !LAPSE %% output chars to comm port 9 !OUTCOMM %% serial memory listen to machine 10 !PUMP %% read a byte of the serial memory 11 !PEEK %% set a byte of the serial memory 12 !POKE %% route received characters from machine to server 13 !DRAIN %% set location of host server 14 !WHERE %% monitor incoming data, out through serial port 15 !ENGAGE %% stop monitoring incoming data 16 !DISENGAGE %% deliver partner packet to serial memory 17 !PARTNER %% get partner packet from serial memory 18 !INFLOW %% get partner server info 19 !SERVER % % Device status report flags % 0x01 !Devc.Pulling 0x02 !Devc.Siphoning 0x04 !Devc.Draining 0x08 !Devc.Pumping 0x10 !Devc.Siphoned 0x20 !Devc.Pumped 0x40 !Devc.Drained 0x80 !Devc.Pulled 0x100 !Devc.Configed 0x200 !Devc.Filling 0x400 !Devc.Filled 0x800 !Devc.Initial 0x1000 !Devc.Engaged 0x2000 !Devc.Cloud 0x4000 !Devc.Handshake 0x8000 !Devc.HavePartner % % Device configuration flags (RECOMM) % 0x4000 !Setup.Partner % PART 0x2000 !Setup.SD % SD 0x1000 !Setup.SPI % SPI 0x0800 !Setup.Memory % MEM 0x0400 !Setup.Conv7 % CNV7 0x0200 !Setup.PicServ % SERV 0x0100 !Setup.SerPlus % SPLUS 0x0080 !Setup.PicIot % IOT 0x0040 !Setup.SerCtrl % SCTL 0x0020 !Setup.UsbCtrl % UCTL 0x0010 !Setup.Bit7Mode % MODE7 0x0008 !Setup.XonXoff % XFLOW 0x0004 !Setup.Listen % LISTEN % % communication status indicators % 0x100 !Comm.Xflow 0x200 !Comm.Cnv7On 0x400 !Comm.Cnv7Init 0x800 !Comm.Cts 0x1000 !Comm.Rts 0x2000 !Comm.Over 0x4000 !Comm.Cancel 0x8000 !Comm.Within % % 30 second lapse time for incoming device cloud messages % 30000 !Mach.Lapse 0 !Mach.CycLim % % Cloud IOT platform major settings % "My First Project-bf4072c8463d.json" !ProjectCreds "imrMachineComm" !Repository "stellar-works-253820" !ProjectId "PostedTelem" !Subscription