HCI_UART


Cale Collins <ccollins@...>
 

Hello,

I have built and installed HCI_UART to nRF52840 Nordic Development kit.  When I connect this device it appears with "lsusb", seemingly I can attach it using "btattach -B /dev/ttyACM0 -S 1000000", revealing hci0.  I have made the recommended adaptation to "/lib/systemd/system/bluetooth.service", appending -E to the "ExecStart=/usr/lib/bluetooth/bluetoothd -E" line.

When issuing commands with "btmgmt", "btmon" reports "Invalid Index (0x11)".  Normal HCI commands fail such as "hciconfig hci0 up".  

Using Bionic-Beaver Ubuntu, 4.15 kernel, Bluez 5.48, also tested with Xenial Ubuntu 4.15 kernel, Bluez 5.50.  Any suggestions would be greatly appreciated. 

Best regards, 

Cale Collins
Field Application Engineer
Gateworks Corporation
3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37


Carles Cufi
 

Hi there,

 

Could you please attach a btmon log of the attach procedure?

 

On one shell run “sudo btmon”

On another shell then run: “sudo btattach -B /dev/ttyACM0 -S 1000000”

 

And then attach the log output from btmon in an email or paste service.

 

Also, have you tried “sudo btmgmt --index 0”? i.e. specifying the index when invoking btmgmt?

 

Carles

 

From: devel@... <devel@...> On Behalf Of Cale Collins
Sent: 03 October 2018 17:43
To: devel@...
Subject: [Zephyr-devel] HCI_UART

 

Hello,

 

I have built and installed HCI_UART to nRF52840 Nordic Development kit.  When I connect this device it appears with "lsusb", seemingly I can attach it using "btattach -B /dev/ttyACM0 -S 1000000", revealing hci0.  I have made the recommended adaptation to "/lib/systemd/system/bluetooth.service", appending -E to the "ExecStart=/usr/lib/bluetooth/bluetoothd -E" line.

 

When issuing commands with "btmgmt", "btmon" reports "Invalid Index (0x11)".  Normal HCI commands fail such as "hciconfig hci0 up".  

 

Using Bionic-Beaver Ubuntu, 4.15 kernel, Bluez 5.48, also tested with Xenial Ubuntu 4.15 kernel, Bluez 5.50.  Any suggestions would be greatly appreciated. 

 

Best regards, 

 

Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37


Cale Collins <ccollins@...>
 

Charles, 

Thank you very much for the reply.  

Here is a paste-bin of the logs you requested.  Please let me know if there's any further information you would like me to provide.  


Best regards, 

Cale Collins
Field Application Engineer
Gateworks Corporation
3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37

On Wed, Oct 3, 2018 at 8:56 AM, Cufi, Carles <Carles.Cufi@...> wrote:

Hi there,

 

Could you please attach a btmon log of the attach procedure?

 

On one shell run “sudo btmon”

On another shell then run: “sudo btattach -B /dev/ttyACM0 -S 1000000”

 

And then attach the log output from btmon in an email or paste service.

 

Also, have you tried “sudo btmgmt --index 0”? i.e. specifying the index when invoking btmgmt?

 

Carles

 

From: devel@... <devel@...> On Behalf Of Cale Collins
Sent: 03 October 2018 17:43
To: devel@...
Subject: [Zephyr-devel] HCI_UART

 

Hello,

 

I have built and installed HCI_UART to nRF52840 Nordic Development kit.  When I connect this device it appears with "lsusb", seemingly I can attach it using "btattach -B /dev/ttyACM0 -S 1000000", revealing hci0.  I have made the recommended adaptation to "/lib/systemd/system/bluetooth.service", appending -E to the "ExecStart=/usr/lib/bluetooth/bluetoothd -E" line.

 

When issuing commands with "btmgmt", "btmon" reports "Invalid Index (0x11)".  Normal HCI commands fail such as "hciconfig hci0 up".  

 

Using Bionic-Beaver Ubuntu, 4.15 kernel, Bluez 5.48, also tested with Xenial Ubuntu 4.15 kernel, Bluez 5.50.  Any suggestions would be greatly appreciated. 

 

Best regards, 

 

Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37



Carles Cufi
 

Hi Cale,

 

The controller doesn´t seem to be responding to the Reset command, as if perhaps the serial (UART) connection was not working.

Can you try building and flashing the “hello_world” sample and visualize the output using minicom or similar, to make sure the serial link is working?

 

Carles

 

From: Cale Collins <ccollins@...>
Date: Wednesday, 3 October 2018 at 20:48
To: "Cufi, Carles" <Carles.Cufi@...>
Cc: "devel@..." <devel@...>, Luiz Augusto von Dentz <luiz.dentz@...>
Subject: Re: [Zephyr-devel] HCI_UART

 

Charles, 

 

Thank you very much for the reply.  

 

Here is a paste-bin of the logs you requested.  Please let me know if there's any further information you would like me to provide.  

 

 

Best regards, 


Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37

 

