MATLAB Arduino Due Bluetooth Communication Issue

I have been using Arduino DUE for a while now via USB communication. I need to establish a Bluetooth connection (HC-05) to DUE, but I am facing a problem. My Arduino Uno board works just fine via HC-05. When it comes to the DUE, it cannot use the Bluetooth communication to create Matlab Arduino object. In the Arduino setup, I am able to successfully configure the DUE and the Bluetooth module. However, at the setup step where you test the connection, it always fails. I have repeated the process many times and checked the availability of the Bluetooth module. Everything (connections, pairing, etc) looks normal and you can see the change in the blinking behavior of the module when Matlab tries to connect to the DUE; but it eventually fails the connection test.
I am not sure if this is relevant to my problem or not; However, whenever I need to configure my Arduino DUE, I must press the physical Erase key on the board to allow it to happen. Is this the procedure for Arduino DUE in Matlab for allowing configuration of the board or it is a failure/defect in the board I have?
instrhwinfo('Bluetooth','DSD TECH HC-05')
ans =
HardwareInfo with properties:
RemoteName: 'DSD TECH HC-05'
RemoteID: 'btspp://001403067646'
ObjectConstructorName: {'Bluetooth('DSD TECH HC-05', 1);'}
Channels: {'1'}
a=arduino('btspp://001403067646','Due','Trace',true)
Unable to change Arduino settings with Bluetooth connection. Call
arduinosetup to configure the board.

Answers (0)

Categories

Products

Release

R2017a

Asked:

on 26 Oct 2018

Edited:

on 26 Oct 2018

Community Treasure Hunt

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

Start Hunting!