Looks all
Ok will do 2 more copies to simulate.
And by the way you have a temperature or under Voltage issue on your rpi.
Look at your power supply.
Karl.
Sent from my iPhone using Tapatalk
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:c4:3e:e3 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 619 bytes 149512 (146.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 619 bytes 149512 (146.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.185 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::f185:3dda:a1eb:bfde prefixlen 64 scopeid 0x20<link>
ether e8:4e:06:0c:32:39 txqueuelen 1000 (Ethernet)
RX packets 14125 bytes 2572946 (2.4 MiB)
RX errors 0 dropped 133 overruns 0 frame 0
TX packets 2154 bytes 350569 (342.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
27-08:53:25 piBeaconUtils writeTZ L:1333 Lv:30 cBY:master changing timezone executing
27-08:53:26 piBeaconUtils writeIPtoFile L:1627 Lv:30 cBY:master writing ip number to file >><< reason:
27-08:53:31 master checknetwork0 L:1621 Lv:30 no ip number working, trying again, indigoServerOn:True, ip:
27-08:53:39 master checknetwork0 L:1621 Lv:30 no ip number working, trying again, indigoServerOn:True, ip:
27-08:53:46 master checknetwork0 L:1621 Lv:30 no ip number working, trying again, indigoServerOn:True, ip:
27-08:53:53 master checknetwork0 L:1621 Lv:30 no ip number working, trying again, indigoServerOn:True, ip:
27-08:53:53 master checknetwork0 L:1613 Lv:30 no ip number working, giving up, running w/o ip number, setting mode to clockMANUAL
27-08:53:55 piBeaconUtils writeTZ L:1333 Lv:30 cBY:master changing timezone executing
27-08:53:55 master readNewParams L:382 Lv:30 UPS-V2 interface NOT enabled
27-08:54:02 piBeaconUtils writeTZ L:1333 Lv:30 cBY:ADS1x15 changing timezone executing
27-08:54:02 ADS1x15 readParams L:611 Lv:30 ==== Start ADS1x15 ===== @ i2c:73; inputC:0; deltaX:0.1, gain:6144, resModel:1
27-08:54:02 ADS1x15 readParams L:611 Lv:30 ==== Start ADS1x15 ===== @ i2c:73; inputC:0; deltaX:0.1, gain:6144, resModel:1
27-08:54:02 ADS1x15 readParams L:611 Lv:30 ==== Start ADS1x15 ===== @ i2c:73; inputC:0; deltaX:0.1, gain:6144, resModel:1
27-08:54:02 ADS1x15 readParams L:611 Lv:30 ==== Start ADS1x15 ===== @ i2c:73; inputC:0; deltaX:0.1, gain:6144, resModel:1
27-08:54:02 ADS1x15 readParams L:613 Lv:30 ==== Start ADS1x15... sendToIndigoEvery:60.0;minSendDelta:4.0; sensorRefreshSecs:10.0,all i2c->devids:{73: [u'297270947', u'1036561108', u'1021059064', u'752082303']}
27-08:54:02 piBeaconUtils getIPNumber L:640 Lv:30 cBY:ADS1x15 no ip number defined
27-08:54:02 ADS1x15 execADS1x15 L:679 Lv:30 no ip number working, giving u
if u"badSensor" in uData:
self.addToStatesUpdateDict(dev.id,u"status",u"bad Sensor data, disconnected?")
if value == "":
sensorWasBad = True
data["sensors"][sensor][devId]["INPUT"] = "badSensor"
if badSensor > 5:
U.logger.log(30," bad sensor")
U.sendURL(data)
lastData[devId] =-100.
continue
"sensors": {
"ADS1x15": {
"1697729290": {
"format": "%3.2f",
"gain": "6144",
"i2cAddress": "72",
"input": "0",
"logScale": "0",
"minSendDelta": "4",
"offset": "-370",
"resModel": "16",
"sendToIndigoEvery": "30",
"sensorRefreshSecs": "2",
"useMuxChannel": "-1"
},
"188809276": {
"format": "%3.0f",
"gain": "6144",
"i2cAddress": "72",
"input": "0",
"logScale": "0",
"minSendDelta": "4",
"offset": "-370",
"resModel": "16",
"sendToIndigoEvery": "30",
"sensorRefreshSecs": "2",
"useMuxChannel": "-1"
}
},
....
"sensors": {
"ADS1x15": {
"1021059064": {
"gain": "6144",
"i2cAddress": "73",
"input": "0",
"logScale": "0",
"minSendDelta": "4",
"offset": "0",
"resModel": "16",
"sendToIndigoEvery": "60",
"sensorRefreshSecs": "1"
},
"1036561108": {
"gain": "6144",
"i2cAddress": "73",
"input": "0",
"logScale": "0",
"minSendDelta": "10",
"offset": "-370",
"resModel": "16",
"sendToIndigoEvery": "180",
"sensorRefreshSecs": "10",
"useMuxChannel": "-1"
},
"297270947": {
"format": "%3.0f",
"gain": "6144",
"i2cAddress": "73",
"input": "0",
"logScale": "0",
"minSendDelta": "10",
"offset": "-370",
"resModel": "16",
"sendToIndigoEvery": "180",
"sensorRefreshSecs": "10",
"useMuxChannel": "-1"
},
"752082303": {
"gain": "6144",
"i2cAddress": "73",
"input": "0",
"logScale": "0",
"minSendDelta": "4",
"offset": "0",
"resModel": "16",
"sendToIndigoEvery": "60",
"sensorRefreshSecs": "10",
"useMuxChannel": "-1"
}
}
for devIds in sensors[sensor]:
try: devId = int(devIds)
except: devId = 0
if devId == 0: continue
dev= indigo.devices[devId]
props= dev.pluginProps
data = sensors[sensor][devIds]
uData = unicode(data)
..
if u"badSensor" in uData:
self.addToStatesUpdateDict(dev.id,u"status",u"bad Sensor data, disconnected?")
try: dev.updateStateImageOnServer(indigo.kStateImageSel.PowerOff)
except: pass
continue
if u"badSensor" in uData:
self.indiLOG.log(10, sensor+" Glenn Added Udata: "+ unicode(uData))
self.addToStatesUpdateDict(dev.id,u"status",u"bad Sensor data, disconnected?")
try: dev.updateStateImageOnServer(indigo.kStateImageSel.PowerOff)
except: pass
continue
GlennNZ wrote:Then it has may be the wrong i2c channelI think the bad Sensor data == message is very old, and that the status of the ADS1x15 device is not being updated....
Glenn
if sensor == u"ADS1x15" :
self.indiLOG.log(10, u'Glenn added : devid:' +unicode(dev.id)+", data: "+ unicode(data)+ ', whichkeys:'+unicode(whichKeysToDisplay)+ u', sensor:'+unicode(sensor))
self.updateINPUT(dev, data, whichKeysToDisplay, 0, sensor)
continue
2020-07-27 11:25:31 Glenn added : devid:1874635667, data: {u'INPUT': 1051.31}, whichkeys:INPUT_1, sensor:ADS1x15
2020-07-27 11:25:31 Glenn added : devid:1980283685, data: {u'INPUT': 1427.38}, whichkeys:INPUT_0, sensor:ADS1x15
2020-07-27 11:25:31 Glenn added : devid:1874635667, data: {u'INPUT': 1050.75}, whichkeys:INPUT_1, sensor:ADS1x15
2020-07-27 11:25:31 Glenn added : devid:1980283685, data: {u'INPUT': 1417.5}, whichkeys:INPUT_0, sensor:ADS1x15
2020-07-27 11:25:51 Glenn added : devid:93013512, data: {u'INPUT': 553.31}, whichkeys:INPUT, sensor:ADS1x15
2020-07-27 11:25:51 Glenn added : devid:1123032143, data: {u'INPUT': 552.56}, whichkeys:INPUT, sensor:ADS1x15
2020-07-27 11:26:32 Glenn added : devid:1874635667, data: {u'INPUT': 1050.38}, whichkeys:INPUT_1, sensor:ADS1x15
2020-07-27 11:26:32 Glenn added : devid:1980283685, data: {u'INPUT': 1419.63}, whichkeys:INPUT_0, sensor:ADS1x15
2020-07-27 11:26:38 Glenn added : devid:297270947, data: {u'INPUT': 958.88}, whichkeys:INPUT_0, sensor:ADS1x15
2020-07-27 11:26:38 Glenn added : devid:1036561108, data: {u'INPUT': 959.25}, whichkeys:INPUT_0, sensor:ADS1x15
2020-07-27 11:26:38 Glenn added : devid:1021059064, data: {u'INPUT': 959.44}, whichkeys:INPUT, sensor:ADS1x15
2020-07-27 11:26:38 Glenn added : devid:752082303, data: {u'INPUT': 959.44}, whichkeys:INPUT_0, sensor:ADS1x15
2020-07-27 11:27:03 Glenn added : devid:93013512, data: {u'INPUT': 524.25}, whichkeys:INPUT, sensor:ADS1x15
2020-07-27 11:27:03 Glenn added : devid:1123032143, data: {u'INPUT': 522.94}, whichkeys:INPUT, sensor:ADS1x15
Users browsing this forum: No registered users and 17 guests