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

directory for json file while running DFU over TFTP

Hello Team,

I am trying to run the example DFU overt TFTP, however I found the description a bit ambiguous. Seeking help to remove my ambiguity. 

I am trying to follow this ,

my problem is with location of  the JSON file.

In the above mention link it said, i should place the populated JOSN file in the following directory :

/dfu/c/65535/65535

Lets say i have JSON file named(Not sure if i can give any name) 1234 so  i placed this in /dfu/c/65535/65535.

ls /dfu/c/65535/65535

1234

and I have configured my TFTP server with below configurations:

# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="[::]:69"
TFTP_OPTIONS="-s -l -6 -c"

which means JSON file is not under TFTP folder.

Should i change the location of JOSN file according to my TFTP server as follow?


/srv/tftp/c/65535/65535

 

  • I am sorry, but it seems like the last reply got deleted. But as I said, try going forward with keeping your JSON file in the dfu folder, and give me a heads-up if it didn't work so I can look into it.

    Best regards,

    Simon

  • Hello,

    I messed up with tftp server location of files. I mean the source of all of my problems are from step 7. Here is the details what i have tried:

    creating a josn file with my zip package:

    python trigger_creator.py --tftp_path /dfu/app/ app_dfu_package.zip config.json

    -- No error in this step and i can see json objects in the file

    Then i move this file to /srv/tftp/dfu/c/65535/65535/ directory.

    Then i did following:

    unzip app_dfu_package.zip -d  /srv/tftp/dfu/app/

    In the uart port i can see following error:

        0x45 (E)
    >     0x72 (r)
    >     0x72 (r)
    >     0x6f (o)
    >     0x72 (r)
    >     0x20
    >     0x69 (i)
    >     0x6e (n)
    >     0x20
    >     0x74 (t)
    >     0x66 (f)
    >     0x74 (t)
    >     0x70 (p)
    >     0x5f (_)
    >     0x64 (d)
    >     0x66 (f)
    >     0x75 (u)
    >     0x5f (_)
    >     0x69 (i)
    >     0x6e (n)
    >     0x69 (i)
    >     0x74 (t)

    N:B This step seven is ambiguous to me, could you please check what i am doing wrong here ?

  • Hi, Sorry for the late reply, but the Christmas holidays has left our support team short handed. Have you made any progress on this matter by yourself or are you still unable to resolve the issue? If so I do not see what "step 7" you are referring to, please specify.

    Kind regards and a happy new year,

    Simon

Related