NanodeRF Ethernet problems, please help! - RESOLVED

Hello,

With great excitement two kits arrived on Friday, the emonBase (NanodeRF) and emonTX. I built the TX and it appears to be working, green LED flashes every 10secs, but I'm having problems with the NanodeRF.

All the components are neatly soldered. 

I've uploaded the NanodeRF_Power_RTCrelay_GLCDtemp sketch into Arduino 1.0 (Mac OS X) The green and red LED quickly flash to show sketch has been uploaded. The green LED remains on permanently thereafter.

I'm using an IP Scanner tool to look for the NanodeRF and the IP address from DHCP  but it never appears on the network. DHCP is active and working fine. 

I've also tried setting a static IP...

    dhcp_status = ether.staticSetup(myip, gwip, dnsip);           // DHCP setup

and

 

static byte gwip[] = { 192, 168, 1, 1 };
static byte myip[] = { 192, 168, 1, 205 };
static byte dnsip[] = { 192, 168, 1, 1 };
 
but not sure if this is correct.
 
The yellow LED on the ethernet connector flashes constantly.
The green LED on the ethernet connector is on, flashes for 10 seconds or so, then is not active at all.
 
I've reseated ICs
 
I've removed the 'brown-out' capacity connecting pins 2-6 to see if that's causing a problem. 
 
Please could you confirm if there should be an IC or anything soldered to the underside of the PCB?
 
 
Can't think what else the problem is, any ideas as to why NanodeRF is not showing on my network? Do I need to set a MAC address?

static byte mymac[] = { 0x42,0x31,0x42,0x21,0x30,0x31 };

is included in the sketch as default. HELP! 

thank you.

Jonathan

 

Any help would be much appreciated.

robw's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

I had this with my NanodeRF..

In the end i changed the mac address from 

static byte mymac[] = { 0x42,0x31,0x42,0x21,0x30,0x31 };

To

static byte mymac[] = { 0x00,0x31,0x42,0x21,0x30,0x31 };

and that fixed it.. Im not sure why.. Maybe its a restricted mac address.. I tried it with 2 different dhcp server non with play ball untill i changed the mac address.

Rob

 

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Thanks Rob, 

I've changed that too, but doesn't seem to change anything. I read your earlier post about Nanode DHCP issue and thought you'd been through the same issues. :-)

I'm wondering if I'm missing something in the Arduino sketch. Would you be kind enough to post / email over your sketch so I can upload a working sketch?  If you could highlight the variables, that would be helpful too.

jonathan at learningspaces dot net

When it uploads, does 'decode_reply' and 'dhcp_dns' also upload aswell?

thank you,

Jonathan

robw's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Jonathan

I will email you tonight with the code.,.

Im not 100% sure its going to be much use as its for the GLCD + solarPV but it will be a good start to see it work.. My file is emonGLCD_SolarPV.ino

Anyway im not sure if i changed both the first octets of the mac.

Eg

 

static byte mymac[] = { 0x00,0x00,0x42,0x21,0x30,0x31 };

But will look and email later..

Rob.

Lloyd's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

What output are you seeing in your serial window?

 

Lloyd

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

thanks Rob, will appreciate having someone elses code to trawl through.

J

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Thanks for replying Lloyd,

There is nothing displayed in the serial window at all. 

Unless I press the reset button, in which case I get...

 

'[webClient]'
 

and that's all. Very strange and not sure what to try next.

Any ideas?

Lloyd's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

I recently built my unit, and uploaded NanodeRF_Power_RTCrelay_GLCDtemp.  On the serial port I see the ip, gateway etc. printed out.  And the green led does not stay on.  Something does not sound right.

Just to confirm, there does not need to be anything soldered to the underside of the board, and I did not have to change the MAC address.  I would carefully check your soldering with a magnifying glass, and go through the build instructions again step by step to ensure you have everything correct, including component orientation when needed.  Don't forget the need to add the wire link.  Did you measure the voltage before adding the ICs?

 

Lloyd

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Thanks for your advice here Lloyd. I'm totally baffled as to why this thing isn't working. :-)

I've resoldered every joint incase there was a dry joint and taken myself through the build instructions. I've checked components are correct and the right way round.

 

I've checked the link wire, middle pin to bottom pin.

I did use my multimeter to check voltages before putting in the ICs, and the measurements were as described in the guide.

I've even swapped out ATMega chip with another that I have in another Arduino Uno and no change. If I had another Ethernet controller chip, I'd try that.

Can't think I've damaged anything through over soldering, I was so careful and quick.

Do you have the Capacity fix installed? Pin 2 and 6