On Wed, Oct 3, 2018 at 8:56 AM, Cufi, Carles <Carles.Cufi@...> wrote:

Hi there,

 

Could you please attach a btmon log of the attach procedure?

 

On one shell run “sudo btmon”

On another shell then run: “sudo btattach -B /dev/ttyACM0 -S 1000000”

 

And then attach the log output from btmon in an email or paste service.

 

Also, have you tried “sudo btmgmt --index 0”? i.e. specifying the index when invoking btmgmt?

 

Carles

 

From: devel@... <devel@...> On Behalf Of Cale Collins
Sent: 03 October 2018 17:43
To: devel@...
Subject: [Zephyr-devel] HCI_UART

 

Hello,

 

I have built and installed HCI_UART to nRF52840 Nordic Development kit.  When I connect this device it appears with "lsusb", seemingly I can attach it using "btattach -B /dev/ttyACM0 -S 1000000", revealing hci0.  I have made the recommended adaptation to "/lib/systemd/system/bluetooth.service", appending -E to the "ExecStart=/usr/lib/bluetooth/bluetoothd -E" line.

 

When issuing commands with "btmgmt", "btmon" reports "Invalid Index (0x11)".  Normal HCI commands fail such as "hciconfig hci0 up".  

 

Using Bionic-Beaver Ubuntu, 4.15 kernel, Bluez 5.48, also tested with Xenial Ubuntu 4.15 kernel, Bluez 5.50.  Any suggestions would be greatly appreciated. 

 

Best regards, 

 

Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37

 


Stefan Jaritz
 

Hey,

Keep in mind that some Linux distros having a modemmanger. If you not having a blocking udev rule or uninstalling it, this piece of software will try to connect through your uart.

Cheers

Stefan


On 03/10/18 22:38, Cufi, Carles wrote:

Hi Cale,

 

The controller doesn´t seem to be responding to the Reset command, as if perhaps the serial (UART) connection was not working.

Can you try building and flashing the “hello_world” sample and visualize the output using minicom or similar, to make sure the serial link is working?

 

Carles

 

From: Cale Collins <ccollins@...>
Date: Wednesday, 3 October 2018 at 20:48
To: "Cufi, Carles" <Carles.Cufi@...>
Cc: "devel@..." <devel@...>, Luiz Augusto von Dentz <luiz.dentz@...>
Subject: Re: [Zephyr-devel] HCI_UART

 

Charles, 

 

Thank you very much for the reply.  

 

Here is a paste-bin of the logs you requested.  Please let me know if there's any further information you would like me to provide.  

 

 

Best regards, 


Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37

 

On Wed, Oct 3, 2018 at 8:56 AM, Cufi, Carles <Carles.Cufi@...> wrote:

Hi there,

 

Could you please attach a btmon log of the attach procedure?

 

On one shell run “sudo btmon”

On another shell then run: “sudo btattach -B /dev/ttyACM0 -S 1000000”

 

And then attach the log output from btmon in an email or paste service.

 

Also, have you tried “sudo btmgmt --index 0”? i.e. specifying the index when invoking btmgmt?

 

Carles

 

From: devel@... <devel@...> On Behalf Of Cale Collins
Sent: 03 October 2018 17:43
To: devel@...
Subject: [Zephyr-devel] HCI_UART

 

Hello,

 

I have built and installed HCI_UART to nRF52840 Nordic Development kit.  When I connect this device it appears with "lsusb", seemingly I can attach it using "btattach -B /dev/ttyACM0 -S 1000000", revealing hci0.  I have made the recommended adaptation to "/lib/systemd/system/bluetooth.service", appending -E to the "ExecStart=/usr/lib/bluetooth/bluetoothd -E" line.

 

When issuing commands with "btmgmt", "btmon" reports "Invalid Index (0x11)".  Normal HCI commands fail such as "hciconfig hci0 up".  

 

Using Bionic-Beaver Ubuntu, 4.15 kernel, Bluez 5.48, also tested with Xenial Ubuntu 4.15 kernel, Bluez 5.50.  Any suggestions would be greatly appreciated. 

 

Best regards, 

 

Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37

 



Carles Cufi
 

Good point.

 

We have details about this in the nRF5x Segger page:

 

https://docs.zephyrproject.org/latest/tools/nordic_segger.html#usb-cdc-acm-serial-port-setup

 

Carles

 

From: devel@... <devel@...> On Behalf Of Stefan Jaritz
Sent: 04 October 2018 12:54
To: devel@...
Subject: Re: [Zephyr-devel] HCI_UART

 

Hey,

Keep in mind that some Linux distros having a modemmanger. If you not having a blocking udev rule or uninstalling it, this piece of software will try to connect through your uart.

Cheers

Stefan

 

On 03/10/18 22:38, Cufi, Carles wrote:

Hi Cale,

 

The controller doesn´t seem to be responding to the Reset command, as if perhaps the serial (UART) connection was not working.

Can you try building and flashing the “hello_world” sample and visualize the output using minicom or similar, to make sure the serial link is working?

 

Carles

 

