Arduino Forum

Products => Arduino Yún => Topic started by: wildpalms on Sep 15, 2013, 11:09 am

Title: Seeing Yun in IDE Port menu
Post by: wildpalms on Sep 15, 2013, 11:09 am
My new Yun arrived yesterday and I'm just getting started. I've mucked around with Arduino a couple of years but not so much with Linux.

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.

What I can't see is the Yun coming up in the IDE Port menu which should allow me to use the port monitor as well as program the Yun wirelessly. The only thing the guide say they must be on the same network which they surely are.

I'm running IDE 1.5.4 on a Windows 8 laptop connected wirelessly to my network. I'm sure I'm just missing something simple in the setup.

Dave
Title: Re: Seeing Yun in IDE Port menu
Post by: federicofissore on Sep 15, 2013, 12:33 pm
Hi

Could this be related with some firewall/antivirus settings? (Do you have an antivirus? Which one?)

Can you check if port 5353 UDP is blocked?
Title: Re: Seeing Yun in IDE Port menu
Post by: wildpalms on Sep 15, 2013, 01:34 pm
Norton 360 which I installed some time ago.

Added a new traffic rule allowing to/from traffic from any computer on the same subnet using UDP and remote port 5353
Now works as expected. The Norton 360 rules make it hard to see what is what as they use some fancy GUI and you have to burrow down each rule.

An even simpler way was to add a rule to Norton 360 for arduino.exe to allow traffic to/from any computer on the same subnet using TCP & UDP on any port local or remote.

Many thanks for pointing me in the right direction Federico.

Dave
Title: Re: Seeing Yun in IDE Port menu
Post by: federicofissore on Sep 15, 2013, 05:52 pm
Really happy you've found out the reason! I'll remember this post for the users to come
Title: Re: Seeing Yun in IDE Port menu
Post by: tobie on Oct 05, 2013, 03:08 pm
Hi, I'm seeing a similar issue in OS X IDE, the yun is not listed in ports.

I've checked firewall settings and can see that Arduino 1.5 allows incoming connections.

Like the OP, SSH sessions are fine and the web admin is working as expected.

Any ideas?
Title: Re: Seeing Yun in IDE Port menu
Post by: federicofissore on Oct 09, 2013, 09:14 am
Try running the wifistatus example: are the Yun and your mac on the same network? (like both on 192.168.10.x with a different x for each of them?)
Just in case: the port needed by the IDE to show the yun as a "network" port is 5353 UDP
Title: Re: Seeing Yun in IDE Port menu
Post by: canphaz on Oct 18, 2013, 10:47 am
I've also found that very often the Ports menu is not refreshed when clicked and displayed. Usually, the menu is updated in the background somehow, and then shows the actual available Ports after opening the Ports menu for a second time. Think this is a bug in the Beta Arduino IDE.
Title: Re: Seeing Yun in IDE Port menu
Post by: federicofissore on Oct 18, 2013, 04:27 pm
The port menu is updated in two different ways: serial ports are updated every time you open the tools menu, network ports (ip addresses) are updated in background
That's a requirement due to the way the IDE discovers available yuns on the network.

If you want to go deeper: protocol is called ZeroConf and has two implementations, one from Apple called Bonjour (also available on Windows) and one for Linux called Avahi. It uses port 5353 UDP. A yun announces itself on the network broadcasting a packet, and it does that like every one second. UDP doesn't have any ways of acknowledging the reception of that packet. So the yun acts as a lighthouse: sends signals of its presence, hoping for something to listen, but never knowing if something actually listened
Title: Re: Seeing Yun in IDE Port menu
Post by: federicofissore on Oct 18, 2013, 04:30 pm
And FYI the IDE uses a pure java (so cross platform) implementation called jmdns
Title: Re: Seeing Yun in IDE Port menu
Post by: gfakiridis on Jan 13, 2014, 11:28 pm
I have disabled the antivirus and the windows 7 firewall but still IDE can see my arduino YUN. I can ping it, I can be connected with it via usb and telnet via IP and it is on the same network with the  pc.

Can I manually add my arduino yun IP at the IDE port menu?
Title: Re: Seeing Yun in IDE Port menu
Post by: federicofissore on Jan 20, 2014, 09:51 am
Currently, no. Can you add an issue on the IDE github? https://github.com/arduino/Arduino/issues?state=open
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Jan 20, 2014, 04:38 pm
My 2 cents;-

Yun in IDE Port menu need to meet 2 conditions:
1. Yun Bonjour service is working.
2. Windows' UDP port 5353 is open.

Download Bonjour Browser first.

http://hobbyistsoftware.com/bonjourBrowser (http://hobbyistsoftware.com/bonjourBrowser)

