PowerBroker2 / SerialTransfer

Arduino library to transfer dynamic, packetized data fast and reliably via Serial, I2C, or SPI
MIT License
412 stars 68 forks source link

Mirror library for computers/linux #23

Open BrainStone opened 4 years ago

BrainStone commented 4 years ago

Is your feature request related to a problem? Please describe. I'd like to be able to use this library to communicate with an arduino from a linux machine. However the project I'd like to implement this in cannot make use of the python mirror library.

Describe the solution you'd like I'm looking for a computer/linux mirror library.

Describe alternatives you've considered I've taken a look at using the python library but that's just not working out for me. If worst comes to worst I could imagine trying to port the library myself, but I think it would be to the benefit of everyone to have a C++ mirror library.

PowerBroker2 commented 4 years ago

When you say the Python library isn't working out for you, do you mean there's a bug in the Python library or your PC code isn't originally meant for Python?

BrainStone commented 4 years ago

I mean that the project itself is written in C++ and I can't integrate a python library

PowerBroker2 commented 4 years ago

Ah, ok. I can port the lib to a Linux C++ library, but no promises on a date to have it complete by.

BrainStone commented 4 years ago

That would be much apprechiated!

Do you have a rough guess on how long it'll take? I do understand not wanting to commit to a date and I won't bug you about it, but I'd love to know if it's worth waiting of if I need to look for other ways to get the linux computer talking.

PowerBroker2 commented 4 years ago

I can make an empty repo for it today. That way anyone in the community can contribute to it and progress will be faster. Also, I don't have a Linux machine or much experience with Linux, so I would need help with testing anyway.

Basically, I can start today, but might take a month or so to finish it. If others in the open source community help, it should go faster.

BrainStone commented 4 years ago

Alright. I should be able to help out.

PowerBroker2 commented 4 years ago

Here's the link: https://github.com/PowerBroker2/CSerialTransfer

BrainStone commented 4 years ago

For testing you can just use WSL. Or at least for compiling.
A virtual machine should work just fine too.

BrainStone commented 4 years ago

Would you mind giving this project a start? Like with the build tools and the like. There's quite a few and I don't want to make that decision for you.

If you're asking me, I'd say CMake. Decent learning curve, works well with VisualStudio (VisualStudio has support for Linux CMake projects) and is overall commonly used.

Yash1903 commented 3 years ago

Hello @PowerBroker2 and @BrainStone can i send file using this library.(File already Exist) ?

PowerBroker2 commented 3 years ago

@Yash1903, yes, you can send a file with this library. I've seen someone transfer 2K jpg pictures from one Arduino to another with SerialTransfer. Check out the example sketches whos names are appended by _file

ghost commented 2 years ago

Excuse me, but any news about this?

v-r-a commented 1 year ago

+1 request!

Satnet commented 11 months ago

That CSerialTransfer, I would very much appreciate if it became a reality. I wanna transfer data reliably between a Windows program and Arduino. Using SerialTransfer and CSerialTransfer seems like the perfect solution! I'm willing to pay for it to become a reality. And ofc shared with everyone!

shyney7 commented 10 months ago

That CSerialTransfer, I would very much appreciate if it became a reality. I wanna transfer data reliably between a Windows program and Arduino. Using SerialTransfer and CSerialTransfer seems like the perfect solution! I'm willing to pay for it to become a reality. And ofc shared with everyone!

There is already a pull request that should work although its nor merged yet for whatever reason!? https://github.com/PowerBroker2/CSerialTransfer/pull/1