With the usb socket on the right-hand side

o x o

x x x

the o's signify the connection to pins 2 and 6. Is that right?

Two issues then,

i) GREEN LED remains lit after uploading sketch.

ii) limited output in the serial window. (I get "[webClient]" when I press the reset button)

 

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Received with thanks Rob.

I've tried it. Same issue. Definitely points to a hardware problem. :-(  Looks like I may have to buy a whole new kit and try again, sigh.

Unless there are any other suggestions?

Lloyd's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

I presume you are only powering from the programming cable?   And that you have set the correct frequency for the RF12 module?  (Not sure what difference that would make, but the green led gets extinguished after the RF12 gets initialised.)

You could add some extra print statements to see where in the code you are reaching?

Lloyd

davocon's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Jonathan, I am having exactly the same problem as you with my emonbase. I also got the emonglcd and that is talking to the emontx fine but the emonbase won't connect to Ethernet. Confusingly, it did once but is now not connecting at all and my symptoms are identical to yours. 

PI have tried the mac address change and trying your code to set static ip but to no avail.

 

 

Dave

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Thanks for those thoughts Lloyd. I've set the frequency to 868 in the sketch, so presumably that's right for the European model. How can I check I have the correct model? Suppose I could try the worldwide frequency?

I've tried powering from just the programming cable and then tried adding a USB mobile charging cable in case there wasn't sufficient power. Having had a few days away, I've since thought this could still be an issue, so I'm going to try powering it from an Apple USB charger which I'm sure is beefy enough for this kit.

Would it help to remove the RF12 board temporarily to see if that's causing issues?

I'll also look at adding more print statements, good idea. Thanks again.

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Really sorry to hear you are having same difficulties, Dave, although somewhat relieved that it's not just me and that we have twice as much chance at finding the solution.

Having been away a few days and reflecting on everything I've done / not done, I am wondering if it's a power issue.

I'm going to try using another USB power supply(Apple) and then try using the voltage regulator components to feed 5v straight onto the board.

Have you had any incites yet? Please do continue to share any progress or findings. Cheers.

I've only got emonTX and emonBASE and presuming that I don't need emonGLCD unless I need a display? I.e it should work without LCD display?

TrystanLea's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

I think lloyd may have found the location of the issue. Could you try removing the line rf12_initialize(MYNODE, freq,group);  to see whether its the rfm12 chip thats causing the issue? 

Does more get printed to the serial window?

PeterN's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Hi, Similar problem. Checked assembly again and soldered any suspect joints.

The Ethernet on nanoderf and router flash on connection and look ok initially.  Then DHCP status:0 is returned ( rf from emontx is recieved ok).