(http://s29.postimg.org/5lyldskg7/Bonjour_Browser2.jpg)

If Arduino no show, please reinstall Bonjour for windows.

1.   From the Start menu, select Control Panel.
2.   If you are using Windows XP, double-click Add / Remove programs.
3.   If you are using Vista/Windows 7/Windows 8 , double-click Programs and Features.
4.   Locate Bonjour list, select it and click Remove.
5.   In a Web browser, access the site http://support.apple.com/kb/DL999 (http://support.apple.com/kb/DL999)
6.   Download and install Bonjour for Windows on your Windows system.
7.   You will be prompted to install on a desktop shortcut to the wizard for adding a printer.
8.   If you choose No, you can still access the wizard.
9.   Click on All Programs.
10.   Select Bonjour, Bonjour Printer Wizard and then choose from the menu.

after confirm Bonjour is working restart arduino IDE.
Title: Re: Seeing Yun in IDE Port menu
Post by: gfakiridis on Jan 29, 2014, 09:54 pm
Problem solved after installing Bonjour Browser 2 times.

Thank you very much for your support.
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 03, 2014, 03:25 pm
The Arduino IDE itself is written in Java, and it can communicate to the Arduino via the  Java library.
Sometime you need reinstall  Java runtime as well as Arduino IDE.

1.   From the Start menu, select Control Panel.
2.   If you are using Windows XP, double-click Add / Remove programs.
3.   If you are using Vista/Windows 7/Windows 8 , double-click Programs and Features.
4.   Locate Java list, select it and click Remove.

Manually download and install Java for my Windows computer (https://www.java.com/en/download/help/windows_manual_download.xml)

Java Downloads for All Operating Systems (https://www.java.com/en/download/manual.jsp)

5.   Locate Arduino list, select it and click Remove.

Download the Arduino Software (http://arduino.cc/en/main/software)
Title: Re: Seeing Yun in IDE Port menu
Post by: Dernhelm on Feb 07, 2014, 01:07 pm
hi there, i have discovered that this issue is particularly problematic when the wifi signal is "weak" or average at best (like 2 bars), can anyone verify this? on stronger signals (3-5 bars) i don't encounter this problem of not seeing the YUN ip address in the IDE Ports menu.

i have concluded that it is indeed an IDE problem because i can ping the YUN's ip add as well as connect to it via the browser but no such luck with the IDE, i'd have a hard time uploading sketches to it.

i hope there is a way to resolve this. sonnyyu, i have done everything you instructed but no improvement :(
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 07, 2014, 03:57 pm
First test the system with ethernet connection. If it works then wifi is the problem.
Second since Yun use Wifi 2.4 Ghz, it could be very crowd, use android phone/pad  by play store download application wifi Analyzer. Then find out unuse channel switch to. ( at your router)

http://forum.arduino.cc/index.php?topic=203676.msg1503265#msg1503265 (http://forum.arduino.cc/index.php?topic=203676.msg1503265#msg1503265)

(http://s30.postimg.org/qhldvppg1/wifi.jpg)


Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 09, 2014, 07:42 pm
To confirm wifi Signal level:
at linino console;-

Code: [Select]
/usr/bin/pretty-wifi-info.lua

where give you wifi info

Code: [Select]
Current WiFi configuration
SSID: TP-LINK_2.4GHz
Mode: Client
Signal: 100%
Encryption method: WPA PSK (CCMP)
Interface name: wlan0
Active for: 28 minutes
IP address: 192.168.0.103/255.255.255.0
MAC address: 90:A2:DA:F0:06:76
RX/TX: 914/268 KBs


or you could use Arduino IDE, at Example->Bridge->WiFiStatus upload Sketch then open serial monitor to view.



Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 09, 2014, 07:56 pm
Sometime you will have difficulty to access Arduino via "http://arduino.local/" even Arduino is working fine at ip address.  in other word you could access Arduino via http://ipaddressofarduino/.  To find out ipaddressofarduino:

Using  android phone/pad  via play store download application Bonjour Browser. It will give you Arduino IP address.

(http://s29.postimg.org/huw0tzavb/arduinoip2.png)


Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 14, 2014, 10:50 pm
An other way to get ip address of Ethernet via arduino ATmega32u4 sketch.

Arduino IDE->Examples->Bridge->YunSerialTernimal, upload it to ATmega32u4, open Arduino  IDE-> Tools->Serial Monitor, then type "~2" ( without quotation marks) , You will get Linino console. type "ifconfig"  ( without quotation marks) to get all the ip address.

To reset Yun back  to factory default,    type "/usr/bin/reset-to-factory-anyway" ( without quotation marks). at Serial Monitor
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 14, 2014, 11:10 pm
During Wifi setup stage the wifi Signal level might not be stabilize. Disable wifi-live-or-reset  might help.

Code: [Select]
nano /etc/rc.local

Code: [Select]
#wifi-live-or-reset
exit 0





Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 16, 2014, 07:06 am
Some 32u4 USB port is missing, here is the reason:
The 32u4 at Yun creates a serial instance whenever it runs its bootloader. The board is an instance of USB's Connected Device Class (CDC) driver. if bootloader is missing then USB port is gone.

Here is solution:


You need reflash correct bootloader.

nano /usr/bin/run-avrdude
Change the efuse value from FB to CB

Code: [Select]
#!/bin/sh

echo 1 > /sys/class/gpio/gpio21/value
avrdude -c linuxgpio -C /etc/avrdude.conf -p m32u4 -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xCB:m -Uflash:w:$1:i $2
echo 0 > /sys/class/gpio/gpio21/value


1. flash bootloader only
Code: [Select]
/usr/bin/run-avrdude    /etc/arduino/Caterina-Yun.hex


2. flash  sketch only ( save memory)
Code: [Select]
/usr/bin/run-avrdude    /tmp/Blink.cpp.hex


3.  flash  sketch+bootloader  
Code: [Select]
cd /tmp
/usr/bin/merge-sketch-with-bootloader.lua  /tmp/Blink.cpp.hex
/usr/bin/run-avrdude    /tmp/Blink.cpp.hex


Blink.cpp.hex  's size is  14450, the new Blink.cpp.hex after merge is 25372. Blink.cpp.hex is from blink example.



1. flash bootloader only will do trick.
Title: Re: Seeing Yun in IDE Port menu
Post by: anjoze on Feb 16, 2014, 03:39 pm
Can you please give more detailed instructions to flash bootloader only?
Thank you.
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 16, 2014, 06:57 pm
Plan A/Using linino:

Change the efuse value from FB to CB
Code: [Select]
nano /usr/bin/run-avrdude

Code: [Select]
#!/bin/sh

echo 1 > /sys/class/gpio/gpio21/value
avrdude -c linuxgpio -C /etc/avrdude.conf -p m32u4 -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:[color=red][b]0xCB[/b][/color]:m -Uflash:w:$1:i $2
echo 0 > /sys/class/gpio/gpio21/value


flash bootloader only

Code: [Select]
/usr/bin/run-avrdude    /etc/arduino/Caterina-Yun.hex

Plan B/using an external programmer:

https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader/what-is-a-bootloader (https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader/what-is-a-bootloader)
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 16, 2014, 07:03 pm
For new install system only! make sure Yun show up at COM & LPT.

(http://s8.postimg.org/lxxb3bo45/devisedriver.jpg)

If it is not there then install the driver.


i just looked it up on google
code 28 mean the drivers are not installed meaning the drivers did not install during setup
heres what you do

1.go to contorl panel -> system and secrity -> under system there is Device manager Click it
2. under other devices there maybe two or more devices without drivers for the arduino there is only one device
its a serual port i think i can't remember the name of it anyways
3. right click the device that you've want to install the driver -> properites -> driver tab -> update driver -> browse my computer manualy -> let me pick the driver -> click have disk -> browse
4. browse the install dir
for 64-bit it maybe in %systemdrive%/program files/arduino/drivers/arduino.inf or in %systemdrive%/program files(x86)/arduino/drivers/arduino.ini
5. click arduino.inf(arduino) and press ok and ok then chose your arduino type and then press next
6. it will install the driver without error
if it has an error post the error code to the forum
7.no error then your done!



Some time you might need disable windows driver signature enforcement at windows 8 or later.  I wish in future Arduino team sign the digital signature on driver. ;)

Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 18, 2014, 06:07 pm
Understanding Wifi Signal Strength:
Wireless signal strength is traditionally measured in either percentile or dBm (the power ratio in decibels of the measured power referenced to one milliwatt.)  The level of 100% is equivalent to the signal level of -35 dBm and higher, e.g. both -25 dBm and -15 dBm will be shown as 100%, because this level of signal is very high. The level of 1% is equivalent to the signal level of -95 dBm. Between -95 dBm and -35 dBm, the percentage scale is linear, i.e. 50% is equivalent to -65 dBm.

Get Wireless signal strength in dBm at Yun:

Code: [Select]
iwconfig 2>&1 | grep 'Signal level'
Link Quality=70/70  Signal level=-37 dBm
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 18, 2014, 06:42 pm
A lot of unstable Wifi connection is related with Wifi Signal Strength, say Signal Strength is 50%/-65 dBm, to make Signal Strength -35 dBm all you need is either one  30 dBi antenna  at Yun or at Router, or even 15 dBi antenna  at Yun  plus 15 dBi antenna  at Router.

The reason external antenna is needed is:



http://forum.arduino.cc/index.php?topic=188976.msg1580756#msg1580756 (http://forum.arduino.cc/index.php?topic=188976.msg1580756#msg1580756)
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 18, 2014, 06:57 pm
The method  to boost  wifi signal strength:



http://en.wikipedia.org/wiki/Wireless_access_point (http://en.wikipedia.org/wiki/Wireless_access_point)

http://thewirecutter.com/reviews/best-wi-fi-extender/ (http://thewirecutter.com/reviews/best-wi-fi-extender/)

http://wi-fi-booster-review.toptenreviews.com/ (http://wi-fi-booster-review.toptenreviews.com/)






Title: Re: Seeing Yun in IDE Port menu
Post by: anjoze on Feb 18, 2014, 09:47 pm
Thanks for your help but I think my Yún is broken...
It should detect something when I connect it to Windows, but no.
Probably is the Micro USB connector that doesnt work.

When I run:
Code: [Select]
/usr/bin/run-avrdude
The output is:
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.
avrdude done.  Thank you.

Code: [Select]
/etc/arduino/Caterina-Yun.hex
-ash: /etc/arduino/Caterina-Yun.hex: Permission denied
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 19, 2014, 04:10 am
run

Code: [Select]
/usr/bin/run-avrdude    /etc/arduino/Caterina-Yun.hex

in one line.
Title: Re: Seeing Yun in IDE Port menu
Post by: anjoze on Feb 19, 2014, 11:58 am
Yes, I tried it and gives the same error message
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 19, 2014, 03:48 pm
Use External Programmer.

http://forum.arduino.cc/index.php?topic=209587.msg1545681#msg1545681 (http://forum.arduino.cc/index.php?topic=209587.msg1545681#msg1545681)
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Mar 03, 2014, 05:58 pm
Many ISPs started the bad practice of DNS hijacking on non-existent domain name (.local is  non-existent domain to ISP) for making money by displaying the internet advertisements.

http://forum.arduino.cc/index.php?topic=222223.msg1616995#msg1616995 (http://forum.arduino.cc/index.php?topic=222223.msg1616995#msg1616995)

If this is the case, you could not use  "http://arduino.local"  to access yun config page.

Code: [Select]
ipconfig /all

find  out which DNS server(s) you use.

Code: [Select]
opkg update
opkg install bind-dig


Test your DNS server.

Code: [Select]
dig @8.8.8.8 +short arduino.local

Code: [Select]


8.8.8.8  is Google's DNS,  no hijacking.

Code: [Select]
dig @209.18.47.61 +short arduino.local

Code: [Select]
198.105.251.210
69.16.143.110


209.18.47.6 is Time Warner's DNS, hijacking.

The work around:



Special thanks to chrisnet (http://forum.arduino.cc/index.php?action=profile;u=176071), noblepepper (http://forum.arduino.cc/index.php?action=profile;u=50370),Chagrin (http://forum.arduino.cc/index.php?action=profile;u=45219), PCWorxLA (http://forum.arduino.cc/index.php?action=profile;u=213939)
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Mar 13, 2014, 06:46 am
Background  Information:

Quote
.local From Wikipedia, the free encyclopedia

Networking device hostnames ending with .local are often employed in private networks, where they are resolved either via the multicast domain name service (mDNS) and/or local Domain Name System (DNS) servers. The implementation of both approaches on the same network can be problematic, however, so resolving such names via "unicast" DNS servers has fallen into disfavor as computers, printers and other devices supporting zero-configuration networking (zeroconf) have become increasingly common.


Microsoft recommendations:
The connection of Macintosh and Linux computers and/or zeroconf peripherals to Windows networks can be problematic if those networks include name servers that use .local as a search domain for internal devices. At one time, Microsoft at least suggested the use of .local as a pseudo-TLD for small private networks with internal DNS servers...


http://en.wikipedia.org/wiki/.local (http://en.wikipedia.org/wiki/.local)

It seem windows machine resolved .local  domain with DNS server first then mDNS, if DNS server resolved the IP  then It will be failed ( like Time Warner Cable DNS server hijacking .local  domain) . However if  local router as first DNS server which is DNS proxy  forwarding request to mDNS  or use Google DNS which fail to resolve IP falling back to mDNS.

I test Linux as well as Macintosh machine both working fine with Time Warner Cable DNS.
Title: Re: Seeing Yun in IDE Port menu
Post by: osuzer on Mar 13, 2014, 09:36 am
Using Donnectify can work for some of yours. For the questions like what is my arduinos ip address etc.. Also I see my Arduino in IDE only after I access it from browser via the address that I see from Connectify hotspot.

http://forum.arduino.cc/index.php?topic=223940.msg1632151#msg1632151 (http://forum.arduino.cc/index.php?topic=223940.msg1632151#msg1632151)
Title: Re: Seeing Yun in IDE Port menu
Post by: glenmeyerowitz on Mar 17, 2014, 05:19 am
I am having a similar problem to a few others...I am able to SSH into the board, see it in a browser at arduino.local/, and upload to the board over the USB cable. Unfortunately, the Yun does not show up in the Port menu in the IDE over Wifi. I have tried the different ideas posted earlier here to no avail.

I am running Arduino IDE 1.5.6-r2 and am on OS X 10.9.2. Any help would be greatly appreciated!

Glen
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Mar 19, 2014, 09:43 pm

I am having a similar problem to a few others...I am able to SSH into the board, see it in a browser at arduino.local/, and upload to the board over the USB cable. Unfortunately, the Yun does not show up in the Port menu in the IDE over Wifi. I have tried the different ideas posted earlier here to no avail.

I am running Arduino IDE 1.5.6-r2 and am on OS X 10.9.2. Any help would be greatly appreciated!

Glen


I have same Arduino IDE 1.5.6-r2 and  OS X 10.9.2, every thing is fine.

Quote
The Arduino IDE itself is written in Java, and it can communicate to the Arduino via the  Java library.
Sometime you need reinstall  Java runtime as well as Arduino IDE.


http://forum.arduino.cc/index.php?topic=188101.msg1574357#msg1574357 (http://forum.arduino.cc/index.php?topic=188101.msg1574357#msg1574357)

Update Apple Java 6.0 (http://support.apple.com/kb/HT5648)

Upgrade Java 7.0 (http://www.java.com/en/download/help/mac_install.xml)

Remove  Java 7.0 (http://www.java.com/en/download/help/mac_uninstall_java.xml)

Re install Arduino IDE as well.
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Mar 19, 2014, 11:08 pm


We could use sharing wifi connection over Ethernet.

http://www.countrymilewifi.com/how-to-share-computers-wifi-with-ethernet-devices.aspx (http://www.countrymilewifi.com/how-to-share-computers-wifi-with-ethernet-devices.aspx)

Sharing windows computers WiFi with other Ethernet Enabled Devices

http://www.mactip.net/share-internet-connection-mac/ (http://www.mactip.net/share-internet-connection-mac/)

Sharing Mac Wireless connection over Ethernet Enabled Devices

(http://s26.postimg.org/3uc221tw9/directconnect1_png_w_614_h_354.png)

Replace Pi to Yun.
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Mar 25, 2014, 04:03 am
When the Arduino Yun is first powered on, the Wifi will be starting in AP-Mode ("Access Point Mode") and the Yun creates a new wireless network on the IP range 192.168.240.0/24, and it will take 192.168.240.1 . If you scan for Wifi networks, you should see a new network with a SSID as Arduino Yun-XXXXXXXXXXXX , where XXXXXXXXXXXX is the MAC address of the Yun's Wifi interface. Once you connected to Yun, then could access at 192.168.240.1 or arduino.local.

(http://s26.postimg.org/r0wehh0ux/wireless.png)
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Mar 30, 2014, 10:04 pm
Stabilize network connection by use static ip address and ethernet  connection:

Code: [Select]
nano /etc/config/network

Code: [Select]
config interface 'wan'
       option ifname 'eth1'
       option 'proto' 'static'
       option 'ipaddr' '192.168.0.239'
       option 'netmask' '255.255.255.0'
option 'gateway' '192.168.0.1'
option 'dns' '8.8.8.8'


( change ip address/gateway to match with yours.)

http://forum.arduino.cc/index.php?topic=227693.msg1650457#msg1650457 (http://forum.arduino.cc/index.php?topic=227693.msg1650457#msg1650457)

Use Bonjour Browser to make sure Yun's bonjour service is up.

http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795 (http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795)

Use static ip with ethernet will fix both web control panel  error as well as dhcp error. to access web control panel by "http://192.168.0.239/"
Title: Re: Seeing Yun in IDE Port menu
Post by: roscoe on May 20, 2014, 11:49 pm
I have similar issues and have tried to read through this thread thread trying various things along  the way, but I'm feeling it's some other network straightforward issue, maybe.  Anyway my symptoms are :

1. On wifi I can access the yun config panel, use putty, use sFtp all fine
but the Yun doesn't appear on the Port menu.

2. On wifi using the suggested tools bonjour lists and shows the settings for the yun

3. If I connect my computer to ethernet whilst leaving yun on wifi and restart the yun magically appears on the IDE port menu.

The signal strength of the wifi is good at both the yun end and the laptop computer.

Any ideas?
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on May 21, 2014, 12:49 am
leave wifi connected, and disconnect  ethernet.

Post output of

Code: [Select]
ping arduino.local
Title: Re: Seeing Yun in IDE Port menu
Post by: roscoe on May 21, 2014, 01:00 am
times out no reply
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on May 21, 2014, 01:07 am
http://forum.arduino.cc/index.php?topic=188101.msg1583686#msg1583686 (http://forum.arduino.cc/index.php?topic=188101.msg1583686#msg1583686)

http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795 (http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795)

What is your Yun ip address?

Are you on windows?
Title: Re: Seeing Yun in IDE Port menu
Post by: roscoe on May 21, 2014, 01:24 am
address is 192.168.18.6
I have already had a quick look at those threads and installed the bonjour browser which did seem to correctly list my yun
I am on win7 and have disabled av and firewall
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on May 21, 2014, 01:45 am
Code: [Select]
ping arduino.local
times out no reply


and

bonjour browser list correctly yun.

Could be some thing wrong DNS setting (DNS hijacking) or Windows OS  problem.

http://forum.arduino.cc/index.php?topic=188101.msg1617043#msg1617043 (http://forum.arduino.cc/index.php?topic=188101.msg1617043#msg1617043)  for DNS hijacking,

Use an other Windows machine for testing OS  problem.

Title: Re: Seeing Yun in IDE Port menu
Post by: roscoe on May 21, 2014, 09:19 am
I will try another laptop later today.  I am stumped as to why the wired connection lists the yun in the IDE but the wifi connection does not.  Yes the yun gets listed under wifi with the bonjour browser and the yun also works in wifi for everything else apart from the IDE......
Does seem like something silly on my PC networking (but everthing else works) so, will try as you suggested another PC....
Title: Re: Seeing Yun in IDE Port menu
Post by: jpsabo on May 30, 2014, 04:21 pm
I had the same issue when I tried to use my MacPro for Arduino 1.5.6-r2 IDE access to the Yun by wifi. However, what I found enabled wifi access was first connecting the Yun to the MacPro by USB. The wifi connection then appeared in the IDE and was accessible by the IDE for upload (I did get a password pop-up, too).

I found this "solution" because I had just upgraded the Yun to the latest firmware and had to connect it via USB to a MacBook. The IDE showed the wifi connection when it was connected by USB and after when the Yun was on my network.

Hope this can help.
Title: Re: Seeing Yun in IDE Port menu
Post by: Charly86 on Dec 29, 2014, 12:48 am
Hi all,

I had the same issue regarding port not always seen in Arduino IDE 1.5.8 and I found a workaround. Of course if you are Wifi connected to YUN it works, but when you connect YUN to your LAN and if your main DHCP/DNS server is not the YUN it does not work every time.

So you need of course to have bonjour service installed and running, but it's not enough.

I think the Arduino IDE try to find devices with bonjour service only if it can resolve the address arduino.local (but it try to resolve LOCALLY, not using any DNS resolution). I think that because I've put this as static entry in my DNS server but didn't work either.

So I've put this entry in my windows hosts file and it works every time. You can put the following on your hosts file (change for your yun IP)

192.168.1.246 arduino.local

With that, it works every time (trust me I've spent some time do test all cases).

What is fun is that putting the IP address of my Synology NAS (not the YUN one) it also works so my understanding is that when Arduino success to LOCALLY resolve arduino.local then it request the bonjour service and is able to find all YUN on the same network.

Funny and disappointing working mode, may be worth to look at the IDE source code to really know what is done.

Merry Christmas to all of you.
Title: Re: Seeing Yun in IDE Port menu
Post by: ShapeShifter on Dec 29, 2014, 01:20 pm
It's not a DNS issue, which is why your various attempts to fix it didn't work. However, you can manually configure a DNS solution, which is what you did when you added the entry to your hosts file. The issue with that is it works only on that one computer, and only until the Yun's address changes (which it will tend to do from time to time unless you took special steps to make the address static.)

so my understanding is that when Arduino success to LOCALLY resolve arduino.local then it request the bonjour service and is able to find all YUN on the same network.
You've got cause and effect backwards. It does not resolve the address locally, then request the bonjour service. Bonjour is the service that locally resolves the address.

"Bonjour" is French for "Hello." (OK, it literally translates to "good day" but it's commonly used as a greeting.) Bonjour is an implementation of mDNS, a way for computers to greet each other and locally identify themselves. Computers identify themselves by sending out broadcast messages with their name and address. Other computers receive that broadcast and make note of it.

In this case, the Yun is periodically sending out a broadcast that essentially says "Hello, my name is arduino.local, and I'm at aaa.bbb.ccc.ddd." Your computer receives that, and makes an entry into its address resolution file. The IDE also adds an entry to its port menu.

Quote
Of course if you are Wifi connected to YUN it works, but when you connect YUN to your LAN and if your main DHCP/DNS server is not the YUN it does not work every time.
In my case it's exactly the opposite: when the Yun is WiFi only, I can't use arduino.local from my computer, but over Ethernet I can. The reason for both our problems is the same, and the reason why our behaviors are different is due to the way things are connected.

As just discussed, finding arduino.local (and showing up in the port menu) depends on your computer receiving broadcasts from the Yun. Broadcasts generally only travel on one network segment; they tend not to make hops through bridges or routers. In my case, my computer is on the wired Ethernet, and I have a bridge to a wireless network. When the Yun is only on the a WiFi network, the broadcasts don't make it to the Ethernet network, so my computer can't resolve arduino.local. It can still access the Yun by its address (since addressed packets do make the jump through bridges and routers) but it can't find the name and it doesn't show up on the IDE port menu. If I connect the Yun to Ethernet, then it is on the same network segment, the broadcasts go through, and I can access it by name and from the IDE.

Now, for your case, I'm assuming your computer is on the wireless network. When the Yun is also on the wireless, the broadcasts go through, and everything works. When the Yun is on Ethernet, the broadcasts don't make the hop between network segments, and now you have your issues.
Title: Re: Seeing Yun in IDE Port menu
Post by: PCWorxLA on Dec 31, 2014, 02:39 am
Funny and disappointing working mode, may be worth to look at the IDE source code to really know what is done.
No need. The problem is that you didn't seem to heed the advice to make sure you have the Bonjour service running on the host. That is Apple's (misguided) attempt on name resolution without using a DNS server or a host file entry on the local machine. The later is what you used and it will fail again if for some reason your Yun becomes a different IP address. Commonly, a DHCP host will always try to request the same IP address from the DHCP server, but if for whatever reason the server does not honor that request, it will happily accept whatever IP address it is given...  ;)
Quote
Merry Christmas to all of you.
Happy New Year!   :smiley-cool:

Ralf
Title: Re: Seeing Yun in IDE Port menu
Post by: roadfun on Jan 11, 2015, 07:31 pm
It seems to me there should be a way to enter an IP address to connect to rather than relying on what is obviously a fragile solution. I have 3 Yuns running 24/7 and all 3 *never* show up at the same time in the Ports menu even though they all show up *all* the time using a Bonjour browser, are accessible from HTTP, and also from SSH. Not to add they communicate over Wifi in their applications non-stop. Also, even if a Yun doesn't show up in the Ports menu, if it is the last Yun I uploaded to then the IDE can keep uploading successfully. My point is this is just a discovery issue and the Yun's are in my experience unique in having issues (i.e. I have a number of devices that rely on Bonjour for discovery and they never show this type of problem).

I have not found a way in the IDE to tell it to connect to an IP address. Is there one? If not, is there a method of requesting it?
Title: Re: Seeing Yun in IDE Port menu
Post by: tykom on Jan 12, 2015, 03:02 am
Ok, similar symptoms here:

Using a Yun, available on wifi at the ip but not at .local address, ssh working, not showing in bonjour on Windows and not available as a port in IDE. Bonjour for windows is also not showing that my iPhone is available, which is also on the network.

Just tried with a friend's macbook, and the Yun shows in the IDE without a problem. So I assume this must be a problem with zeroconf/bonjour on windows, but I have reinstalled bonjour 3 times to no avail.

Tried adding Yun's ip (192.168.1.101) to hosts file, also no luck.

What am I missing?
Title: Re: Seeing Yun in IDE Port menu
Post by: Angelo9999 on Jan 12, 2015, 10:05 am
Maybe something else is interfering with bonjour?

When you tried with your friend's macbook, was it in the same network of your computer?
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Jan 12, 2015, 04:25 pm
...
Just tried with a friend's macbook, and the Yun shows in the IDE without a problem. So I assume this must be a problem with zeroconf/bonjour on windows, but I have reinstalled bonjour 3 times to no avail.
...
Step 1. Install Bonjour Browser (Bonjour windows client ) to confirm Bonjour is working.

http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795 (http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795)

Step 2. The Arduino IDE itself is written in Java, and it can communicate to the Arduino via the  Java library. Reinstall java as well as Arduino IDE Software.

http://forum.arduino.cc/index.php?topic=188101.msg1574357#msg1574357 (http://forum.arduino.cc/index.php?topic=188101.msg1574357#msg1574357)

Title: Re: Seeing Yun in IDE Port menu
Post by: pasluc7469 on Feb 09, 2015, 03:17 am
hi, i followed the thread, because i have the same problem....

the first time i connected the yun with my pc (windows7 64 bit) it worked fine.
after restarted my computer, here begins the troubles...
The IDE tools>ports shows only the serial connection (COM12), and misses the yun's ip.

i uninstalled and reinstalled the following components:
all listed Java,
all listed bonjour,
arduino ide,

i also tryed to change my dns into 8.8.8.8.
opened the port 5353 UDP in the windows firewall,
i can connect to arduino via ssh, arduino.local via browser, via winscp, and via usb by ide.
bonjour browser shows the arduino yun.... works fine

_arduino._tcp (Arduino)
_ssh._tcp.(Secure Shell on Arduino)

do you have any suggestion???
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 09, 2015, 06:10 am
...
The IDE tools>ports shows only the serial connection (COM12), and misses the yun's ip.
...
COM12 might be OK at Java but not at other programming languages. fix it anyway?

CreateFile() is successful when you use "COM1" through "COM9" for the name of the file; however, the message INVALID_HANDLE_VALUE is returned if you use "COM10" or greater.

http://support.microsoft.com/kb/115831 (http://support.microsoft.com/kb/115831)


Removing or changing unused COM Ports from Windows.

http://www.digi.com/support/kbase/kbaseresultdetl?id=3308 (http://www.digi.com/support/kbase/kbaseresultdetl?id=3308)
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 09, 2015, 06:16 am
...
i can connect to arduino via ssh, arduino.local via browser, via winscp, and via usb by ide.
bonjour browser shows the arduino yun.... works fine

_arduino._tcp (Arduino)
_ssh._tcp.(Secure Shell on Arduino)
...
This means bonjour service as well as firewall is OK. now either Java or IDE is problem, worse case is Windows.

Plan A.

ghost back fresh copy windows 7.

Plan B.

Test it at an other windows 7 box.

Plan C.

Make sure complete uninstall Java ( JRE as well as JDK) and Arduino IDE.  Re-install  latest version Java as well as IDE.

Title: Re: Seeing Yun in IDE Port menu
Post by: pasluc7469 on Feb 09, 2015, 02:54 pm
thanks for yor reply....

i installed the same components in another pc, and it seem to work fine....


now, how can i fix the issue?

i scanned the system with malwarebytes, ... what else?

what do you mean with
Quote
ghost back fresh copy windows 7
?
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 09, 2015, 03:22 pm
Windows Backup and Restore.

http://windows.microsoft.com/en-us/windows7/products/features/system-restore
 (http://windows.microsoft.com/en-us/windows7/products/features/system-restore)


Ghost is a disk cloning and backup tool.

http://en.wikipedia.org/wiki/Ghost_%28software%29 (http://en.wikipedia.org/wiki/Ghost_%28software%29)







Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 09, 2015, 03:31 pm
Complete uninstall Java and IDE:

Java Uninstall Tool for Windows
https://www.java.com/en/download/faq/uninstaller_toolinfo.xml (https://www.java.com/en/download/faq/uninstaller_toolinfo.xml)

Cleanup the registry after a failed Java uninstall
https://java.com/en/download/help/manual_regedit.xml (https://java.com/en/download/help/manual_regedit.xml)

Files installed by Arduino IDE
http://www.shouldiremoveit.com/Arduino-70880-program.aspx (http://www.shouldiremoveit.com/Arduino-70880-program.aspx)





Title: Re: Seeing Yun in IDE Port menu
Post by: pasluc7469 on Feb 10, 2015, 06:37 am
walking araund the windows firewall, i noticed that in Control Panel > Windows Firewall > advanced settings > output Connection Rules is completly empty....

(http://secondosenso.com/frtfrtfrt/Immagine.jpg)

Could it be that the issue??? If yes, how can i solve that????

Thanks in advance...
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Feb 10, 2015, 07:53 am
...
i can connect to arduino via ssh, arduino.local via browser, via winscp, and via usb by ide.
bonjour browser shows the arduino yun.... works fine

_arduino._tcp (Arduino)
_ssh._tcp.(Secure Shell on Arduino)
This means bonjour service as well as firewall is OK. now either Java or IDE is problem, worse case is Windows.
firewall is OK

Restore Windows ( reboot)
Complete uninstall Java  ( reboot) and Arduino IDE   ( reboot)

After uninstall Java and IDE

manually clean files installed by Arduino IDE if leftover:

Code: [Select]
libusb0.dll (by http://libusb-win32.sourceforge.net) - LibUSB-Win32 - DLL
cygwin1.dll (by Red Hat) - Cygwin (Cygwin® POSIX Emulation DLL)
arduino.exe
cygiconv-2.dll
rxtxSerial.dll
uninstall.exe


manually clean files installed by Java:

manually clean registry after a failed Java uninstall:

manually clean registry after Uninstall Arduino IDE:


Re-install latest  version Java  ( reboot) and Arduino IDE  ( reboot)


The worse case is  re-install windows, if you have no windows backup or ghost image.

As soon as You get it works, backup windows, in future any error restore will do the trick.









Title: Re: Seeing Yun in IDE Port menu
Post by: pasluc7469 on Feb 13, 2015, 08:22 am
after 7 very long days, i decided to buy another hard disk, and re-installed windows ( this time i installed windows 7 ultimate instead of home premium).
As sonnyyu suggested, in my case it could be an OS error, that didn't let me connect arduino IDE port to the yun's IP. Now, it seems to work all fine!!!!

Special thanks to sonnyyu for supporting me!!!
Title: Re: Seeing Yun in IDE Port menu
Post by: muzamil110 on Feb 20, 2015, 07:13 pm
hi

i am also facing same problem i have Enabled port 5353 still it is not show ip in IDE
Title: Re: Seeing Yun in IDE Port menu
Post by: muzamil110 on Feb 20, 2015, 07:52 pm
hi

i am also facing same problem even i have installed bojour and unblock the port 5353 , Still no ip address in IDE ?
Title: Re: Seeing Yun in IDE Port menu
Post by: nickgammon on Feb 20, 2015, 11:49 pm
@muzamil110: Please start your own thread about this and describe in detail the issue. You are cross-posting in other threads.
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Apr 08, 2015, 03:45 pm
CentOS release 6.6 (Final)'s IDE Port menu:

Centos is conservative and enterprise-level OS, kernel is behind.

Code: [Select]
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)


Code: [Select]
yum update

get Yun product id and vendor id:

Code: [Select]
lsusb
...
Bus 002 Device 004: ID 2341:8041 Arduino SA


Code: [Select]
lsmod|grep cdc_acm

nothing show means kernel driver for cdc_acm is  not loaded.

load kernel driver:

Code: [Select]
modprobe cdc_acm

Test:

Code: [Select]
ls -l /dev/ttyACM0

Port no show due to product id and vendor id is not in cdc_acm.c

Code: [Select]
nano /etc/rc.modules
modprobe cdc_acm
echo "0x2341 0x8041" > /sys/bus/usb/drivers/cdc_acm/new_id

chmod +x /etc/rc.modules



Load user(sonnyyu) into group dialout:

Code: [Select]
usermod -a -G  dialout sonnyyu

Code: [Select]
reboot

confirm driver installed:

Code: [Select]
[root@localhost ~]# ls -l /dev/ttyACM0
crw-rw----. 1 root dialout 166, 0 Apr  8 01:17 /dev/ttyACM0



Download IDE 1.6.1 and test it.

from IDE 1.6.2, there is small glitch, it required start IDE twice after machine reboot then runs  normal.






Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Apr 08, 2015, 06:08 pm
CentOS release 7.1.1503's IDE Port menu:

Code: [Select]
yum update

Code: [Select]
cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)


Code: [Select]
lsmod|grep cdc_acm
cdc_acm                32971  0


Code: [Select]
ls -l /dev/ttyACM0
crw-rw----. 1 root dialout 166, 0 Apr  8 01:17 /dev/ttyACM0


Code: [Select]
usermod -a -G  dialout sonnyyu

Code: [Select]
reboot

Download IDE 1.6.1 and test it.

from IDE 1.6.2, there is small glitch, it required start IDE twice after machine reboot then runs  normal.


New kernel save a lot of time!



Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Apr 08, 2015, 06:15 pm
Installing Arduino IDE at Linux:

https://learn.sparkfun.com/tutorials/installing-arduino-ide/linux (https://learn.sparkfun.com/tutorials/installing-arduino-ide/linux)






Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on May 04, 2015, 12:30 pm
If Yun is at internet, Bonjour is only local area network protocol and Yun would not be shown on network port.  The only way Seeing Yun in IDE network Port menu is  Bonjour proxy server.

Here is the way to make it happen:


Turn off Bonjour service at Yun:

Code: [Select]
/etc/init.d/avahi-daemon stop
/etc/init.d/avahi-daemon disable



Run it at windows command line or Mac  (at same IDE machine).

Code: [Select]
dns-sd -P Arduino _arduino._tcp local 80 arduino.local 192.168.0.102 board=yun distro_version=0.1
dns-sd -P Arduino _arduino._tcp local 80 arduino2.local 192.168.0.122 board=yun distro_version=0.1


Either public or private IP address dependent direct connect or behind NAT.


dns-sd.exe comes with Bonjour for Windows, install from here:

http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795 (http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795)




Title: Re: Seeing Yun in IDE Port menu
Post by: ShapeShifter on May 04, 2015, 01:37 pm
Code: [Select]
dns-sd -P Arduino _arduino._tcp local 80 arduino.local 192.168.0.102 board=yun distro_version=0.1
dns-sd -P Arduino _arduino._tcp local 80 arduino2.local 192.168.0.122 board=yun distro_version=0.1
The downside with this is that you either need to set up the Yun's with explicit static addresses, static DHCP rules, or you need to enter these commands any time the address changes. The whole point of Bonjour is zero configuration, and this is hardly zero effort. It's a work-around at best. The IDE needs a better way to find Yun's, the current method is far too fragile and asking people to jump through hoops is not reasonable.
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on May 04, 2015, 03:32 pm
...
The downside with this is that you either need to set up the Yun's with explicit static addresses, static DHCP rules, or you need to enter these commands any time the address changes. The whole point of Bonjour is zero configuration, and this is hardly zero effort. It's a work-around at best.
...
This method for Yun with public IP address, normally with explicit static addresses and no DHCP. Bonjour is only local area network protocol. No we are in wide area network.



Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on May 04, 2015, 03:47 pm
...
The IDE needs a better way to find Yun's, the current method is far too fragile and asking people to jump through hoops is not reasonable.
...
It is true from field report IDE has unreliable Bonjour discover service. but same time USB discover is far reliable.
The main difference between USB discover and Bonjour discover is first one  use JNI (Java Native Interface). C is still killer program language. :P



Title: Re: Seeing Yun in IDE Port menu
Post by: thataintworking on May 06, 2015, 04:02 am
If Yun is at internet, Bonjour is only local area network protocol and Yun would not be shown on network port.  The only way Seeing Yun in IDE network Port menu is  Bonjour proxy server.

Here is the way to make it happen:


Turn off Bonjour service at Yun:

Code: [Select]
/etc/init.d/avahi-daemon stop
/etc/init.d/avahi-daemon disable



Run it at windows command line or Mac  (at same IDE machine).

Code: [Select]
dns-sd -P Arduino _arduino._tcp local 80 arduino.local 192.168.0.102 board=yun distro_version=0.1
dns-sd -P Arduino _arduino._tcp local 80 arduino2.local 192.168.0.122 board=yun distro_version=0.1


Either public or private IP address dependent direct connect or behind NAT.


dns-sd.exe comes with Bonjour for Windows, install from here:

http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795 (http://forum.arduino.cc/index.php?topic=188101.msg1554795#msg1554795)

I am running OS X Yosemite and I never saw the Yun IP show up in the IDE Ports menu. This does the trick for me. This is definitely not an ideal solution, but at least it works.

Thanks, sonnyyu!
Title: Re: Seeing Yun in IDE Port menu
Post by: jessemonroy650 on May 06, 2015, 08:43 am
hi there, i have discovered that this issue is particularly problematic when the wifi signal is "weak" or average at best (like 2 bars), can anyone verify this? on stronger signals (3-5 bars) i don't encounter this problem of not seeing the YUN ip address in the IDE Ports menu.

i have concluded that it is indeed an IDE problem because i can ping the YUN's ip add as well as connect to it via the browser but no such luck with the IDE, i'd have a hard time uploading sketches to it.

i hope there is a way to resolve this. sonnyyu, i have done everything you instructed but no improvement :(
Use the USB port. or move closer the the AP.

Jesse
Title: Re: Seeing Yun in IDE Port menu
Post by: bobli on May 08, 2015, 09:52 am
Hello,

Sometimes when I open the arduino IDE 1.6.4, I can't see the Yun in the Port when I want to upload via wifi.


What I do is that I uninstall the IDE and then reinstall it, and the Yun shows again in the port. Until the next time I turn off y computer.

It's a bit cumbersome and I never had troubles with the previous version of the IDE I was using (don't remeber which release though).
 

besos
Title: Re: Seeing Yun in IDE Port menu
Post by: jessemonroy650 on May 08, 2015, 09:09 pm
Hello,

Sometimes when I open the arduino IDE 1.6.4, I can't see the Yun in the Port when I want to upload via wifi.

::::SNIP::::
@bobli,
I believe you mean the menu item under Tools->Port->(wifi).
It has never work consistently. You can file a bug report. The work-around is to use the USB port or to scp the hex file to linux side and upload it.

On using scp, ShapeShifter has provided some instructions in  this post.

Re: Still can't upload to Yun over network
http://forum.arduino.cc/index.php?topic=320190.msg2216957#msg2216957 (http://forum.arduino.cc/index.php?topic=320190.msg2216957#msg2216957)

Jesse
Title: Re: Seeing Yun in IDE Port menu
Post by: dsmalone on Jun 04, 2015, 11:34 pm
Hello all,

I'm an Arduino newbie and have been fighting this problem of the Yun not displaying in the IDE network ports for the past several days.  I think I FINALLY solved it in 3 easy steps.

Step 1:  Goto the Yun configuration screen and click on  "Advanced Configuration Panel 'luci' "   use whatever method can get you there... arduino.local  or the IP address in your browser.....

Step 2:  Next screen has tabs at top STATUS, SYSTEM, NETWORK

Step 3:  Click on NETWORK

In the interface overview you will see your LAN.   Simply click "Connect"


As soon as I did this the Yun immediately appeared in the IDE as a network port.....

Hope this helps....

I'm using a MacBookPro connected to a Time Warner router.... basic setup....

Best,

Dale.
Title: Re: Seeing Yun in IDE Port menu
Post by: ShapeShifter on Jun 05, 2015, 01:09 am
In the interface overview you will see your LAN.   Simply click "Connect"


As soon as I did this the Yun immediately appeared in the IDE as a network port.....
Sadly, this accomplishes nothing for me.  :'(

I'd be interested to hear whether this keeps working for you over the long term. I fear this is yet another case of someone figuring out a "breakthrough" to the solution, but one that does not hold up over time. So far, there have been lots of what I think are coincidences that cause it suddenly show up, but as yet, none have proven reliable.
Title: Re: Seeing Yun in IDE Port menu
Post by: aromring on Aug 31, 2015, 03:14 am
Yes, I confirm this problem still persists even with the latest Arduino IDE 1.6.5 on a Mac running OS X Yosemite. There are two sources of this problem and, IMHO, we have to separate these for a clearer picture. First, there are those of you for which the proper Port info _never_ shows up in the Tools menu. Yeah, in this case the source of your problem may one (or more) of these:

- not being on the same subnet
- router settings
- firewalls
- antivirus software
- Bonjour service
- etc.

However, I belong to the second group where the Yun does show in the Port submenu _sometimes_, works fine for a while, then disappears for no reason. Clearly, it _works_ (albeit sometimes), so going after any of the reasons listed above would be chasing ghosts and wasting time.

I think we can narrow the second case to either one of these:

- Sometimes Yun "forgets" to broadcast itself
- Sometimes Arduino IDE "forgets" to listen to broadcasts

Here is the workaround that works for me. When Yun disappears from Port submenu, I ran one of these two apps:

- "Fing" on my iPhone
- "My Net" on my Mac

Either of these apps simply scans the local network for hosts. After a few seconds the Yun magically reappears in the Port submenu. No restarts necessary. This, by the way, is in tune with observations reported by dsmalone.

Dear Arduino IDE Developers: please enable manual addition of the Yun IP to the IDE's Port!


Title: Re: Seeing Yun in IDE Port menu
Post by: ShapeShifter on Aug 31, 2015, 12:14 pm
Dear Arduino IDE Developers: please enable manual addition of the Yun IP to the IDE's Port!
X2!

I'll go one step further: please allow us to enter a list of Yuns and their IP addresses, so that they are all listed on the IDE port menu.

Besides helping with that second scenario (where they sometimes show up and sometimes don't) it will also help in the scenario where they are on a different network segment where zeroconf packets don't pass (like computer on wired Ethernet, and a Yun on WiFi passing through a bridge. )
Title: Re: Seeing Yun in IDE Port menu
Post by: tomb18 on Dec 04, 2015, 07:42 am
Will this EVER get fixed?
Title: Re: Seeing Yun in IDE Port menu
Post by: ShapeShifter on Dec 04, 2015, 02:23 pm
Will this EVER get fixed?
While there appears to be no interest in adding the manual configuration option, I have had zero problems detecting the Yun since installing version 1.6.5 of the Arduino IDE (https://www.arduino.cc/en/Main/Software). And I was one of the guys who had no end of problems seeing the Yun in earlier versions. I can even reliably connect to the Yun through my WiFi bridge where the Yun is on WiFi and the computer is on Ethernet, something which I could never do before.
Title: Re: Seeing Yun in IDE Port menu
Post by: sonnyyu on Dec 05, 2015, 12:46 am
Will this EVER get fixed?

If IDE wrote by C++ instead of Java, The problem NEVER exist.



Title: Re: Seeing Yun in IDE Port menu
Post by: tomb18 on Dec 05, 2015, 05:16 am
Yes, I agree. C# as well.
Anyways I solved my problem.  The problem is Apple. And the problem is arduino.  Arduino for using such a fragile solution as Apple's Bonjour.  Apple for continuing to put up a poor development effort for anything Windows.
I knew that the issue was Bonjour.  So I decided to set a break point, then install ITunes.  That installation will also install Bonjour but I have installed Bonjour several times and it never worked.  I found errors for the Bonjour service in the Windows app log so a bit of digging and it appears that iTunes sets up some schedules and adds some dll's that if not present will give this error.
So I decided to install iTunes.  When it had finished, the IDE still had the ports grayed out.  I then did a restore of my restore point.
Well after the restore and reboot of the PC, Bonjour now works with no errors, and the IDE now shows the port of my Arduino YUN.
So, on Windows 10, installing Bonjour does not work on it's own.  Apple has not provided a proper installation.  However, installing iTunes and then uninstalling it will setup bonjour so it works. Shame on Apple and shame on the  makers of Arduino for using Apple software on Windows.
Title: Re: Seeing Yun in IDE Port menu
Post by: Bogaat on Sep 19, 2016, 03:48 pm
Had this problem forever and stumbled upon this post.  Installed ITunes...YUN/TIAN now show up every time.  Wow.  I guess I should have listened to my daughter who loves Apple...I say sarcastically (I haven't owned one since an Apple 2 in the early eighties).
Title: Re: Seeing Yun in IDE Port menu
Post by: lsh10142 on Oct 31, 2016, 01:09 pm
In my case, the problem was usb cable. Some cable does not have support for opening port.
Title: Re: Seeing Yun in IDE Port menu
Post by: ShapeShifter on Nov 01, 2016, 12:12 pm
In my case, the problem was usb cable. Some cable does not have support for opening port.
Yes, this can be a problem with some cables, it's a side-effect of devices that use a USB port strictly for battery charging. To save a few pennies per unit, they provide USB cables with these devices that only have the power wires in them, and don't have the two extra wires that carry the data. Such a cable will work for charging, but not not for any communications.
Title: Re: Seeing Yun in IDE Port menu
Post by: cahyobayu on May 30, 2017, 02:37 pm
hi gusy, i have problem with my YUN, the IP addres in port IDE no show, ony Port COM, anybody help?