The Yun has been configured as per the getting started guide to connect to my wireless network. I can ping it from my development PC as well as SSH into it. If I connect the Yun via USB I can program it OK. I've currently tried out the 'console' sketch in the getting started guide. If I SSH using Putty and then Telnet into localhost it works perfectly.
But Yun is coming up in the IDE Port menu which should allow me to use the port monitor as well as program the Yun wirelessly.
I'm running IDE 1.6 on a Windows 7 laptop connected wirelessly to my network.
But Yun is coming up in the IDE Port menu which should allow me to use the port monitor as well as program the Yun wirelessly.
I'm running IDE 1.6 on a Windows 7 laptop connected wirelessly to my network.
@muzamil110,
your version 1.6 is brand new. Just out a few days. I assume there are no problems with the "network console". You should be able to see it under Tools->Port->Arduino {your_arduino_IP} (Arduino Yún)
Next to test use use a sketch to text the network console. In your IDE you will find: File->Examples->Bridge->ConsoleAsciiPixel - turns on LED #13
or File->Examples->Bridge->ConsoleAsciiTable - downloads ASCII table from internet
i am still unable to see my arduino ip address in port menu .i have tried it in different wifi networks and have multiple times reinstall IDE(with different versions) but still result is non.
Is your Yun and computer on the SAME network segment? (Both on the same wireless or both on the same wired network?) If you have to go through any routers, bridges, or different access points, the network address of the Yun won't show up on the IDE port menu. The Yun sends out broadcast messages that the IDE needs to receive, and they must be on the same physical network. For example, with my computer on the wired network, and Yun on wireless, it doesn't show up even though they are on the same logical network, because the wireless access point doesn't allow broadcasts to cross over from the wireless to wired network segments.
ShapeShifter:
Is your Yun and computer on the SAME network segment? (Both on the same wireless or both on the same wired network?) If you have to go through any routers, bridges, or different access points, the
::::SNIP::::
@ShapeShifter,
I had a thought after reading your post. I thought perhaps the port is being blocked by the router. This is fairly uncommon wifi problem - but it is common in public wifi environments, like Mcdonalds, Starbucks, & Burger King. It's possible his router is blocking the IP, if it is trying to use a port that is blocked. (Note: I do not recall the port number for IDE console.)
@muzamil110,
I think ShapeShifter explains you must be on same network. So the last question is: Can you check the router to see if any ports are being blocked? I found the old message thats says port 5353 could be the problem.
jessemonroy650:
So the last question is: Can you check the router to see if any ports are being blocked?
If he has to go through a router to get from his PC to the Yun, he will never see the Yun show up in the IDE menu, regardless of which ports he opens. The Yun sends out a broadcast message identifying itself, and the IDE sees this broadcast and adds the Yun to the IDE menu. For it to show up, the broadcast must be received by the IDE, and broadcasts are not forwarded through any routers or bridges. If there is a router, and you must go through it to get to the Yun, you are out of luck.
I found the old message thats says port 5353 could be the problem.
That looks to be a discussion about opening the port on the firewall on his local computer. The broadcast was making it to his computer, but his anti-virus sofware was blocking it. It's a good thing to check, but the important detail is that it's on the local computer, not the router.
muzamil110:
it doesn't show IP in IDE port menu that's why i'm unable to load sketch remotely.
Even if it doesn't show up on the IDE menu, you can still access the Yun directly by typing its name or IP address in a web browser, right? (If you can't, then don't even worry about it showing up on the IDE until you can get this basic level of connectivity.) Open the web interface to your Yun, log in, and at the bottom of the first welcome screen there is a section to upload your sketch -- find the compiled .HEX file for your project, open it with the browser, and click the upload button. This will load your sketch over the network, but it won't automatically copy associated files that may be in a www folder, you will have to do that manually. (If you don't see the load sketch section on the web page, upgrade your Yun's firmware, that feature wasn't in some of the old versions.)
If he has to go through a router to get from his PC to the Yun, he will never see the Yun show up in the IDE menu, regardless of which ports he opens. The Yun sends out a broadcast message identifying itself, and the IDE sees this broadcast and adds the Yun to the IDE menu. For it to show up, the broadcast must be received by the IDE, and broadcasts are not forwarded through any routers or bridges. If there is a router, and you must go through it to get to the Yun, you are out of luck.
Oh, it was not clear to me. Thanks
But what could be the Problem, when sometimes the Yun is selectet in the IDE by the PORT Menu-Point and sometime not? I think my IDE Version is 1.5.8.
Perseus01:
But what could be the Problem, when sometimes the Yun is selectet in the IDE by the PORT Menu-Point and sometime not? I think my IDE Version is 1.5.8.
Unfortunately, I'm in the same boat as you: sometimes it shows up on the Port menu, sometimes it doesn't. I don't have a solution.
ShapeShifter:
::::SNIP::::
That looks to be a discussion about opening the port on the firewall on his local computer. The broadcast was making it to his computer, but his anti-virus sofware was blocking it. It's a good thing to check, but the important detail is that it's on the local computer, not the router.
::::SNIP::::
@ShapeShifter,
I could be wrong, but checking the port on the router is one more checkbox - worth looking at. I've seen problems where router was blocking IP ports on a local network. It all depends on how network traffic is routed.
Now that I have IDE 1.6.0 working correctly on my system, I have noticed that the IP address shows up every so often in the tool port menu. I do not have BonJour service on my system. So the automatic detection of the IP address should not happen. I do have the Yun set with a static IP address. I also have the Yun listed in my "hosts" file. It helps when I want to connect to the Yun either by ssh or the Luci web page via a web browser.
Today, I did an experiment. I powered my Yun on and waited until the white USB light came on and the blue wifi light showed wifi activity. I manually edited the preferences.txt to have the IP address under the serial.port and serial.port.file entries. I open the IDE and the tool port menu did not show the IP. I waited 15 minutes and opened the IDE and checked the tool port menu. To my surprise the Yun IP address was shown and checked as the active port. Yes, I could upload a complied sketch.
My guess as how this happens is ARP, Address Resolution Protocol, which is part of the TCP/IP services. ARP is the service that matches internet address and local hardware (MAC) addresses. I suspect that the system network service is running ARP in the background. After a time, the Yun is discovered and its address is made known. As I said this is a guess since I am not Network expert.
I thought I would share this. Hopefully, it helps.
JustGreg:
Now that I have IDE 1.6.0 working correctly on my system, I have noticed that the IP address shows up every so often in the tool port menu. I do not have BonJour service on my system. So the automatic detection of the IP address should not happen.
I'm not a network expert either, but I think you might have a little flaw in this part of your logic.
I believe Bonjour (Apple's name for mDNS) is only used to perform the zero configuration name resolution that is used to translate an outbound request of the form "arduino.local" to an IP address. It comes into play only when you are trying to access your Yun by name when loading a web page or using SSH, SCP, or something like that.
Getting the IP address to show up on the IDE menu uses another method, I believe the Yun periodically broadcasts announcements of its presence, the IDE sees them, and adds the Yun to the list. I always thought this was a separate process, but now that I've typed it out, it sounds suspiciously like the same type of mechanism used for the mDNS resolution, so now I'm not sure...
@ShapeShifter, if there is something that you want me to try, please tell me. A resolution for this will reduce the number of newbie posts on missing IP address in the port menu.
I've got nothing. I'm plagued with my Yuns randomly appearing and not appearing on the IDE menu. But to be honest, it's not my highest priority to address as they always show up when the USB is plugged in, and that works for development. Now, when I eventually get my Yuns installed in various locations and I have to keep going to them for maintenance that I could do over the network, my priorities may change!