Author Topic: not seeing nodes in gateway  (Read 1143 times)

griiker

  • NewMember
  • *
  • Posts: 15
not seeing nodes in gateway
« on: May 04, 2019, 11:58:23 PM »
Well, 

I had last posted a topic in December, ": "Pi/Base Moteino problem".  I used 2 new Moteinos which are the same frequency, speed etc.  I can see in the serial monitor when I plug the garage door controller in that it is working,  when I old a magnet to an HED, it will either say OPEN or CLOSED,  the relay test works, and I get this : "[1]    [RX_RSSI:-25]"  when there is an event.  so at least that is working okay, I think.

However: 

The Dashboard is not showing any of the nodes!  the node coding in the two sketches are as follows:
for the garage door node:
#define GATEWAYID   1
#define NODEID      11
#define NETWORKID   100
//#define FREQUENCY     RF69_433MHZ
//#define FREQUENCY     RF69_868MHZ
#define FREQUENCY       RF69_915MHZ
#define ENCRYPTKEY      "sampleEncryptKey" #define IS_RFM69HW_HCW 

for the Raspberry Pi node:
#define NODEID          1
#define NETWORKID     100
#define FREQUENCY     RF69_915MHZ /
#define ENCRYPTKEY    "sampleEncryptKey"
#define IS_RFM69HW_HCW 
#define ACK_TIME       30 

The terminal in the browser has this when I try to connect to the raspberry pi:
10:51:58 PM : SERVERTIME OFFSET: -1279ms
10:51:57 PM : Connected!
So How can I get the nodes to show in the dashboard?
It is difficult for some of us who do not have any background in Networking, the acronyms alone are a foreign language.  it is probable that there is something which is not obvious to me as a neophyte, any help would be appreciated.
Thanks again for all the help with this

Justin




LukaQ

  • Sr. Member
  • ****
  • Posts: 302
  • Country: si
Re: not seeing nodes in gateway
« Reply #1 on: May 05, 2019, 02:19:35 PM »
Its not that you need to know anything about networking, you just at first need to use examples as Felix provided.

One is PiGateway, which just just upload in most cases. Then you must be sure your PI actually can read what PiGateway is sending over serial. I think you have problem here.
In your gateway in the terminal, you should have many lines of something like this
Code: [Select]
8:18:37 PM : {"_id":10,"updated":1557080317174,"descr":"[10]","metrics":{"watts":{"label":"watts","value":1154,"unit":" W","updated":1557080317174,"pin":1,"graph":1},"RSSI":{"label":"RSSI","value":-46,"unit":"db","updated":1557080317174,"pin":0,"graph":0}}}
8:18:34 PM : {"_id":10,"updated":1557080314155,"descr":"[10]","metrics":{"watts":{"label":"watts","value":1151,"unit":" W","updated":1557080314155,"pin":1,"graph":1},"RSSI":{"label":"RSSI","value":-46,"unit":"db","updated":1557080314155,"pin":0,"graph":0}}}
8:18:31 PM : {"_id":10,"updated":1557080311122,"descr":"[10]","metrics":{"watts":{"label":"watts","value":1152,"unit":" W","updated":1557080311122,"pin":1,"graph":1},"RSSI":{"label":"RSSI","value":-46,"unit":"db","updated":1557080311122,"pin":0,"graph":0}}}
8:18:28 PM : {"_id":10,"updated":1557080308097,"descr":"[10]","metrics":{"watts":{"label":"watts","value":1152,"unit":" W","updated":1557080308097,"pin":1,"graph":1},"RSSI":{"label":"RSSI","value":-46,"unit":"db","updated":1557080308097,"pin":0,"graph":0}}}

If you have this, then we can move to the next thing you could need

griiker

  • NewMember
  • *
  • Posts: 15
Re: not seeing nodes in gateway
« Reply #2 on: May 05, 2019, 10:47:02 PM »
I am not getting that in my terminal.  when I was able to log into the raspberry pi through my computer,

This is what I got:

10:51:58 PM : SERVERTIME OFFSET: -1279ms
10:51:57 PM : Connected!

That is all I got.

LukaQ

  • Sr. Member
  • ****
  • Posts: 302
  • Country: si
Re: not seeing nodes in gateway
« Reply #3 on: May 05, 2019, 11:39:59 PM »
Yes, that's what I thought. You might have PiGateway moteino set correct, but not your PI.

Quote from one of my older posts
Quote
You should check that you do get data on serial port. First you need to see data there. Only then you you need to look at gateway.sys.log, gateway.db and gateway_nonmatches.db.

First show us that you do in fact get serial
based on this, connect PiGateway moteino to serial on PC and show me, that in fact you are putting to serial correct lines, one that could PI understand. Also, what PI do you have? 2? 3? 3+?

In the afternoon my time, I can tell you, how to check on PI, what port you need to use

Or read and try
https://lowpowerlab.com/forum/pi-gateway/test-gateway-(pi)-without-moteino/

griiker

  • NewMember
  • *
  • Posts: 15
Re: not seeing nodes in gateway
« Reply #4 on: May 06, 2019, 09:34:46 PM »
Thanks for helping me, Luka.

I am using a Raspberry Pi 3. Model B Version 1.2.  I have tried to log on to the Pi using my web browser (Mozilla forfox), previously, I could log on without any trouble, howver, it now asks for a user name and pass word, I entered what I thought was the correct one, hoever that did not work.  I then figured I have lost the pas word to the Pi, so I reset it by removing the SD chip,  Used the standard procedure outlined on several places on the web to reset the pas word, and then tried to logon on again using the new pass word again, without any success.  could it be that there is something wrong with the raspberry Pi?

I am networking the Pi using Wifi. 

SO as it stands now, I can not even use my browser to log on to the Pi,  let alone get to the dashboard for the moteino.

I'm thinking of using a new Pi and starting from scratch. 

I'm new to this, and it is very difficult to follow the instructions at Low power labs, they are written more from people who are well knowledgeable in this.

So I need help with this.

LukaQ

  • Sr. Member
  • ****
  • Posts: 302
  • Country: si
Re: not seeing nodes in gateway
« Reply #5 on: May 07, 2019, 01:22:11 PM »
Hey,

I used 3 and 3+, both over wifi. No, very unlikely that there is problem with Pi.
What you should do now is remove SD card, put new OS (lite version) on it, then:

https://lowpowerlab.com/guide/gateway/setup-software/

First login is:
Code: [Select]
 pi and raspberry
then you follow instructions above:

Code: [Select]
sudo raspi-config
under 1., change your password to something else, you will enter it two times (this will be you login into PI over SSH or directly on it with keyboard)
then under 5. and then P2 enable SSH
then under 6. and then P6 disable both serial login shell and serial port hardware (Both times select NO)
Finish and reboot

Then sudo nano /boot/config.txt, down arrow to the end of the file and add/change last line to
Code: [Select]
enable_uart=1
dtoverlay=pi3-disable-bt
Ctrl+x, then y and enter

After that you only have
Code: [Select]
cd /home/pi
sudo wget https://raw.githubusercontent.com/LowPowerLab/RaspberryPi-Gateway/master/.setup/gatewaysetup.sh
sudo bash gatewaysetup.sh && sudo rm gatewaysetup.sh

The password you give in the installer will be you password for gateway login over browser
« Last Edit: May 07, 2019, 01:24:09 PM by LukaQ »