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
  • Hello,

    Are you using the nRF5 SDK or the nRF Connect SDK?
    In general, there will be no need to implement any modem protocol in order to perform a file transfer using the NUS service (as shown in ble_app_uart examples).
    You can split the file into segments and then sequentially transfer the file to the connected device over the NUS service.

    Best regards,
    Karl

  • 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

Reply
  • 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

Children
No Data
Related