SlideShare a Scribd company logo
1
2015 Final-Term Examination (100)
Smart Device Intelligent Communication
Date: June 16, 2015.
1. 온도 Sensor(예를 들면 MCP9808), Bluetooth Module, Arduino Mega, Android를 이용해
휴대형 온도계를 만들려 한다. 다음을 답하여라. (70)
1) 이 제품이 사용될 수 있는 타당한 응용이나 UI/UX를 제시하라. (10)
ex) 자동화 비닐하우스의 실내 온도 측정, 가정 자동화용 실내 온도 측정 등
2) 이 제품에 적합한 Block Diagram을 그리고, 각 Block의 세부적 역할을 설명하라. (20)
3) 온도 Sensor가 기압계처럼 I2C로 Arduino와 연결된 경우, 온도값을 SoftwareSerial로
전달하는 Arduino Sketch Code를 제시하라. 여기서 온도값을 읽는 함수는 readTemp(),
Bluetooth Module의 TXD와 RXD는 Arduino Mega의 D10, D11에 각각 연결되었다고
가정하자. (20)
#include <Wire.h>
#include <SoftwareSerial.h>
SoftwareSerial blueSerial(10, 11);
void setup() {
Wire.begin();
2
blueSerial.begin(115200);
}
void loop() {
int temp = readTemp();
blueSerial.println(temp);
delay(100);
}
4) Bluetooth Module이 이미 Smartphone에 연결되어 사용할 준비가 끝났다고 가정하고,
BluetoothSerialService가 구동하기 위한 Code를 제시하라. 여기서 관련된 Code는 아
래 함수에만 작성하라. (20)
public class MainActivity extends ActionBarActivity {
static BluetoothSerialService bthService;
public BluetoothAdapter bthAdapter;
protected void onCreate(Bundle savedInstanceState) {
bthAdapter = BluetoothAdapter.getDefaultAdapter();
bthService = new BluetoothSerialService(this, bthAdapter);
}
protected void onResume() {
if (bthService != null) {
if (bthService.getState() == BluetoothSerialService.STATE_NONE)
bthService.start();
}
}
protected void onDestroy() {
if (bthService != null) bthService.stop();
}
}
2. Bluetooth에 대해 다음을 답하라. (30)
1) Bluetooth 방식의 장점을 3개 이상 쓰시오. (10)
- 대량 생산되는 HW로 인해 가격이 저가이며 고품질
- 기본적인 보안을 Bluetooth가 제공함
- 다수의 주변 장치를 특별한 조치 없이 Bluetooth로 연결 가능
3
- 전력에 따라 다소 다르지만 최대 100m 정도 거리를 Bluetooth로 연결 가능
- Bluetooth로 연결되는 장치들은 자체 Network을 구성할 수 있음
2) 동일 Piconet에 속해있지 않은 다른 Device와 Bluetooth 방식으로 통신하기 위한 방
법을 설명하라. (20)
- 동일 Piconet에 속하지 않으면 기본적으로 Bluetooth 통신하는 것이 불가능함
- 하지만 Piconet에 속한 Device는 Master의 명령을 받아 통신을 하므로, 현재 연결된
Piconet을 끊고 다른 Piconet의 다른 Master에 연결함으로써 다른 Piconet의 Device와 통
신이 가능함
- 다만 Piconet 연결과 해제가 있어야 하므로, 동시에 두 개의 Piconet과 통신하는 것은 불
가능하고, Handover 기능을 하는 Device를 이용해 간접 연결되는 방식이 가능함
- 이러한 방식은 Scatternet이라 부름

More Related Content

