Bluetooth text transfer between mobile device and laptop

5 ビュー (過去 30 日間)
George Jacob
George Jacob 2019 年 9 月 27 日
回答済み: Kavya Vuriti 2020 年 2 月 18 日
I’m looking to use Matlab’s Bluetooth function to create an app that can transfer ASCII text data between a phone/tablet to a computer. Do you know if this possible?

回答 (1 件)

Kavya Vuriti
Kavya Vuriti 2020 年 2 月 18 日
Hi,
To use bluetooth as communication interface, you should have Instrument Control Toolbox installed.
There are 2 ways to create app:
  1. Type the following command in the command window.
>> appdesigner
This opens a canvas to design your app interface. You can add components like push buttons and write callbacks to create bluetooth object, to connect to the device, to send and receive messages and to disconnect device. You can also drag in edit field component to enter the text you want to send and display the text received.
Refer to the following link for programming apps in App Designer: https://www.mathworks.com/help/matlab/code-app-behavior-in-app-designer.html
For more information on communication using bluetooth, refer: https://www.mathworks.com/help/instrument/bluetooth-communication.html?s_tid=CRUX_lftnav
2. You can try writing a MATLAB function to establish connection using bluetooth and further communication and then create standalone application from MATLAB.

カテゴリ

Help Center および File ExchangeWireless Communications についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by