Trying to implement y modem protocol in uart example

Hello,

I am trying to implement the Y-modem protocol to the ble_app_uart example. Basically, I want to send a file from the PC and receive a file in my nrf522840 device. Since being a newbie i have no idea how to implement it. If you have any related documents or any sample code please share.

Any Suggestions would be beneficial.

Parents Reply Children
  • Hello Karl,

    Thanks For Your Reply

    I am using nRF5 SDK 17.0.0, Basically, we are designing an application in which I receive data in the y-modem format from the Wirepas Network.

    So, As a First Phase, I am using TeraTerm to send the File in Y-modem protocol and receive it through the UART port of the nRF52840 DK and Perform a Background DFU update.

    In order to do it, I want to send a dummy file from the TeraTerm in the y-modem protocol and receive the file on my nRF device.

  • Harish_C_S_ said:
    Thanks For Your Reply

    No problem at all, I am happy to help!

    Thank you for elaborating. It sounds to me like you would not need to have an actual Y-modem protocol in place on your peripheral device then, but rather just a method to parse the incoming data, is this a correct understanding of it?
    I unfortunately have no personal experience with the Y-modem protocol/format.

    You can check out this Image Transfer example to see how you can go about transferring a larger file over the NUS service. In the demo there is created a custom service to do the transfer, but it essentially functions as the NUS service does.

    Best regards,
    Karl

Related