How to use the HCI over the uart of PSOC6 BLE?

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

cross mob
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

        Dear  Cypress:

                    PSOC6 is  double CM4+CM0 with BLE,  if we want to use PSOC BLE and  don;t want to know about the detail of b BLE,  we just want to use CM0

as BLE controller over the UART,  and CM4 as host, and how to use it in HCI over uart mode?   TKS;

0 Likes
1 Solution

If you just tansmit temperature data, no need to use HCI/DTM.

The DTM allows testing the physical (PHY) layer of the BLE radio by requesting the device to transmit or receive certain test packets. It is used for RF qualification tests and production line tests without the need of going through the complete BLE protocol stack.

Therefore, the first step is to figure out why to use HCI? Is it necessary for your application?

As for the relevant HCI commands, please refer to BLE specification v5.0, Vol 6, Part F - https://www.bluetooth.com/specifications/archived-specifications/

View solution in original post

0 Likes
8 Replies
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

It is theoretically feasible to run BLE HCI controller and host on cm0+ and cm4 repectively, or on single cm0+ or cm4. Two uart blocks can be allocated to cm0+ and cm4 seperately, and then short the corresponding pins externally. The host can issue HCI command through the connected UART blocks. This should work, but have not ever been verified.

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

Dear Wang:

    this  Double CPU APPLICATION will be suitable, but we don;t want to development Ble PART, just want to transmit the date with BLE in M0, do we  have example for it, ???

pastedImage_0.png

0 Likes

We currently don't have such demo for this use case. Generally, the HCI/DTM host is professional test equipment or test scripts developed by user. On the other hand, user does not need to care the BLE DTM controller, it is provided by BLE component with settings as below -

pastedImage_0.png

It can be put on either cm0+ or cm4. If both controller and host are put on same core, the IPC can not be used.

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

Dear  Wang:

    it's very kind of you to provide the advice to me ,  and for the HCI over the UART, do you have the file to describle about  which commander we should to send, For Example if we have get an temperature value, and we need to send the value to mobile phone,in  BLE , so before we transmit the date, what should we send to send command ? tks;

0 Likes

If you just tansmit temperature data, no need to use HCI/DTM.

The DTM allows testing the physical (PHY) layer of the BLE radio by requesting the device to transmit or receive certain test packets. It is used for RF qualification tests and production line tests without the need of going through the complete BLE protocol stack.

Therefore, the first step is to figure out why to use HCI? Is it necessary for your application?

As for the relevant HCI commands, please refer to BLE specification v5.0, Vol 6, Part F - https://www.bluetooth.com/specifications/archived-specifications/

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

Dear  Wang:

    TKS for you advice;

          as i know , the ble module provided with an AT command or corresponding API call to implement the function, does PSOC6 has the same AT command to use, tks;?

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

the application is show below:

pastedImage_0.png

0 Likes

There is no such AT commands applicable to PSoC 6.

0 Likes