API for configure USB port of beaglebone green wireless board

Hello,

I currently using BeagleBone Green Wireless board for transferring the data from host PC to BeagleBone Board using USB. But I unable to find API for USB for this Board.Please help me to know from where I get API for writing a programme to transfer data using USB.

Thanks

On Tue, 29 Nov 2016 03:59:45 -0800 (PST), Gourav
<adityagarg1994@gmail.com> declaimed the
following:

I currently using BeagleBone Green Wireless board for transferring the data
from host PC to BeagleBone Board using USB. But I unable to find API for
USB for this Board.Please help me to know from where I get API for writing
a programme to transfer data using USB.

  You don't say what type of data you are transferring so I have to blast
out lots of ideas.

  Presuming the BBGw acts like the BBB, connecting via the USB activates
a TCP/IP (pseudo Ethernet) connection. The BBB (at least) runs an SFTP
server, so /file transfer/ can be done by merely using an SFTP client on
the host computer and logging into the BBB using the IP address on the USB
link.

  If you are doing "real time" data transfers -- ie; one device is
collecting some sort of data and sending it to the other as it becomes
available (rather than collecting it into a file and some time later
sending the entire file /as a file/), then regular network "socket"
programming should suffice -- you'll have to impress some protocol on it as
TCP is a streaming protocol, and what you receive may be broken into chunks
of different size than had been sent (if sending text, you have to look for
the line endings; if sending binary data you may need to first send a
byte-count to tell the receiver how much data it needs to collect before it
can declare the record done).

  IOWs -- you are not "talking USB"! The drivers to interface "sockets"
to the USB serial port emulation are already in place.

Data which I want to send is Real Time Data.

anti-synonymous.

So how about you start off with a use case. What is it that you wish to do
? Is this some sort of "framework" that can handle missed samples from
*something* ? Or is it something that *needs* hard real-time, has to be
x-amount timing for some operation ?

When you're using USB typically you're going to want to use some sort of a
gadget driver. g_ether, g_serial, g_mass_storage. Unless you're wanting to
use the USB interface on a very low level. But maybe this is what you want
? http://libusb.info/

Thanks for the help, I really want this site.