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

Data displaying incomplete in termite from nrf52840 and nrftoolbox uart using ble_uart example

  int i;
                            char buf[42];

                        for (i = 0; i < 20; i++) {
                      snprintf(buf,42, "A%dBBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDXX", i);         
                       // puts string into buffer
                       printf("%s\n", buf); 
                       // outputs so you can see it

                          
                           uint16_t length2 = sizeof(buf);

                           err_code = ble_nus_data_send(&m_nus,buf, &length2, m_conn_handle);


                       }

A%dBBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDXX = 40bytes

1) In Termite:

Data is complete and in sequence when until 6 only. 

A0BBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDXX
A1BBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDXX
A2BBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDXX
A3BBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDXX
A4BBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDXX
A5BBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDXX
A6BBCCDDEEA

Data only displaying until A6BBCCDDEEA even though I tried to loop until 20. Why ??

2) In uart apps Android, I managed to receive the data incomplete like above but until 6 only. When it is above 6, the sequence is not in order and some data not received . Last data received in apps is A19BBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDXX . How can I get the data loop for 19 if termite is not displaying it ?

Parents Reply Children
No Data
Related