I have tried following and more to find fault (each time looking at home netopia router  "devices on LAN"  my nanoderf never appeared on list.

Using testDHCP sketch

Results displayed on com13:
DHCP failed
My IP: 0.0.0.0
Netmask: 0.0.0.0
GW IP: 0.0.0.0
DNS IP: 0.0.0.0

hit reset button

[testDHCP]
MAC: 0:24:D7:2D:30:31
Setting up DHCP
DHCP failed
My IP: 0.0.0.0
Netmask: 0.0.0.0
GW IP: 0.0.0.0
DNS IP: 0.0.0.0

Using  GLCDtemp sketch With static IP (on power up each time the following)
Results displayed on com13:
[webClient]
Failed to access Ethernet controller
DHCP status: 1
IP:  192.168.1.10
GW:  192.168.1.254
DNS IP: 89.19.64.36

[webClient]
Failed to access Ethernet controller
DHCP status: 1
IP:  192.168.1.10
GW:  192.168.1.254
DNS IP: 89.19.64.36

[webClient]
Failed to access Ethernet controller
DHCP status: 1
IP:  192.168.1.10
GW:  192.168.1.254
DNS IP: 89.19.64.36
þ
[webClient]
Failed to access Ethernet controller
DHCP status: 1
IP:  192.168.1.10
GW:  192.168.1.254
DNS IP: 89.19.64.36
 

Next step is to get another nanoderf, I suspect it is bad soldering on my behalf.

 

glyn.hudson's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

DHCP does not seem to work on all routers, you could try static IP or try another router. It's strange that the "failed to access Etherent Controller" message is followed by a DHCP success!

The error failed to access Etherent Controller" message usually indicates some sort of hardware issue. 

TrystanLea's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Is the ethernet chip getting power correctly as detailed on the voltage tests on ian's build page: http://ichilton.github.com/nanode/rf/build_guide.html

PeterN's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Thanks for feedback. I double checked Voltages with chips removed and all ok.

 

With standard sketch (RTCrelay_GLCtemp) which includes DCHP e.g. no static IP addresses - note as per previous communications I tried with ethercard examples also to no avail.

extract from com port below :

1 emontx packet rx2 {rf_fail:0,power1:54,power2:0,power3:0,voltage:3255}

DHCP statu1 emontx packet rx2 {rf_fail:0,power1:54,power2:0,power3:0,voltage:3255}

DHCP status: 0

2 {rf_fail:1}

DHCP status: 0s: 0

2 {rf_fail:1}

[webClient]

Failed to access Ethernet controller (this only happened after I hit reset button)

DHCP status: 0

2 {rf_fail:1}

DHCP status: 0

Tested with static IP and nothing works, no rf feed either. The com port remains blank until nanoderf is reset with button

Extract from com port following reset

[webClient]

Failed to access Ethernet controller

DHCP status: 1

IP: 192.168.1.175

GW: 192.168.1.254

DNS IP: 192.168.1.254

I do have a very old router netopia 3347wG but it works ok with DHCP enabled or disabled for other devices. No matter what I try :  nanoderf has'nt appeared in netopia router LAN list. I'll try another router over weekend. If I get a chance I'll document testing and email.

 

 

TrystanLea's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

I think this is most certainly a problem with the ethernet chip or surrounding ethernet circuitry on the nanodeRF itself rather than a router problem. Otherwise you would not get the "Failed to access Ethernet controller" message. If the ethernet part is working that message will not come up even if there is no ethernet cable connected to the unit. 

Could you take a close up picture of the top and the bottom of the board and post here? I could then see if I can spot anything?

 

PeterN's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Please find attached pictures as requested. You may ignore soldering job on 1 ohm resister, it was damaged and has been temporarily fixed and is testing ok . I also added picture of my emonGLCD monitoring total energy use.  Cheers Peter

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Hi Peter,

You aren't alone here. I'm still trying to work through potential issues.

Trystan suggested...

 

Could you try removing the line rf12_initialize(MYNODE, freq,group);  to see whether its the rfm12 chip thats causing the issue? 

Does more get printed to the serial window?

but there is no change at all.

There's a distinct lack of any activity really, other than the LEDs indicating Tx and Rx when uploading the sketch. Also, hitting the reset button displays 

'[webClient]'

and that's it.

IS there a difference in batch numbers of parts / kits? version differences? 

 

Jonathan

PeterN's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

As suggested I changed code to:

//rf12_initialize(MYNODE, freq,group);

com port result:

DHCP status: 0
2 {rf_fail:1}
DHCP status: 0
2 {rf_fail:1}}
DHCP status: 0
2 {rf_fail:1}
DHCP status: 0
2 {rf_fail:1}
DHCP status: 0
2 {rf_fail:1}
DHCP status: 0
2 {rf_fail:1}
DHCP status: 0
2 {rf_fail:1}

 

I have attached some traces I completed on home router today. It seemed to connect on first connection and nanoderf power on, but after a few minutes was gone from router list hostname list (see attached tests info), I couldn't repeat. 

If any information in my document is sensitive or I shouldn't have posted for security reasons e.g. IP addresses please x out or delete whole doc. once read.

Not sure how to answer second question on batch numbers????

Thanks again for support

Peter

P.S. I have ordered new kit from shop yesterday so this should help with finding cause, although my instincts say assembly.
 

prensel's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Having similar problems with my newly build nanodeRF.

The RF part works but the ethernet part doesnt initialize at all.

I did try some general EtherShield and EtherCard examples but still the same problem.

Whereas the same example EtherShield sketch on my OpenKontrol gateway with ENC ethernet works flawless.

On the NanodeRF with the EtherShield testDHCP sketch the green led is on and the yellow blinks a couple of time.

 

 

 

oetomcat's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Similar (or same) problem here: ether.begin seems to hang and so do EtherCard examples. If i remove ethernet code, rx from emontx works.

ianjm's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

I seem to have the same problem

EmonTX and emonGLCD both built and working well

NanodeRF built - have checked that it is receiving data from emonTX - but cannot bet anything from the Ethernet.

Need some Help please

Ian

hopslink's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

There seem to be a lot of networking issues in the last 2 weeks. This suggests a process error somewhere, and not individual construction errors.

The most likely place for such errors to creep in would be in software. To test this someone with a working installation could upgrade their arduino libraries and recompile. Alternatively people with issues could use Git to pull older versions of the libraries for their arduino setups. The ethercard library has seen some changes over the last few weeks so would seem the most likely candidate.

 

