emonBase not connecting to emonCMS

Hi all, Ive just completed my first emonBase and TX and got them talking but can't get onto emonCMS from the Nanode?

I'm running the latest donwnload of NanodeRF_multinode

It variously fails with DHCP or posting up to emonCMS

Here is an example serial monitor output (??? replacing api key!) where initially it can't get in IP adress and RF fails, then RF begins to work, it gets an IP address but still can post data then fails again with RF. I've checked the board carefully and can't see any obvious soldering problems etc

 Anyone any ideas?

[webClient]
DHCP status: 0
Data sent: /api/post.json?apikey=????????????????????????????????&json={rf_fail:1}
Time request sent
DHCP status: 0
DHCP status: 0
Data sent: /api/post.json?apikey=???????????????????????????????&json={rf_fail:1}
DHCP status: 0
Data sent: /api/post.json?apikey=????????????????????????????????&node=10&csv=3427,3516,4034,3303
Time request sent
DHCP status: 0
DHCP status: 0
Data sent: /api/post.json?apikey=????????????????????????????????&node=10&csv=3419,3485,3982,3312
DHCP status: 0
Time request sent
DHCP status: 0
Data sent: /api/post.json?apikey=????????????????????????????????&node=10&csv=3480,3516,3999,3312
DHCP status: 0
DHCP status: 1
IP:  192.168.1.68
GW:  192.168.1.254
DNS: 8.8.8.8
DNS status: 1
SRV: 213.138.101.177
Data sent: /api/post.json?apikey=????????????????????????????????&node=10&csv=3839,3523,4016,3312
Time request sent
DHCP status: 0
DHCP status: 0
Data sent: /api/post.json?apikey=????????????????????????????????&node=10&csv=3513,3521,4036,3312
DHCP status: 0
Time request sent
DHCP status: 0
Data sent: /api/post.json?apikey=????????????????????????????????&json={rf_fail:1}
DHCP status: 0
DHCP status: 0
Data sent: /api/post.json?apikey=????????????????????????????????&node=10&csv=3442,3506,3987,3312
Time request sent
DHCP status: 0
DHCP status: 0
Data sent: /api/post.json?apikey=????????????????????????????????&json={rf_fail:1}
DHCP status: 0
Time request sent

anorman's picture

Re: emonBase not connecting to emonCMS

I am connecting the emonBase/Nanode to a BT HomeHub via an Ethernet port. It's quite an old unit (V1.0 I believe) so may be causing the problem.

Does anyone have any experience of connecting an emonBase/Nanode to a BT HomeHub and if there are any setting issues?

Thanks

 

 

Alastair

dashrathng's picture

Re: emonBase not connecting to emonCMS

Hi Alastair,

Please let me know if this issue has been fixed for you. I am facing a similar issue with DHCP.

 

Regards,

Dasharath

khs's picture

Re: emonBase not connecting to emonCMS

Hi,

no idea whether this may help; I had a similar problem with NanodeRF_multinode after getting it from github, after a long search I found a hint here:

http://openenergymonitor.org/emon/node/2366

 

=========================
1)On RF Receive
=========================
str.print(basedir); str.print("/input/post.json?");     // "input" is the magic word here instead of "api"
                                                       
========================
2) If no Data received 
========================  
str.print(basedir); str.print("/input/post.json?");     // "input" is the magic word here instead of "api"

 

After changing these two lines to "input" everything is working fine for me.

Regards,

khs

Robert Wall's picture

Re: emonBase not connecting to emonCMS

dashrathng appears to be posting on two separate threads for the same problem. See http://openenergymonitor.org/emon/node/2469

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.