Hi everyone, so I'm using a nanode 5 with a jeelabs rfm12b board to act as a nanode rf and to take in data from the emontx sensor. The data should be taken in from the nanode and sent by ethernet to a raspberry pi. when it comes to the programming of the nanode to send the data I'm using the multinode firmware, but I'm lost there as well. However after uploading the sketch to the nanode I get an error relating the the dhcp status.
DHCP status: 0
DHCP failed
Data sent: /api/post.json?apikey=64a6bc477d1221dc71680c8f8a29d8e6&json={rf_fail:1}
Time request sent
Can someone point me in the right direction of how to resolve this or even just tell me how to get this (nanode ->ethernet->raspberry pi-> emoncms) to work? IT would be much appreciated.
Re: DHCP error nanode to raspberry pi - Resolved
If you do a search on the forum for DHCP you'll find many posts about getting this to work.
Have you worked through the suggestions on this page? http://openenergymonitor.org/emon/node/1112
Alternatively, as you are sending it to your own RaspberryPI (which I assume is on your own network), why not fix the IP address of the RaspberryPi and then use the IP address rather than domain name?
Re: DHCP error nanode to raspberry pi - Resolved
so this may be a completely novice move but I'm trying to do this without a network (router) and use the rfm12 boards to transmit data between the emontx and nanode (as the emonbase) and just post to emoncms on the raspberry pi. can this be done without the use of a router?
Re: DHCP error nanode to raspberry pi - Resolved
So if I am understanding you correctly you want to have a cable connecting the nanode to the RaspberryPi directly?
Out of the box this will not work. The way ethernet generally works is having a device (DHCP server) that maintains a database of available IP addresses and configuration information generally on a home network this is done by the router.
You could probably run additional software on the RaspberryPi to do the job that the router/switch does (try googling DHCP). But to be honest, as you yourself say that you are a complete novice I wouldn't recommend it!
The easiest would be to plug them both into a router/switch
You could use your nanode5 like the RFM12Pi, again probably not a novice activity,
or replace your nanode5 with the RFM12Pi which has full instructions and software on how to configure it.
Re: DHCP error nanode to raspberry pi - Resolved
Well that was the original intention, but I've added an old router into the mix and that seemed to fix that issue. So back to your first post you mentioned fixing the ip address of the raspberry and then using that ip instead of the domain name would that mean I would be posting to a static IP server?
So I need to give my pi a static IP and post to it using by using hisip[]?
Thanks for helping me with this, its really appreciated.
Re: DHCP error nanode to raspberry pi - Resolved
My opinion is that fixing the IP and using that removes one of the things that could go wrong.
So yes, I have given my RaspPi a static ip address.
To do that follow the instructions here: http://elinux.org/RPi_Setting_up_a_static_IP_in_Debian