Originally posted by swanie2000
View Post
Announcement
Collapse
No announcement yet.
Help getting started with ARDUINO - Ethernet Sheild
Collapse
X
-
Well back at it again tonight. It seems my lucky connected message in the Arduino plugin was short lived. Even though it said it was connected, when I looked in my router for the IP address I assigned to the Arduino board, it was not there. When I looked back at the plugin, the connection now has an error.
I assign everything on my network a static IP address, by telling the router to reserve or save the IP address for a given devices MAC address.
I do not know much about how MAC address's are created, so I wonder if the MAC address Homeseer created is correct? (00:aa:bb:cc:de:01) Maybe I need a better MAC address, more specific to the Ethernet Shield? Also, I just picked port 9000, maybe that is too far off base as well?
Maybe Greig will be able to shed some light on these settings? I think I read somewhere where it said the newer version of the software had better fixes for connection issues. Maybe I am now fighting another know bug, with the older software?
Michael
Comment
-
Originally posted by swanie2000 View PostWell back at it again tonight. It seems my lucky connected message in the Arduino plugin was short lived. Even though it said it was connected, when I looked in my router for the IP address I assigned to the Arduino board, it was not there. When I looked back at the plugin, the connection now has an error.
I assign everything on my network a static IP address, by telling the router to reserve or save the IP address for a given devices MAC address.
I do not know much about how MAC address's are created, so I wonder if the MAC address Homeseer created is correct? (00:aa:bb:cc:de:01) Maybe I need a better MAC address, more specific to the Ethernet Shield? Also, I just picked port 9000, maybe that is too far off base as well?
Maybe Greig will be able to shed some light on these settings? I think I read somewhere where it said the newer version of the software had better fixes for connection issues. Maybe I am now fighting another know bug, with the older software?
Michael
Arduino board 1 is 192.168.2.11 port 55110
Arduino board 2 is 192.168.2.12 port 55120
Arduino board 3 is 192.168.2.13 port 55130
Arduino board 4 is 192.168.2.14 port 55140
Those low IP numbers are well outside the DHCP pool and DHCP assignments.
There is no reason they need to have different ports, but I decided on this numbering convention from the beginning and it has worked well. I never had connection issues with 1.0.0.36, but there are some newer betas that are improved, but mostly with serial connections.
Using that methodology and a spreadsheet tracking all IP assignments, either static or assigned through reservation, makes it nearly impossible for me to screw up and create an IP conflict.Last edited by randy; May 21, 2015, 09:05 PM. Reason: correction of statement regarding DHCP and ArduinoHS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by sparkmanHi Randy, one point of clarification, Arduino's themselves do support DHCP: http://www.arduino.cc/en/Reference/EthernetBegin
Cheers
AlHS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by rprade View PostI prefer DHCP reservations as well, but since the Arduino sketches provided by the plug-in do not support DHCP, any reservations you add to your router will have no effect. The MAC addresses as assigned will be just fine. Try to pick static IPs for your Arduinos that are outside your DHCP pool. I had some port issues early on with the default port, so I decided to use 55000 range ports, since there is not much at all going on up there. For example, my DHCP pool of addresses are 192.168.2.200-254, my DHCP reservations are in blocks based upon equipment type from 192.168.2.20-199. All of my static assigned devices that do not support DHCP are 192.168.2.2-19.
Arduino board 1 is 192.168.2.11 port 55110
Arduino board 2 is 192.168.2.12 port 55120
Arduino board 3 is 192.168.2.13 port 55130
Arduino board 4 is 192.168.2.14 port 55140
Those low IP numbers are well outside the DHCP pool and DHCP assignments.
There is no reason they need to have different ports, but I decided on this numbering convention from the beginning and it has worked well. I never had connection issues with 1.0.0.36, but there are some newer betas that are improved, but mostly with serial connections.
Using that methodology and a spreadsheet tracking all IP assignments, either static or assigned through reservation, makes it nearly impossible for me to screw up and create an IP conflict.
Surprisingly enough, I actually understand what you are telling me.
My router has a screen where it shows DHCP connected clients. This is where I was looking for my Arduino. I now understand that the static IP address is not DHCP, so I guess it makes since that it will not show up there.
I already do have a spreadsheet, listing out all my reservations of all the clients I currently have. Very handy cheat sheet. I like the way you separated the static IP address, from the DHCP address, I will adopt a similar setup.
Also, I had a 12vdc power supply plugged into the Arduino when it lost connection. I removed it, and put it back on 5vdc. So far, the connection has been stable for a couple of hours. Hopefully it will stay connected. I plan on interfacing a relay board to it this weekend, but want to have a proven stable connection, before I move forward.
Another thing, yesterday I was using version 1.5.6-r2 BETA. I could not find the actual 1.5.6-r2 version that is not BETA. The instruction PDF doesn't say BETA, so maybe that is where I was going wrong?
Thanks again for your help. Post back here when you hear from Greig.
Comment
-
Originally posted by swanie2000 View Post
Also, I had a 12vdc power supply plugged into the Arduino when it lost connection. I removed it, and put it back on 5vdc. So far, the connection has been stable for a couple of hours. Hopefully it will stay connected. I plan on interfacing a relay board to it this weekend, but want to have a proven stable connection, before I move forward.
Another thing, yesterday I was using version 1.5.6-r2 BETA. I could not find the actual 1.5.6-r2 version that is not BETA. The instruction PDF doesn't say BETA, so maybe that is where I was going wrong?
Thanks again for your help. Post back here when you hear from Greig.
I think all the 1.5.X versions were only released as betas. The first production after 1.0.5 was 1.6.HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
FWIW, I have a number of different Mega2560 clones outfitted with ethernet shields, and I haven't noticed any conflict between the ethernet shield and USB. On the other hand, I have noticed conflicts between the ethernet shield and other SPI devices, and this is a known bug whereby the ethernet shield does not release the SPI bus when it should.
Comment
-
Ok
I think there is a lot of confusion in here. I apologise for not stepping in sooner.
The Arduino Libraries work and are tested with IDE version 1.5.6-r2 BETA.
swanie2000,
You can have both Ethernet and USB plunged in at the same time as the Sketch will only use the selected connection method.
I see no reason for your sketch you uploaded to the board to not work. Can you ping the board? If not can you run one of the default ethernet sketches and try and ping the board again to see if it is my sketch or a network/board problem.
If you are still having problems email me and I will send you the latest Beta that has a different connection routine.
Greig.Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
Scripts = Various
Comment
-
Originally posted by enigmatheatre View PostOk
I think there is a lot of confusion in here. I apologise for not stepping in sooner.
The Arduino Libraries work and are tested with IDE version 1.5.6-r2 BETA.
swanie2000,
You can have both Ethernet and USB plunged in at the same time as the Sketch will only use the selected connection method.
I see no reason for your sketch you uploaded to the board to not work. Can you ping the board? If not can you run one of the default ethernet sketches and try and ping the board again to see if it is my sketch or a network/board problem.
If you are still having problems email me and I will send you the latest Beta that has a different connection routine.
Greig.
I just tried again, reinstalling 1.5.6-r2 beta with all of the same errors. I sent you an email with the errors, .ino and Libraries attached. Maybe it is something we are doing wrong, but I cannot get 1.5.6-r2 to load a sketch without the attached compilation errors. It all works fine with 1.0.5-r2.Attached FilesHS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by mihaium View PostYou have the W5100 Enthernet shield? The Arduino plugin work only with this shield.
Is right, Greig?
Greig.Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
Scripts = Various
Comment
-
Originally posted by swanie2000 View PostThanks Randy!
After deleting everything, and then downgrading even further than the instructions suggested, to VERSION 1.0.5-r2 I finally got the software to compile a new homeseerboard1 config file without any errors.
Of course not at first...
I still had to remove the USB power from the computer and just use an USB phone charger to power the ARDUINO MEGA board. (just like you thought)
After that, I plugged it into my network, and within a few seconds, I got it to connect in Homeseer!
I would have never considered downgrading the version of software to a point below the suggestion in the instruction pdf file.
Thanks again, it's late, got to work in the morning. I will keep plugging away with this stuff tomorrow.
MichaelHS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by JasonCreager View PostFYI, the Help file now states:
"Note: Please only use version 1.6.4 as this is what has been tested and newer builds may brake things."HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
Comment