increase and know the max data possible to send

Hello, i'm using the example ble app uart and I would like to know the maximum data that I cand send to my putty and my phone. Could I have to procedure? I would like to send a lot of data 

Thank you in advance

Parents Reply
  • lm said:
    yes but i only issue is to create the fragments actually I saw this function that could help in the main.c but I don't know where to put it.

    Yes, but this is still all on the peripheral side - which is working as expected.
    The function you shared is a peripheral side function, which will not affect how you are able to send things from the phone to the peripheral.
    The changes you will need to make is on the central(phone) side, so that you are able to queue your large dataframe for transfer, or perhaps I am misunderstanding you again?

    lm said:
    And the 244 bytes can be transmitted but we have 245 bytes we have an error and nothing is transmitted.

    True, this is as expected - when an error is returned it means that the function call as a whole failed, in which case nothing will be transmitted and you will have to re-do the function call.

    Best regards,
    Karl

Children
  • Okay, maybe we don't understand each other but my problem is : 

    - from PHONE to my COMPUTER :

     data is not transmitted at 245 bytes and I have a gatt error. My goal is to create a function as I show you to fragment the code and send 2 notifications to my computer. 

    I would like to know what I have to modify on the ble app uart code to create directly those fragments of 244 bytes each.

    but from COMPUTER to PHONE I don't have any problems :)

  • but my problem is that I'm new with dev and making chunk is not easy so I showed earlier my idea and I would like to have your opinion about this function and where I should put it thank you again

  • lm said:
    - from PHONE to my COMPUTER :

    Yes, I think I understand your issue.

    lm said:
    my problem is that I'm new with dev and making chunk is not easy so I showed earlier my idea and I would like to have your opinion about this function and where I should put it thank you again

    Yes, you showed me some code for the nRF device, however as I mentioned the issue is not with the nRF device itself - the BLE protocol has a maximum byte limit per packet, and thus you can not just change a configuration to allow larger packets.
    Instead, you will need to work with this requirement on your phone's side, by fragmenting the message into pieces that does not exceed the BLE limit.

    In essence; your nRF BLE UART device is working as intended, the issue is just that each message from your phone can not exceed the BLE packet limit, and so you must divide the message into chunks that fit into the BLE packet limit.
    The nRF Connect application can not do this for you, unfortunately, so you will have to find a way to have this done - either by doing it manually yourself using the nRF Connect application (not feasible), or by creating an application on your phone that fragment and send data to your connected BLE UART device sequentially.

    Best regards,
    Karl

  • lm said:
    Thank you so much for your help. :) 

    No problem at all, I am happy to help you! :)

    Please do not hesitate to open another ticket if you encounter any other issues or questions in the future.

    Good luck with your development!

    Best regards,
    Karl

Related