How to use BLE with LPC4330?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use BLE with LPC4330?

1,115件の閲覧回数
nabeelfattah
Contributor II

Hello,

I have been struggled with using BLE board such as HC05/06 for more than one month. 

can some tell me how to use BLE with LPC4330 for receiving data then printing this data on the console  in LPCXpresso?

BLE is connected to the UART1. All the examples has been tested and tried different ways but not successful.

ラベル(2)
0 件の賞賛
5 返答(返信)

756件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hi Nabeel,

Do you mean the HC-05/HC-06 module (see Using the HC-06 Bluetooth Module)? These modules are classic Bluetooth modules, and *not* BLE modules and incompatible with BLE.

It could be that you are missing to add a pull-up to the Rx line, see Getting Bluetooth Working with JY-MCU BT_BOARD V1.06.

I hope this helps,

Erich

0 件の賞賛

756件の閲覧回数
nabeelfattah
Contributor II

Hi,

It has been used with Ardunio and my PC successfully.

HC05/06 was connected to the Arduino and Plugable Bluetooth dongle was connected to the PC. sending data from PC and receiving it by Arduino, it was okay.

but now, the HC05/06 was connected to the LPC4330 board, I can see the received data on the oscilloscope connected to Bluetooth module's pins but how can I write a code using LPCXpresso to print the received data?

The code for the UART1 (TX - GPIO1[6] and RX- GPIO1[7])?

and 

The code for printing data?

Regards

Nabeel

0 件の賞賛

756件の閲覧回数
converse
Senior Contributor V

To print on the console, use printf()

See https://community.nxp.com/message/630895 

0 件の賞賛

756件の閲覧回数
nabeelfattah
Contributor II

many thanks Con, what about UART?

What is the input for the printf()?

0 件の賞賛

756件の閲覧回数
converse
Senior Contributor V

There are lots of UART examples in LPCOpen for the LPC43xx family

printf and scanf both use the console.

0 件の賞賛