Dragino PAB2 User Manual Download Page 27

 

 

Press the Failsafe button and power up Yun Shield; user will see all the LEDs blink together, 

release the button after 10 seconds and there are some messages will pop up in the 

Hercules 

panel, which means the Yun Shield has been in Failsafe Netconsole mode and ready to access 

commands.   

 

User can type the commands in Hercules to transfer and upgrade Yun Shield to the latest 

firmware with factory settings.   

 

The update commands are as below, replace the xxx with the actually version.   

Note when typing command in Hercules

: user must add 

<CR>

 

at the end of each command; 

$

 is 

a special char in Hercules, user should double it (key two $$) when typing.   

Upgrade Kernel

 

tftpboot 

0x81000000

 ms14

-

arduino

-

yun

-

kernel

-

xxx

.

bin

 

erase 

0x9fea0000

 

+

0x140000

   

cp.

b

 

0x81000000

 

0x9fea0000

 $filesize 

Upgrade rootfs

 

tftpboot 

0x81000000

 ms14

-

arduino

-

yun

--

rootfs

-

squashfs

-

xxx

.

bin

 

erase 

0x9f050000

 

+

0xe50000

         

cp.

b

 

0x81000000

 

0x9f050000

 $filesize 

Reset to the new firmware

 

reset 

Warning

: User should use exactly address number in the erase and cp.b shows, wrong address 

number may properly destroy the boot-loader of Yun Shield and the device won’t boot anymore. 

Or destroy the radio data of Yun Shield which may lead to a poor wifi performance or incorrect 

MAC addresses.   

 

Recover in Linux is similar with Windows, 

the mail different is that the tool use in Linux is 

nc 

and runs with

 

nc -kul 6666. 

Below shows that the Yun Shield has been in Failsafe Netconsole 

mode and detected by nc.   

w w w . e k t

2

. c o m

Electronics 

Katrangi

 Trading

Summary of Contents for PAB2

Page 1: ...Yun Shield User Manual VERSION 1 1 w w w e k t 2 c o m Electronics Katrangi Trading...

Page 2: ...duino Uno 12 3 1 3 Connect to Arduino Duemilanove Diecimila 14 3 1 4 Connect to Arduino Mega2560 14 3 2 Detect Yun Shield 15 3 3 Upload Sketch 17 3 4 Bridge Library 17 4 EXAMPLES 18 4 1 Example 1 Say...

Page 3: ...to Upload Download or Edit files in Yun Shield 27 5 7 How to reset the Yun Shield 29 5 8 How to recover the Yun Shield in case firmware crash 29 6 REFERENCE 32 w w w e k t 2 c o m Electronics Katrangi...

Page 4: ...do equally to the official Arduino Yun but Yun Shield is more flexible because it can work with other Arduino board such as Uno Duemilanove Mega etc And Yun Shield uses external wifi antenna which pro...

Page 5: ...e storage for Arduino projects Failsafe design provides robustly system Compatible with Arduino Leonardo Uno Duemilanove Diecimila Mega 1 4 LEDs There are four LEDs on the Yun Shield The functions of...

Page 6: ...ed by the Arduino VIN pins to avoid overheated in the Arduino onboard 5v LDO So when Yun shield is in used the Arduino board should be powered by DC port instead of USB port The DC input can be 7v 15v...

Page 7: ...3 3v and 5v Arduino board The on board jumper SV1 is used to set the SPI and UART to 3 3v or 5v level The SPI interface is used to upload the sketches comes from the Arduino IDE SPI interface only con...

Page 8: ...an IP 192 168 240 xxx and the Yun Shield has the default IP 192 168 240 1 Fall Back IP A fall back IP 172 31 255 254 255 255 255 252 is assigned to Yun Shield s LAN port so user can always access Yun...

Page 9: ...are Firefox and Chrome Simply type the IP address into your browser and you will see the log in page of Yun Shield Default User name and Password for Yun Shield is root dragino 2 2 2 Access via SSH Vi...

Page 10: ...ice password and network parameters 2 3 2 Arduino related set up Arduino Board Type Define the bootloarder mcu type fuse setting during Sketch upload Operation Mode make sure it is in Arduino Bridge m...

Page 11: ...or web upgrade should be a sysupgrade type firmware user can choose if keep settings or not after upgrade Normally it will take about 2 minutes to flash the new firmware Then all the LEDS will blink t...

Page 12: ...uino Boards 3 1 1 Connect to Leonardo Simply plug the Yun Shield on top of the Leonardo and power the Leonardo via DC jack In Arduino IDE the board type should select Arduino Yun 3 1 2 Connect to Ardu...

Page 13: ..._touch true unoyun upload wait_for_upload_port true unoyun bootloader tool avrdude unoyun bootloader low_fuses 0xff unoyun bootloader high_fuses 0xde unoyun bootloader extended_fuses 0x05 unoyun bootl...

