Re: [Zephyr-users] [Zephyr-devel] nRF52: USART: sending data from Serial terminal to DK

Chettimada, Vinayak Kariappa

Why don’t you use tests/bluetooth/mesh_shell ? and add your commands?

Johan may be of assistance.

On 24 Aug 2018, at 13:08, Vikrant More <vikrant8051@...> wrote:

Hi Vinayak,
My sim is to create commands & send it to PDK where PDK process them & help onboard #BluetoothMesh clients to create data packets.

Currently using thread triggered by button interrupt to send Bluetooth Mesh Client mesaages like
Gen_OnOff_Set/ Gen_OnOff_Set_Unack/Gen_Level_Set/Gen_Level_Set_Unack

Thank You !!

On Fri, Aug 24, 2018 at 4:32 PM Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:
if you are looking for a shell, tests/bluetooth/shell could be your inspiration.

if you are looking for implementing a transport over uart, then samples/bluetooth/hci_uart could be your inspiration.

other samples and subsystems may be using UART, that could also be close to your needs. Hoping the UART API documentation in Zephyr should suffice your requirements and how to use it.


On 24 Aug 2018, at 12:46, vikrant8051 <vikrant8051@...> wrote:

I found sample code under main tree i.e zephyr/samples/nfc/nfc_hello 
which read data on UART terminal.

But it is crasing with this log  ...

Sample app running on: arm
***** BUS FAULT *****
  Instruction bus error
***** Hardware exception *****
Current thread ID = 0x20000f24
Faulting instruction address = 0x8fccaf0
Fatal fault in essential thread! Spinning...

So I edit as
uart1_dev = device_get_binding("UART_0")

But still firmware is not printing received data back on

Thank You !!

On Thu, Aug 23, 2018 at 6:54 PM vikrant8051 <vikrant8051@...> wrote:

I wanna send some chuck of data over USART to #nRF52840_PDK like commands.

Is there any sample code available for it or any configuration is required to enable this USART
read feature ?

Thank You !!

Join { to automatically receive all group messages.