cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

New Contributor

hello, im working on a project ( i need to transfer data from/to app inventor)  but im bad at code , could someone make me a few lines of code to make a bluetooth sensor (HC-06 here) communicate with an UART at 9600 bauds  using tx  - rx pls , hope u could help me

0 Likes
Reply
1 Solution
Honored Contributor II

KaKa,

The UART code is device-specific, what processor/kit do you use? It is always recommended to post questions in device-relate forum for better feedback. This forum is for general questions on Cypress software.

/odissey1

View solution in original post

8 Replies
Moderator
Moderator

Hi,

We recommend you to use Cypress' Ez-BLE modules for your BLE application. The reason is that you can easily configure this module. Please refer the Ez-BLE user guide obtained from the link below:

https://www.cypress.com/file/285326/download

You can find several operational examples in Section 3 of the above application note.

Thanks

Ganesh

0 Likes
Reply
New Contributor

sadly i have to use an UART

0 Likes
Reply
Valued Contributor II

I tried to refresh my old project for HC-04 from here.

only search for devices on different baudrate. comments in Russian.

0 Likes
Reply
New Contributor

thanks for the help but it seems way too complex , the code have to be like 5-10 lines, the uart should just be able to receive and send data by bluetooth to display it on app inventor (i'll be glad to donate u via paypal if can help me out)

it has to be with the UART_putchar / getchar code  and interuptions (don't need the lcd thing)

0 Likes
Reply
Honored Contributor II

KaKa,

The UART code is device-specific, what processor/kit do you use? It is always recommended to post questions in device-relate forum for better feedback. This forum is for general questions on Cypress software.

/odissey1

View solution in original post

Valued Contributor II

It seems so:

Connect the UART to the "HC-06

By default, it runs at 9600 baud.

AT commands will work until the module is connected to Bluetooth

Further:

-Turn on Bluetooth on the computer and look for new devices

- We find in the list of disorders "HC-06" and connect to it.

-Pin code required. you must enter "1234" or "0000"

In the device manager, a COM port will appear.

If the connection is established you can work as with a regular COM port.

there are many examples of working with the COM port

0 Likes
Reply
Honored Contributor II

KaKa,

Thank you for choosing my post here, but I believe that the correct answer was provided by Evgeniy Pavlov. I tested his solution long time ago and it works!

Please mark his answer as the correct one.

/odissey1

0 Likes
Reply
New Contributor

The problem is i need a code with Uart get char and put char

0 Likes
Reply