How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection...

Preview:

Citation preview

How to Make TCP Connection

between Arduino and Tizen?

2016. 09. 19

Written by Hyeonju Park & Byungwook Lee

Server (Arduino) - Client (Tizen) TCP Socket Communication

Our Final Goal

Tizen Native

Application

AP

Arduino with Wifi module

byte based data

exchange

Environment (Devices)

Devices

Arduino UNO R3

Wifi Module (Wizfi210 Eifi V1.4)

Wireless Router (ipTIME N704BCM)

Tizen Mobile Phone (Samsung Z1)

Development Environment

Arduino IDE V.1.0.6

Tizen IDE V.2.4.0

putty V.0.60

1.Connect AP

AP Name (SSID) : ase_teamX (X : your team number)

Administrator ID: aseteamX

Password: teamX

AP

2. Download Libraries and Sample Codes

WifiShield_Example

Wifi module example

TCP server (Arduino)

bluetoothConnection

bluetooth connection example

setting blutooth name, pin number,

baud rate

WizFiShield-master

Libraries for Wifi module

3. Setting Libraries

Go to “C:\Program Files (x86)\Arduino\libraries”

Copy and Paste

In WizFiShield-master/Software

4. Modify the Code

Change “se_ajou” to your AP name

ex) se_team1

Arduino’s IP address will be “192.168.0.100”

Arduino’s Port number will be “8011”

5. Checking the Arduino Board and Wifi Module

Is it on the Run State?

Jumper Status

2: Rx (Input)

3: Tx (Output)

6. Upload the Code to the Arduino

Run Serial Monitor

7. Ping Test/Putty Test

※ Check your PC is connected to the same AP

8. Ping Test/Putty Test

※ Check your PC is connected to the same AP

9. Install Tizen Native Application

Import sample application “HelloTizenDev”

10. Checking the Connection

11. For More Information

• How to change the Wifi Module configuration?

• Connection between Arduino and C?

• Connection between Arduino and Java?

• …

https://github.com/AjouSoftwareEngineeringCourse/TroubleShooting.git

Let’s share each problem and

lessons learned!

Recommended