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

uart communication problem !!

am using nrf51822 chip communicating with PIC16fl1509 through uart.the PIC will send the temperatire values through uart to nrf51822. i have a doubt ! will the uart communication only works after advertising ??? can i read the values before advertising and store in an array ,later diaplay during advertising ????will the uart reading functions from pic will work before all the basic functions like ble_stack_init();bond_manager_init();gap_params_init();advertising_init();services_init(); application_timers_start(); advertising_start()etc?? am trying to use uartget data before these but its storing zero in the array !! wats is the problem ?? !! pls help !!

Parents
    1. You should look at Nordics simple UART example provided as part of their SDK it will answer a lot of your question. The UART will work before advertising.

    2. You can read values and later display them during advertising, you can put them in the manufacturers specific data in the advertising packet.

    3. The UART is independent of the ble functions of the chip and the associated soft device stack.

    4. It is impossible to know what your problem would be without more information and seeing your code.

Reply
    1. You should look at Nordics simple UART example provided as part of their SDK it will answer a lot of your question. The UART will work before advertising.

    2. You can read values and later display them during advertising, you can put them in the manufacturers specific data in the advertising packet.

    3. The UART is independent of the ble functions of the chip and the associated soft device stack.

    4. It is impossible to know what your problem would be without more information and seeing your code.

Children
No Data
Related