11-12-2019 03:52 AM
Good morning,
I have created (copying it) a labview file using LINX to turn on and off a led through a HC-05 bluetooth module and arduino uno.
Unfortunately it doesn't work.
Below the steps I have followed.
1- Create an association with HC-05 module.
2 - Created VI and set the COM7 (one of the two bluetooth port) as serial port and set the baud rate to 9600 (i have checked is the correct working baud rate of the HC-05)
3 - Uploaded the firmware (Click Tools»MakerHub»LINX»Firmware Wizard…) unplugging in the meanwhilearduino tx and rx pins (i have tried also with these pins plugged)
The firmware has been uploaded using bluetooth (no error displayed)
5- Reconnect tx and rx pins.
6 - If I try to click the stop button an error pop up.
When I launch the VI the HC-05 seems to be connected (1 blink every 2 seconds).
I have also checked in notification and seems to be connected.
Thanks
Kind regards
11-13-2019 10:57 AM
Good evening,
in attachement the file .vi
07-06-2022 08:01 PM
Was this question every addressed. Can the HC-05 be initialized with LabView and Linx?
07-13-2022 06:13 AM
I am also facing the same issue. No solution yet.
https://forums.ni.com/t5/Hobbyist-Toolkit/LINX-Blink-Simple-vi-is-not-working-with-HC-05-over-blueto...
07-13-2022 09:16 AM - edited 07-13-2022 09:33 AM
The HC-05 needs to be configured using any standard terminal program like Tera-Term. You need to set up things like master/slave mode, paring, serial parameters, paring pin, etc.
Here's a link to a good HC-05 Wiki
Once an HC-05 is properly configured and paired with your computer. You computer should install a virtual com port and the Bluetooth part becomes transparent. Communicating through the VCP/BT/HC-05 will be no different than communicating through any other serial connection.
07-13-2022 09:31 AM - edited 07-13-2022 09:33 AM
in this youtube video they didn't do any master/slave configuration https://www.youtube.com/watch?v=vqr7M266u6U
I couldn't recreate this project as in this youtube video.
I am getting following error whenever I try executing the operation exactly as in this youtube video
Error -1073807246 occurred at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->LMH-LINX.lvlib:Device.lvlib:Serial Open.vi->LMH-LINX.lvlib:Device.lvlib:Initialize Device.vi->LMH-LINX.lvlib:Initialize.vi->LMH-LINX.lvlib:Open Serial.vi->LINX - Blink (Simple).vi
Error 5003 occurred at :
Open Serial.vi >>
Initialize.vi >>
Initialize Device.vi >>
Synchronize.vi
Possible reason(s):
LabVIEW was unable to connect to the LINX device using the following settings:
Interface: Serial
COM Port: COM11
Please make sure that the LINX firmware is loaded on the device (Tools>>MakerHub >>LINX>>Firmware Wizard) that there are no other open connections to the device, then check the configuration settings, and try again.
If this error persists please search, then post on the LINX forums at
07-13-2022 09:42 AM - edited 07-13-2022 09:57 AM
It assumes the HC-05 has been properly configured prior to setting up LabVIEW and LINX.
You will find most of these homemade videos and tutorials for using the HC-05 and HC-06 with an Arduino are crap.
Case in point: I did an Arduino project with them years ago and every tutorial I saw made it look like the HC-05 was a 3.3 volt device that needed level shifting. While sure the actual HC-05 module is a 3.3 volt device the carrier board they put them on has a 3.3 volt regulator and level shifting on it so they can work directly with 5 volt Arduinos .
Try this https://www.instructables.com/How-to-Configure-HC-05-Bluetooth-Module-As-Master-/
07-13-2022 09:47 AM
Thank you RTSLVU (Trusted Enthusiast) for your prompt response, the clarification and the resources.
Since I just have one HC-05, should it be master or slave configured?
07-13-2022 10:05 AM
@mivytech wrote:
Thank you RTSLVU (Trusted Enthusiast) for your prompt response, the clarification and the resources.
Since I just have one HC-05, should it be master or slave configured?
If you are paring the HC-05 to your computer then your computer will be the master and the HC-05 will be the slave.
The only difference I can recall between master and slave is the master can initiate BT paring but a slave can not.
Here's my old document from when I was playing with these
07-14-2022 04:44 PM
@RTSLVU wrote:
@mivytech wrote:
Thank you RTSLVU (Trusted Enthusiast) for your prompt response, the clarification and the resources.
Since I just have one HC-05, should it be master or slave configured?If you are paring the HC-05 to your computer then your computer will be the master and the HC-05 will be the slave.
The only difference I can recall between master and slave is the master can initiate BT paring but a slave can not.
Here's my old document from when I was playing with these
I did configure the HC-05 successfully but still I was unable to communicate with it via linx.
NI VISA package can successfully communicate with HC-05 but not Digilent Linx.
For example I was able to re-create this project: https://www.youtube.com/watch?v=Kw4eOkq1B4k
But failing to recreate this one: https://www.youtube.com/watch?v=vqr7M266u6U