Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6 Forum Discussions

Communication
Level 1
Level 1
10 replies posted 10 likes given 25 sign-ins

Hi everybody!
I'm a beginner in designing PSoC 6 BLE using ModusToolbox software, I really don't know how to write a program so that PSoC 6 BLE can play Bluetooth and transmit data via smartphone. I can't really do that. Hope everybody help please.
Thank you very much!!

0 Likes
10 Replies
Yugandhar
Moderator
Moderator
Moderator
1000 replies posted 5 likes given First comment on blog

Hello @Communication ,

In MTB, you can refer to the 'BTSTACK Hello Sensor' code example for PSoC6 BLE device.

https://github.com/Infineon/mtb-example-btstack-freertos-hello-sensor

Thanks,

P Yugandhar. 

Thank you for replying to me. But I have a pretty big problem that I just learned them recently so I still don't understand how they work and I also tried following the manufacturer's examples, and they all failed!!!

0 Likes

Hello @Communication , 

Could you please let me know what is the issue you are facing? Kindly, share the screenshots of the issue. 

In MTB, you can start with the BLE related code example as shown below.

Yugandhar_0-1673148174776.png

Please refer to the Getting started with PSoC™ 6 MCU on ModusToolbox software Appnote for more information. 

Thanks,

P Yugandhar. 

I use the project as shown below to write a bluetooth transmitter that connects data via smartphone, I tried to write according to examples such as BLE_FindMe, BLE_HelloSensor,.... But all failed. I am not able to receive transmission signal from PSoC 6 BLE kit to my smartphone. Because I just started working, I don't know if I did it exactly as the publisher's example gave. Sorry for bothering!

Huy123_0-1673152693303.jpeg

 


Cảm ơn anh
Huy!

0 Likes

Hello @Communication , 

Are you able to build and program your device?

Thanks,

P Yugandhar. 

I'm still learning how to build a bluetooth receiver program over PSoC 6. I still haven't been able to build it successfully, I'm still using the example given by the publisher to learn about it.
Thank you!
Huy123

0 Likes

Hello @Communication , 

In the MTB, click on hello_sensor code example and then create. Kindly share the screenshots if you face any errors while cloning the project.

You can refer to the Hello_sensor project READMe from the below link for more information on the project working procedure. 

https://github.com/Infineon/mtb-example-btstack-freertos-hello-sensor

For information, refer to the MTB user guide

Thanks,

P Yugandhar. 

I want to change it to a simple bluetooth transmission program that doesn't use sensor, just transmits bluetooth from kit to device and vice versa, I write a program to control motor.
Thank you!

0 Likes

Hello @Communication , 

You can check with sample projects  hello_sensor, BLE_FindME code examples for basic working of the BLE.

If you want to connect two devices for sending the data, then you may have to create a Custom service with write,notify properties. As shown below, UART is the custom service which is created in GATT.

Yugandhar_0-1674452221380.png

 

Please let me know your application.

Thanks,

P Yugandhar.

Tôi có một dự án đọc cảm biến bằng PSoC 6 BLE: DHT11, cảm biến độ ẩm của đất, truyền dữ liệu và hiển thị dữ liệu đó tới ứng dụng điện thoại thông minh bằng Bluetooth.
Cảm ơn bạn!

0 Likes