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

cross mob
Artin
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

Hello,

We try to install "RFCOMM_Serial_Port_1 Program" in the CYBT353027EVAL board but get following error. I have also tied to do the recover/reset procedure without any success, however I don't know in which step I have to do the rest, but I have tried a few different ways.

I wonder if you have any suggestions to do this?

COMMAND:

RFCOMM_Serial_Port_1 Program


ERROR:

Programming target device ...

Detecting serial port ...
Serial port not detected...
Download failed

If the serial port was not detected, make sure no other program such as ClientControl has the port open.

If you have issues downloading to the kit, follow the steps below:

Press and hold the 'Recover' button on the kit.
Press and hold the 'Reset' button on the kit.
Release the 'Reset' button.
After one second, release the 'Recover' button.
make[1]: *** [../mtb_shared/wiced_btsdk/dev-kit/baselib/20706A2/release-v4.0.0/COMPONENT_20706A2/make/recipe/program.mk:102: qprogram] Error 1
make: *** [../mtb_shared/core-make/release-v1.9.1/make/core/main.mk:434: secondstage_build] Error 2

Best regards

Artin

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Please check the log below. You can see from the log that the device already receives the data from my phone.

You can catch the app log first. If need further debug, you can catch the btspy log.

—…APP Start, interupt=1, timeout=0, loopback=0

app_management_callback 21

app_management_callback 20

app_management_callback 20

app_management_callback 0

hci_control_write_eir 22a798

EIR :09 09 73 70 70 20 74 65 73 74 03 03 01 11 00

app_management_callback 9

app_management_callback 8

BTM_PAIRING_IO_CAPABILITIES_REQUEST_EVT bda ac d6 18 56 1e 45

app_management_callback 4

Pairing with: BdAddr:ac d6 18 56 1e 45 Status:0 Len:248 Name:Owen

app_management_callback 11

Pairing Complete: 0

app_management_callback 18

NVRAM ID:1 written :138 bytes result:0

app_management_callback 12

Encryption Status Event: bd (ac d6 18 56 1e 45 ) res 0

spp_connection_up_callback handle:2 address:ac d6 18 56 1e 45

spp_rx_data_callback handle:2 len:3 63-65, total rx 3

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:2 hci_status:0

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:0 hci_status:0

spp_rx_data_callback handle:2 len:6 63-56, total rx 9

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:2 hci_status:0

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:0 hci_status:0

spp_rx_data_callback handle:2 len:3 12-56, total rx 12

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:2 hci_status:0

View solution in original post

0 Likes
10 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

The recovery procedure is a little different for CYBT-353027.

Please refer to the following blog about how to do the recovery:

https://community.infineon.com/t5/Knowledge-Base-Articles/WICED-Module-Programmer-User-Guide-KBA2250...

0 Likes

Thanks Owen!

I'll test it and let you know the result.

0 Likes
Artin
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

Hello Owen,

I managed to install RFCOMM_Serial_Port_1 Program in the module using your tip, but some communication still doesn't seem to work. The only difference is that I get "Allow access to your contacts and call history" when I pair the module with an Android tablet. I have two questions:

1. Is installing RFCOMM_Serial_Port_1 enough to use the module to send and receive data via serial port?

2. How can I verify my installation by reading what is installed in the module?

Best regards

Artin

0 Likes
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

To test the SPP function with the module, you will need an apps on your phone which can support the SPP profile.

0 Likes

Owen,

Yes, I'm aware of it clearly. Our product (the hardware) works properly with our application for Windows and Android with another BT module. My intention is to replace the old BT 2.1 with a newer module and because CYBT-353027-02 seems be a good choice at leas according to the data sheet, I decided to give it a chance.

Please let me know if you can answer my previous questions.

Artin

0 Likes
lock attach
Attachments are accessible only for community members.
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

I tested the SPP demo on my side. And use a SPP apps on the phone to send data to the device. It can successfully receive the data from the phone.

I made some change about the code to show the log on the puart. You can test it on your side to see if it can work.

 

0 Likes

Thanks Owen! I saw that you have redirected the signals to PUART and stopped the Btspy test on three lines. But it didn't help us. Our exiting BT on the hardware side acts as client and the application acts as master to stablish the connection. Maybe there is something there we need to change in the code. Have you any suggestion?

/Artin

0 Likes
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Could you connect the module with your android device? 

Can it send data to the module? Please share some logs as I can't see the problem on my side.

0 Likes
Artin
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

No, you just can pair them. No signals on UART at all.

Would you please explain which kind of log you need? Then I'll make them exactly as you require and send you.

0 Likes
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Please check the log below. You can see from the log that the device already receives the data from my phone.

You can catch the app log first. If need further debug, you can catch the btspy log.

—…APP Start, interupt=1, timeout=0, loopback=0

app_management_callback 21

app_management_callback 20

app_management_callback 20

app_management_callback 0

hci_control_write_eir 22a798

EIR :09 09 73 70 70 20 74 65 73 74 03 03 01 11 00

app_management_callback 9

app_management_callback 8

BTM_PAIRING_IO_CAPABILITIES_REQUEST_EVT bda ac d6 18 56 1e 45

app_management_callback 4

Pairing with: BdAddr:ac d6 18 56 1e 45 Status:0 Len:248 Name:Owen

app_management_callback 11

Pairing Complete: 0

app_management_callback 18

NVRAM ID:1 written :138 bytes result:0

app_management_callback 12

Encryption Status Event: bd (ac d6 18 56 1e 45 ) res 0

spp_connection_up_callback handle:2 address:ac d6 18 56 1e 45

spp_rx_data_callback handle:2 len:3 63-65, total rx 3

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:2 hci_status:0

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:0 hci_status:0

spp_rx_data_callback handle:2 len:6 63-56, total rx 9

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:2 hci_status:0

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:0 hci_status:0

spp_rx_data_callback handle:2 len:3 12-56, total rx 12

app_management_callback 2

Power mgmt status event: bd (ac d6 18 56 1e 45 ) status:2 hci_status:0

0 Likes