Page 14: ...68p they can modify the upload maximum_data_size upload maximum_size and build mcu accordingly 3 Put the Yun Shield on top of Duemilanove and power it via DC jack 3 1 4 Connect to Arduino Mega2560 1 I...

Page 15: ...oader low_fuses 0xff mega2560Yun bootloader high_fuses 0xd8 mega2560Yun bootloader extended_fuses 0xfd mega2560Yun bootloader file stk500v2 stk500boot_v2_mega2560 hex mega2560Yun bootloader unlock_bit...

Page 16: ...ibrary simplifies the communication between the Arduino Board and Yun Shield Bridge commands from the AVR Arduino Board are interpreted by Python on the Yun Shield Its role is to execute programs on t...

Page 17: ...begin Console begin Wait for Console port to connect while Console Console println Hi what s your name Data flow Arduino Yun Shield Arduino IDE void loop if Console available 0 char c Console read rea...

Page 18: ...ux Commands in Yun Shield include Console h Console lib used to show debug info in Arduino IDE include passwords h contains my passwords see below NOTE passwords h is not included with this repo becau...

Page 19: ...String url https api xively com v2 feeds url FEEDID url csv Send the HTTP PUT request form the linux command and use Process Class to send this command to Yun Shield Is better to declare the Process...

Page 20: ...Screen Shot Xively Dashboard w w w e k t 2 c o m Electronics Katrangi Trading...

Page 21: ...eSystem begin while Console wait for Serial port to connect Console println Filesystem datalogger n void loop make a string that start with a timestamp for assembling the data to log String dataString...

Page 22: ...time date is a command line utility to get the date and the time in different formats depending on the additional parameter time begin date time addParameter D T parameters D for the complete date mm...

Page 23: ...update root Arduino opkg install libcares root Arduino opkg install libopenssl root Arduino opkg install libmosquitto root Arduino opkg install mosquitto client Test with public MQTT test server test...

Page 24: ...type of antennas to the i pex connector of Yun Shield this make the installation is more flexible and possible to transfer the signal to several km distance In Software Aspect The Yun Shield software...

Page 25: ...Where can I find the source code of Yun Shield The Yun Shield source can be found at https github com dragino linino 5 6 How to Upload Download or Edit files in Yun Shield Yun Shield has a built in L...

Page 26: ...oot of Yun Shield An instruction in Windows is as below Set up TFTP server Download the tftp server recommend tftp32d exe And download the latest Yun firmware from http www dragino com downloads index...

Page 27: ...ernel tftpboot 0x81000000 ms14 arduino yun kernel xxx bin erase 0x9fea0000 0x140000 cp b 0x81000000 0x9fea0000 filesize Upgrade rootfs tftpboot 0x81000000 ms14 arduino yun rootfs squashfs xxx bin eras...

Page 28: ...Yun Shield Quick Start Guide VERSION 1 0 w w w e k t 2 c o m Electronics Katrangi Trading...

Page 29: ...and it is fully compatible with Arduino IDE v1 5 4 or later Yun Shield is the ideally choice for Arduino Projects which require various internet connections and more storage Basically Yun Shield Leona...

Page 30: ...sketch to Arduino board via Arduino IDE Managed by Web GUI SSH via LAN or WiFi Software upgradable via network Built in web server Support internet connection via LAN port WiFi or 3G dongle Support US...

Page 31: ...ed by the Arduino VIN pins to avoid overheated in the Arduino onboard 5v LDO So when Yun shield is in used the Arduino board should be powered by DC port instead of USB port The DC input can be 7v 15v...

Page 32: ...3 3v and 5v Arduino board The on board jumper SV1 is used to set the SPI and UART to 3 3v or 5v level The SPI interface is used to upload the sketches comes from the Arduino IDE SPI interface only con...

Page 33: ...te an unsecure WiFi network call Dragino2 xxxxxx User can use their laptop to connect to this WiFi network The laptop will get an IP 192 168 240 xxx and the Yun Shield has the default IP 192 168 240 1...

Page 34: ...o access internet via your WiFi router 2 4 Detect Yun Shield Assume your laptop and Yun Shield are in the same network The Yun Shield will broadcast data in this network and Arduino IDE will receive t...

Page 35: ...nication between the Arduino Board and Yun Shield Bridge commands from the AVR Arduino Board are interpreted by Python on the Yun Shield Its role is to execute programs on the GNU Linux side when aske...

Page 36: ...begin Console begin Wait for Console port to connect while Console Console println Hi what s your name Data flow Arduino Yun Shield Arduino IDE void loop if Console available 0 char c Console read rea...

Page 37: ...h Console lib used to show debug info in Arduino IDE include passwords h contains my passwords see below NOTE passwords h is not included with this repo because it contains my passwords You need to cr...

Page 38: ...url FEEDID url csv Send the HTTP PUT request form the linux command and use Process Class to send this command to Yun Shield Is better to declare the Process here so when the sendData function finishe...

Page 39: ...Screen Shot Xively Dashboard w w w e k t 2 c o m Electronics Katrangi Trading...

Reviews: