Comments (4)
After looking a bit closer at the examples in the Arduino library, I found that adding a 1 to python line 38. Does make the initial portion of the string occur on the SD card.
link.send(sendSize, 1)
at this point I'm just a bit puzzled about the logic which keeps the rest of the data coming in. I noticed someone posted a similar issue about file transfer in the Arduino version of the library
PowerBroker2/SerialTransfer#89
from pyserialtransfer.
Another error in the python script is that the substring isn't created in the right way.
dataStr = file[fileIndex:fileIndex+dataLen]
adding +dataLen makes the script work again (along with sending the ID number)
from pyserialtransfer.
Thanks for your eyes on the example code - I made the bug fix. Can you confirm it's working for you?
from pyserialtransfer.
Assuming it's fixed
from pyserialtransfer.
Related Issues (20)
- Check for CRC error HOT 1
- Sending a Boolean HOT 5
- Is there a maximum variable size for "x" when using myTransfer.sendDatum("x")? HOT 12
- Serial port doesnโt stay connected HOT 2
- Send encoder data HOT 6
- Can we use this library on Raspberry Pi for communication through GPIO? HOT 2
- Are there any examples showing how to save received file to a PC folder. HOT 1
- Data array sometimes gets corrupted if some values are present HOT 5
- Enhancement Proposal: Modernizing pySerialTransfer Python Client for Improved Code Quality and Practices HOT 2
- Migrate to use `pyproject.toml` for project specification HOT 1
- `num_bytes` variable shadows outer scope
- variable naming convention is inconsistent
- `crc` variable shadows the name from the outer scope
- Use isinstance() for Type Checking
- Unused functions in `pySerialTransfer.py`
- Project has no test coverage HOT 2
- larger values of `crc_len` can cause a `MemoryError`
- bools mis-classified as ints when using `tx_obj`
- `tick()` called with `debug=False` only logs `CRC_ERROR` when there is an error
- `set_callbacks` does not require all items to be callable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyserialtransfer.