Upgraded to version 7, and no beacons show up anymore.

Posted on
Wed Nov 30, 2016 8:27 pm
Swancoat offline
Posts: 503
Joined: Nov 20, 2009
Location: Houston

Upgraded to version 7, and no beacons show up anymore.

After getting this plugin setup some months ago (up and running with 4 rPis) I've pretty much neglected this forum as the plugin was absolutely bulletproof. Only problems I've had were related to batteries dying on beacons.

But after upgrading to Indigo 7, I also went through and upgraded a bunch of my plugins, including this one, and now all of my beacons just show as expired. The RaspberryPi beacons all seem to be perfectly functional, and show as 'up', but I haven't seen a beacon since I moved to 7. The only real troubleshooting I've been able to do is go back to the config and tell the plugin to accept new beacons (none have shown up).

Was there some intermediate conversion step that I missed? I really like this plugin and want to have it up and running again!

http://nerdhome.jimdo.com

Posted on
Thu Dec 01, 2016 8:35 am
kw123 offline
User avatar
Posts: 8335
Joined: May 12, 2013
Location: Dallas, TX

Re: Upgraded to version 7, and no beacons show up anymore.

Yes that's a bug. Will post fix today


Sent from my iPhone using Tapatalk

Posted on
Thu Dec 01, 2016 9:07 am
Swancoat offline
Posts: 503
Joined: Nov 20, 2009
Location: Houston

Re: Upgraded to version 7, and no beacons show up anymore.

Woah! That's awesome!

http://nerdhome.jimdo.com

Posted on
Thu Dec 01, 2016 8:09 pm
Swancoat offline
Posts: 503
Joined: Nov 20, 2009
Location: Houston

Re: Upgraded to version 7, and no beacons show up anymore.

Craaaaap, my piBeacon setup is in a death spiral.

Before I went to bed last night I sent new files to one of the rPis and rebooted. When I got home my log was filled with notifications that the IP number to that unit had changed to 192.168.1.20. (major pita, since my mac is all on the 10.0.1.x subnet. I tried setting my mac's IP to 192.168.1.1 but ssh to 192.168.1.20 gave no response.

Decided I'd dig in on that later, and decided to download the latest version of plugin. I did, it said it was sending new files to the other pis, and now 3 of them are reporting that they are at 192.168.1.20.

So now no beacons, The rPi's seem to be up... at least they are pinging my computer and saying they are at a new IP address (which seems weird that they can REACH my computer, since it's not on that subnet...).

Probably just have to start over at some point.

http://nerdhome.jimdo.com

Posted on
Thu Dec 01, 2016 8:51 pm
Swancoat offline
Posts: 503
Joined: Nov 20, 2009
Location: Houston

Re: Upgraded to version 7, and no beacons show up anymore.

So, figuring that it was weird a 192.168.x.x could even tell my comp its IP address, I just tried to ssh to the address that it used to be at... and it works.
I can't find any IP settings on the pi though, so no idea what to do.

Also, my beacons are back and it's picking up new ones. All from one rPi though. 3 of them are in 192.168.1.20 purgatory and also don't seem to be seeing the beacons. (fwiw, the one that works is the first one I set up. I think an pi2 with bluetooth dongle. The failing 3 are pi 3s).

http://nerdhome.jimdo.com

Posted on
Fri Dec 02, 2016 8:03 am
kw123 offline
User avatar
Posts: 8335
Joined: May 12, 2013
Location: Dallas, TX

Re: Upgraded to version 7, and no beacons show up anymore.

When you ssh to the bad rpi. Could you do
hostname -I
And
Cd pibeacon
Cat parameters
And post. Remove any passwords.



Sent from my iPhone using Tapatalk

Posted on
Fri Dec 02, 2016 8:15 am
Swancoat offline
Posts: 503
Joined: Nov 20, 2009
Location: Houston

Re: Upgraded to version 7, and no beacons show up anymore.

Sure thing. I'll do it after work tonight.

Last character in "hostname -I".... is that a capital I or lowercase L?

