1. bluetooth comm to hcidump in config and rpi
<-- that was my previous setting, no change needed.
2. rpi -> indigo use socket comm in config.
<-- I made this change
3. accept all packages in beacon.
<-- this was my previous setting, no change needed.
then the aiko should work fine.
Still the Aiko goes down after +/- 30 minutes... Using some of the special log stuff:
From Aiko print device info:
Code: Select all
09:06:50 printing dev info for -My AIKO Tag/1042551215 -------------------------------
09:06:50 props: -
com.karlwachs.piBeacon : (dict)
AllowOnStateChange : false (bool)
AllowSensorValueChange : false (bool)
IgnoreBeaconForClosestToRPI : 0 (string)
MSG : OK (string)
SupportsBatteryLevel : true (bool)
SupportsOnState : true (bool)
SupportsSensorValue : false (bool)
SupportsStatusRequest : false (bool)
address : 24:DA:11:26:37:F2 (string)
batteryLevelCheckhours : 4/12/20 (string)
batteryLevelUUID : gatttool (string)
beaconBeepUUID : gatttool (string)
beaconTxPower : -41 (string)
created : 0 (integer)
enableBroadCastEvents : 0 (string)
expirationTime : 90 (integer)
fastDown : 50 (string)
groupEnable0 : true (bool)
groupEnable1 : true (bool)
groupEnable2 : true (bool)
groupEnable3 : true (bool)
groupEnable4 : true (bool)
groupName0 : Family (string)
groupName1 : Guests (string)
groupName2 : Visitors (string)
groupName3 : Devices (string)
groupName4 : Other3 (string)
ignore : 0 (integer)
isBeaconDevice : true (bool)
memberOfFamily : false (bool)
memberOfGuests : false (bool)
memberOfOther1 : false (bool)
memberOfOther2 : true (bool)
memberOfOther3 : false (bool)
minSignalOff : -999 (string)
minSignalOn : -999 (string)
newMACNumber : 24:DA:11:26:37:F2 (string)
note : beacon (string)
showBeaconNickName : AIKIO Tag (string)
showBeaconOnMap : smallCircle (string)
showBeaconSymbolAlpha : 0.5 (string)
showBeaconSymbolColor : #00FFFF (string)
showBeaconSymbolType : ,u (string)
showBeaconSymboluseErrorSize : 1 (string)
showBeaconTextColor : #0000FF (string)
showSpecialParameters : true (bool)
signalDelta : 6 (string)
typeOfBeacon : Nonda_Aiko (string)
updateSignalValuesSeconds : 0 (integer)
useOnlyPrioTagMessageTypes : 0 (string)
version : Nonda_Aiko (string)
09:06:50 states: -
States : (dict)
Pi_00_Distance : 99999.0 (real)
Pi_00_Signal : -999 (integer)
Pi_00_Time : (string)
Pi_01_Distance : 0.0 (real)
Pi_01_Signal : -13 (integer)
Pi_01_Time : 2021-02-09 09:06:33 (string) /...
When Aiko went down:
Code: Select all
2021-02-09 09:26:27 sel.beacon logging: CheckPeriod -4- :24:DA:11:26:37:F2; status: up; deltaT: 30.1961970329
2021-02-09 09:26:36 sel.beacon logging: CheckPeriod -0- :24:DA:11:26:37:F2;
2021-02-09 09:26:36 sel.beacon logging: CheckPeriod -1- :24:DA:11:26:37:F2; passed pause
2021-02-09 09:26:36 sel.beacon logging: CheckPeriod -2- :24:DA:11:26:37:F2; passed ignore
2021-02-09 09:26:36 sel.beacon logging: CheckPeriod -4- :24:DA:11:26:37:F2; status: up; deltaT: 39.2224290371
2021-02-09 09:26:37 sel.beacon logging: newMSG -1 - :24:DA:11:26:37:F2; pi#=1 ; msg{u'count': 1, u'batteryLevel': u'', u'iBeacon': u'', u'txPower': -20, u'mac': u'24:DA:11:26:37:F2', u'mfg_info': u'AIKO', u'reason': u'fastDown', u'rssi': -999, u'typeOfBeacon': u'Nonda_Aiko', u'TLMenabled': False}
2021-02-09 09:26:37 sel.beacon logging: newMSG -1a - :24:DA:11:26:37:F2; after checkBeaconDictIfok
2021-02-09 09:26:37 sel.beacon logging: pass 1 :24:DA:11:26:37:F2; getBeaconDeviceAndCheck
2021-02-09 09:26:37 sel.beacon logging: pass 2 :24:DA:11:26:37:F2; getBeaconDeviceAndCheck
2021-02-09 09:26:37 sel.beacon logging: newMSG -1b - :24:DA:11:26:37:F2; after getBeaconDeviceAndCheck
2021-02-09 09:26:37 sel.beacon logging: newMSG-999-1 - :24:DA:11:26:37:F2 -999 received, rpi still w signal:[]
2021-02-09 09:26:37 sel.beacon logging: newMSG-999-2 - :24:DA:11:26:37:F2; set status to down
newStates:States : (dict) Pi_00_Distance : 99999.0 (real) Pi_00_Signal : -999 (integer) Pi_00_Time : (string) Pi_01_Distance : 0.6 (real) Pi_01_Signal : -999 (integer) Pi_01_Time : 2021-02-09 09:25:57 (string)
Then I captured the button press to watch it come back to "on":
Code: Select all
2021-02-09 10:03:44 sel.beacon logging: CheckPeriod -0- :24:DA:11:26:37:F2;
2021-02-09 10:03:44 sel.beacon logging: CheckPeriod -1- :24:DA:11:26:37:F2; passed pause
2021-02-09 10:03:44 sel.beacon logging: CheckPeriod -2- :24:DA:11:26:37:F2; passed ignore
2021-02-09 10:03:44 sel.beacon logging: CheckPeriod -4- :24:DA:11:26:37:F2; status: expired; deltaT: 2308.90011573
2021-02-09 10:03:48 creating new beacon, received from pi # 1/B8:27:EB:6B:8D:27: beacon-73:C3:7C:FC:9A:26 typeOfBeacon:
2021-02-09 10:03:49 new beacon logging: created:10:03:48 73:C3:7C:FC:9A:26 beacon_73:C3:7C:FC:9A:26 pi#=1 rssi=-34.0 txPower=99
2021-02-09 10:03:49 new.beacon logging: newMSG -2- :73:C3:7C:FC:9A:26; beacon_73:C3:7C:FC:9A:26 pi#=1; #Msgs=1 rssi= -34.0 txPow= 99 cr=2021-02-09 10:03:48 typeOfBeacon=
2021-02-09 10:03:49 sel.beacon logging: newMSG -1 - :24:DA:11:26:37:F2; pi#=1 ; msg{u'count': 1, u'batteryLevel': u'', u'iBeacon': u'', u'txPower': 8, u'mac': u'24:DA:11:26:37:F2', u'mfg_info': u'', u'reason': u'fastDown_back', u'rssi': -28, u'typeOfBeacon': u'Nonda_Aiko', u'TLMenabled': False}
2021-02-09 10:03:49 sel.beacon logging: newMSG -1a - :24:DA:11:26:37:F2; after checkBeaconDictIfok
2021-02-09 10:03:49 sel.beacon logging: pass 1 :24:DA:11:26:37:F2; getBeaconDeviceAndCheck
2021-02-09 10:03:49 sel.beacon logging: pass 2 :24:DA:11:26:37:F2; getBeaconDeviceAndCheck
2021-02-09 10:03:49 sel.beacon logging: newMSG -1b - :24:DA:11:26:37:F2; after getBeaconDeviceAndCheck
2021-02-09 10:03:49 sel.beacon logging: newMSG up - :24:DA:11:26:37:F2; set status up, rssi:-28.0
2021-02-09 10:03:49 sel.beacon logging: ClostR 1 :24:DA:11:26:37:F2; currClosestRPIL:-1, newClosestRPI:-1, newMinDist:99999.0 currMinDist:99999.0
2021-02-09 10:03:49 sel.beacon logging: ClostR 3 :24:DA:11:26:37:F2; currClosestRPI:-1, newClosestRPI:1, newMinDist:0.574712643678 currMinDist:99999.0
2021-02-09 10:03:49 sel.beacon logging: newMSG -3 - :24:DA:11:26:37:F2; bf cars
2021-02-09 10:03:49 sel.beacon logging: newMSG -4 - :24:DA:11:26:37:F2; bf calc dist
2021-02-09 10:03:49 sel.beacon logging: newMSG -5 - :24:DA:11:26:37:F2; passed
2021-02-09 10:03:50 sel.beacon logging: newMSG -1 - :24:DA:11:26:37:F2; pi#=1 ; msg{u'count': 20, u'batteryLevel': u'', u'iBeacon': u'', u'txPower': -20, u'mac': u'24:DA:11:26:37:F2', u'mfg_info': u'AIKO', u'reason': u'delta_signal', u'rssi': -16, u'typeOfBeacon': u'Nonda_Aiko', u'TLMenabled': False}
Is there any other log thing I could print out that might show where I messed up with my setup?