DOCX
TestSdic2014-2(Answer)
DOCX
TestSDS2015-2(Answer)
PDF
ICT+UD 융합작품 개발문서(스마트디바이스지능통신)
DOCX
TestSDIC2015-1(Answer)
DOCX
TestSDIC2016-2(answer)
DOCX
TestSDS2016-2(Answer)
DOCX
TestSDIC2016-1(answer)
DOCX
TestSDIC2017-1(answer)
TestSdic2014-2(Answer)
TestSDS2015-2(Answer)
ICT+UD 융합작품 개발문서(스마트디바이스지능통신)
TestSDIC2015-1(Answer)
TestSDIC2016-2(answer)
TestSDS2016-2(Answer)
TestSDIC2016-1(answer)
TestSDIC2017-1(answer)

What's hot (6)

DOCX
TestSdic2014-1(Answer)
DOCX
TestSDIC2017-2(answer)
DOCX
TestSDS2016-1(Answer)
DOCX
TestSDS2017-2(answer)
DOCX
TestSDS(2017-1, answer)
DOCX
TestSDS2015-1(Answer)
TestSdic2014-1(Answer)
TestSDIC2017-2(answer)
TestSDS2016-1(Answer)
TestSDS2017-2(answer)
TestSDS(2017-1, answer)
TestSDS2015-1(Answer)
Ad

Similar to TestSDIC2015-2(Answer) (20)

DOCX
Test-SDIC2018-2(answer)
DOCX
TestSDS2014-2(Answer)
DOCX
Test-SDIC2018-1(Answer)
DOCX
TestSDS2014-1(Answer)
DOCX
TestSDS2013-2(answer)
DOCX
TestBCD2016-2(Answer)
PPTX
아두이노 RC카 만들기
PPT
안드로이드스터디 14
PDF
아두이노 bluetooth
PPTX
모바일에서 Ble pxp
PPTX
모바일에서 Ble pxp
PDF
원준갓의 IoT 수업
PPTX
아두이노로 배우는 피지컬 컴퓨팅(중급)
DOCX
TestSDS2018-2(answer)
PPTX
Smart rover 통신 분석
DOCX
TestBCD2018-2(answer)
DOCX
TestSDS2013-1(answer)
PDF
Google hack fair 발표 20121117
PPTX
Chapter2 ap group11
PPTX
라즈베리파이 IoT 시작하기
Test-SDIC2018-2(answer)
TestSDS2014-2(Answer)
Test-SDIC2018-1(Answer)
TestSDS2014-1(Answer)
TestSDS2013-2(answer)
TestBCD2016-2(Answer)
아두이노 RC카 만들기
안드로이드스터디 14
아두이노 bluetooth
모바일에서 Ble pxp
모바일에서 Ble pxp
원준갓의 IoT 수업
아두이노로 배우는 피지컬 컴퓨팅(중급)
TestSDS2018-2(answer)
Smart rover 통신 분석
TestBCD2018-2(answer)
TestSDS2013-1(answer)
Google hack fair 발표 20121117
Chapter2 ap group11
라즈베리파이 IoT 시작하기
Ad

More from Yong Heui Cho (20)

PPTX
Android - Sensor Manager
PPTX
Android - Broadcast Receiver
PPTX
Android - Message
PPTX
Cloud Computing
PPTX
Computing Paradigm
DOCX
TestEC2018-2(answer)
DOCX
TestEC2018-1(answer)
DOCX
TestBCD2018-1(answer)
DOCX
TestSDS2018-1(answer)
PPTX
BJT - Analysis of Bias
DOCX
TestCloud2018-2(answer)
DOCX
TestECD2018-1(answer)
DOCX
TestCloud2018-1(answer)
PPTX
Cloud Service Model
DOCX
RF 증폭기 설계(Design of RF Amplifier)-rev1
PPTX
Computing Paradigm - rev1
PPTX
Cloud Deployment Model
PPTX
Cloud Computing Architecture
PPTX
Cloud Computing Fundamentals
PDF
클라우드서비스(강의계획서,2018-1)
Android - Sensor Manager
Android - Broadcast Receiver
Android - Message
Cloud Computing
Computing Paradigm
TestEC2018-2(answer)
TestEC2018-1(answer)
TestBCD2018-1(answer)
TestSDS2018-1(answer)
BJT - Analysis of Bias
TestCloud2018-2(answer)
TestECD2018-1(answer)
TestCloud2018-1(answer)
Cloud Service Model
RF 증폭기 설계(Design of RF Amplifier)-rev1
Computing Paradigm - rev1
Cloud Deployment Model
Cloud Computing Architecture
Cloud Computing Fundamentals
클라우드서비스(강의계획서,2018-1)

