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.
(http://s13.postimg.org/l5fv2z3dz/Skjermbilde2.jpg)
(http://s13.postimg.org/55x7jf7c7/Skjermbilde1.jpg)
This is what the gateway moteino sees
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).
Quote from: Felix 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).
Not sure what to look for as im a total noob in programming, I have not changed anything in the gateway.js file
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.
Quote from: Felix 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.
I Will try again. But I thought as I used the readymade pi image. Alle these setting was working by default.
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.
Quote from: Felix 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.
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?
(http://s18.postimg.org/sqipiju15/Skjermbilde5.jpg)
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?
Quote from: Felix 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?
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
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.