PeterN's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Tried ethershield sketch

result on com port:

Init done
ENC28J60 version 0
Failed to access ENC28J60#

the next step was to prove wiring to ENC28J60 chip pins. See attached picture and document. I am a bit confused as I couldn't prove continuity on any wires from RJ45 cable to enc28j60.

Note as declared in earlier reply  I damaged the 1 ohm R, in attached picture it was replaced with wire on rear of pcb.

 

TrystanLea's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

I will look into this today, build up another nanodeRF to see if I can replicate the issue. Are we in agreement that the problem shows up at the point: 

if (ether.begin(sizeof Ethernet::buffer, mymac) == 0) {

printing out:

Serial.println( "Failed to access Ethernet controller");

PS: on the note on firmware, I uploaded a new sketch to my home nanodeRF yesterday with the latest EtherCard library and had no trouble (its been posting all night) so I do think its unlikely to be a software issue.

PeterN's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

It would be great if you could  complete some continuity tests from RJ45 to DIL  (ENC28J60) and recommend some test. As stated above I couldn't  prove continuity which was strange.

Thanks

Peter

oetomcat's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Yes, ether.begin seems to hang for me.

Might be not related at all, but i had some troubles with an Arduino EthernetShield, which was hanging at init as well and needed some code changes to work with Arduino 1.0 on Linux x64.

TrystanLea's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Hello all, good news, the problem is fixed!! I've spent all day at it, built up two nanodeRF's that did replicate the exact problem of the ethernet chip not initializing, in the end the problem was the voltage regulator used by the ethernet chip. It was not supplying enough current, the supply voltage on the ethernet chip was 2.6v (pin 28) instead of the required 3.3v.

Swapping the voltage regulator for one from a different batch solved the problem (thanks to Ken for the final insight). So it looks like we have been sent a faulty batch of voltage regulators, our apologies for not spotting this sooner!

If you have this problem we will send out two replacement regulators free of charge, one for the ethernet chip and the other for powering the atmega, it may be ok to leave the atmega voltage regulator in place as the current requirements are not as high and it seems to work fine here without swapping it out, but we will send two out so that you can swap out as you prefer.

Glyn has created a free voltage regulator entry in the online shop, just quote your previous order id when ordering and we will send them out. http://shop.openenergymonitor.com/nanoderf-mcp1702-voltage-regulator-replacement/

 

 

prensel's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Confirmed !

Mine does work now after swapping the 1702 :-)

 

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Fabulous,

Have just ordered my replacements. Sincere thanks to everyone who has contributed to this thread and offered their advice and thoughts. Together we have resolved the issue, so big thanks to Trystan for working so quickly and taking a 'day out' to resolve it.

Looking forward to getting mine up and running shortly.

Very Happy of London.

Jonathan

dave.s's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Have you been assembling your own kits, or are you just reselling the nanode.biz kits?
I bought a NanodeRF from there at the point you were out of stock, although I've got issues with the RF12 rx being very flaky rather than ethernet failing to start. Highly probably the two are unrelated, but wanted to check. I just haven't had the time to investigate the fault yet.

glyn.hudson's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

We don't re-sell Nanode.biz kits, but we do obtain the barebone kit (PCB + passives) from the same source. The emonBase NanodeRF kit is slightly different to the NanodeRF sold through Nanode.biz. Differences are noted on the produce page. Basically things which are not needed for emonBase opperation like the RTC are not included. 

If you are experiencing problem with a Nanode.biz kit then you could contact them or post on the google group. It sounds like your problems are unrelated to this issue.  

dave.s's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Thanks Glyn. I knew it was a long shot, but thought it was worth checking. I'll do some more testing and post on their group.
It looks like their kit is now identical to yours - the RTC, EEPROM and uSD card slot are optional extras if you fancy soldering SMT devices :-o

Keep up the good work - it really is appreciated (and I will feed back once I've got stuff up and running fully!)

wiz2003's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Thank you....

Just ordered the replacement regulators for my two dodgy nanodes......

 

Geoff

PeterN's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Two voltage regulators arrived today, now installed and working great. The support and activity while this issue was investigated was very impressive. Special thanks to Glyn for quick response.

Cheers

Peter

jonathanfurness's picture

Re: NanodeRF Ethernet problems, please help! - RESOLVED

Yep, same service here too. Next day delivery of two regulators. I replaced both, and Nanode RF has sprung into life and is now posting data to emoncms. 

Now need to catch up in the forums with how to improve RF reliability. Otherwise working perfectly.

Comment viewing options

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