14
How to Make TCP Connection between Arduino and Tizen? 2016. 09. 19 Written by Hyeonju Park & Byungwook Lee

How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

  • Upload
    builien

  • View
    265

  • Download
    0

Embed Size (px)

Citation preview

Page 1: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

How to Make TCP Connection

between Arduino and Tizen?

2016. 09. 19

Written by Hyeonju Park & Byungwook Lee

Page 2: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

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

Our Final Goal

Tizen Native

Application

AP

Arduino with Wifi module

byte based data

exchange

Page 3: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

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

Page 4: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

1.Connect AP

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

Administrator ID: aseteamX

Password: teamX

AP

Page 5: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

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

Page 6: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

3. Setting Libraries

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

Copy and Paste

In WizFiShield-master/Software

Page 7: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

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”

Page 8: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

5. Checking the Arduino Board and Wifi Module

Is it on the Run State?

Jumper Status

2: Rx (Input)

3: Tx (Output)

Page 9: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

6. Upload the Code to the Arduino

Run Serial Monitor

Page 10: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

7. Ping Test/Putty Test

※ Check your PC is connected to the same AP

Page 11: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

8. Ping Test/Putty Test

※ Check your PC is connected to the same AP

Page 12: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

9. Install Tizen Native Application

Import sample application “HelloTizenDev”

Page 13: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

10. Checking the Connection

Page 14: How to Make TCP Connection between Arduino and Tizen? · PDF fileHow to Make TCP Connection between Arduino and Tizen? ... Arduino with Wifi module byte based data ... How to Make

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!