No route to host 113 while trying to connect as BLE central to BLE peripheral

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

cross mob
AnHu_4662101
Level 2
Level 2
First like given

Hi,

I've encounter an issue while using Linux OS with Bluez trying to connect to peripheral device, model CYBT-413034-02, steps:

  1. Set Random (static) address to Cypress devices
  2. Attach using Bluez `btattach` the devices creating HCI device access.
  3. Connecting to device: "Failed to connect to: DEV_ID. Error code from connect: 113 message: No route to host"

Using different device than Cypress this works as intended.

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi AnHu_4662101 ,

For CYBT-413034-02 , there will be two UART ports opened - HCI UART & Peripheral UART. HCI UART is used for sending / receiving HCI commands. Please make sure you are connecting to HCI UART only .

After connecting to HCI UART make sure you are getting success response for HCI reset command. Only then proceed with next commands.

You may also refer :

use EZ-BT CYBT-423028-EVAL as BT HCI device

Running BlueZ on CY Part

Thanks,

Anjana

View solution in original post

5 Replies
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi AnHu_4662101 ,

For CYBT-413034-02 , there will be two UART ports opened - HCI UART & Peripheral UART. HCI UART is used for sending / receiving HCI commands. Please make sure you are connecting to HCI UART only .

After connecting to HCI UART make sure you are getting success response for HCI reset command. Only then proceed with next commands.

You may also refer :

use EZ-BT CYBT-423028-EVAL as BT HCI device

Running BlueZ on CY Part

Thanks,

Anjana

There is a vendor specific command within Cypress dongles:

hcitool -i hci0 cmd 0x3f 0x0001 O6 O5 O4 O3 O2 O1


What does this command do, does it:

  1. set public address
  2. set random address
  3. other

Thanks.

0 Likes

Hi AnHu_4662101 ,

This command sets the public Bluetooth device address.

Regards,

Anjana

0 Likes

Hi AnjanaM_61​,

If this is true, this means, the address needs to be first registered with Bluetooth SIG according to spec:

The public device address shall be created in accordance with section 9.2 ("48-

bit universal LAN MAC addresses") of the IEEE 802-2001 standard

(http://standards.ieee.org/findstds/standard/802-2001.html) and using a valid

Organizationally Unique Identifier (OUI) obtained from the IEEE Registration

Authority (see http://standards.ieee.org/regauth/oui/forms/ and sections 9 and

9.1 of the IEEE 802-2001 specification).

Is there any HCI command to assign a random device address instead?

The random device address may be of either of the following two sub-types:

• Static address

• Private address.

The term random device address refers to both static and private address

types.

Thanks.

0 Likes

Hi AnHu_4662101 ,

Q) Is there any HCI command to assign a random device address instead?

A) I think there is an LE controller command for setting random address  HCI_LE_Set_Random_Address (Refer BT Spec)

Please Check with (OGF 0x08) OCF 0x005

Regards,

Anjana

0 Likes