Seeing Yun in IDE Port menu

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:

sonnyyu:
You need reflash correct bootloader.

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

#!/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


/usr/bin/run-avrdude    /etc/arduino/Caterina-Yun.hex





2. flash sketch only ( save memory)


/usr/bin/run-avrdude    /tmp/Blink.cpp.hex





3. flash sketch+bootloader 


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.

Can you please give more detailed instructions to flash bootloader only?
Thank you.

Plan A/Using linino:

Change the efuse value from FB to CB

nano /usr/bin/run-avrdude
#!/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

/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

For new install system only! make sure Yun show up at COM & LPT.

If it is not there then install the driver.

thegreatestdjhero:
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. :wink:

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:

iwconfig 2>&1 | grep 'Signal level'
Link Quality=70/70  Signal level=-37 dBm

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:

  • On board chip antenna has average Gain -0.5 dBi
  • Yun's transmit power is only 17 dBm.
  • Yun is siting at metal case.
  • The distance between Yun and WIFI router is far

http://forum.arduino.cc/index.php?topic=188976.msg1580756#msg1580756

The method to boost wifi signal strength:

  • Ethernet to Your Second Wifi Access Point
  • MoCA (Coaxial) to Ethernet conversion and Access Point
  • Powerline Ethernet and Access Point
  • Wi-Fi Extender/Reater

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

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:

/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.

/etc/arduino/Caterina-Yun.hex

-ash: /etc/arduino/Caterina-Yun.hex: Permission denied

run

/usr/bin/run-avrdude    /etc/arduino/Caterina-Yun.hex

in one line.

Yes, I tried it and gives the same error message

Use External Programmer.

http://forum.arduino.cc/index.php?topic=209587.msg1545681#msg1545681

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

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

ipconfig /all

find out which DNS server(s) you use.

opkg update
opkg install bind-dig

Test your DNS server.

dig @8.8.8.8 +short arduino.local

8.8.8.8 is Google's DNS, no hijacking.

dig @209.18.47.61 +short arduino.local
198.105.251.210
69.16.143.110

209.18.47.6 is Time Warner's DNS, hijacking.

The work around:

  • Use Google's DNS
  • Put local router ip at first of DNS server list

Special thanks to chrisnet, noblepepper,Chagrin, PCWorxLA

Background Information:

.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...

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.

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

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

glenmeyerowitz:
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.

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

Update Apple Java 6.0

Upgrade Java 7.0

Remove Java 7.0

Re install Arduino IDE as well.

  • wifi signal level is too low
  • wifi require X.509 certificate authentication
  • wifi with captive portal authentication
  • no ethernet connector

We could use sharing wifi connection over Ethernet.

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

Sharing windows computers WiFi with other Ethernet Enabled Devices

Sharing Mac Wireless connection over Ethernet Enabled Devices

Replace Pi to Yun.

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.

Stabilize network connection by use static ip address and ethernet connection:

nano /etc/config/network
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

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

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/"

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?