Author Topic: No nodes in Pi Gateway [solved]  (Read 4382 times)

Memnon

  • NewMember
  • *
  • Posts: 28
No nodes in Pi Gateway [solved]
« on: June 12, 2015, 05:00:33 AM »
I just installed the image from lowpoerlab to my raspberry, did some port forwarding og tested it. Gateway show up in browser. So far so good. Then i installed the gateway sketch to my moteino connected to the pi, and the garagemote sketch on another moteino. The sketch i used is the example from github. But no nodes is showing in the gateway?  What have i done wrong, cant seem to figure this out.





This is what the gateway moteino sees
« Last Edit: June 15, 2015, 08:19:05 AM by Felix »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: No nodes in Pi Gateway
« Reply #1 on: June 12, 2015, 09:15:40 AM »
Looks like your end node and the gateway node can talk to each other so the problem is not there.

Please check the serial connection between the gateway moteino and your Pi. It has to match what you have configured in the gateway.js script (ie the serial port name).
At the very least (even if a received string is not matched by the script) the end node should show up as generic with no metrics (but show the RSSI). This is an indication that some data (perhaps unmatched) was received from that node at some point in time (indicated by the color coded timestamp).

Memnon

  • NewMember
  • *
  • Posts: 28
Re: No nodes in Pi Gateway
« Reply #2 on: June 12, 2015, 04:14:04 PM »
Looks like your end node and the gateway node can talk to each other so the problem is not there.

Please check the serial connection between the gateway moteino and your Pi. It has to match what you have configured in the gateway.js script (ie the serial port name).
At the very least (even if a received string is not matched by the script) the end node should show up as generic with no metrics (but show the RSSI). This is an indication that some data (perhaps unmatched) was received from that node at some point in time (indicated by the color coded timestamp).


Not sure what to look for as im a total noob in programming, I have not changed anything in the gateway.js file   

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: No nodes in Pi Gateway
« Reply #3 on: June 13, 2015, 08:54:59 AM »
Ok please follow the guide at lowpowerlab.com/gateway
All your needs are there including the details about wiring and serial port setup. You will have to at least try to be successful.

Memnon

  • NewMember
  • *
  • Posts: 28
Re: No nodes in Pi Gateway
« Reply #4 on: June 13, 2015, 03:29:07 PM »
Ok please follow the guide at lowpowerlab.com/gateway
All your needs are there including the details about wiring and serial port setup. You will have to at least try to be successful.

I Will try again.  But I thought as I used the readymade pi image.  Alle these setting was working by default.

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: No nodes in Pi Gateway
« Reply #5 on: June 14, 2015, 04:01:31 PM »
You still have to get the wiring done correctly. And understanding how the parts  interact does help a bit. The image was posted to save you an hour of installation frustration, nothing more.

Memnon

  • NewMember
  • *
  • Posts: 28
Re: No nodes in Pi Gateway
« Reply #6 on: June 14, 2015, 05:47:40 PM »
You still have to get the wiring done correctly. And understanding how the parts  interact does help a bit. The image was posted to save you an hour of installation frustration, nothing more.



Yes that i understand, The wiring is from my old setup that did work. Used it for a garagemote.  But now i started from scratch with the guide at lowpowerlab.com/gateway.  All is fine until i come to "node chat.js &"  The output from the terminal is not the same as in the guide. What do I miss?


« Last Edit: June 14, 2015, 06:07:53 PM by Memnon »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: No nodes in Pi Gateway
« Reply #7 on: June 14, 2015, 06:50:54 PM »
I'm not worried about the chat part. That is in the guide to help you get past intalling the socket stack correctly. Looks like that works OK?
If so then you must check that your serial port where the Moteino was connected matched what you have in gateway.js. Can you verify that?

Memnon

  • NewMember
  • *
  • Posts: 28
Re: No nodes in Pi Gateway
« Reply #8 on: June 14, 2015, 07:39:07 PM »
I'm not worried about the chat part. That is in the guide to help you get past intalling the socket stack correctly. Looks like that works OK?
If so then you must check that your serial port where the Moteino was connected matched what you have in gateway.js. Can you verify that?


Never mind, i got it working now. I feel so stupid  :-X :-X :-X

The encrypt key for the base and garagemote where not the same. My bad
thisIsEncryptKey and sampleEncryptKey  almost the same  ;D

So all is working fine now.  Thanks for your help felix

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: No nodes in Pi Gateway
« Reply #9 on: June 15, 2015, 08:16:55 AM »
Great!
I think some of those sketches were updated recently to try to keep all the keys the same "sampleEncryptKey", so a get-latest is good.