11-27-2017 03:24 PM
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,
Solved! Go to Solution.
11-27-2017 05:31 PM
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...
11-27-2017 10:23 PM - edited 11-27-2017 10:47 PM
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
11-28-2017 02:32 AM
@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.
11-28-2017 02:34 AM
@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...
- Do you have one or two BT modules?
- Are the BT modules paired?
- 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.
11-28-2017 08:28 AM - edited 11-28-2017 08:31 AM
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.
11-28-2017 09:10 AM
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.