Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfdezros committed May 3, 2016
2 parents ba33886 + 9ad08c8 commit 1b6b4eb
Showing 1 changed file with 12 additions and 27 deletions.
39 changes: 12 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
## ArduinoYunOMA

This repository caintains sketch and some linux scripts to accelerate the prepartion of the workspace to work with wakaama and Arduino Yun. The goal of this sketch and the scripts is help to hackathons participants to accelerate the work. Sketch and scripts can be found in '0-NetworkInfoSketch', '1-FirmwareUpdate', '2-SoftwareUpgrade' and '3-LwM2M' folder. Scripts have been tested in Ubuntu 14.04 and Ubuntu 16.04.
This repository caintains sketch and some linux scripts to accelerate the prepartion of the workspace to work with wakaama and Arduino Yun. The goal of this sketch and the scripts is help to hackathons participants to accelerate the work. Sketch and scripts can be found in 'tools' and 'wakaamaCCTools' folder. Scripts have been tested in Ubuntu 14.04 and Ubuntu 16.04.

To start to work (prepare the workspace) with wakaama and Arduino Yun, simply clone this repository and execute the scripts inside of the '3-LwM2M' folder in order. Other folders are optional and not directly necessary.
To start to work (prepare the workspace) with wakaama and Arduino Yun, simply clone this repository and execute the scripts inside of the 'wakaamaCCTools' folder in order. Other folders are optional and not directly necessary.

Original instructions to compile wakaama for Arduino Yun (created by msangoi) can be found in the following wiki/repository: https://github.com/msangoi/wakaama/wiki/Run-Wakaama-on-the-Arduino-Yun

This repository also includes a first draft of a library to manage a compiled wakaama LwM2M Client from the sketch side without the need of work with the cross-compiler. The Arduino library will download an already compiled client from this repository. This project can be found in the '4-ArduinoLwM2MLib' folder.
This repository also includes a first draft of a library to manage a compiled wakaama LwM2M Client from the sketch side without the need of work with the cross-compiler. The Arduino library will download an already compiled client from this repository. This project can be found in the 'ArduinoLwM2MLib' folder.

To start to work directly with the Arduino Yun LwM2M library simply download the library called 'ArduinoLwM2M-0.8.zip' which can be found in the '4-ArduinoLwM2MLib/release' folder and import them into the Arduino IDE. An example sketch is provided. Currently the library only allow start and connect the client to the server.
To start to work directly with the Arduino Yun LwM2M library simply download the library called 'ArduinoLwM2M-0.8.zip' which can be found in the 'ArduinoLwM2MLib/release' folder and import them into the Arduino IDE. An example sketch is provided. Currently the library only allow start and connect the client to the server.


#### NetworkInfoSketch
#### tools/NetworkInfo

##### Description
Arduino Yun sketch to show the AP name and the private IP. Based on the WifiStatus sketch example.
Expand All @@ -25,7 +25,7 @@ This sketch does not interfere with the rest of work since is running in one of
##### Instructions
Install/Run the sketch using the Arduino IDE and open the Serial Monitor to obtain the information.

#### FirmwareUpdate
#### tools/updateArduinoYunFirmware

##### Description
Script to update the Arduino Yun firmware without SD Card. Directly over ssh.
Expand All @@ -36,7 +36,7 @@ Lot of guides indicates how to update the firmware using a SD card but this can

If you are sure your Arduino Yun owns the latest version then could be interesting carry out a clean in the device by pushing the "WLAN RST" button during 30 seconds.

NetworkInfoSketch can be used to get the IP of the device.
Network Info Sketch can be used to get the IP of the device.

Requires sshpass package which can be installed using: `sudo apt-get install sshpass`

Expand All @@ -52,25 +52,10 @@ Latest firmwares for some devices can be found:
./updateArduinoYunFirmware <routetobinaryfile>
```

#### SoftwareUpgrade
#### wakaamaCCTools

##### Description
Usually this is not necessary, but its pleasurable to know the device is totally updated (even the internal packets).

NetworkInfoSketch can be used to get the IP of the device.

Requires sshpass package which can be installed using: `sudo apt-get install sshpass`

##### Instructions
Run the command and wait until done.
```
./updateArduinoYunSoftware>
```

#### LwM2M

##### Description
Four scripts to prepare, compile, copy and almost run wakaama LwM2M Client into the Arduino Yun. These scripts are based on the information provided by msangoi to run wakaama over Arduino Yun. The idea is automatize some steps to accelerate the preparation and provide more time to work with wakaama and sensors. All script must be executed from the '3-LwM2M' folder.
Four scripts to prepare, compile, copy and almost run wakaama LwM2M Client into the Arduino Yun. These scripts are based on the information provided by msangoi to run wakaama over Arduino Yun. The idea is automatize some steps to accelerate the preparation and provide more time to work with wakaama and sensors.

- **1.prepareCompilation**:
- Download Openwrt cross-compiler and wakaama if not already present in the folder.
Expand All @@ -83,15 +68,15 @@ Four scripts to prepare, compile, copy and almost run wakaama LwM2M Client into
- **4.executeClient**:
- Opens a ssh connection against the Arduino Yun to let you execute/work with the LwM2M Client.

NetworkInfoSketch can be used to get the IP of the device.
Network Info Sketch can be used to get the IP of the device.

Requires git, cmake and sshpass package which can be installed using: `sudo apt-get install cmake sshpass git`

##### Instructions
Execute scripts in order, they will download the dependencies, create the toolchain, compile and open a console against the device to finally run the wakaama LwM2M Client with some command such as:

```
./lwm2mclient -h leshan.eclipse.org -n my-arduino-yun-client
./lwm2mclient -h leshan.eclipse.org -n my-arduino-yun-client -4
```

Note the example client is a command based client. So operations such as 'change', 'quit', ... are used to manage the client.
Expand All @@ -106,7 +91,7 @@ This folder contains a library draft to execute/manage a compiled wakaama client

##### Instructions

Download the library called 'ArduinoLwM2M-0.8.zip' which can be found in the '4-ArduinoLwM2MLib/release' folder and import them into the Arduino IDE. An example sketch is provided. Currently the library only allow start and connect the client to the server.
Download the library called 'ArduinoLwM2M-0.8.zip' which can be found in the 'ArduinoLwM2MLib/release' folder and import them into the Arduino IDE. An example sketch is provided. Currently the library only allow start and connect the client to the server.

Requires the Arduino IDE to work with the library by creating an sketch.

0 comments on commit 1b6b4eb

Please sign in to comment.