How to use usb bluetooth adapter?

1 vue (au cours des 30 derniers jours)
Lei Ye
Lei Ye le 6 Jan 2020
Hi,
I am trying to use parrot minidrone in Simulink.
Everything seem ok, but the only trouble is that Matlab only detect the onborad bluetooth of my notebook.
such as:
>> b_s = instrhwinfo('Bluetooth')
b_s =
HardwareInfo with properties:
RemoteNames: {2×1 cell}
RemoteIDs: {2×1 cell}
BluecoveVersion: 'BlueCove-2.1.1-SNAPSHOT'
JarFileVersion: 'Version 4.1'
and if I disable the onboard bluetooth, it becomes this:
b_s = instrhwinfo('Bluetooth')
b_s =
HardwareInfo with properties:
RemoteNames: []
RemoteIDs: []
BluecoveVersion: 'BlueCove-2.1.1-SNAPSHOT'
JarFileVersion: 'Version 4.1'
I can connect with the drone with the usb bluetooth adapter, and if I set the ip address manually, the telnet is ok.
and I can pinging it:
But when I am trying to deploy the target codes, it becomes:
I think that it is because the Matlab and Simulink are using the onboard bluetooth, which should not be used actually,
but how to set it?
Is anybody can help me?

Réponses (1)

Kaashyap Pappu
Kaashyap Pappu le 21 Jan 2020
The block in Simulink is probably trying to access the minidrone using Bluetooth, as opposed to using the USB adapter. Initial troubleshooting steps are highlighted in a similar question here.
Another possible workaround may be to communicate serially with the USB adapter using Serial Receive Block if the adapter is connected to the PC. However this could be incompatible with the existing model.
Hope this helps!

Catégories

En savoir plus sur MATLAB Support Package for Parrot Drones dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by