Code Monkey home page Code Monkey logo

Comments (3)

JLJu avatar JLJu commented on June 6, 2024

Current file download is bulky but easy to implement Teensy side and Android/BT/PC side. Unfortunately, to block the transfer you should cut the power to the ADC.

Move to a standard protocol for file transfer would allow us to use standard serial terminal software, that can be comfortable and also allow automatic scripts to be executed over the serial connection.
Zmodem implementation seems to be available for Teensy
https://forum.pjrc.com/threads/26646-Zmodem-transfer-from-Teensy-to-PC
https://forum.arduino.cc/index.php?topic=382044.0

from airdatacomputer.

GrazianoCapelli avatar GrazianoCapelli commented on June 6, 2024

For now I implemented an easy way to abort the dump (commit 7319735).

Now it is possible to end the dump anytime, by sending another command from the same serial interface.
The dump will send the $EOF sentence and will terminate.
The new command sent will be processed as usual.

It is possible to know if the file is fully downloaded, comparing the remote and the local size.
I took a look to your link and, basing on that code, I choose to add a periodic flush() during the dump process.

The dump method now seems to be raw but fully functional.
To be deeply tested!

Let's take our time to think (and in case implement) the Zmodem interface!

from airdatacomputer.

JLJu avatar JLJu commented on June 6, 2024

Way to go!

from airdatacomputer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.