I want to interface Client Sensor over UART in light_switch_client code. Can you please give me the idea,how to do it.
I am using Mesh_V4.0 and SDK 16.0
I want to interface Client Sensor over UART in light_switch_client code. Can you please give me the idea,how to do it.
I am using Mesh_V4.0 and SDK 16.0
Hi,
I suggest you have a look at the UART Coexistence example from our Mesh SDK. The example integrates UART into the light switch client example.
Hi thanks for the reply.It compiled successfully.
1.Now will you please explain me which part in the code exhibits UART functionality ? Basically I want to send some commands from development kit,for which my sensor will send the response. (PHYSICAL WIRED INTERFACE)
2,Which pins I should use on the development kit to interface my external sensor ? (External sensor has RX,TX,RTS,CTS pins).
Hi,
1. For sending and receiving over UART, have a look at these functions:
app_uart_get(..)
app_uart_put(..)
2. I suggest you have a look at the Product Specification for the nRF52832. P0.05 - P0.08 are connected to the interface MCU. Choose some other GPIO for communicating with the sensor.
Initialize the UART module with uart_init().
Hi,
1. For sending and receiving over UART, have a look at these functions:
app_uart_get(..)
app_uart_put(..)
2. I suggest you have a look at the Product Specification for the nRF52832. P0.05 - P0.08 are connected to the interface MCU. Choose some other GPIO for communicating with the sensor.
Initialize the UART module with uart_init().