Serial Gateway Sketch with si7021
General Discussion
18
Posts
2
Posters
3.1k
Views
2
Watching
-
tried now the Sketch... Seems that something is wrong with the sensor.
__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.2.0-beta 0;255;3;0;9;53 MCO:BGN:INIT GW,CP=RRNGA---,VER=2.2.0-beta 0;255;3;0;9;83 TSM:INIT 0;255;3;0;9;92 TSF:WUR:MS=0 0;255;3;0;9;100 TSM:INIT:TSP OK 0;255;3;0;9;108 TSM:INIT:GW MODE 0;255;3;0;9;118 TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;129 MCO:REG:NOT NEEDED 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.2.0-beta 0;255;3;0;11;Gateway_SI7021 0;255;3;0;12;1.0 161017 0;0;0;0;6; 0;1;0;0;7; 0;255;3;0;9;159 MCO:BGN:STP Serial started Node and 2 children presented. 0;255;3;0;9;684 MCO:BGN:INIT OK,TSP=1Also the issue with the attached sensor blocks completly the Gateway function.Means that the Gateway didn't receive anything. Is it possible to prevent such issue? what I mean, is it possible to seperate both functions in the Sketch in that way If something is wrong with the sensor, the Gateway can still operate?
THX
Markus -
the sensor conenction was the Problem at the end. Changed SCD and SCL and now it Looks good so far. At the Moment is the Gateway not connected to a Controller. Hope the sensor will be then also send the values...
__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.2.0-beta 0;255;3;0;9;53 MCO:BGN:INIT GW,CP=RRNGA---,VER=2.2.0-beta 0;255;3;0;9;83 TSM:INIT 0;255;3;0;9;92 TSF:WUR:MS=0 0;255;3;0;9;100 TSM:INIT:TSP OK 0;255;3;0;9;108 TSM:INIT:GW MODE 0;255;3;0;9;118 TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;129 MCO:REG:NOT NEEDED 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.2.0-beta 0;255;3;0;11;Gateway_SI7021 0;255;3;0;12;1.0 161017 0;0;0;0;6; 0;1;0;0;7; 0;255;3;0;9;159 MCO:BGN:STP Serial started Node and 2 children presented. 0;255;3;0;9;684 MCO:BGN:INIT OK,TSP=1 Loop1 started T: 21.49 TempDiff :121.49 0;0;1;0;0;21.5 T sent! H: 64 HumDiff :164.00 0;1;1;0;1;64 H sent! Before first sleep 0;255;3;0;9;733 MCO:SLP:MS=300000,SMS=0,I1=255,M1=255,I2=255,M2=255 0;255;3;0;9;768 !MCO:SLP:REP 0;255;3;0;9;124672 TSF:MSG:READ,106-106-0,s=0,c=1,t=1,pt=7,l=5,sg=0:63.3 106;0;1;0;1;63.3 0;255;3;0;9;124702 TSF:MSG:READ,106-106-0,s=255,c=3,t=0,pt=1,l=1,sg=0:90 106;255;3;0;0;90 0;255;3;0;9;124735 TSF:MSG:READ,106-106-0,s=3,c=1,t=38,pt=7,l=5,sg=0:3.71 106;3;1;0;38;3.71 After first sleep Loop1 started T: 21.64 TempDiff :0.15 H: 65 HumDiff :0.00 Before first sleep 0;255;3;0;9;300797 MCO:SLP:MS=300000,SMS=0,I1=255,M1=255,I2=255,M2=255 0;255;3;0;9;300830 !MCO:SLP:REP 0;255;3;0;9;428443 TSF:MSG:READ,106-106-0,s=255,c=3,t=0,pt=1,l=1,sg=0:90 106;255;3;0;0;90 0;255;3;0;9;428476 TSF:MSG:READ,106-106-0,s=3,c=1,t=38,pt=7,l=5,sg=0:3.72 106;3;1;0;38;3.72But how can I prevent the Situation that a defect or missing sensor on the Gateway blocks also the Gateway function ?
Thanks
Markus