LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bluetooth error 56

Solved!
Go to solution

hello everyone,

 

i try to communicate with arduino via hc06 device and i get error code 56,why?

i attached the vi file

thank you,

0 Kudos
Message 1 of 7
(3,174 Views)

i try to communicate with arduino via hc06 device and i get error code 56,why?

i attached the vi file

thank you,


First couple questions here...

  1. Do you have one or two BT modules?
  2. Are the BT modules paired?
  3. Are the communication parameters setup properly on both modules?

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 7
(3,151 Views)

I don't think you understand how to use these modules. There is no reason to use the LabVIEW bluetooth vi's as the HC-06 (and HC-05) are in essence "smart modules" .

 

You use a terminal emulator like Terra-Term to setup the module operation mode (master/slave), pairing, pin, communication settings, etc. then pair it to your computers built-in BT . Then once they are paired your computer should add a virtual serial port that corresponds to the HC-06.

 

The HC-06 is now "transparent" to the Adruino and computer you connect to it using a com port, VISA serial, VISA Read and VISA Write, just like any serial device.

https://www.itead.cc/wiki/Serial_Port_Bluetooth_Module_(Master/Slave)_:_HC-05

https://www.itead.cc/wiki/Serial_Port_Bluetooth_Module_(Slave):_HC-06

0 Kudos
Message 3 of 7
(3,134 Views)

@Rochellingham wrote:

I don't think you understand how to use these modules. There is no reason to use the LabVIEW bluetooth vi's as the HC-06 (and HC-05) are in essence "smart modules" .

 

You use a terminal emulator like Terra-Term to setup the module operation mode (master/slave), pairing, pin, communication settings, etc. then pair it to your computers built-in BT . Then once they are paired your computer should add a virtual serial port that corresponds to the HC-06.

 

The HC-06 is now "transparent" to the Adruino and computer you connect to it using a com port, VISA serial, VISA Read and VISA Write, just like any serial device.

https://www.itead.cc/wiki/Serial_Port_Bluetooth_Module_(Master/Slave)_:_HC-05

https://www.itead.cc/wiki/Serial_Port_Bluetooth_Module_(Slave):_HC-06


sorry but maybe the explain was bad ,i want to use the pc bluetooth device to comunicate with hc06 device that connected to the arduino.
i paired the device to the pc.
when i try to read/write from or to the device i get error code 56.

0 Kudos
Message 4 of 7
(3,118 Views)

@RTSLVU wrote:

i try to communicate with arduino via hc06 device and i get error code 56,why?

i attached the vi file

thank you,


First couple questions here...

  1. Do you have one or two BT modules?
  2. Are the BT modules paired?
  3. Are the communication parameters setup properly on both modules?

 


1.pc bluetooth device and hc06 device/

2.yes.

3.9600 baud rate in the two devices.

0 Kudos
Message 5 of 7
(3,117 Views)
Solution
Accepted by topic author pizioglove

Well like I said these devices are basically transparent, you do not need to use any of the LabVIEW Bluetooth vi's because Windows takes care of all that low level BT stuff when you pair the device

 

Once the HC-06 is paired to your computer you should see a Comm port that corresponds to the HC-06.  You should still be able to use the Arduino IDE just like if you were plugged in using a USB cable 

 

With LabVIEW you communicate with the Arduino using VISA just like any other serial device or LINX.

 

0 Kudos
Message 6 of 7
(3,102 Views)

Zillabob is correct,there is no need for the LabVIEW bluetooth vi's just use VISA or LINX once you have the HC-06 paired with your computer.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 7
(3,096 Views)