TestSDIC2015-2(Answer)

  • 1. 1 2015 Final-Term Examination (100) Smart Device Intelligent Communication Date: June 16, 2015. 1. 온도 Sensor(예를 들면 MCP9808), Bluetooth Module, Arduino Mega, Android를 이용해 휴대형 온도계를 만들려 한다. 다음을 답하여라. (70) 1) 이 제품이 사용될 수 있는 타당한 응용이나 UI/UX를 제시하라. (10) ex) 자동화 비닐하우스의 실내 온도 측정, 가정 자동화용 실내 온도 측정 등 2) 이 제품에 적합한 Block Diagram을 그리고, 각 Block의 세부적 역할을 설명하라. (20) 3) 온도 Sensor가 기압계처럼 I2C로 Arduino와 연결된 경우, 온도값을 SoftwareSerial로 전달하는 Arduino Sketch Code를 제시하라. 여기서 온도값을 읽는 함수는 readTemp(), Bluetooth Module의 TXD와 RXD는 Arduino Mega의 D10, D11에 각각 연결되었다고 가정하자. (20) #include <Wire.h> #include <SoftwareSerial.h> SoftwareSerial blueSerial(10, 11); void setup() { Wire.begin();
  • 2. 2 blueSerial.begin(115200); } void loop() { int temp = readTemp(); blueSerial.println(temp); delay(100); } 4) Bluetooth Module이 이미 Smartphone에 연결되어 사용할 준비가 끝났다고 가정하고, BluetoothSerialService가 구동하기 위한 Code를 제시하라. 여기서 관련된 Code는 아 래 함수에만 작성하라. (20) public class MainActivity extends ActionBarActivity { static BluetoothSerialService bthService; public BluetoothAdapter bthAdapter; protected void onCreate(Bundle savedInstanceState) { bthAdapter = BluetoothAdapter.getDefaultAdapter(); bthService = new BluetoothSerialService(this, bthAdapter); } protected void onResume() { if (bthService != null) { if (bthService.getState() == BluetoothSerialService.STATE_NONE) bthService.start(); } } protected void onDestroy() { if (bthService != null) bthService.stop(); } } 2. Bluetooth에 대해 다음을 답하라. (30) 1) Bluetooth 방식의 장점을 3개 이상 쓰시오. (10) - 대량 생산되는 HW로 인해 가격이 저가이며 고품질 - 기본적인 보안을 Bluetooth가 제공함 - 다수의 주변 장치를 특별한 조치 없이 Bluetooth로 연결 가능
  • 3. 3 - 전력에 따라 다소 다르지만 최대 100m 정도 거리를 Bluetooth로 연결 가능 - Bluetooth로 연결되는 장치들은 자체 Network을 구성할 수 있음 2) 동일 Piconet에 속해있지 않은 다른 Device와 Bluetooth 방식으로 통신하기 위한 방 법을 설명하라. (20) - 동일 Piconet에 속하지 않으면 기본적으로 Bluetooth 통신하는 것이 불가능함 - 하지만 Piconet에 속한 Device는 Master의 명령을 받아 통신을 하므로, 현재 연결된 Piconet을 끊고 다른 Piconet의 다른 Master에 연결함으로써 다른 Piconet의 Device와 통 신이 가능함 - 다만 Piconet 연결과 해제가 있어야 하므로, 동시에 두 개의 Piconet과 통신하는 것은 불 가능하고, Handover 기능을 하는 Device를 이용해 간접 연결되는 방식이 가능함 - 이러한 방식은 Scatternet이라 부름