Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Due to Due Serial Communication Via USB Possible? #9

Open
Delphi opened this issue Nov 4, 2015 · 15 comments
Open

Due to Due Serial Communication Via USB Possible? #9

Delphi opened this issue Nov 4, 2015 · 15 comments

Comments

@Delphi
Copy link

Delphi commented Nov 4, 2015

Greetings to the authors of this library.

First of all, thank you for taking the time and efforts to create a promising library!

Please forgive me if this post is a bit premature for this library, however I hope that one may confirm or deny if this library is the right library for what I wish to achieve.

What I am trying to achieve:-
I am currently working on a project that uses nearly every single pin header available on a Due, including all hardware serial ports and I would like to use the native USB port on the Due's to communicate between each other.

I understand that it is possible to setup one Due as a USB client serial device by invoking the SerialUSB.begin(9600); command and then sending data using SerialUSB.println("Hello World");
When connected to my PC or connected to my android phone using a OTG cable with the phone as a host, it works a treat.

As such I would require to setup the master Due as a USB host with an OTG cable to accept the CDC? connection/device that is the slave Due and to be able to read the serial data using SerialUSB.read();

It would appear that all the serial communication commands are there already, however I am struggling to get the Host Due to open a serial port with the slave Due.

My Question:-
Is this library, in its current form, possible to achieve what I am wishing to?
I have downloaded it and have played with it some, however I am not familiar with setting up the native USB host on the Due so my efforts have been to no avail thus far.

If the library does not currently support this type of connectivity, is this something that is planned for this library in the future?

Again many thanks for your time and effort with this library as I foresee it opening the doors to all sorts of cool project ideas!

I understand this project is not yet in a position to start providing technical support, as mentioned on the home page, however if you can provide any pointers that would get me a step closer to my goals it would be hugely appreciated.

Many thanks.
Delphi.

@xxxajk
Copy link
Collaborator

xxxajk commented Nov 4, 2015

Have to write CDC-ACM drivers for this yet, and due native is not
implemented yet.
On Nov 4, 2015 7:34 AM, "Delphi" notifications@github.com wrote:

Greetings to the authors of this library.

First of all, thank you for taking the time and efforts to create a
promising library!

What I am trying to achieve:-
I am currently working on a project that uses nearly every single pin
header available on a Due, including all hardware serial ports and I would
like to use the native USB port on the Due's to communicate between each
other.

I understand that it is possible to setup one Due as a USB client serial
device by invoking the SerialUSB.begin(9600); command and then sending data
using SerialUSB.println("Hello World");
When connected to my PC or connected to my android phone using a OTG cable
with the phone as a host, it works a treat.

As such I would require to setup the master Due as a USB host with an OTG
cable to accept the CDC? connection/device that is the slave Due and to be
able to read the serial data using SerialUSB.read();

It would appear that all the serial communication commands are there
already, however I am struggling to get the Host Due to open a serial port
with the slave Due.

My Question:-
Is this library, in its current form, possible to achieve what I am
wishing to?
I have downloaded it and have played with it some, however I am not
familiar with setting up the native USB host on the Due so my efforts have
been to no avail thus far.

If the library does not currently support this type of connectivity, is
this something that is planned for this library in the future?

Again many thanks for your time and effort with this library as I foresee
it opening the doors to all sorts of cool project ideas!

I understand this project is not yet in a position to start providing
technical support, as mentioned on the home page, however if you can
provide any pointers that would get me a step closer to my goals it would
be hugely appreciated.

Many thanks.
Delphi.


Reply to this email directly or view it on GitHub
#9.

@Delphi
Copy link
Author

Delphi commented Nov 4, 2015

Thank you for the fast response!
I shall keep an eye on this project to monitor for updates.

Thank you.

@wesner0019
Copy link

Hi xxxajk,

I am also very interested in this type of function. I am wondering if there is any progess on this for the due native support? Is the any type of donations I could make to help? I have been trying many things with the 2.0 library but I have limited programming experience.

Thanks,
Steve

@xxxajk
Copy link
Collaborator

xxxajk commented Mar 28, 2016

Sorting out MIPS32 (PIC32MZXXX) right now, but it is in the to-do queue. If
you want to try your luck at it, help is welcomed.
On Mar 27, 2016 9:31 PM, "wesner0019" notifications@github.com wrote:

Hi xxxajk,

I am also very interested in this type of function. I am wondering if
there is any progess on this for the due native support? Is the any type of
donations I could make to help? I have been trying many things with the 2.0
library but I have limited programming experience.

Thanks,
Steve


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#9 (comment)

@wesner0019
Copy link

Thanks, I am actually wanting to use this library and the shield so that I can use the above functionality to communicate between two STM32F205 120Mhz ARM Cortex M3 (Particle P1 modules, https://docs.particle.io/datasheets/p1-datasheet/). Would this type of processor require its own native support?

@xxxajk
Copy link
Collaborator

xxxajk commented Mar 28, 2016

Short answer: yes.
On Mar 27, 2016 11:16 PM, "wesner0019" notifications@github.com wrote:

Thanks, I am actually wanting to use this library and the shield so that I
can use the above functionality to communicate between two STM32F205 120Mhz
ARM Cortex M3 (Particle P1 modules,
https://docs.particle.io/datasheets/p1-datasheet/). Would this type of
processor require its own native support?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#9 (comment)

@wesner0019
Copy link

Ok thanks, I'm in a small start-up in Minnesota and my team is really looking at this type of functionality as a critical feature but we are not experts with USB communication protocol. We would be willing to pay you/your team and send you a few Photons to get this type of functionality going rather soon.

If you're open to coding this please PM me at: wesner0019@gmail.com

Thanks,
Steve

@felis
Copy link
Owner

felis commented Mar 28, 2016

Hi Steve,

I sent you an e-mail.

Oleg.

@kubitron
Copy link

kubitron commented Sep 6, 2016

Hello all. Sorry if this is a dead thread, but I'm curious if support for Arduino Zero (same as Due?) has happened yet. Very interested in Host CDC serial.

Inquiring minds always want to know. I'm also very happy to work with early code.

@kubitron
Copy link

kubitron commented Sep 6, 2016

(p.s. I asked, above, since I see that CDC-ACM support seems to exist now..., so just wondering about native support for Arduino Zero).

@xxxajk
Copy link
Collaborator

xxxajk commented Sep 6, 2016

Time is limited at present. Nothing stops you from contributing.

@kubitron
Copy link

Indeed. Just curious what was up with Zero support. I had to come up with another solution for current project, but perhaps could help at point in future. Any suggestions on how to become sufficiently knowledgeable about USB/your code to be helpful?

@avanshvishu99
Copy link

I also want make my android as arduino server and also want to use its sensors to function the arduino with only otg usb support without any extra shield

@avanshvishu99
Copy link

Can we use blynk usb script in android old otg...to give arduino internet...and use all its sensors.,..and control with my new phone

@xxxajk
Copy link
Collaborator

xxxajk commented Jun 24, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants