Skip to main content

WizFi310 ThingPlug Example

ThingPlug#

ThingPlug๋Š” SK Telecom์˜ IoT ํ”Œ๋žซํผ์œผ๋กœ, oneM2M ํ‘œ์ค€ ๊ธฐ๋ฐ˜์˜ IoT ์„œ๋น„์Šค๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

How to connect to ThingPlug in WizFi310#

You can find the detailed description about the AT Commands for connecting to ThingPlug at the link below.
AT Commands list for Connecting to ThingPlug

WizFi310 ThingPlug ์—ฐ๋™#

WizFi310์„ ThingPlug์˜ ๋””๋ฐ”์ด์Šค๋กœ ๋“ฑ๋กํ•˜๊ธฐ

ThingPlug ์‚ฌ์ดํŠธ ์•ˆ๋‚ด

https://thingplug.net

ThingPlug ์‚ฌ์ดํŠธ์— ๋””๋ฐ”์ด์Šค ๋“ฑ๋ก#

๊ฐœ๋ฐœ์ž ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธ ํ›„, Develop - ๋””๋ฐ”์ด์Šค ์—ฐ๋™ - ๋””๋ฐ”์ด์Šค ๊ด€๋ฆฌ ํƒญ์œผ๋กœ ์ด๋™ํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ™”๋ฉด์—์„œ ๋””๋ฐ”์ด์Šค๋ฅผ ๋“ฑ๋กํ•  ์ˆ˜ ์žˆ๋‹ค.


  • ๋””๋ฐ”์ด์Šค ์ด๋ฆ„, ๋””๋ฐ”์ด์Šค ์•„์ด๋””, ์œ„์น˜๊ฐ’์„ ํ•„์ˆ˜ ์ž…๋ ฅ ๊ฐ’์œผ๋กœ ๋“ฑ๋กํ•˜๊ฒŒ ๋˜๋ฉด,

  • ๋””๋ฐ”์ด์Šค ์„  ๋“ฑ๋ก์„ ์™„๋ฃŒํ•˜๊ฒŒ ๋œ๋‹ค.

WizFi310์œผ๋กœ ์„  ๋“ฑ๋ก๋œ ๋””๋ฐ”์ด์Šค์™€ ์—ฐ๋™#

  1. AP์— ์ ‘์†ํ•œ WizFi310์„ AT+SKTPCON ์ปค๋งจ๋“œ๋กœ ThingPlug์— ์ ‘์†ํ•œ๋‹ค.
  2. ThingPlug์— ์„ฑ๊ณต์ ์œผ๋กœ ์ ‘์†์ด ๋˜๋ฉด, AT+SKTPDEVICE ์ปค๋งจ๋“œ๋กœ ๋””๋ฐ”์ด์Šค ๋“ฑ๋ก์„ ํ•œ๋‹ค.

WizFi310์œผ๋กœ ThingPlug์— Data ์ „์†ก#

  1. AT+SKTPCONTAINER์ปค๋งจ๋“œ๋กœ Container๋ฅผ ์ƒ์„ฑํ•œ๋‹ค.
  2. ํ•ด๋‹น ๋””๋ฐ”์ด์Šค์˜ ์ƒ์„ฑ๋œ Container์— AT+SKPSEND ์ปค๋งจ๋“œ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•œ๋‹ค.
  3. ์ „์†ก๋œ ๋ฐ์ดํ„ฐ๋Š” ThingPlug์—์„œ ๋ฐ์ดํ„ฐ ์กฐํšŒ์™€ ๋Œ€์‹œ๋ณด๋“œ๋ฅผ ํ†ตํ•ด ํ™•์ธ์ด ๊ฐ€๋Šฅํ•˜๋‹ค.
    * ์ „์†ก๋œ ๋ฐ์ดํ„ฐ์˜ ์กฐํšŒ๋Š” Develop - ๋””๋ฐ”์ด์Šค ๋ฐ์ดํ„ฐ ์กฐํšŒ ํƒญ์—์„œ ํ™•์ธ์ด ๊ฐ€๋Šฅํ•˜๋‹ค.

* ๋Œ€์‹œ๋ณด๋“œ์—์„œ์˜ ๋ฐ์ดํ„ฐ ํ™•์ธ์€ Service - ๋Œ€์‹œ๋ณด๋“œ ํƒญ์œผ๋กœ ์ด๋™ํ•˜์—ฌ, ๋Œ€์‹œ๋ณด๋“œ๋ฅผ ๊ตฌ์„ฑํ•˜๋ฉด ์„ค์ •๋œ ์ฃผ๊ธฐ(๊ธฐ๋ณธ 60์ดˆ)๋กœ ๋Œ€์‹œ๋ณด๋“œ์—์„œ ๋ฐ์ดํ„ฐ ํ™•์ธ์ด ๊ฐ€๋Šฅํ•˜๋‹ค.

Data ์ „์†ก ํฌ๋งท(TTV)#

  • TTV - T(Type), T(Data Type), V(Value)๋Š” Device Platform๊ณผ ThingPlug Service Platform ๊ฐ„์˜ ์ •๋ณด์ „๋‹ฌ ๊ทœ๊ฒฉ์ด๋‹ค.

  • Type : ๊ฐ ์„ค์ • ๊ฐ’์„ ์˜๋ฏธํ•œ๋‹ค. Ex) 0x01 : ์˜จ๋„, 0x02 : ์Šต๋„,,, \
  • Data Type : ๋ฐ์ดํ„ฐ ์ž๋ฃŒํ˜•์„ ์˜๋ฏธํ•œ๋‹ค. Ex) int, char,,,, \
  • Value : Data Type์— ๋”ฐ๋ผ ๊ธธ์ด๊ฐ€ ๋‹ฌ๋ผ์ง„๋‹ค. \

ThingPlug์— ๋“ฑ๋ก๋œ ๋””๋ฐ”์ด์Šค ์ œ์–ด#

  1. ๋Œ€์‹œ๋ณด๋“œ์— ์ œ์–ด ์œ„์ ฏ์„ ์ถ”๊ฐ€ํ•œ๋‹ค.


  1. ๋Œ€์‹œ๋ณด๋“œ์— ์ƒ์„ฑ๋œ ์ œ์–ด ์œ„์ ฏ์˜ ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด, ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋””๋ฐ”์ด์Šค์˜ ์‘๋‹ต์„ ๊ธฐ๋‹ค๋ฆฐ๋‹ค.

  1. ์„ค์ •๋œ ๋””๋ฐ”์ด์Šค์˜ ๋™์ž‘์— ๋”ฐ๋ผ, ์ œ์–ด ์œ„์ ฏ์—์„œ ๊ฒฐ๊ณผ๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค.