Author Topic: I have multiple nodes with only one moteino [solved]  (Read 1821 times)

Zachary

  • NewMember
  • *
  • Posts: 10
I have multiple nodes with only one moteino [solved]
« on: November 17, 2018, 08:51:58 PM »
I finished setting up my first moteino weathershield and went on to the gateway dashboard to see if it worked. When i logged i  had only one node on the dashboard. After that i started getting more nodes about every 30seconds to 5minutes. I am at ten nodes right now and i only have one moteino weathersheild set up. I am thinking that it makes a new node everytime it updates the data for the weathershield but it also updates the other all the nodes that are present on the dashboard.
« Last Edit: November 20, 2018, 10:35:33 AM by Felix »

Jason

  • Jr. Member
  • **
  • Posts: 57
Re: NEED HELP. I have multiple nodes with only one moteino.
« Reply #1 on: November 18, 2018, 09:35:17 AM »
If you go to the overall view page of the IoT Gateway site, there should be a button in the top right corner that says menu. Click that button and it will open a panel, click on the Log / Terminal button.  This terminal view will update whenever your mote(s) sends data to the gateway and will show what the gateway received.
1. Can you post a few entries, say 5, from this terminal view immediately after a new node gets added?
2. Did you accidentally change sensor nodeid in the weather mote code to a variable instead of a constant?
Example: “#define nodeid 2” or “int  nodeid = 2;”. It should be a constant with the define statement.  Depending on your text/code editor, cntr-F on the keyboard will open up a search (find) window where you can quickly search through all the code for where nodeid is listed.
3. In the weather node’s code in the command where it sends the data, did you make any changes on accident or purpose?

Zachary

  • NewMember
  • *
  • Posts: 10
Re: NEED HELP. I have multiple nodes with only one moteino.
« Reply #2 on: November 18, 2018, 07:38:00 PM »
I have been watching it a bit and have realized that every thirty seconds when the original node updates a new node is added.

Here is the code everytime that a new node is added:
6‎:‎28‎:‎05‎ ‎PM : {"_id":128,"updated":1542587287159,"metrics":{"F":{"label":"F","value":71.7,"unit":"°","updated":1542587287159,"pin":1,"graph":1},"H":{"label":"H","value":33,"unit":"%","updated":1542587287159,"pin":1,"graph":1},"P":{"label":"P","value":28.99,"unit":"\"","updated":1542587287159,"pin":1}}}

i am thinking it migth be in the sketch that i uploaded to the weather sheild so ill add the code for the sketch. I only changed the some of the settings in the area where it says "Important you must configure these setting to your hardware".
Ill add the code as an atachment.
I am also thinking it maybe the code that is one the moteino usb so ill add the code as an atachment for that one as well.

Also thanks for the help so far.



Jason

  • Jr. Member
  • **
  • Posts: 57
Re: NEED HELP. I have multiple nodes with only one moteino.
« Reply #3 on: November 18, 2018, 09:35:24 PM »
I noticed that for both sketches you have included the libraries that are defined again lower.  I don't think that is your problem, but you don't need to include them twice.

What is your set up exactly?
Is it the Moteino-USB running the gateway sketch?
What Moteino is running the weather shield?
What radios are being used on each one?

Can you include about 5 lines of the terminal code?
Are the new modes added sequentially or randomly?

Thanks...

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: NEED HELP. I have multiple nodes with only one moteino.
« Reply #4 on: November 19, 2018, 01:14:50 PM »
Looks like the wrong sketch on the gateway. Use this PiGateway sketch instead.

Zachary

  • NewMember
  • *
  • Posts: 10
Re: NEED HELP. I have multiple nodes with only one moteino.
« Reply #5 on: November 19, 2018, 04:44:19 PM »
Ok Thanks a lot. Tried it and seems to working fine so far. :) :) :)
Also another small problem that I have is I can access the gateway from my phone through the local network but I don't know how to make it so that I can access it from any other network. I followed the steps on the LowPowerLab website but I could not make it work.

Also if anybody's interested this is the gear that I am using:
-Moteino rfm69W 433mhz transceiver on a Moteino board (Not Moteino Mega)
-Moteino usb
-WeatherShield R2
-Raspberry Pi 3 B for the gateway

Also thank you all for helping.

Jason

  • Jr. Member
  • **
  • Posts: 57
Re: NEED HELP. I have multiple nodes with only one moteino.
« Reply #6 on: November 19, 2018, 06:06:16 PM »
I think the most common solution is port forwarding where you set up your router to allow traffic through to your raspberry pi gateway.

The other option I know of is using a proxy/tunnel service explained somewhat here: https://lowpowerlab.com/forum/pi-gateway/secure-remote-connections/

Zachary

  • NewMember
  • *
  • Posts: 10
Re: NEED HELP. I have multiple nodes with only one moteino.
« Reply #7 on: November 19, 2018, 08:22:39 PM »
Ok thanks jason. I am thinking that it might not actually be necessary for now because i only have weather sensors but if i were to install a motion detector or something like that then i would. Since i can set it so that i get an alert if the temperature is rising too high then i don't to log onto the dashboard to know that there is something wrong. I am using the weather sensors for a makeshift fire detector in a building. But if i were to set up more things to the gateway then i would probably do this because its a bit complicated and there are a few security risks. So thanks anyway for the help.

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: (Solved) I have multiple nodes with only one moteino.
« Reply #8 on: November 20, 2018, 10:28:44 AM »
I suggest port forwarding on your router, as explained on this page of the guide.