From: Cale Collins <ccollins@...>
Date: Wednesday, 3 October 2018 at 20:48
To: "Cufi, Carles" <Carles.Cufi@...>
Cc: "devel@..." <devel@...>, Luiz Augusto von Dentz <luiz.dentz@...>
Subject: Re: [Zephyr-devel] HCI_UART

 

Charles, 

 

Thank you very much for the reply.  

 

Here is a paste-bin of the logs you requested.  Please let me know if there's any further information you would like me to provide.  

 

 

Best regards, 


Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37

 

On Wed, Oct 3, 2018 at 8:56 AM, Cufi, Carles <Carles.Cufi@...> wrote:

Hi there,

 

Could you please attach a btmon log of the attach procedure?

 

On one shell run “sudo btmon”

On another shell then run: “sudo btattach -B /dev/ttyACM0 -S 1000000”

 

And then attach the log output from btmon in an email or paste service.

 

Also, have you tried “sudo btmgmt --index 0”? i.e. specifying the index when invoking btmgmt?

 

Carles

 

From: devel@... <devel@...> On Behalf Of Cale Collins
Sent: 03 October 2018 17:43
To: devel@...
Subject: [Zephyr-devel] HCI_UART

 

Hello,

 

I have built and installed HCI_UART to nRF52840 Nordic Development kit.  When I connect this device it appears with "lsusb", seemingly I can attach it using "btattach -B /dev/ttyACM0 -S 1000000", revealing hci0.  I have made the recommended adaptation to "/lib/systemd/system/bluetooth.service", appending -E to the "ExecStart=/usr/lib/bluetooth/bluetoothd -E" line.

 

When issuing commands with "btmgmt", "btmon" reports "Invalid Index (0x11)".  Normal HCI commands fail such as "hciconfig hci0 up".  

 

Using Bionic-Beaver Ubuntu, 4.15 kernel, Bluez 5.48, also tested with Xenial Ubuntu 4.15 kernel, Bluez 5.50.  Any suggestions would be greatly appreciated. 

 

Best regards, 

 

Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37

 

 


Cale Collins <ccollins@...>
 

Charles,

Thank you very much for the advice, I figured out that I built the .hex file with the incorrect parameters: 

cmake -DBOARD=nrf52840_pca10059 ../..

When I needed:

cmake -DBOARD=nrf52840_pca10056 ../..

HCI_UART is working magnificently now. 


Best regards, 


Cale Collins
Field Application Engineer
Gateworks Corporation
3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37

On Wed, Oct 3, 2018 at 2:38 PM, Cufi, Carles <Carles.Cufi@...> wrote:

Hi Cale,

 

The controller doesn´t seem to be responding to the Reset command, as if perhaps the serial (UART) connection was not working.

Can you try building and flashing the “hello_world” sample and visualize the output using minicom or similar, to make sure the serial link is working?

 

Carles

 

From: Cale Collins <ccollins@...>
Date: Wednesday, 3 October 2018 at 20:48
To: "Cufi, Carles" <Carles.Cufi@...>
Cc: "devel@..." <devel@...>, Luiz Augusto von Dentz <luiz.dentz@...>
Subject: Re: [Zephyr-devel] HCI_UART

 

Charles, 

 

Thank you very much for the reply.  

 

Here is a paste-bin of the logs you requested.  Please let me know if there's any further information you would like me to provide.  

 

 

Best regards, 


Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37

 

On Wed, Oct 3, 2018 at 8:56 AM, Cufi, Carles <Carles.Cufi@...> wrote:

Hi there,

 

Could you please attach a btmon log of the attach procedure?

 

On one shell run “sudo btmon”

On another shell then run: “sudo btattach -B /dev/ttyACM0 -S 1000000”

 

And then attach the log output from btmon in an email or paste service.

 

Also, have you tried “sudo btmgmt --index 0”? i.e. specifying the index when invoking btmgmt?

 

Carles

 

From: devel@... <devel@...> On Behalf Of Cale Collins
Sent: 03 October 2018 17:43
To: devel@...
Subject: [Zephyr-devel] HCI_UART

 

Hello,

 

I have built and installed HCI_UART to nRF52840 Nordic Development kit.  When I connect this device it appears with "lsusb", seemingly I can attach it using "btattach -B /dev/ttyACM0 -S 1000000", revealing hci0.  I have made the recommended adaptation to "/lib/systemd/system/bluetooth.service", appending -E to the "ExecStart=/usr/lib/bluetooth/bluetoothd -E" line.

 

When issuing commands with "btmgmt", "btmon" reports "Invalid Index (0x11)".  Normal HCI commands fail such as "hciconfig hci0 up".  

 

Using Bionic-Beaver Ubuntu, 4.15 kernel, Bluez 5.48, also tested with Xenial Ubuntu 4.15 kernel, Bluez 5.50.  Any suggestions would be greatly appreciated. 

 

Best regards, 

 

Cale Collins
Field Application Engineer
Gateworks Corporation

3026 S. Higuera, SLO, CA 93401
T: (805)781-2000 x37