element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Azure Sphere Starter Kit
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Azure Sphere Starter Kit
  • More
  • Cancel
Azure Sphere Starter Kit
Forum Can I use SCP to move a file into Azure Sphere?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Azure Sphere Starter Kit to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 15 replies
  • Answers 6 answers
  • Subscribers 48 subscribers
  • Views 1581 views
  • Users 0 members are here
  • azure sphere
Related

Can I use SCP to move a file into Azure Sphere?

clem57
clem57 over 6 years ago

I am wishing to move a configuration file for Azure Sphere. Naturally SCP over SSH would work nicely. Can anyone direct me to a solution? I will have to modify the file sometimes depending on the layout of the equipment in use.

 

Thanks.

  • Sign in to reply
  • Cancel

Top Replies

  • bwilless
    bwilless over 6 years ago +3 suggested
    There are a few ways to move configuration data to a Sphere device . . . If you only need to operate on one or two devices you could use a Direct Method call to send down a JSON object with your configuration…
  • wizio
    wizio over 6 years ago in reply to bwilless +3
    4. simple curl download
  • wizio
    wizio over 6 years ago in reply to clem57 +2 suggested
    File System is real but is controled ( firewall ) from Pluton subsytem ... I dont know ( for now ) how to write file ... Pluton is as "dongle" ... hardware "sudo" There is MutableStorage for user ( not…
Parents
  • wizio
    0 wizio over 6 years ago

    So... user files

     

    READ ONLY Files

    Packed files to application-image on compilation

    User Home Dir ( read-only mount folder )

    /mnt/apps/GUID_FROM_APP_MANIFEST/   packed_file_name.1 , packed_file_name.2 , ...

     

    int Storage_OpenFileInImagePackage( "packed_file_name" );

    return FD of /mnt/apps/GUID_FROM_APP_MANIFEST/packed_file_name

     

     

    READ & WRITE Mutable Storage

    User Home Dir (read-write mount folder, size = "MutableStorage": { "SizeKB": 8 }

    /mnt/config/GUID_FROM_APP_MANIFEST/

     

    Storage_OpenMutableFile() return FD of file name  /mnt/config/GUID_FROM_APP_MANIFEST/default

     

    Folder /mnt/config/GUID_FROM_APP_MANIFEST can store other files, but by default open() not exist ...

     

    How to read, write, upload, download file/s ... user-ware

     

    App: Azure Explore
    MUTABLE READ[0] 
    MUTABLE WRITE[20] = "Mutable Storage Text"
    MUTABLE READ[20] Mutable Storage Text
    
    
    [TEST] OPEN: test.txt (fd = 4) No error information (0).
    
    
    FOLDER: /mnt/config/dfb1b8e6-90a9-4480-a8c6-6267e5aed1a9
      FILE: /mnt/config/dfb1b8e6-90a9-4480-a8c6-6267e5aed1a9/test.txt
    (empty)  
      FILE: /mnt/config/dfb1b8e6-90a9-4480-a8c6-6267e5aed1a9/default
    Mutable Storage Text

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • clem57
    0 clem57 over 6 years ago in reply to wizio

    I thank you wizio for your sample. I think the answer lies in the mutable storage. To me it acts like home and has a clearly identifiable way to get an ID. That would be the device assigned value(like a user id). I can tie this back to a website I provide which can have the changing data with a database back store. WHen I want to affect the programming, I simple change the back store which drives the code. Just perfect.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • clem57
    0 clem57 over 6 years ago in reply to wizio

    I thank you wizio for your sample. I think the answer lies in the mutable storage. To me it acts like home and has a clearly identifiable way to get an ID. That would be the device assigned value(like a user id). I can tie this back to a website I provide which can have the changing data with a database back store. WHen I want to affect the programming, I simple change the back store which drives the code. Just perfect.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube