Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

Bluetooth 통신

Bluetooth® 장치에서 읽고 쓰기

Bluetooth는 단파장 무선 전송을 사용하여 짧은 거리에서 데이터를 주고받기 위한 무선 통신 프로토콜입니다. Bluetooth 기능을 갖춘 일반적인 장치에는 랩탑, 휴대폰, 무선 센서 등이 있습니다.

MATLAB®의 Bluetooth 인터페이스를 사용하여 ASCII 데이터와 이진 데이터를 송수신할 수 있습니다. 이 인터페이스는 Bluetooth Serial Port Profile(SPP)을 사용합니다. Bluetooth SPP 장치를 식별하고 MATLAB에서 이 장치와의 양방향 연결을 설정할 수 있습니다.

Bluetooth 장치와 통신하려면 컴퓨터에 내장 또는 외장 Bluetooth 어댑터가 있어야 합니다. 자세한 내용은 Configure Bluetooth Communication Settings 항목을 참조하십시오.

Bluetooth 통신 시스템을 시뮬레이션, 분석 및 테스트하려면 Bluetooth Toolbox 항목을 참조하십시오.

함수

모두 확장

bluetoothlistScan nearby Bluetooth Classic devices (R2020b 이후)
bluetoothConnect to Bluetooth Classic device (R2020b 이후)
configureTerminatorBluetooth 장치와의 ASCII 문자열 통신을 위한 종결자 설정 (R2020b 이후)
configureCallbackSet callback function and trigger condition for communication with Bluetooth device (R2020b 이후)
readBluetooth 장치에서 데이터 읽어오기 (R2020b 이후)
readlineBluetooth 장치에서 ASCII 문자열 데이터 라인 읽어오기 (R2020b 이후)
writeBluetooth 장치에 데이터 쓰기 (R2020b 이후)
writelineBluetooth 장치에 ASCII 데이터 라인 쓰기 (R2020b 이후)
flushClear Bluetooth device buffers (R2020b 이후)

도움말 항목

문제 해결

Troubleshooting Bluetooth Communication

Troubleshoot the Bluetooth interface.

Resolve Bluetooth Connection Errors

Troubleshoot connecting to a Bluetooth device.

Bluetooth 경고 해결하기: 데이터를 읽어올 수 없음

수신되는 데이터가 없고, Bluetooth에서 데이터를 읽어올 수 없다는 내용의 경고 메시지가 발생하는 경우 문제를 해결합니다.

Resolve Bluetooth Warning: Unable to Read All Data

Troubleshoot when you receive some data and you get the warning message: Bluetooth unable to read all requested data.