http://nerdhome.jimdo.com

Posted on
Fri Dec 02, 2016 8:57 am
kw123 offline
User avatar
Posts: 8335
Joined: May 12, 2013
Location: Dallas, TX

Re: Upgraded to version 7, and no beacons show up anymore.

capital i for hostname -I

also
ifconfig
would be good (a little bit more info the hostname -I)

the 192.168.1.20 is the default ip number on the SSD (it has to have one otherwise I cant create it)

a way to change the IP is to connect a keyboard / mouse/ monitor and set things up through the normal gui


but if you can ssh to the RPI on the old IP number it should work and the plugin should be able to ftp the proper config files to the RPI...
thats why I need a bit more into to understand where it goes wrong

Karl

Posted on
Fri Dec 02, 2016 8:37 pm
Swancoat offline
Posts: 503
Joined: Nov 20, 2009
Location: Houston

Re: Upgraded to version 7, and no beacons show up anymore.

Ok... here we go.

Cd command didn't work, but then I figured out it needs to be cd.

Code: Select all
Tivoli-Office:~ jswancoat$ ssh pi@10.0.1.195
pi@10.0.1.195's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Dec  2 00:00:45 2016
pi@RPiReceiver2:~ $ hostname -I
10.0.1.195 192.168.1.20 169.254.168.90
pi@RPiReceiver2:~ $ Cd pibeacon
-bash: Cd: command not found
pi@RPiReceiver2:~ $ Cat parameters
-bash: Cat: command not found
pi@RPiReceiver2:~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:53:f7:bc 
          inet addr:10.0.1.195  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fe53:f7bc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:214275 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24691 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:32343647 (30.8 MiB)  TX bytes:4279396 (4.0 MiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:06:a2:e9 
          inet addr:192.168.1.20  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::c414:99cc:e1ba:955e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:34 errors:0 dropped:34 overruns:0 frame:0
          TX packets:1209 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13444 (13.1 KiB)  TX bytes:479051 (467.8 KiB)

pi@RPiReceiver2:~ $ cd pibeacon
pi@RPiReceiver2:~/pibeacon $ cat parameters
{
  "BLEserial": "serial",
  "acceptNewiBeacons": "0",
  "authentication": "digest",
  "collectMsgs": "20",
  "debugRPI": {
    "debugRPIBEACON": 0,
    "debugRPIBLE": 0,
    "debugRPICALL": 0,
    "debugRPIOUTPUT": 0,
    "debugRPIPRIVATE": 0,
    "debugRPISENSOR": 0
  },
  "deleteHistoryAfterSeconds": 86400,
  "distanceUnits": "0.348",
  "enableRebootCheck": "restartLoop,-",
  "enableiBeacons": "1",
  "ipOfServer": "10.0.1.9",
  "loopMaxCallBLE": "900",
  "maxParseSec": "1.0",
  "myPiNumber": "2",
  "output": {},
  "passwordOfServer": "XXXXXXXXX",
  "portOfServer": "8176",
  "pressureUnits": "mbar",
  "rPiCommandPORT": "9999",
  "rPiRestartCommand": "",
  "rebootHour": 1,
  "rebootSeconds": 86400,
  "rebootWatchDogTime": "-1",
  "restartBLEifNoConnect": true,
  "sendAfterSeconds": "60",
  "sensorList": "",
  "sensorRefreshSecs": 30,
  "sensors": {},
  "shutDownPinInput": -1,
  "shutDownPinOutput": -1,
  "tempUnits": "Fahrenheit",
  "useRamDiskForLogfiles": "0",
  "userIdOfServer": "14607Tivoli"
}pi@RPiReceiver2:~/pibeacon $

http://nerdhome.jimdo.com

Posted on
Sun Dec 04, 2016 4:59 pm
Swancoat offline
Posts: 503
Joined: Nov 20, 2009
Location: Houston

Re: Upgraded to version 7, and no beacons show up anymore.

I started over on 3 of the pis and installed new disk images. Seems like everything works again.

http://nerdhome.jimdo.com

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest