This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HOW TO use serial only in common use ,not need to use mesh command, mesh3.1.0 nrf52832 ?

1.when I add code in example/serial like below,it nothing happen ,PC not received message,how to do it :

Parents
  • How are you testing whether you receive information on the PC side? Are you running the example in debug mode in Segger Embedded Studio (SES)? The serial example is used together with the interactive py software, so I am not sure it will work out of the box to send information from a device to the RTT terminal if that is what you want to do. 

    Do you get any error codes after you run the ERROR_CHECK(nrf_mesh_serial_tx(data_tx,strlen(data_tx))); line?

    You can use the J-Link RTT Viewer application to get logging information for the example or run a debug session in SES.

    You can also take a look at this documentation for more info.

  • Hi,kvaale

    1.I do not want to send to RTT terminal now , I want to send to PC throught UART , ERROR_CHECK(nrf_mesh_serial_tx(data_tx,strlen(data_tx))); returns no error.

    2.I try the python interactive ,it shows below , but it not what i want , i want it send to TX pin ,and in the futrue ,it can connect  to anther board:

Reply Children
Related